I inherited the # signs. Not a lot I can do about it. Got sure I can find it (I forgot some little subroutine to make sure the player was getting called), then the guy I was testing with got quietly kicked offline. Right now I got
PHP Code:
triggerserver("weapon",this.name,0,temp.sinx,temp.siny,temp.targets,temp.ptargets);
temp.ptt=ptargets.tokenize();
player.chat=("PTT:"@ptt);
for(temp.plrn:ptt){
temp.plr=findplayer(plrn);
player.chat=("PLR:"@plr SPC this.damage);
plr.chat="Fix me";
triggeraction(plr.x+1.5, plr.y+1.5, "melee", "other", this.damage);
triggeraction(plr.x+1.5, plr.y+1.5, "tyhm", "other", this.damage);
triggeraction(plr.x+1.5, plr.y+1.5, "Tyhm", "other", this.damage);
}
And it Used to work, but spontaneously stopped. -_-. Curiously, if I comment out the other two triggeractions it works fine...but only out to a certain distance, about 6 tiles. And actionmelee looks like this:
PHP Code:
function onActionMelee() {
player.chat=("Hit! "@params[0] SPC params[1]);
setAni("hurt", "");
if(this.cooldown<1){
triggerserver("gui", this.name, "hurt", params[0], params[1]);
findWeapon("GUIInventory").trigger("showHUD", "");
this.cooldown=60;
}
}