diff options
author | wushin <pasekei@gmail.com> | 2013-12-28 10:29:39 -0800 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2013-12-28 10:29:39 -0800 |
commit | 030ec3b59b42c45b90a25fac81a6e6d87b2ac8a5 (patch) | |
tree | 2e19f03bf62ec2ce3e599c1f4145b0bd30673400 /world/map/npc/annuals/xmas | |
parent | d3ee4d34c84013b1d473f3f07728fa6f6a03f073 (diff) | |
parent | 59f00f80886eca7f620cc662305ca564366f882c (diff) | |
download | classic-serverdata-030ec3b59b42c45b90a25fac81a6e6d87b2ac8a5.tar.gz classic-serverdata-030ec3b59b42c45b90a25fac81a6e6d87b2ac8a5.tar.bz2 classic-serverdata-030ec3b59b42c45b90a25fac81a6e6d87b2ac8a5.tar.xz classic-serverdata-030ec3b59b42c45b90a25fac81a6e6d87b2ac8a5.zip |
Merge pull request #64 from wushin/stable-testv2013.12.28
MobManger Timing Fix
Diffstat (limited to 'world/map/npc/annuals/xmas')
-rw-r--r-- | world/map/npc/annuals/xmas/mobmanager.txt | 23 |
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); |