diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-12-22 19:13:40 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-12-22 19:13:40 -0300 |
commit | fbaeb8377d0f69ccd2567049427e6ccffb83bd9b (patch) | |
tree | 630b9eb3dd9b7126b85b255b2c241bee2af7f3f0 /world/map/npc | |
parent | 72ce9115e137b7cbe2148e083e2c40f7f7e58021 (diff) | |
download | serverdata-fbaeb8377d0f69ccd2567049427e6ccffb83bd9b.tar.gz serverdata-fbaeb8377d0f69ccd2567049427e6ccffb83bd9b.tar.bz2 serverdata-fbaeb8377d0f69ccd2567049427e6ccffb83bd9b.tar.xz serverdata-fbaeb8377d0f69ccd2567049427e6ccffb83bd9b.zip |
You can now make bone arrows with animal bones (default).
Or normal bones if you run out of animal bones I guess
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/magic/level2-make-bones.txt | 13 |
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; |