View Single Post
  #5  
Old 11-02-2001, 06:24 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Wrong section, but, you would need to do a triggeraction to the control-npc which adds or subracts money from the player:

NPC Code:

Give player 3 Gralats
if (something) {
triggeraction 0,0,serverGralat,#a,3;
}

Take away 3 Gralats from player
if (something) {
triggeraction 0,0,serverGralat,#a,-3;
}

Control-NPC:
if (actionserverGralat) {
with (getplayer(#p(0))) {
playerrupees+=strtofloat(#p(1));
}
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote