From f662ebc4232d427ec394d27d3c9153a625de8a4d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 9 Aug 2018 23:29:52 -0300 Subject: Debug markers required --- npc/config/magic.txt | 5 +++++ npc/magic/kalmurk.txt | 1 + npc/magic/parum.txt | 1 + npc/magic/zarkor.txt | 6 ++++++ 4 files changed, 13 insertions(+) (limited to 'npc') diff --git a/npc/config/magic.txt b/npc/config/magic.txt index 7da849e86..85d3442bf 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -17,16 +17,21 @@ // SkillID, EXP Points function script GetManaExp { + debugmes "--- Magic Subsystem: GME called"; .@sk=getarg(0); .@pt=getarg(1); + debugmes "--- Magic Subsystem: GME: Arguments Read"; if (getskilllv(TMW2_SAGE)) .@bonus=rand(0,getskilllv(TMW2_SAGE)*3/2); else .@bonus=0; + debugmes "--- Magic Subsystem: GME: Evaluating"; if (LAST_SKILL == .@sk) end; + debugmes "--- Magic Subsystem: GME: Recording"; LAST_SKILL=.@sk; MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus; + debugmes "--- Magic Subsystem: GME: Complete"; end; } diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt index dd9ebc062..57fefe100 100644 --- a/npc/magic/kalmurk.txt +++ b/npc/magic/kalmurk.txt @@ -53,6 +53,7 @@ OnCall: dispbottom l("The spell fails!"); } + debugmes "--- Magic Subsystem: KM: Ready for XP"; // Get a single mana experience point (this is NOT used by Soul Menhir) GetManaExp(@sk, abizit()+1); diff --git a/npc/magic/parum.txt b/npc/magic/parum.txt index 9e1cc0994..eb06e21e0 100644 --- a/npc/magic/parum.txt +++ b/npc/magic/parum.txt @@ -62,6 +62,7 @@ OnCall: @parum_at=gettimetick(2); @parum_at=@parum_at+4; + debugmes "--- Magic Subsystem: PR: Ready for XP"; // Get a few mana experience points (this is NOT used by Soul Menhir) GetManaExp(TMW2_PARUM, rand(1,3)); end; diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt index 6c4980c33..42f504dac 100644 --- a/npc/magic/zarkor.txt +++ b/npc/magic/zarkor.txt @@ -17,6 +17,7 @@ OnFriendlyDeath: */ OnCall: + debugmes "--- Magic Subsystem: ZK called"; // Other requeriments if (countitem(ZarkorScroll) < 1) { dispbottom l("You need @@ to cast this skill.", getitemlink(ZarkorScroll)); @@ -31,19 +32,23 @@ OnCall: end; } + debugmes "--- Magic Subsystem: ZK: Ready for setup"; // Setup @sk=TMW2_ZARKOR; @mp=400; @amp=75; + debugmes "--- Magic Subsystem: ZK: Ready for check"; // Check if you have mana to cast // MagicCheck(SkillID, Mana{, MP per level}) if (!MagicCheck(@sk, @mp, @amp)) end; + debugmes "--- Magic Subsystem: ZK: Ready for core"; // Summon Magic SummonMagic(@sk, CaveMaggot, 2); + debugmes "--- Magic Subsystem: ZK: Ready for XP"; // Get a single mana experience point (this is NOT used by Mana Stone) GetManaExp(@sk, 1); @@ -52,6 +57,7 @@ OnCall: @skzarkor_cooldown=gettimetick(2)+20; */ @zark_caveat=1; + debugmes "--- Magic Subsystem: ZK: Complete"; end; OnInit: -- cgit v1.2.3-60-g2f50