Graal Forums

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

Neoreno 08-29-2001 08:50 PM

sHOP sCRIPT
 
i NEED TO KNOW THE SHOP SCRIPT FOR NON P2P SERVERS!!:(

Cloud_X 08-29-2001 09:42 PM

Shop script...you could just do like
if (playerchats && strequals(#c,buy arrows) && playerrupees >=5)
{
playerrupees-=5;
playerdarts+=5;
}

Is that what you ment llike you can buy arrows or something?

oscarjf1 08-29-2001 09:58 PM

umm
 
There is no script called THE shop script, because generally everyone makes their own. Thats because the are pretty simple to do.

I normally do something like this:

if (playerenters) {show;
}
if (strequals(#c,buy bombs) && playerrupees>=5) {playerbombs+=5; playerrupees-=5; setplayerprop #c,;
} // This gives you 5 bombs for 5 rupees when a player says buy bombs, obviously.

You might want to include signs and things that tell players what to say to get items....

Neoreno 08-29-2001 10:27 PM

Thanks
 
Thanks

nyghtGT 08-31-2001 12:09 PM

wrong ...
 
Quote:

if (playerenters) {show;
}
if (strequals(#c,buy bombs) && playerrupees>=5) {playerbombs+=5; playerrupees-=5; setplayerprop #c,;
} ;
This ould be wrong cause you would need 6 rupees to buy .. the correct to make something cost 5 rupee would be

if (created) {show;
}
i (playersays(buy arrows) && playerrupees>4) {
playerdarts+=5;
playerrupees-=5;
setplayerprop #c, Yipee !!!!;
}

Merlin 08-31-2001 12:15 PM

Re: wrong ...
 
Quote:

Originally posted by nyghtGT

This ould be wrong cause you would need 6 rupees to buy .. the correct to make something cost 5 rupee would be

if (created) {show;
}
i (playersays(buy arrows) && playerrupees>4) {
playerdarts+=5;
playerrupees-=5;
setplayerprop #c, Yipee !!!!;
}

no...
his way is saying if your rupee count is equal to or greater then 5 yours is just saying greater then 4 same thing basicly

nyghtGT 08-31-2001 12:23 PM

ok
 
ok i get you ...
sorry for saying you wrong dude

AlexH 08-31-2001 10:29 PM

Re: sHOP sCRIPT
 
Quote:

Originally posted by Neoreno
i NEED TO KNOW THE SHOP SCRIPT FOR NON P2P SERVERS!!:(
are you making a server
god i hope not

oscarjf1 08-31-2001 10:52 PM

Re: Re: sHOP sCRIPT
 
Quote:

Originally posted by AlexH


are you making a server
god i hope not

lmao:spam:

Neoreno 09-01-2001 02:19 AM

No I am not making a server
 
No I am not making a server and no I am not making a shop either!!:spam: :spam: :spam: :spam: :spam:


All times are GMT +2. The time now is 01:48 PM.

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