From fa9907d2ee9508e35b3e00716b9919902b86b6cd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Mar 2018 14:32:01 -0300 Subject: Requires missing price field on restoreitems --- npc/functions/shops.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/shops.txt b/npc/functions/shops.txt index 79890e815..915964bfc 100644 --- a/npc/functions/shops.txt +++ b/npc/functions/shops.txt @@ -1,13 +1,14 @@ // Evol functions. // Author: // 4144 +// Jesusalva // Description: // Shops utility functions // Variables: -// none +// Item ID, Item Price, Item Amount function script restoreshopitem { if (shopcount(getarg(0)) < getarg(1)) - sellitem getarg(0), -1, getarg(1); + sellitem getarg(0), getarg(1), getarg(2); return; } -- cgit v1.2.3-60-g2f50