summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/event-summon-manatyrant.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/event-summon-manatyrant.txt')
-rw-r--r--world/map/npc/magic/event-summon-manatyrant.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/world/map/npc/magic/event-summon-manatyrant.txt b/world/map/npc/magic/event-summon-manatyrant.txt
index 73ee6537..4ac0773c 100644
--- a/world/map/npc/magic/event-summon-manatyrant.txt
+++ b/world/map/npc/magic/event-summon-manatyrant.txt
@@ -9,7 +9,8 @@ OnCast:
if (Sp < 100) end;
if (getskilllv(SKILL_MAGIC) < .level) end;
if (countitem("LargeManaElixir") < 1) end;
- if (@dd4cooldown > gettimetick(2)) goto L_Cooldown;
+// if (@dd4cooldown > gettimetick(2)) goto L_Cooldown;
+ if (sc_check(SC_COOLDOWN_MT)) goto L_Cooldown;
if (getmap() == "033-1") goto L_SpecialRules6;
goto L_Pay;
@@ -17,6 +18,7 @@ L_Pay:
delitem "LargeManaElixir", 1;
set @_M_BLOCK, 1; // block casting, until the timer clears it
addtimer 15000, "Magic Timer::OnClear"; // set the new debuff
+ sc_start SC_COOLDOWN, 15000, 0, BL_ID;
callfunc "adjust_spellpower";
set Sp, Sp - 100;
misceffect FX_MAGIC_MAGGOT_CAST, strcharinfo(0);
@@ -26,7 +28,8 @@ L_Pay:
if (.@puppet < 1) end;
set .master, BL_ID, .@puppet;
set .lifetime, (@spellpower*9)+150000, .@puppet;
- set @dd4cooldown, gettimetick(2)+160; // This is measured in seconds
+// set @dd4cooldown, gettimetick(2)+160; // This is measured in seconds
+ sc_start SC_COOLDOWN_MT, (@spellpower*9)+160000, 0, BL_ID; // .lifetime + OnSummon
addnpctimer 10000, .@puppet$+"::OnSummon";
addnpctimer 11000, .@puppet$+"::OnDestroy";
// Causes caster to heal (I thought in converting MP to HP but meh)
@@ -48,7 +51,7 @@ OnDestroy:
destroy;
S_SummonAll:
- summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, 1150, 2, .lifetime;
+ summon .@map$, rand(.@x-2,.@x+2), rand(.@y-2,.@y+2), .master, "Mana Tyrant Summon", 1150, 2, .lifetime;
destroy;
L_Cooldown:
@@ -57,8 +60,9 @@ L_Cooldown:
L_SpecialRules6:
if ($@KIMARR_EVENT < 1) goto L_Pay;
- if ($@Fluffy_FighterID == BL_ID) goto L_Pay;
- message strcharinfo(0), "You can't summon here unless hunting fluffies.";
+ //if ($@Fluffy_FighterID == BL_ID) goto L_Pay;
+ //message strcharinfo(0), "You can't summon here unless hunting fluffies.";
+ message strcharinfo(0), "You can't use this spell here.";
end;
OnInit: