summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHello=) <hello@themanaworld.org>2025-03-16 01:31:00 +0300
committerHello TMW <hello@themanaworld.org>2025-03-26 20:57:01 +0000
commit684382b4357f1ce92d9c684a2bc8bdc6c3246856 (patch)
tree4ad5b87af29300019f87c044b418d12f0ad7fd4a
parent92f29c04e41cfb4ef312b7d9ca131d2d29189ce0 (diff)
downloadserverdata-684382b4357f1ce92d9c684a2bc8bdc6c3246856.tar.gz
serverdata-684382b4357f1ce92d9c684a2bc8bdc6c3246856.tar.bz2
serverdata-684382b4357f1ce92d9c684a2bc8bdc6c3246856.tar.xz
serverdata-684382b4357f1ce92d9c684a2bc8bdc6c3246856.zip
This fixes swamp spawns, killing 2 birds with one stone.
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;
}