View Single Post
  #4  
Old 09-03-2002, 12:26 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Re: It saves but will not send...

Quote:
Originally posted by G_yoshi
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
1) Parameters are sent as strings. (this.exp=#p(0) doesn't work, you are trying to store a string in a variable)
2) lastattacker isnt saved on the control NPC, however with a THIS. prefix...... (this.lastattacker)

These are pretty stupid mistakes I must say =\
__________________

subliminal message: 1+1=3
Reply With Quote