summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level1-summon-maggots.txt
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-24 23:39:58 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-24 23:39:58 +0000
commitb456fefa858671676c515a79be4b48d57a791305 (patch)
tree4a84a9f5711b6da10ac1e2552863a21f1a40ad0f /world/map/npc/magic/level1-summon-maggots.txt
parentb2522339a26f153a1214fd57d9b0a7c83fd3c6f2 (diff)
parent58e4b21b96d2bc4dae2c7132ec675faef0538bee (diff)
downloadclassic-serverdata-b456fefa858671676c515a79be4b48d57a791305.tar.gz
classic-serverdata-b456fefa858671676c515a79be4b48d57a791305.tar.bz2
classic-serverdata-b456fefa858671676c515a79be4b48d57a791305.tar.xz
classic-serverdata-b456fefa858671676c515a79be4b48d57a791305.zip
Merge branch 'magic' into 'master'
magic use cooldown symbols See merge request legacy/serverdata!614
Diffstat (limited to 'world/map/npc/magic/level1-summon-maggots.txt')
-rw-r--r--world/map/npc/magic/level1-summon-maggots.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/world/map/npc/magic/level1-summon-maggots.txt b/world/map/npc/magic/level1-summon-maggots.txt
index 98ca6096..04e50bf8 100644
--- a/world/map/npc/magic/level1-summon-maggots.txt
+++ b/world/map/npc/magic/level1-summon-maggots.txt
@@ -8,10 +8,15 @@ OnCast:
if (getmapflag(getmap(), MF_TOWN)) end;
if (getskilllv(SKILL_MAGIC) < .level) end;
if (countitem("MaggotSlime") < 1 || countitem("Root") < 1) end;
+ if (getmap() == "033-1") goto L_SpecialRules6;
+ goto L_Pay;
+
+L_Pay:
delitem "MaggotSlime", 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 - 21;
misceffect FX_MAGIC_MAGGOT_CAST, strcharinfo(0);
@@ -47,6 +52,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) + "kalmurk"; // used in npcs that refer to this spell