For some inane reason, I can't get triggeraction to work for a particular NPC. For testing purposes, it saved the data I wanted to send out, but it does not send...either that or the Control-NPC doesn't want to recieve the triggeraction
NPC Code:
triggeraction 0,0,servercheck,#s(client.expinc),#s(client.lastat tacker);
That should send it to the Control-NPC which has:
NPC Code:
if (actionservercheck) {
this.exp = #p(0);
setstring lastattacker,#p(1);
with (getplayer(#s(lastattacker)) {
setstring client.player_exp,#v(strtofloat(#s(client.player_e xp))+#p(0));
setplayerprop #c,I now have #s(client.player_exp) EXP!;
}
}
But I keep checking the extras I have it set and it doesn't set them when I check the Control-NPC...this.exp does not show up as well as lastattacker.
I've been messing with it for the past hour at least...enjoying hitting my counterpart since I need to vent anyway
