You just write 0 to the client to make the client know it has to show the infinite symbolserver.shopHandler.ShopItemsN[ShopID][i] = #
but on your serverside you have the amount (#) you did set
|
Used swats tutorial http://www.rune-server.org/showthread.php?t=138635
How would I make it so the item is actually infinite amount, when you buy all items from any amount of stock instead of 0 it shows infinity symbol and you can't buy when its present.
Originally it looked like this outStream.writeDWord_v2(server.shopHandler.ShopIte msN[ShopID][i]);
swat says change it to this
outStream.writeDWord_v2(0);
now I know this just changes the value of 0 with the symbol but how would i make it so it actually has infinity item amounts
Thanks
rep++
You just write 0 to the client to make the client know it has to show the infinite symbolserver.shopHandler.ShopItemsN[ShopID][i] = #
but on your serverside you have the amount (#) you did set
okay thanks thought it was something like that
I think I'm misunderstanding what you're asking here, but if you want a shop to sell an item but not subtract the shop's stock pile, you'd go to your "buyItem" method and find this bit of code:
That deletes 1 quantity of the item from the shop when you buy it, you could just comment that out if you like.Code:server.shopHandler.ShopItemsN[MyShopID][fromSlot] -= 1;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |