Need help with adding spawn areas with custom mobs

08/16/2012 05:51 rappelz4u#1
Hey guys, I was trying to find a way of adding a new area with monsters respawning there, but didn't find any solution. I think that you need to edit monster_respawn.lua and random_respawn.lua (?) <- not sure

could anyone explain me how to works, or / and maybe bring up an example: if i want to spawn monster_id 1 and 2 at horizon field north?

i didnt get the script code, thats why im asking, and didnt find anything like this on the forum.
08/16/2012 06:12 5405045#2
you have to modifi the server_init.lua
08/18/2012 12:09 mongreldogg#3
Add rows to server_init.lua

respawn_rare_mob( -1, respawn delay (msec), x , y , mob id , 1 , 0 )

Example:
respawn_rare_mob( -1, 200, 171829, 55084, 17001, 1, 0 )

Change that is red.
And click Thanks =)

If you need a roaming mobs, change first value (-1) to differrent roaming id (search roaming ids in monster_roaming.lua)
Test it. Taste it.
09/21/2013 17:59 darkangeldu60162#4
Quote:
Originally Posted by mongreldogg View Post
Add rows to server_init.lua

respawn_rare_mob( -1, respawn delay (msec), x , y , mob id , 1 , 0 )

Example:
respawn_rare_mob( -1, 200, 171829, 55084, 17001, 1, 0 )
Hello,
Can i add Z (layer) ? or not ?

respawn_rare_mob( -1, respawn delay (msec), x , y , z, mob id , 1 , 0 )
09/21/2013 18:35 ThunderNikk#5
Not sure about putting it in server init but it froze my server when I tried it on trainee island with a command in the chat window.

You may get server crashes if it does not like it in the server init lua file.

Best way to find out...try it and see. If it does not work remove it.

You want someone here to try it for you???
09/21/2013 18:45 darkangeldu60162#6
No, i'll find a way to try by myself, but not yet
but if someone have already tested... ;)

And thx for quick answer
09/21/2013 21:39 Stongx#7
i think that you can try the code in gm character if you have one
but I think there are no problem to add z because there are a lot of monsters in places with z in the location position
09/22/2013 14:02 darkangeldu60162#8
I hope ! :o

thanks