diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 22:46:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 22:46:21 -0300 |
commit | b376c7433420d59afcc36c94cab1f9cb38192ff2 (patch) | |
tree | 157aa2310f91935f5a68b003e839c7bd71a2f6b0 /npc/magic/level2-lay-on-hands.txt | |
parent | a9cb0b4cf5273d5d84669dd916deb3e9a1e64b7a (diff) | |
download | serverdata-b376c7433420d59afcc36c94cab1f9cb38192ff2.tar.gz serverdata-b376c7433420d59afcc36c94cab1f9cb38192ff2.tar.bz2 serverdata-b376c7433420d59afcc36c94cab1f9cb38192ff2.tar.xz serverdata-b376c7433420d59afcc36c94cab1f9cb38192ff2.zip |
Remove magic directory (would need a reimplementation anyway)
Diffstat (limited to 'npc/magic/level2-lay-on-hands.txt')
-rwxr-xr-x | npc/magic/level2-lay-on-hands.txt | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/npc/magic/level2-lay-on-hands.txt b/npc/magic/level2-lay-on-hands.txt deleted file mode 100755 index 529f9356..00000000 --- a/npc/magic/level2-lay-on-hands.txt +++ /dev/null @@ -1,58 +0,0 @@ -- script lay-on-hands NPC32767,{ - if(call("magic_checks")) end; - if (Sp < 10) end; - if (getskilllv(.school) < .level) end; - if (getskilllv(SKILL_MAGIC) < .level) end; - if (@args$ == "Mouboo" || @args$ == "mouboo") goto L_Mouboo; - @target_id = getcharid(3, @args$); - if (@target_id < 1 || !(isloggedin(@target_id)) || get(INVISIBLE, @target_id) || BL_ID == @target_id) end; - if (Hp <= get(MaxHp, @target_id) / 20) end; // hp needs to be > 1/20 * target hp - callfunc "adjust_spellpower"; - if (distance(BL_ID, @target_id) >= (((sqrt(@spellpower)*12)+@spellpower)/100)+2) end; - if (sc_check(SC_HALT_REGENERATE,@target_id)) end; - if (getequipid(equip_head, @args$) == 888) end; // magic gm top hat - @needed = get(MaxHp, @target_id) - get(Hp, @target_id); - goto L_Pay; - -L_Pay: - set @_M_BLOCK, 1; // block casting, until the timer clears it - addtimer 500, "Magic Timer::OnClear"; // XXX should this be 0 ? - Sp = Sp - 10; - misceffect FX_MAGIC_WHITE, strcharinfo(0); // on caster - misceffect FX_MAGIC_WHITE, @args$; // on target - - set .@fraction, max(80, 200 - (Vit + (@spellpower/10))); // pay at least 40% - .@payment = (@needed * .@fraction) / 200; - .@available = Hp - (MaxHp / 20); - set @heal_value, if_then_else(.@payment < .@available, @needed+1-1, (.@available * 200) / .@fraction); // FIXME / XXX why the f do I need to do +1-1 ? - if (.@payment > .@available) set .@payment, .@available; - - - @mexp = min(.exp_gain, .@payment/100); - void call("gain_heal_xp", @heal_value, 1, 1, 3); - callfunc "magic_exp"; - - set .@dark, getskilllv(SKILL_MAGIC_DARK) >= 2; // true if dark magic user - .@bad = (MaxHp/20)*(0-1); - if (.@dark) heal .@bad, 0; - sc_start SC_HALT_REGENERATE, if_then_else(.@dark, 5000, 10000), 0; - - .@thp = get(Hp, @target_id); - if (.@thp < 1) end; - Hp = .@thp + @heal_value, @target_id; - end; - -L_Mouboo: - @spell = 1; - callfunc "QuestMoubooHeal"; - @needed = 1000; - goto L_Pay; - -OnInit: - .school = SKILL_MAGIC_LIFE; - set .invocation$, chr(MAGIC_SYMBOL) + "inma"; // used in npcs that refer to this spell - void call("magic_register"); - .level = 2; - set .exp_gain, 1; // this is MAX possible exp - end; -} |