From 179a355d8b359ff361a82425fa5f6d022ee11dae Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 10:39:10 -0400 Subject: make spells count their charges themselves --- world/map/npc/magic/level0-wand.txt | 61 +++++++++++++------------ world/map/npc/magic/level1-flare-dart.txt | 2 +- world/map/npc/magic/level1-magic-blade.txt | 2 +- world/map/npc/magic/level2-lightning-strike.txt | 2 +- world/map/npc/magic/level2-magic-knuckles.txt | 2 +- world/map/npc/magic/level2-shear.txt | 4 +- world/map/npc/magic/level2-toxic-dart.txt | 2 +- 7 files changed, 38 insertions(+), 37 deletions(-) diff --git a/world/map/npc/magic/level0-wand.txt b/world/map/npc/magic/level0-wand.txt index 07fbb025..9c8a6825 100644 --- a/world/map/npc/magic/level0-wand.txt +++ b/world/map/npc/magic/level0-wand.txt @@ -1,62 +1,63 @@ -|script|spell-wand|32767 { if(call("magic_checks")) goto L_Failed; - callsub S_CheckWand; - if(@WandAttack != 1) goto L_Failed; + set @wandspell[0], 0; // reset state + callfunc "adjust_spellpower"; + callsub S_Loop; // set up wand + if(@wandspell[0] < 1) goto L_Failed; // here we install set @_M_BLOCK, 1; // block casting, until the timer clears it addtimer 500, "Magic Timer::OnClear"; // set the new debuff - callfunc "adjust_spellpower"; misceffect FX_MAGIC_GENERIC, strcharinfo(0); - set .@delay, (((200 - Agi) * 1200) / 200); - overrideattack (@Wand + (@spellpower / 10)), .@delay, 3, ATTACK_ICON_GENERIC, @WandID, strnpcinfo(0)+"::OnAttack"; + callfunc "magic_exp"; + goto L_FreeRecast; + +L_FreeRecast: + if (@wandspell[4] > 0) + addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; -OnAttack: - callsub S_CheckWand; - if(@WandAttack != 1) goto L_Failed; - if(target(BL_ID, @target_id, 22) != 22) goto L_Failed; // 0x02 | 0x04 | 0x10 - set Sp, (Sp - @WandCost); - set @damage, (@Wand * (@spellpower / 3)); - void call("elt_damage", @damage,@damage,ELT_NEUTRAL,ELT_NEUTRAL,FX_MAGIC_RED); +OnSetRecast: + overrideattack @wandspell[3], 3, ATTACK_ICON_GENERIC, @wandspell[0], strnpcinfo(0)+"::OnAttack"; end; -S_CheckWand: - set @Wand, 0; - set @wand_loop, 0; - goto S_Loop; +OnAttack: + if(target(BL_ID, @target_id, 22) != 22) goto L_FreeRecast; // 0x02 | 0x04 | 0x10 + if (Sp < @wandspell[1]) goto L_LowSp; + set Sp, (Sp - @wandspell[1]); + void call("elt_damage", @wandspell[2],@wandspell[2],ELT_NEUTRAL,ELT_NEUTRAL,FX_MAGIC_RED); + set @wandspell[4], @wandspell[4] - 1; + goto L_FreeRecast; S_Loop: - if ((getequipid(equip_hand1) == .Wands[@wand_loop]) || (getequipid(equip_hand2) == .Wands[@wand_loop])) + if ((getequipid(equip_hand1) == .Wands[.@wand_loop]) || (getequipid(equip_hand2) == .Wands[.@wand_loop])) goto S_SetWand; - set @wand_loop, (@wand_loop + 1); - if (@wand_loop >= getarraysize(.Wands)) + set .@wand_loop, (.@wand_loop + 1); + if (.@wand_loop >= getarraysize(.Wands)) goto S_NoWand; goto S_Loop; S_SetWand: - set @Wand, .WandsPwr[@wand_loop]; - set @WandID, .WandsAnim[@wand_loop]; + set .@pwr, .WandsPwr[.@wand_loop]; if (QL_MORGAN == 2) set QL_MORGAN, 3; - set @WandCost, (@Wand * (BaseLevel / 15) + 2); - set @WandAttack, 0; - if (Sp < @WandCost) - goto S_LowSp; - set @WandAttack, 1; // everything is fine + setarray @wandspell[0], + .WandsAnim[.@wand_loop], // wand anim/id + (.@pwr * (BaseLevel / 15) + 2), // wand cost + (.@pwr * (@spellpower / 3)), // wand dmg + (((200 - Agi) * 1200) / 200), //delay + (.@pwr + (@spellpower / 10)); // charges return; S_NoWand: message strcharinfo(0), "Wand : ##3##BYou need a wand Equipped!"; - set @WandAttack, 0; return; -S_LowSp: +L_LowSp: message strcharinfo(0), "Wand : ##3##BOut of Mana"; - set @WandAttack, 0; - return; + end; L_Failed: //misceffect FX_ELECTRICITY_RED, strcharinfo(0); // XXX: do we show an effect on fail? diff --git a/world/map/npc/magic/level1-flare-dart.txt b/world/map/npc/magic/level1-flare-dart.txt index 6c0ef303..559134e7 100644 --- a/world/map/npc/magic/level1-flare-dart.txt +++ b/world/map/npc/magic/level1-flare-dart.txt @@ -32,7 +32,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @flarspell[3], 4, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; + overrideattack @flarspell[3], 4, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; end; OnInit: diff --git a/world/map/npc/magic/level1-magic-blade.txt b/world/map/npc/magic/level1-magic-blade.txt index ad39c244..a1a1e1e5 100644 --- a/world/map/npc/magic/level1-magic-blade.txt +++ b/world/map/npc/magic/level1-magic-blade.txt @@ -35,7 +35,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @chizaspell[3], 1, ATTACK_ICON_GENERIC, 30, strnpcinfo(0)+"::OnAttack"; + overrideattack @chizaspell[3], 1, ATTACK_ICON_GENERIC, 30, strnpcinfo(0)+"::OnAttack"; end; OnInit: diff --git a/world/map/npc/magic/level2-lightning-strike.txt b/world/map/npc/magic/level2-lightning-strike.txt index cf30a627..69189ed4 100644 --- a/world/map/npc/magic/level2-lightning-strike.txt +++ b/world/map/npc/magic/level2-lightning-strike.txt @@ -42,7 +42,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @ingravspell[3], 8, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; + overrideattack @ingravspell[3], 8, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; end; OnNpc: diff --git a/world/map/npc/magic/level2-magic-knuckles.txt b/world/map/npc/magic/level2-magic-knuckles.txt index 0984a7fd..7b6afeed 100644 --- a/world/map/npc/magic/level2-magic-knuckles.txt +++ b/world/map/npc/magic/level2-magic-knuckles.txt @@ -32,7 +32,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @upmarmuspell[2], 1, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; + overrideattack @upmarmuspell[2], 1, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; end; OnInit: diff --git a/world/map/npc/magic/level2-shear.txt b/world/map/npc/magic/level2-shear.txt index af825727..4c1df781 100644 --- a/world/map/npc/magic/level2-shear.txt +++ b/world/map/npc/magic/level2-shear.txt @@ -12,7 +12,7 @@ setarray @chipchipspell[0], @spellpower, (((200 - Agi) * 2000) / 200); //delay - overrideattack 1, @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; + overrideattack @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; callfunc "magic_exp"; end; @@ -47,7 +47,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; + overrideattack @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; end; OnInit: diff --git a/world/map/npc/magic/level2-toxic-dart.txt b/world/map/npc/magic/level2-toxic-dart.txt index 357ae32b..c72520c4 100644 --- a/world/map/npc/magic/level2-toxic-dart.txt +++ b/world/map/npc/magic/level2-toxic-dart.txt @@ -38,7 +38,7 @@ L_FreeRecast: end; OnSetRecast: - overrideattack 1, @phlexspell[2], 4, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; + overrideattack @phlexspell[2], 4, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; end; OnInit: -- cgit v1.2.3-70-g09d2 From 59f26d0b42143ba632d9a1bbfe2cdd896ca933cd Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:05:13 -0400 Subject: add `discharge` spell --- world/map/npc/magic/_import.txt | 1 + world/map/npc/magic/level0-discharge.txt | 18 ++++++++++++++++++ world/map/npc/magic/level2-shear.txt | 5 +++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 world/map/npc/magic/level0-discharge.txt diff --git a/world/map/npc/magic/_import.txt b/world/map/npc/magic/_import.txt index 2ef595af..e99d14dd 100644 --- a/world/map/npc/magic/_import.txt +++ b/world/map/npc/magic/_import.txt @@ -1,4 +1,5 @@ npc: npc/magic/_procedures.txt +npc: npc/magic/level0-discharge.txt npc: npc/magic/level0-wand.txt npc: npc/magic/level1-aggravate.txt npc: npc/magic/level1-experience.txt diff --git a/world/map/npc/magic/level0-discharge.txt b/world/map/npc/magic/level0-discharge.txt new file mode 100644 index 00000000..7b2cfa8c --- /dev/null +++ b/world/map/npc/magic/level0-discharge.txt @@ -0,0 +1,18 @@ +-|script|discharge spell|32767 +{ + if(call("magic_checks")) end; + callfunc "magic_exp"; + + // tell the spells they were discharged + // XXX: maybe we could make it do area damage when you discharge (release your energy all of a sudden) + addtimer 0, "::OnDischarge"; // seeks OnDischarge in ALL npcs + end; + +OnInit: + set .school, SKILL_MAGIC; + set .invocation$, chr(MAGIC_SYMBOL) + "discharge"; // used in npcs that refer to this spell + void call("magic_register"); + set .level, 0; + set .exp_gain, 0; + end; +} diff --git a/world/map/npc/magic/level2-shear.txt b/world/map/npc/magic/level2-shear.txt index 4c1df781..91bb4de0 100644 --- a/world/map/npc/magic/level2-shear.txt +++ b/world/map/npc/magic/level2-shear.txt @@ -12,9 +12,8 @@ setarray @chipchipspell[0], @spellpower, (((200 - Agi) * 2000) / 200); //delay - overrideattack @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; callfunc "magic_exp"; - end; + goto L_FreeRecast; OnAttack: if (isloggedin(@target_id)) goto L_FreeRecast; // can not shear a player @@ -23,6 +22,7 @@ OnAttack: sc_start SC_SHEARED, 600000, 0, @target_id; set .@score, rand(1000 - rand(@chipchipspell[0])); set .@id, get(Class, @target_id); // get the mob ID + set @chipchipspell[2], 0; if (.@id == 1020 && .@score < 300) set .@item$, "WhiteFur"; // Fluffy elif (.@id == 1027 && .@score < 300) set .@item$, "WhiteFur"; // EasterFluffy @@ -43,6 +43,7 @@ OnAttack: end; L_FreeRecast: + set @chipchipspell[2], 1; addtimer 0, strnpcinfo(0) + "::OnSetRecast"; // we can't do it while already overridden, until it reaches a script terminator end; -- cgit v1.2.3-70-g09d2 From f2b84d1756c667285dc2bfd74ba2e63d52938929 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:05:48 -0400 Subject: add discharge handler to confringo --- world/map/npc/magic/level0-wand.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level0-wand.txt b/world/map/npc/magic/level0-wand.txt index 9c8a6825..00934806 100644 --- a/world/map/npc/magic/level0-wand.txt +++ b/world/map/npc/magic/level0-wand.txt @@ -19,6 +19,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; +OnDischarge: + if (@wandspell[4] < 1) end; + set @wandspell[4], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @wandspell[3], 3, ATTACK_ICON_GENERIC, @wandspell[0], strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From b5e1b1ef16d57c58feb05f8a8b6e70b0f31be512 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:09:28 -0400 Subject: add discharge handler to flar --- world/map/npc/magic/level1-flare-dart.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level1-flare-dart.txt b/world/map/npc/magic/level1-flare-dart.txt index 559134e7..0f70637f 100644 --- a/world/map/npc/magic/level1-flare-dart.txt +++ b/world/map/npc/magic/level1-flare-dart.txt @@ -31,6 +31,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; +OnDischarge: + if (@flarspell[2] < 1) end; + set @flarspell[2], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @flarspell[3], 4, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:10:40 -0400 Subject: add discharge handler to chiza --- world/map/npc/magic/level1-magic-blade.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level1-magic-blade.txt b/world/map/npc/magic/level1-magic-blade.txt index a1a1e1e5..851f8dea 100644 --- a/world/map/npc/magic/level1-magic-blade.txt +++ b/world/map/npc/magic/level1-magic-blade.txt @@ -23,6 +23,13 @@ callfunc "magic_exp"; goto L_FreeRecast; +OnDischarge: + if (@chizaspell[2] < 1) end; + set @chizaspell[2], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnAttack: if (target(BL_ID, @target_id, 22) != 22) goto L_FreeRecast; // 0x10 | 0x02 | 0x04 void call("melee_damage", @chizaspell[4], @target_id, (@chizaspell[0] + rand(@chizaspell[1] + 5))); -- cgit v1.2.3-70-g09d2 From 3db2aae2fc376d19880e483bc64832ed5955645c Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:14:52 -0400 Subject: add discharge handler to ingrav --- world/map/npc/magic/level2-lightning-strike.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level2-lightning-strike.txt b/world/map/npc/magic/level2-lightning-strike.txt index 69189ed4..2baa2d33 100644 --- a/world/map/npc/magic/level2-lightning-strike.txt +++ b/world/map/npc/magic/level2-lightning-strike.txt @@ -41,6 +41,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; +OnDischarge: + if (@ingravspell[2] < 1) end; + set @ingravspell[2], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @ingravspell[3], 8, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From e1ae9308f1475133d7b7693a55830315871824bf Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:15:03 -0400 Subject: add discharge handler to upmarmu --- world/map/npc/magic/level2-magic-knuckles.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level2-magic-knuckles.txt b/world/map/npc/magic/level2-magic-knuckles.txt index 7b6afeed..d309804b 100644 --- a/world/map/npc/magic/level2-magic-knuckles.txt +++ b/world/map/npc/magic/level2-magic-knuckles.txt @@ -31,6 +31,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; +OnDischarge: + if (@upmarmuspell[1] < 1) end; + set @upmarmuspell[1], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @upmarmuspell[2], 1, ATTACK_ICON_GENERIC, 34, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From 5c2c4cc7399c76f42e35a8f5c074b2a1bfe86a81 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:15:59 -0400 Subject: add discharge handler to chipchip --- world/map/npc/magic/level2-shear.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level2-shear.txt b/world/map/npc/magic/level2-shear.txt index 91bb4de0..f65119c3 100644 --- a/world/map/npc/magic/level2-shear.txt +++ b/world/map/npc/magic/level2-shear.txt @@ -47,6 +47,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; // we can't do it while already overridden, until it reaches a script terminator end; +OnDischarge: + if (@chipchipspell[2] < 1) end; + set @chipchipspell[2], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From aafa96bd9d08f98db8f45ddc191d48fadf77e103 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:16:44 -0400 Subject: add discharge handler to phlex --- world/map/npc/magic/level2-toxic-dart.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/world/map/npc/magic/level2-toxic-dart.txt b/world/map/npc/magic/level2-toxic-dart.txt index c72520c4..c30eaa00 100644 --- a/world/map/npc/magic/level2-toxic-dart.txt +++ b/world/map/npc/magic/level2-toxic-dart.txt @@ -37,6 +37,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; end; +OnDischarge: + if (@phlexspell[3] < 1) end; + set @phlexspell[3], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @phlexspell[2], 4, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-70-g09d2 From 4725e8849e62b84f75385b6699def6bfd6f5dcb7 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:40:17 -0400 Subject: add anti-betsanc spell --- world/map/npc/magic/_import.txt | 1 + world/map/npc/magic/level0-antiprotect.txt | 26 ++++++++++++++++++++++++++ world/map/npc/magic/level2-protect.txt | 6 ++++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 world/map/npc/magic/level0-antiprotect.txt diff --git a/world/map/npc/magic/_import.txt b/world/map/npc/magic/_import.txt index e99d14dd..e5d40947 100644 --- a/world/map/npc/magic/_import.txt +++ b/world/map/npc/magic/_import.txt @@ -1,4 +1,5 @@ npc: npc/magic/_procedures.txt +npc: npc/magic/level0-antiprotect.txt npc: npc/magic/level0-discharge.txt npc: npc/magic/level0-wand.txt npc: npc/magic/level1-aggravate.txt diff --git a/world/map/npc/magic/level0-antiprotect.txt b/world/map/npc/magic/level0-antiprotect.txt new file mode 100644 index 00000000..8e9b700c --- /dev/null +++ b/world/map/npc/magic/level0-antiprotect.txt @@ -0,0 +1,26 @@ +-|script|antiprotect|32767 +{ + if(call("magic_checks")) end; + callfunc "magic_exp"; + + if (@antiprotect) + goto L_Disable; + + sc_end SC_PHYS_SHIELD; + message strcharinfo(0), "Shield : You are now protected against betsanc until you cast detsanc again or logout."; + set @antiprotect, 1; + end; + +L_Disable: + message strcharinfo(0), "Shield : You are no longer protected against betsanc."; + set @antiprotect, 0; + end; + +OnInit: + set .school, SKILL_MAGIC_NATURE; + set .invocation$, chr(MAGIC_SYMBOL) + "detsanc"; // used in npcs that refer to this spell + void call("magic_register"); + set .level, 0; + set .exp_gain, 0; + end; +} diff --git a/world/map/npc/magic/level2-protect.txt b/world/map/npc/magic/level2-protect.txt index a3096ad7..db11105f 100644 --- a/world/map/npc/magic/level2-protect.txt +++ b/world/map/npc/magic/level2-protect.txt @@ -5,7 +5,7 @@ set .@level, getskilllv(.school); if (.@level < .level) end; if (getskilllv(SKILL_MAGIC) < .level) end; - if (.@level <= 3 && countitem("HardSpike") >= 1) delitem "HardSpike", 1; + if (.@level <= 3 && countitem("HardSpike") < 1) end; elif (.@level <= 3) end; set @target_id, getcharid(3, @args$); if (@target_id < 1 || !(isloggedin(@target_id)) || get(INVISIBLE, @target_id)) @@ -17,6 +17,9 @@ if (attachrid(@betsanc_caster) != 1) end; if (@target_hat == 888) end; // FIXME: this whole 5 line block could be done with only one line if we modify getequipid + if (distance(BL_ID, @target_id) >= (@spellpower/30)+2) set @target_id, BL_ID; + if (get(@antiprotect, @target_id) > 0) end; + delitem "HardSpike", 1; set @_M_BLOCK, 1; // block casting, until the timer clears it addtimer 1500, "Magic Timer::OnClear"; // set the new debuff callfunc "adjust_spellpower"; @@ -24,7 +27,6 @@ misceffect FX_MAGIC_GREEN, strcharinfo(0); callfunc "magic_exp"; - if (distance(BL_ID, @target_id) >= (@spellpower/30)+2) set @target_id, BL_ID; if (BL_ID == @target_id) set @args$, strcharinfo(0); misceffect FX_MAGIC_SHIELD, @args$; set .@time, (@spellpower*1000)+5000; -- cgit v1.2.3-70-g09d2