summaryrefslogtreecommitdiff
path: root/npc/magic
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-19 21:22:33 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-19 21:22:33 -0300
commitd1239e5dbddb9556aaabdecae728271d8f9c0dbf (patch)
tree71d1dc21e80ab7617ffd8f0cb1d97fb9959ed5f4 /npc/magic
parente4d60dfba3b49ea1a51e900083d0215e1b554cfa (diff)
downloadserverdata-d1239e5dbddb9556aaabdecae728271d8f9c0dbf.tar.gz
serverdata-d1239e5dbddb9556aaabdecae728271d8f9c0dbf.tar.bz2
serverdata-d1239e5dbddb9556aaabdecae728271d8f9c0dbf.tar.xz
serverdata-d1239e5dbddb9556aaabdecae728271d8f9c0dbf.zip
Dragokin: Alignment check
Diffstat (limited to 'npc/magic')
-rw-r--r--npc/magic/dragokin.txt8
1 files changed, 6 insertions, 2 deletions
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))