Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-29-2001, 04:54 AM
Providence_Admin1 Providence_Admin1 is offline
Banned
Join Date: Oct 2001
Location: Canada
Posts: 90
Providence_Admin1 is on a distinguished road
Help..

I'm trying to get money to add to the player client side by using the NPC server, it should work but I don't know what's wrong! Here's the script:

//#CLIENTSIDE
message TYNE IS TESTING ME LOL;2
if (playertouchsme)
{
triggeraction 0,0,servermoney,1;
}

That NPC is in a level.

And this is on the "Control-NPC":

if (actionservermoney) {
playerruppees += strtofloat(#p(0));
}

What's wrong?
Reply With Quote
  #2  
Old 10-29-2001, 05:35 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Add me to your signature and I'll help.

-Rebel95
Reply With Quote
  #3  
Old 10-29-2001, 09:59 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Re: Help..

Quote:
Originally posted by Providence_Admin1
I'm trying to get money to add to the player client side by using the NPC server, it should work but I don't know what's wrong! Here's the script:

//#CLIENTSIDE
message TYNE IS TESTING ME LOL;2
if (playertouchsme)
{
triggeraction 0,0,servermoney,1;
}

That NPC is in a level.

And this is on the "Control-NPC":

if (actionservermoney) {
playerruppees += strtofloat(#p(0));
}

What's wrong?
Should it be:
if (action.servermoney) ?

Maybe not...
Reply With Quote
  #4  
Old 10-29-2001, 11:40 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
NPC Code:

//#CLIENTSIDE
if (playertouchsme) {
triggeraction 0,0,servermoney,#a,1;
}



Control-NPC:

if (actionservermoney) {
with (getplayer(#p(0))) {
playerruppees += strtofloat(#p(1));
}
}


Try that.
__________________
-Boco

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


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 05:53 AM.


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