blob: 8962997ec65b5cab228ec3d29f89cd2b6bff70ec (
plain) (
tree)
|
|
// Evol functions.
// Author:
// 4144
// Jesusalva
// Description:
// Shops utility functions
// restoreshopitem(<item nameid>, <amount>{, <price>})
// adds back an item to the sell list if less than the specified amount
// returns true
function script restoreshopitem {
if (shopcount(getarg(0)) < getarg(1))
sellitem(getarg(0), getarg(2, -1), getarg(1));
return;
}
|