summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-12-01 14:02:03 -0600
committerwushin <pasekei@gmail.com>2014-12-01 14:02:39 -0600
commitb8ae5c4027f367910cee41045beb4619208d37fc (patch)
tree00b986e4017ff9a6982e23fbd1b11591c5220c75
parent9758a09f4675639581acad41a3d6ae74b8c3e5bc (diff)
downloadserverdata-b8ae5c4027f367910cee41045beb4619208d37fc.tar.gz
serverdata-b8ae5c4027f367910cee41045beb4619208d37fc.tar.bz2
serverdata-b8ae5c4027f367910cee41045beb4619208d37fc.tar.xz
serverdata-b8ae5c4027f367910cee41045beb4619208d37fc.zip
Fix the Unequip part of script
-rw-r--r--world/map/npc/items/cryptitem.txt6
1 files changed, 5 insertions, 1 deletions
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;
}