*npcshopadditem "<name>",<item id>,<price>{,<item id>,<price>{,<item id>,<price>{,...}}};
*npcshopadditem "<name>",<item id>,<price>,<stock>{,<item id>,<price>,<stock>{,<item id>,<price>,<stock>{,...}}};
This command will add more items at the end of the selling list for the
specified NPC shop or cashshop. If you specify an item already for sell, that item will
appear twice on the sell list.
The function returns 1 if shop was updated successfully, or 0 if not found.
NOTES:
- That you cannot use -1 to specify default selling price!
- If attached shop type is market shop, need an extra param after price, it's <stock>
and make sure don't add duplication item! For unlimited stock use -1.
OnHour00:
// reset the shop item list
npcshopitem "shop_name", 909, 1;
npcshopdelitem "shop_name", 909;
// add item with random price
npcshopadditem "shop_name", 756, rand(500, 1000);
npcshopadditem "shop_name", 1260, rand(1000000, 2500000);
npcshopadditem "shop_name", 2609, rand(1000, 1500);
npcshopadditem "shop_name", 4110, rand(2000000, 2300000);
npcshopadditem "shop_name", 13404, rand(3000000, 3200000);
npcshopadditem "shop_name", 4435, rand(5000000, 7000000);
end;