Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-17-2004, 06:19 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
trader

I made a token(the money used on my server) trader, using with and crap as shown:

NPC Code:

if (actionserverside) {
with(getplayer(#p(1))) {
setstring client.tokens,#v(strtofloat(#s(client.tokens))+str tofloat(#p(0)));
}
}
//#CLIENTSIDE
if (playerchats&&startswith(token,#c)) {
tokenize #c;
play bomb.wav;//just to tell the person the transaction is done
setstring client.tokens,#v(strtofloat(#s(client.tokens))-strtofloat(#t(1)));
triggeraction 0,0,serverside,Token trader,#t(1),#t(2);
}







But foir some reason, the person supposedly recieving the tokens doesnt get them. Can someone help me? (Note: I am not asking for someone to fix it for me, just tell me what i am doing wrong so I can learn that for future reference)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.