diff options
author | Cassy <cassy.tmw@gmail.com> | 2014-12-01 21:23:49 +0100 |
---|---|---|
committer | Cassy <cassy.tmw@gmail.com> | 2014-12-01 21:23:49 +0100 |
commit | 8f3c4885360b980e71fa69520db5f09dd1f81a20 (patch) | |
tree | 00b986e4017ff9a6982e23fbd1b11591c5220c75 | |
parent | 9758a09f4675639581acad41a3d6ae74b8c3e5bc (diff) | |
parent | b8ae5c4027f367910cee41045beb4619208d37fc (diff) | |
download | serverdata-github/fork/Cassy1/crypt-head-armor.tar.gz serverdata-github/fork/Cassy1/crypt-head-armor.tar.bz2 serverdata-github/fork/Cassy1/crypt-head-armor.tar.xz serverdata-github/fork/Cassy1/crypt-head-armor.zip |
Merge pull request #4 from wushin/crypt-head-armorgithub/fork/Cassy1/crypt-head-armor
Fix the Unequip part of script
-rw-r--r-- | world/map/npc/items/cryptitem.txt | 6 |
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; } |