PaladinWhite
Member
Currently, "repricing" an item in my shop actually requires removing it, then re-adding it at the new price.
It'd be lovely if this could be accomplished with one command. Easier for the scripter, and friendlier in terms of server hits.
So, requesting:
boolean reprice_shop( int price, int limit, item it )
or the overloaded boolean reprice_shop( int price, item it )
returns true if repricing succeeds;
returns false if repricing fails (for instance, if the item isn't currently stocked).
Code:
int shopAmount = shop_amount(item);
int newPrice = 12345;
take_shop(item);
put_shop(newPrice, 0, shopAmount, item);
It'd be lovely if this could be accomplished with one command. Easier for the scripter, and friendlier in terms of server hits.
So, requesting:
boolean reprice_shop( int price, int limit, item it )
or the overloaded boolean reprice_shop( int price, item it )
returns true if repricing succeeds;
returns false if repricing fails (for instance, if the item isn't currently stocked).
Last edited: