summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-26 01:40:23 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-26 01:40:23 -0300
commit7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75 (patch)
treecf98a27f343488291861eb5eb458ec5d122cc459 /npc/config/magic.txt
parent766f398bb13ca38b7c0f910f99c6f23e8e30be88 (diff)
downloadserverdata-7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75.tar.gz
serverdata-7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75.tar.bz2
serverdata-7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75.tar.xz
serverdata-7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75.zip
Summoning Magic: If you fail, there'll be a re-roll. If you pass this re-roll,
then the summoning will complete - but at weakest and only 1 unit. However, if you fail both, is overwhelmed by magic, and 33% chances... ...The spell will backfire, and one unit of what you were summoning will attack you
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index e1cd51880..81c23de5f 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -199,6 +199,16 @@ function script SK_summon {
if (rand2(5) < abizit()) {
// Summon Magic (with magic level bonus)
SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv);
+ } else if (rand2(5) < abizit()) {
+ // Re-roll
+ dispbottom l("You cannot complete the casting correctly!");
+ SummonMagic(@skillId, .@mob, 1, 1, 1);
+ } else if (abizit() <= 1 && any(true, false, false)) {
+ // Spell overwhelms you, causing it to be spawned as aggro vs you. (33%)
+ dispbottom l("The spell takes a mind of its own backfires!");
+ getmapxy(.@m$, .@x, .@y, 0);
+ .@opo=monster(.@m$, .@x, .@y, "Failed summon", .@mob, 1);
+ unitattack(.@opo, getcharid(3));
} else {
dispbottom l("The spell fails!");
}