View Single Post
  #1  
Old 09-02-2002, 11:42 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
It saves but will not send...

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
__________________
Reply With Quote