diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-11-11 22:58:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-11-17 16:26:28 -0300 |
commit | 9b712ddf7809e56f3ba63a1aa9911c86498cedb7 (patch) | |
tree | 36c982e314aac76242cefab74f7861664c0830cb /world/map | |
parent | c899dc5deebedd628508999895c1e4d0f606f0a4 (diff) | |
download | serverdata-9b712ddf7809e56f3ba63a1aa9911c86498cedb7.tar.gz serverdata-9b712ddf7809e56f3ba63a1aa9911c86498cedb7.tar.bz2 serverdata-9b712ddf7809e56f3ba63a1aa9911c86498cedb7.tar.xz serverdata-9b712ddf7809e56f3ba63a1aa9911c86498cedb7.zip |
kularzu nevela frill! (make necromancy arrow)
Diffstat (limited to 'world/map')
-rw-r--r-- | world/map/npc/011-1/auldsbel.txt | 3 | ||||
-rw-r--r-- | world/map/npc/magic/_import.txt | 1 | ||||
-rw-r--r-- | world/map/npc/magic/level2-make-bones.txt | 28 |
3 files changed, 32 insertions, 0 deletions
diff --git a/world/map/npc/011-1/auldsbel.txt b/world/map/npc/011-1/auldsbel.txt index 8f19b4ec..424e38b8 100644 --- a/world/map/npc/011-1/auldsbel.txt +++ b/world/map/npc/011-1/auldsbel.txt @@ -1267,6 +1267,9 @@ L_stu_4_no_potion: L_stu_5: mes "[Auldsbel the Wizard]"; mes "\"Hmm. Come back some other time, please; I still haven't figured out what to teach you next.\""; + next; + mes "[Auldsbel the Wizard]"; + mes "\"Well, there is '" + get(.invocation$, "make-bones") + "' to make bone arrows out of a single bone but in my book, this doesn't count.\""; close; L_mag_skill_ins: diff --git a/world/map/npc/magic/_import.txt b/world/map/npc/magic/_import.txt index c3cd11ec..5b1ea65c 100644 --- a/world/map/npc/magic/_import.txt +++ b/world/map/npc/magic/_import.txt @@ -19,6 +19,7 @@ npc: npc/magic/level1-sense-spouse.txt npc: npc/magic/level1-detect-magic.txt npc: npc/magic/level2-arrow-hail.txt npc: npc/magic/level2-make-arrows.txt +npc: npc/magic/level2-make-bones.txt npc: npc/magic/level2-make-iron-powder.txt npc: npc/magic/level2-magic-knuckles.txt npc: npc/magic/level2-summon-snakes.txt diff --git a/world/map/npc/magic/level2-make-bones.txt b/world/map/npc/magic/level2-make-bones.txt new file mode 100644 index 00000000..024bb761 --- /dev/null +++ b/world/map/npc/magic/level2-make-bones.txt @@ -0,0 +1,28 @@ +-|script|make-bones|32767 +{ + if(call("magic_checks")) end; + if (Sp < 16) end; + if (getskilllv(SKILL_MAGIC) < .level) end; + if (getskilllv(.school) < .level) end; + if (countitem(Bone) < 1) end; + delitem Bone, 1; + 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; + callfunc "adjust_spellpower"; + set Sp, Sp - 16; + misceffect FX_MAGIC_ARROW_CAST, strcharinfo(0); + setarray @create_params[0], (@spellpower/41)+1+(rand(max(1,(800-@spellpower)))/81), 500; + setarray @create_items$[0], "BoneArrows", "IronArrow"; + callfunc "magic_create_item"; + callfunc "magic_exp"; + end; + +OnInit: + set .school, SKILL_MAGIC_TRANSMUTE; + set .invocation$, chr(MAGIC_SYMBOL) + "kularzunevelafrill"; // used in npcs that refer to this spell + void call("magic_register"); + set .level, 2; + set .exp_gain, 1; + end; +} |