From 43fc59a9f5d3accccd72f67b7cc6fe4c8074adbf Mon Sep 17 00:00:00 2001 From: Dastgir Date: Mon, 18 Dec 2017 19:10:55 +0530 Subject: Umbala Script Update: * delitem should be called before getitem. Fixes #1934 --- npc/quests/quests_umbala.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/npc/quests/quests_umbala.txt b/npc/quests/quests_umbala.txt index e23089698..e9d48c6fa 100644 --- a/npc/quests/quests_umbala.txt +++ b/npc/quests/quests_umbala.txt @@ -773,6 +773,10 @@ um_in,44,71,2 script Utan Shaman 4_F_UMOLDWOMAN,{ .@shaman_max += rand(6,10); ++.@sha_man; } + if (countitem(.@divide) < .@input) { + close; + } + delitem .@divide, .@input; switch(.@divide) { case 994: getitem Boody_Red,.@shaman_max; @@ -786,7 +790,6 @@ um_in,44,71,2 script Utan Shaman 4_F_UMOLDWOMAN,{ case 997: getitem Yellow_Live,.@shaman_max; } - delitem .@divide,.@input; close; } mes "[Puchuchartan]"; -- cgit v1.2.3-70-g09d2