summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-summon-wickedmushroom.txt
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2022-10-24 23:32:13 +0200
committerHoraK-FDF <horak-fdf@web.de>2022-10-24 23:32:13 +0200
commiteab221bb12fc91ce3540971b93bffc2f78d72139 (patch)
tree4c29fd6b70936c7356b1b96e233ed3f10a0fb14a /world/map/npc/magic/level2-summon-wickedmushroom.txt
parentb2522339a26f153a1214fd57d9b0a7c83fd3c6f2 (diff)
downloadserverdata-eab221bb12fc91ce3540971b93bffc2f78d72139.tar.gz
serverdata-eab221bb12fc91ce3540971b93bffc2f78d72139.tar.bz2
serverdata-eab221bb12fc91ce3540971b93bffc2f78d72139.tar.xz
serverdata-eab221bb12fc91ce3540971b93bffc2f78d72139.zip
magic use cooldown symbols
Diffstat (limited to 'world/map/npc/magic/level2-summon-wickedmushroom.txt')
-rw-r--r--world/map/npc/magic/level2-summon-wickedmushroom.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/world/map/npc/magic/level2-summon-wickedmushroom.txt b/world/map/npc/magic/level2-summon-wickedmushroom.txt
index dc5fb72d..c81904cf 100644
--- a/world/map/npc/magic/level2-summon-wickedmushroom.txt
+++ b/world/map/npc/magic/level2-summon-wickedmushroom.txt
@@ -10,10 +10,15 @@ OnCast:
if (getskilllv(.school) < .level) end;
if (countitem("DarkCrystal") < 1 || countitem("SmallMushroom") < 1) end;
if (OrumQuest <= 36) end;
+ if (getmap() == "033-1") goto L_SpecialRules6;
+ goto L_Pay;
+
+L_Pay:
delitem "DarkCrystal", 1;
delitem "SmallMushroom", 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 - 35;
misceffect FX_MAGIC_WICKED_CAST, strcharinfo(0);
@@ -53,6 +58,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_DARK;
set .invocation$, chr(MAGIC_SYMBOL) + "helorp"; // used in npcs that refer to this spell