From d1239e5dbddb9556aaabdecae728271d8f9c0dbf Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 19 Jun 2020 21:22:33 -0300 Subject: Dragokin: Alignment check --- npc/magic/dragokin.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'npc/magic') diff --git a/npc/magic/dragokin.txt b/npc/magic/dragokin.txt index 544859cce..4acbb0a5b 100644 --- a/npc/magic/dragokin.txt +++ b/npc/magic/dragokin.txt @@ -8,10 +8,14 @@ // Cooldown is cast duration function script SK_Dragokin { + // Blocked from summoning magic + if (alignment() < 0) + return; + // Other requeriments: 5x Dragon Scale or Demure Axe if (!(countitem(DragonScales) >= 4 || countitem(DemureAxe))) { dispbottom l("You need 4x @@ to cast this skill.", getitemlink(DragonScales)); - end; + return; } // Setup @@ -22,7 +26,7 @@ function script SK_Dragokin { // Check if you have mana to cast // MagicCheck(SkillID, Mana{, MP per level}) if (!MagicCheck(@sk, @mp, @amp)) - end; + return; // Destroy reagents if (!countitem(DemureAxe)) -- cgit v1.2.3-70-g09d2