diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2011-12-29 22:18:09 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-12-30 13:46:03 +0100 |
commit | f49338fd2420b722f9cb416ebfba33258fabf2ef (patch) | |
tree | a05f473e9f65f28aee155186199f9cad4fa2bde6 /world/map/npc/019-1/mobmanager.txt | |
parent | fd3bfee1c331addaa64b8601c193e23eca2c1607 (diff) | |
download | serverdata-f49338fd2420b722f9cb416ebfba33258fabf2ef.tar.gz serverdata-f49338fd2420b722f9cb416ebfba33258fabf2ef.tar.bz2 serverdata-f49338fd2420b722f9cb416ebfba33258fabf2ef.tar.xz serverdata-f49338fd2420b722f9cb416ebfba33258fabf2ef.zip |
Made santa slime spawn seasonal
Diffstat (limited to 'world/map/npc/019-1/mobmanager.txt')
-rw-r--r-- | world/map/npc/019-1/mobmanager.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/world/map/npc/019-1/mobmanager.txt b/world/map/npc/019-1/mobmanager.txt new file mode 100644 index 00000000..f47485af --- /dev/null +++ b/world/map/npc/019-1/mobmanager.txt @@ -0,0 +1,38 @@ +// Spawns mobs + +019-1.gat,0,0,0|script|SpawnManager|-1,{ + end; // just to be secure + +onInit: + set $@019_1_SANTASLIME_MONSTER_MAX_NUMBER,15; + set $@019_1_SANTASLIME_MOMSTER_ID,1015; + set $@019_1_SANTASLIME_MONSTER_SPAWN_X1,32; + set $@019_1_SANTASLIME_MONSTER_SPAWN_Y1,31; + set $@019_1_SANTASLIME_MONSTER_SPAWN_X2,111; + set $@019_1_SANTASLIME_MONSTER_SPAWN_Y2,101; + set $@019_1_SANTASLIME_month,gettime(6); + set $@019_1_SANTASLIME_monster_number,0; + initnpctimer; + if ($@019_1_SANTASLIME_month == 12 || $@019_1_SANTASLIME_month == 1 || $@019_1_SANTASLIME_month == 2) goto L_Init_Spawn; + end; + +L_Init_Spawn: + areamonster "019-1.gat", $@019_1_SANTASLIME_MONSTER_SPAWN_X1, $@019_1_SANTASLIME_MONSTER_SPAWN_Y1, $@019_1_SANTASLIME_MONSTER_SPAWN_X2, $@019_1_SANTASLIME_MONSTER_SPAWN_Y2, "Santa Slime", $@019_1_SANTASLIME_MOMSTER_ID, $@019_1_SANTASLIME_MONSTER_MAX_NUMBER, "SpawnManager::OnMonsterDeath"; + set $@monster_number,$@019_1_SANTASLIME_MONSTER_MAX_NUMBER; + end; + +L_Spawn: + areamonster "019-1.gat", $@019_1_SANTASLIME_MONSTER_SPAWN_X1, $@019_1_SANTASLIME_MONSTER_SPAWN_Y1, $@019_1_SANTASLIME_MONSTER_SPAWN_X2, $@019_1_SANTASLIME_MONSTER_SPAWN_Y2, "Santa Slime", $@019_1_SANTASLIME_MOMSTER_ID, 1, "SpawnManager::OnMonsterDeath"; + set $@019_1_SANTASLIME_monster_number,$@019_1_SANTASLIME_monster_number+1; + end; + +OnTimer60000: + initnpctimer; + set $@019_1_SANTASLIME_month,gettime(6); + if (($@019_1_SANTASLIME_month == 12 || $@019_1_SANTASLIME_month == 1 || $@019_1_SANTASLIME_month == 2) && $@019_1_SANTASLIME_monster_number < $@019_1_SANTASLIME_MONSTER_MAX_NUMBER) goto L_Spawn; + end; + +OnMonsterDeath: + set $@019_1_SANTASLIME_monster_number,$@019_1_SANTASLIME_monster_number-1; + end; +} |