diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-21 14:47:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-21 14:47:25 -0300 |
commit | ec2d2fbae03b7436d05a98175aaf85576a155397 (patch) | |
tree | 2044471959027b22ee22554be0f170e1796c5bd3 /npc/magic | |
parent | 080992c4cd4f5d82d9c330256ad169c0f8a6013c (diff) | |
download | serverdata-ec2d2fbae03b7436d05a98175aaf85576a155397.tar.gz serverdata-ec2d2fbae03b7436d05a98175aaf85576a155397.tar.bz2 serverdata-ec2d2fbae03b7436d05a98175aaf85576a155397.tar.xz serverdata-ec2d2fbae03b7436d05a98175aaf85576a155397.zip |
halhiss now makes use of the new magical system
Diffstat (limited to 'npc/magic')
-rw-r--r-- | npc/magic/halhiss.txt | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/npc/magic/halhiss.txt b/npc/magic/halhiss.txt index e497d8826..96ac5292d 100644 --- a/npc/magic/halhiss.txt +++ b/npc/magic/halhiss.txt @@ -9,54 +9,8 @@ end; OnCall: - // Other requeriments: 20x Maggot Slime - if (countitem(SnakeEgg) < 1) { - dispbottom l("You need 1x @@ to cast this skill.", getitemlink(SnakeEgg)); - end; - } - - // Check cooldown - if (@halhiss_at > gettimetick(2)) { - dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@halhiss_at)); - end; - } - - // Setup - @sk=TMW2_HALHISS; - @mp=35; - @amp=6; - - // Check if you have mana to cast - // MagicCheck(SkillID, Mana{, MP per level}) - if (!MagicCheck(@sk, @mp, @amp)) - end; - - // Destroy reagents - delitem SnakeEgg, 1; - - // set cooldown - @halhiss_at=gettimetick(2); - @halhiss_at=@halhiss_at+44; - - // As usual, magic profeciency affects success ratio - if (rand(1,4) < abizit()+1) { - .@mobId=Snake; - if (abizit() > 3 && - GHMEMO[GHQ_GetQuestIDByMonsterID(MountainSnake)] >= 10000 && - rand(1,3) == 2) - { - .@mobId=MountainSnake; - } - // Summon Magic - // SummonMagic(SkillID, MobID{, SkillLevelPerMob=2{, Level Override}}) - SummonMagic(@sk, .@mobId, 4, MAGIC_LVL+getskilllv(@sk)-1); - } else { - dispbottom l("The spell fails!"); - } - - // Get 3~4 mana experience point (this is NOT used by Mana Stone) - GetManaExp(@sk, rand(3,4)); - + // Deprecated + dispbottom l("The usage of @sk-commands was deprecated"); end; OnInit: |