From b8ae5c4027f367910cee41045beb4619208d37fc Mon Sep 17 00:00:00 2001 From: wushin Date: Mon, 1 Dec 2014 14:02:03 -0600 Subject: Fix the Unequip part of script --- world/map/npc/items/cryptitem.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/world/map/npc/items/cryptitem.txt b/world/map/npc/items/cryptitem.txt index e45ebaad..c0b489d9 100644 --- a/world/map/npc/items/cryptitem.txt +++ b/world/map/npc/items/cryptitem.txt @@ -9,9 +9,13 @@ function|script|CryptItem L_Loop: if(@crypt_maps$[@loop] == getmap()) goto L_Return; set @loop, @loop + 1; - if(@loop == getarraysize(@crypt_maps$)) end; + if(@loop == getarraysize(@crypt_maps$)) goto L_Remove; goto L_Loop; +L_Remove: + callfunc "UnequipLater"; + goto L_Return; + L_Return: return; } -- cgit v1.2.3-70-g09d2