diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-09 12:12:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-09 12:13:49 +0300 |
commit | 4749fcd6635946cb926f22dd0511d851a995ef7c (patch) | |
tree | 90965f2d0c1b8d12b8a943e7ec2579bf0d9cba2b /npc/functions/shops.txt | |
parent | ef77998980e6529ab5fbc1dfad783ee5aeea8d9c (diff) | |
download | serverdata-4749fcd6635946cb926f22dd0511d851a995ef7c.tar.gz serverdata-4749fcd6635946cb926f22dd0511d851a995ef7c.tar.bz2 serverdata-4749fcd6635946cb926f22dd0511d851a995ef7c.tar.xz serverdata-4749fcd6635946cb926f22dd0511d851a995ef7c.zip |
Convert shop into market with 1000 items limit.
Diffstat (limited to 'npc/functions/shops.txt')
-rw-r--r-- | npc/functions/shops.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt new file mode 100644 index 00000000..0e491706 --- /dev/null +++ b/npc/functions/shops.txt @@ -0,0 +1,13 @@ +// Evol functions. +// Authors: +// 4144 +// Description: +// Shops utility functions +// Variables: +// none + +function script restoreshopitem { + if (shopcount(args(0)) < args(1)) + sellitem args(0), -1, args(1); + return; +} |