summaryrefslogtreecommitdiff
path: root/npc/magic
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-21 14:47:25 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-21 14:47:25 -0300
commitec2d2fbae03b7436d05a98175aaf85576a155397 (patch)
tree2044471959027b22ee22554be0f170e1796c5bd3 /npc/magic
parent080992c4cd4f5d82d9c330256ad169c0f8a6013c (diff)
downloadserverdata-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.txt50
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: