From 58e4b21b96d2bc4dae2c7132ec675faef0538bee Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Mon, 24 Oct 2022 23:39:58 +0000 Subject: magic use cooldown symbols. Also, restrict magic on Kimarr. --- world/map/npc/magic/level2-summon-fluffies.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'world/map/npc/magic/level2-summon-fluffies.txt') diff --git a/world/map/npc/magic/level2-summon-fluffies.txt b/world/map/npc/magic/level2-summon-fluffies.txt index b614e4a3..942f48d4 100644 --- a/world/map/npc/magic/level2-summon-fluffies.txt +++ b/world/map/npc/magic/level2-summon-fluffies.txt @@ -9,10 +9,15 @@ OnCast: if (getskilllv(SKILL_MAGIC) < .level) end; if (getskilllv(.school) < .level) end; if (countitem("WhiteFur") < 1 || countitem("Root") < 1) end; + if (getmap() == "033-1") goto L_SpecialRules6; + goto L_Pay; + +L_Pay: delitem "WhiteFur", 1; delitem "Root", 1; set @_M_BLOCK, 1; // block casting, until the timer clears it addtimer 20000, "Magic Timer::OnClear"; // set the new debuff + sc_start SC_COOLDOWN, 20000, 0, BL_ID; callfunc "adjust_spellpower"; set Sp, Sp - 39; misceffect FX_MAGIC_FLUFFY_CAST, strcharinfo(0); @@ -48,6 +53,12 @@ S_SummonAll: if (.@i < .count) goto S_SummonAll; destroy; +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."; + end; + OnInit: set .school, SKILL_MAGIC_ASTRAL; set .invocation$, chr(MAGIC_SYMBOL) + "kalakarenk"; // used in npcs that refer to this spell -- cgit v1.2.3-70-g09d2