summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/magic/level2-make-bones.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/world/map/npc/magic/level2-make-bones.txt b/world/map/npc/magic/level2-make-bones.txt
index 3cd9989a..2cc3f922 100644
--- a/world/map/npc/magic/level2-make-bones.txt
+++ b/world/map/npc/magic/level2-make-bones.txt
@@ -4,8 +4,19 @@
if (Sp < 16) end;
if (getskilllv(SKILL_MAGIC) < .level) end;
if (getskilllv(.school) < .level) end;
- if (countitem(Bone) < 1) end;
+ if (countitem(AnimalBones) > 0) goto L_Animal;
+ if (countitem(Bone) > 0) goto L_Normal;
+ end;
+
+L_Animal:
+ delitem AnimalBones, 1;
+ goto L_Resume;
+
+L_Normal:
delitem Bone, 1;
+ goto L_Resume;
+
+L_Resume:
set @_M_BLOCK, 1; // block casting, until the timer clears it
addtimer 5000, "Magic Timer::OnClear"; // set the new debuff
sc_start SC_COOLDOWN, 5000, 0, BL_ID;