summaryrefslogtreecommitdiff
path: root/npc/functions/shops.txt
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
committerSaulc <lucashelaine14@gmail.com>2018-01-13 20:50:42 +0100
commit20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch)
tree4ad4a8bb8b0605473a702e314799a4626347721a /npc/functions/shops.txt
downloadserverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz
serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip
Initial commit
Diffstat (limited to 'npc/functions/shops.txt')
-rw-r--r--npc/functions/shops.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt
new file mode 100644
index 000000000..79890e815
--- /dev/null
+++ b/npc/functions/shops.txt
@@ -0,0 +1,13 @@
+// Evol functions.
+// Author:
+// 4144
+// Description:
+// Shops utility functions
+// Variables:
+// none
+
+function script restoreshopitem {
+ if (shopcount(getarg(0)) < getarg(1))
+ sellitem getarg(0), -1, getarg(1);
+ return;
+}