summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-19 21:25:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-19 21:25:36 -0300
commitdf0687a362dc4155ec809508b1320768cabc8a80 (patch)
tree17e5a2de14cd9e401a4d5360c85f6bd0a37ba2d0
parentd1239e5dbddb9556aaabdecae728271d8f9c0dbf (diff)
downloadserverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.gz
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.bz2
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.xz
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.zip
Definite: Nullify every standard summon skill if alignment is evil.
Reagents will be taken, but none will heed your call. PS. These skills are not supposed to show up
-rw-r--r--npc/config/magic.txt4
-rw-r--r--npc/magic/plantkingdom.txt4
2 files changed, 8 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index b627c30ab..39b138504 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -151,6 +151,10 @@ function script SK_summon {
.@mex=getarg(2);
if ($@GM_OVERRIDE || debug) debugmes "Skill "+@skillId+" Lv "+@skillLv;
+ // Blocked from summoning magic
+ if (alignment() < 0)
+ return;
+
if (rand2(5) < abizit()) {
// Summon Magic (with magic level bonus)
SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv);
diff --git a/npc/magic/plantkingdom.txt b/npc/magic/plantkingdom.txt
index 2ee9e314e..0ed87b3b5 100644
--- a/npc/magic/plantkingdom.txt
+++ b/npc/magic/plantkingdom.txt
@@ -9,6 +9,10 @@
end;
OnCall:
+ // Blocked from summoning magic
+ if (alignment() < 0)
+ return;
+
// Other requeriments: 2x Root
if (countitem(Root) < 2) {
dispbottom l("You need 2x @@ to cast this skill.", getitemlink(Root));