From b376c7433420d59afcc36c94cab1f9cb38192ff2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 22:46:21 -0300 Subject: Remove magic directory (would need a reimplementation anyway) --- npc/magic/level2-toxic-dart.txt | 57 ----------------------------------------- 1 file changed, 57 deletions(-) delete mode 100755 npc/magic/level2-toxic-dart.txt (limited to 'npc/magic/level2-toxic-dart.txt') diff --git a/npc/magic/level2-toxic-dart.txt b/npc/magic/level2-toxic-dart.txt deleted file mode 100755 index 51bcbb40..00000000 --- a/npc/magic/level2-toxic-dart.txt +++ /dev/null @@ -1,57 +0,0 @@ -- script toxic-dart NPC32767,{ - if(call("magic_checks")) end; - if (Sp < 15) end; - .@level = getskilllv(.school); - if (.@level < .level) end; - if (OrumQuest <= 37) end; - if (.@level <= 2 && countitem("Root") >= 2) delitem "Root", 2; - elif (.@level <= 2) end; - set @_M_BLOCK, 1; // block casting, until the timer clears it - addtimer 500, "Magic Timer::OnClear"; // set the new debuff - callfunc "adjust_spellpower"; - Sp = Sp - 15; - misceffect FX_MAGIC_DARKRED, strcharinfo(0); - setarray @phlexspell[0], - (sqrt(@spellpower) * 5), // elt damage - ((BaseLevel/3) + 5), // elt damage bonus - (((200 - Agi) * 1200) / 200), // delay - ((@spellpower/75) + 3), // charges - (5000+(@spellpower*1200)), // poison duration - (max(15,@spellpower/15)+5); // poison strength - - callfunc "magic_exp"; - goto L_FreeRecast; - -OnAttack: - if (target(BL_ID, @target_id, 50) != 50) goto L_FreeRecast; // 0x20 | 0x02 | 0x10 - misceffect FX_MAGIC_DARKRED, strcharinfo(0); - void call("elt_damage", @phlexspell[0], @phlexspell[1], ELT_NEUTRAL, ELT_POISON, FX_FIRE_BURST); - if(@target_id != BL_ID && isloggedin(@target_id)) // this is a dirty trick to check if the target is a player - sc_start SC_POISON, @phlexspell[4], @phlexspell[5], @target_id; - @phlexspell[3] = @phlexspell[3] - 1; - goto L_FreeRecast; - -L_FreeRecast: - if (@phlexspell[3] > 0) - addtimer 0, strnpcinfo(0) + "::OnSetRecast"; - end; - -OnDischarge: - if (@phlexspell[3] < 1) end; - @phlexspell[3] = 0; - misceffect FX_FIRE_BURST, strcharinfo(0); - overrideattack; - end; - -OnSetRecast: - overrideattack @phlexspell[2], 4, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; - end; - -OnInit: - .school = SKILL_MAGIC_DARK; - set .invocation$, chr(MAGIC_SYMBOL) + "phlex"; // used in npcs that refer to this spell - void call("magic_register"); - .level = 2; - .exp_gain = 3; - end; -} -- cgit v1.2.3-70-g09d2