From 4749fcd6635946cb926f22dd0511d851a995ef7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Feb 2015 12:12:48 +0300 Subject: Convert shop into market with 1000 items limit. --- npc/functions/shops.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 npc/functions/shops.txt (limited to 'npc/functions') 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; +} -- cgit v1.2.3-70-g09d2