Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Selling with strings? (https://forums.graalonline.com/forums/showthread.php?t=14019)

Python523 10-07-2001 08:02 AM

Selling with strings?
 
Say if you had 20 pearls, how would you get it to give you 20 g when you told them 'Sell Pearls'?

Vinvect 10-07-2001 08:15 AM

Re: Selling with strings?
 
Quote:

Originally posted by Python523
Say if you had 20 pearls, how would you get it to give you 20 g when you told them 'Sell Pearls'?
everyone, plz tell him to lok for my: A Scripting Question topic.
its the one with this(the one above^) script.

Python523 10-07-2001 09:34 AM

if(playerchats&&strequals(#c,sell bugs)){
playerrupees+= bugcount / 15; setstring bugcount,0;
}
that's what I have so far
It sets the bugcount to 0 but it wont give me 1 gralet for every 15, did I do something wrong?

Knightoffrost 10-07-2001 10:02 AM

[ Delph Inc. ]

for (i=0;i<#s(pearlcount);i++) {
playerrupees+=i;
}

Providence_RC1 10-07-2001 02:32 PM

if (playerchats) {
if (strequals(#c,sell stuff)) {
playerrupees = + #s(client.stuff);
setstring client.stuff,0;
}
}


All times are GMT +2. The time now is 03:41 AM.

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