diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:34:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-16 11:34:01 -0300 |
commit | f377bbc7cbce73b49ec708d951780d4efc0ac6f7 (patch) | |
tree | 5d13db357a30650f777b66213aec7f2b13315255 /npc/magic | |
parent | 8e8f495d502883349e60dcb633755d9a98e20e5a (diff) | |
download | serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.gz serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.bz2 serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.tar.xz serverdata-f377bbc7cbce73b49ec708d951780d4efc0ac6f7.zip |
Remove magic check from SummonMagic
Diffstat (limited to 'npc/magic')
-rw-r--r-- | npc/magic/kalmurk.txt | 14 | ||||
-rw-r--r-- | npc/magic/zarkor.txt | 16 |
2 files changed, 25 insertions, 5 deletions
diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt index 11d1859df..8bd9f7f45 100644 --- a/npc/magic/kalmurk.txt +++ b/npc/magic/kalmurk.txt @@ -30,9 +30,19 @@ OnCall: end; } + // Setup + .@sk=TMW2_KALMURK; + .@mp=200; + .@amp=50; + + // Check if you have mana to cast + // MagicCheck(SkillID, Mana{, MP per level}) + if (!MagicCheck(.@sk, .@mp, .@amp)) + end; + // Summon Magic - // SummonMagic( SkillID, Mana, MobID{, MP per level, MobPerSkillLevel=2},{Lvl Override} ) - SummonMagic(TMW2_KALMURK, 200, Maggot, 50, 2, (MAGIC_LVL-1)); + SummonMagic(.@sk, CaveMaggot, 2); + delitem MaggotSlime, 2; // Get a single mana experience point (this is NOT used by Soul Menhir) diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt index 18718c811..301e74565 100644 --- a/npc/magic/zarkor.txt +++ b/npc/magic/zarkor.txt @@ -31,11 +31,21 @@ OnCall: end; } + // Setup + .@sk=TMW2_ZARKOR; + .@mp=400; + .@amp=75; + + // Check if you have mana to cast + // MagicCheck(SkillID, Mana{, MP per level}) + if (!MagicCheck(.@sk, .@mp, .@amp)) + end; + // Summon Magic - SummonMagic(TMW2_ZARKOR, 400, CaveMaggot, 75, 2); + SummonMagic(.@sk, CaveMaggot, 2); - // Get a single mana experience point (this is NOT used by Soul Menhir) - GetManaExp(TMW2_ZARKOR, 1); + // Get a single mana experience point (this is NOT used by Mana Stone) + GetManaExp(.@sk, 1); /* // set cooldown |