summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHello=) <hello@themanaworld.org>2025-03-16 01:31:00 +0300
committerHello=) <hello@themanaworld.org>2025-03-16 01:31:00 +0300
commit62592617a1f7c53735d004a6841609c5961e948a (patch)
tree050f546ebc9854aed6b950717c55f7dbd83325f7
parentf24336c09f9a82f4a0e6fd3c638a1cc88bf26ac4 (diff)
downloadserverdata-swamp-spawns-fix.tar.gz
serverdata-swamp-spawns-fix.tar.bz2
serverdata-swamp-spawns-fix.tar.xz
serverdata-swamp-spawns-fix.zip
This fixes swamp spawns, killing 2 birds with one stone.swamp-spawns-fix
1) In some cases Reaper would fail to respawn if killed by mage that disappears in process. 2) Swamp map would be completely broken if GM issues @killmonster2 since mobs will never respawn. This fixes both issues at once. As extra bonus it cuts down LoC of script, removing duplicate mobs spawn block.
-rw-r--r--world/map/npc/099-7/boss.txt11
1 files changed, 2 insertions, 9 deletions
diff --git a/world/map/npc/099-7/boss.txt b/world/map/npc/099-7/boss.txt
index b572c7cc..a20a4ae7 100644
--- a/world/map/npc/099-7/boss.txt
+++ b/world/map/npc/099-7/boss.txt
@@ -604,14 +604,7 @@ L_Tools:
close;
OnInit:
- areamonster "099-7", 37, 36, 142, 140, "", 1148, 10, "Keshlam::OnDeath8";
- areamonster "099-7", 37, 36, 142, 140, "", 1149, 10, "Keshlam::OnDeath9";
-// areamobuseskill "099-7", 37, 36, 142, 140,
-// areamobuseskill "009-7", 155,188,2,1083,"MG_COLDBOLT",10,3000,1,e_gg,0;
-//*areamobuseskill "<map name>",<x>,<y>,<range>,<mob id>,<skill id>,<skill level>,<cast time>,<cancelable>,<emotion>,<target type>;
-//*areamobuseskill "<map name>",<x>,<y>,<range>,<mob id>,"<skill name>",<skill level>,<cast time>,<cancelable>,<emotion>,<target type>;
-
- monster "099-7", 40, 121, "Grim Reaper", 1068, 1, "Keshlam::OnBoss";
+ initnpctimer; // Timer will bring mobs itself. Radically fixes e.g. @killmonster2 on map
end;
OnDeath8:
@@ -649,7 +642,7 @@ OnTimer150000:
// Done
set $@KeshlamMc, 0;
- stopnpctimer;
+ initnpctimer;
end;
}