From fbaeb8377d0f69ccd2567049427e6ccffb83bd9b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 22 Dec 2022 19:13:40 -0300 Subject: You can now make bone arrows with animal bones (default). Or normal bones if you run out of animal bones I guess --- world/map/npc/magic/level2-make-bones.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50