blob: 8962997ec65b5cab228ec3d29f89cd2b6bff70ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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;
}
|