summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-06 14:56:28 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-06 14:56:28 -0300
commit11eca31d2f8882b62517c0a6367e102dd5721d0d (patch)
tree19d3a5f9ec90dd8536340a5a11bd3beae28e67b7 /npc/config
parentbfa2ea9156fe9c598d89cb8f7b996484553ff177 (diff)
downloadserverdata-11eca31d2f8882b62517c0a6367e102dd5721d0d.tar.gz
serverdata-11eca31d2f8882b62517c0a6367e102dd5721d0d.tar.bz2
serverdata-11eca31d2f8882b62517c0a6367e102dd5721d0d.tar.xz
serverdata-11eca31d2f8882b62517c0a6367e102dd5721d0d.zip
Disable looting mode from summons.
Also ensure all summons can suffer from knockback. There are other stuff I could do, but for now, it is not necessary
Diffstat (limited to 'npc/config')
-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 e843be6f5..77c14a43e 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -123,6 +123,16 @@ function script SummonMagic {
.@lvx = .@lvx * (80 + abizit() * rand2(5,10)) / 100;
setunitdata(.@mids, UDT_MAXHP, .@bhp+.@lvx);
setunitdata(.@mids, UDT_HP, .@bhp+.@lvx);
+ // Reconfigure monster modes
+ .@opt=getunitdata(.@mids, UDT_MODE);
+ // Disable looting
+ if (.@opt & MD_LOOTER)
+ .@opt=.@opt^MD_LOOTER;
+ // All summons can suffer knockback
+ if (.@opt & MD_NOKNOCKBACK)
+ .@opt=.@opt^MD_NOKNOCKBACK;
+ // Save new options
+ setunitdata(.@mods, UDT_MODE, .@opt);
}
dispbottom l("All monsters summoned!");
return;