summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-11 20:15:44 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-11 20:15:44 -0300
commitc6dddd571035f7e35bbd40256be87a36ded98f8a (patch)
tree625b466891802894b46fdf0ff05516fd6269b308 /npc
parent618cf1e836249f8788d76484af608b6cfad65e81 (diff)
downloadserverdata-c6dddd571035f7e35bbd40256be87a36ded98f8a.tar.gz
serverdata-c6dddd571035f7e35bbd40256be87a36ded98f8a.tar.bz2
serverdata-c6dddd571035f7e35bbd40256be87a36ded98f8a.tar.xz
serverdata-c6dddd571035f7e35bbd40256be87a36ded98f8a.zip
Try to fix the mobspawn and penalty bugs
Diffstat (limited to 'npc')
-rw-r--r--npc/029-0/mobs.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/029-0/mobs.txt b/npc/029-0/mobs.txt
index 73b1223ee..46287e58e 100644
--- a/npc/029-0/mobs.txt
+++ b/npc/029-0/mobs.txt
@@ -38,11 +38,16 @@ OnInit:
end;
function SFspawn {
- .@am=($FIRESOFSTEAM > getarg(8) && !$@GM_OVERRIDE ? (getarg(6)*6/10) : getarg(6));
+ .@am=($FIRESOFSTEAM > getarg(8) ? (getarg(6)*6/10) : getarg(6));
debugmes "Spawning %d/%d mobs on %s", .@am, getarg(6), getarg(0);
areamonster(getarg(0), getarg(1), getarg(2), getarg(3), getarg(4),
strmobinfo(1, getarg(5)), getarg(5), .@am,
getarg(7));
+ if ($FIRESOFSTEAM > getarg(8) && !$@FOS_RESPAWN[getarg(8)]) {
+ $@FOS_RESPAWN[getarg(8)]=true;
+ setmapflag(getarg(0), mf_nopenalty);
+ }
+
return;
}