Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help.. (https://forums.graalonline.com/forums/showthread.php?t=15689)

Providence_Admin1 10-29-2001 04:54 AM

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? :(

Enigma_GP6 10-29-2001 05:35 AM

Add me to your signature and I'll help.

-Rebel95

Thak2 10-29-2001 09:59 AM

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...

BocoC 10-29-2001 11:40 AM

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.


All times are GMT +2. The time now is 07:28 AM.

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