View Single Post
  #1  
Old 01-11-2014, 08:16 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Trigger Server for another player

I could have sworn I've done this before, but maybe I'm wrong. pl.triggerServer just throws the error
Quote:
Script: Function Player Indalecio_Azmaveth.triggerServer not found in function doPlayerSword in script of Weapon -System/Movement
I have to trigger the server to use findplayer with the params, then pl.triggerclient, then trigger back to the server with the player that got hurt so I can subtract the health server side. Isn't there a better way? I've already tried adding in a function to a class that's joined to the player and it was useless as well.

PHP Code:
for (temp.pltemp.closePlayers) {
    if (
pl == player || pl.guild == player.guild || pl.isdead || pl.ispause) continue;
    
    if ((
pl.1.5in |myx1myx2| && (pl.2in |myy1myy2|) {
      
pl.triggerServer("weapon"this.name"hurtPlayer"plkillerkillerg);
    }
  } 
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote