Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   few questions (hopefully someone can help) (https://forums.graalonline.com/forums/showthread.php?t=9777)

KJS 08-17-2001 08:47 AM

few questions (hopefully someone can help)
 
how do you add rupees to a players account (I tried
playerrupees += value and it didn't work I tried 3 ways of doing it
1. by doing that
2. doing it clientside
3. doing a with(getplayer(#a)) befor that script
)

and second question is how do you check for the players gani server side (is is possable?)

I tried if(strequals(#m,ganisname)) and it didn't work for me... but I tried that a while ago

Metal-Slug 08-17-2001 08:50 AM

NPC Code:

if (playertoouchsme) {
cashmonies++;
}


LilbrojX 08-17-2001 09:41 AM

:o

ownerofbabylon 08-17-2001 01:00 PM

did u try playerrupees=playerrupees+10;

KJS 08-17-2001 03:42 PM

yes I have

grim_squeaker_x 08-17-2001 04:56 PM

NPC Code:
if (playerenters) {
with (getplayer(#a)) playerrupees+=10;
}


And if that doesn't work you'll have to do it differently...

Admins 08-17-2001 07:59 PM

if (playertouchsme) playerrupees += 1000;
if (playertouchsme) message Player animation: #m;

The Gralats amount can only be changed
on server-side.
with (getplayer(#a)) doesn't do
anything except slowing down the server

Metal-Slug 08-17-2001 08:50 PM

Quote:

Originally posted by Stefan
if (playertouchsme) playerrupees += 1000;
if (playertouchsme) message Player animation: #m;

The Gralats amount can only be changed
on server-side.
with (getplayer(#a)) doesn't do
anything except slowing down the server

oooo i c, guess my idea doesn't work

LiquidIce00 08-19-2001 10:52 AM

for example if u want to check if the player is swimming

NPC Code:

timeout=.1;
if (timeout&&strequals(#m,swim)) {
setplayerprop #c,swimming;
}


Falcor 08-19-2001 02:06 PM

I think the NPC server Wubs you if you do

playerrupees = playerrupees + ammount;
(serverside)


All times are GMT +2. The time now is 08:45 PM.

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