summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2013-12-28 11:28:35 -0600
committerwushin <pasekei@gmail.com>2013-12-28 11:28:35 -0600
commit59f00f80886eca7f620cc662305ca564366f882c (patch)
tree48b6a9169da85d890916c3f13d062352ca5b9e9f
parent5f15c08b4c0d586fbc36856f660bd47546531b32 (diff)
downloadserverdata-59f00f80886eca7f620cc662305ca564366f882c.tar.gz
serverdata-59f00f80886eca7f620cc662305ca564366f882c.tar.bz2
serverdata-59f00f80886eca7f620cc662305ca564366f882c.tar.xz
serverdata-59f00f80886eca7f620cc662305ca564366f882c.zip
MobManger Timing Fix
-rw-r--r--world/map/npc/annuals/xmas/mobmanager.txt23
1 files changed, 3 insertions, 20 deletions
diff --git a/world/map/npc/annuals/xmas/mobmanager.txt b/world/map/npc/annuals/xmas/mobmanager.txt
index 2ffa5e15..c8156783 100644
--- a/world/map/npc/annuals/xmas/mobmanager.txt
+++ b/world/map/npc/annuals/xmas/mobmanager.txt
@@ -4,6 +4,9 @@
{
OnCommandSpawnStart:
+ if ($@xmas_spawn_started)
+ goto L_End;
+ set $@xmas_spawn_started, 1;
goto L_InitSpawn;
L_InitSpawn:
@@ -31,26 +34,6 @@ L_NextMap:
set $@xmas_map_loop, ($@xmas_map_loop + 1);
goto L_StartLoop;
-L_DespawnLoop:
- killmonster $@xmas_map_spawns$[$@xmas_map_loop], "XmasSpawnCounter#" + $@xmas_map_loop + "::OnTally";
- goto L_NextDespawn;
-
-L_NextDespawn:
- if (($@xmas_map_loop + 1) == getarraysize($@xmas_map_spawns$))
- goto L_SelfDestruct;
- set $@xmas_map_loop, ($@xmas_map_loop + 1);
- goto L_DespawnLoop;
-
-L_StopTracking:
- set $@xmas_mob_lck, 1;
- set $@xmas_map_loop, 0;
- goto L_DespawnLoop;
-
-L_SelfDestruct:
- stopnpctimer;
- disablenpc "XmasSpawnManager";
- goto L_End;
-
OnCommandTally:
set $@xmas_map_loop, 0;
set $@xmas_current_count, ($@xmas_current_count - 1);