efilnikufecin
Member
boolean put_shop (int price, item limit, item it)
should be
boolean put_shop (int price, int limit, item it)
should be
boolean put_shop (int price, int limit, item it)
boolean put_shop (int price, int limit, item it)
Places all of the associated item into your mall store at the desired price and with the associated limit on purchases per day, if possible. If the price is set to 0, then the price set will be 999,999,999 meat.
boolean buy (int count, item it)
Tries to buy items. First preference is given to NPC stores that you have access to and then, if possible, will buy the cheapest available items from the mall.
buy(100-shop_amount($item[olive]), $item[olive]);
put_shop(100, 0, $item[olive]);