From df0687a362dc4155ec809508b1320768cabc8a80 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 19 Jun 2020 21:25:36 -0300 Subject: 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 --- npc/config/magic.txt | 4 ++++ npc/magic/plantkingdom.txt | 4 ++++ 2 files changed, 8 insertions(+) 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)); -- cgit v1.2.3-60-g2f50