
04-06-2009, 12:34 PM
|
|
Psionic Youth
|
 |
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
|
|
Triggers and their 3 Tile Range
|
temp.plr=findplayer(plrn);
triggerserver("gui", this.name, "hurtother", plr.account, this.damage);
plr.gethit(1);
x=plr.x;
y=plr.y;
triggeraction(plr.x+1.5, plr.y+1.5, "melee", "other", this.damage, player.account, clientr.outpost);
Serverside:
elseif (param1 == "hurtother") {
findPlayer(param2).attr[3] = param3;
}
It conveniently ignores anything that happens more than 3 tiles away regardless. It doesn't find the player if they're more than 3 tiles away, doesn't set their attr[3] if they're more than 3 tiles away, doesn't call their gethit(1) if they're more than 3 tiles away...are we really stuck with serverstrings or projectiles for ranged attacks nowadays? |
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."
"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
 - My pet, the Levelup Gnome
http://forums.graalonline.com/forums...&postcount=233
|
|
|
|