![]() |
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'?
|
Re: Selling with strings?
Quote:
its the one with this(the one above^) script. |
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? |
[ Delph Inc. ]
for (i=0;i<#s(pearlcount);i++) { playerrupees+=i; } |
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.