ivanyan Posted October 17, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 2 Joined: 09/25/12 Last Seen: December 5, 2013 Share Posted October 17, 2013 (edited) As all of you know, when dynamic_mobs option is swithed to "yes" all MVP & BOSS monsters respawning on restart, but this option is so usefull on small servers, because it's save lots of resources. My modification allows to leave them static! Only MVP & BOSS monsters All you have to do - is to change one line of code in npc.c. if( battle_config.dynamic_mobs && map_addmobtolist(data->m, data) >= 0 ) to if( battle_config.dynamic_mobs && !mob.state.boss && map_addmobtolist(data->m, data) >= 0 ) Hope it will be usefull :-D Edited October 18, 2013 by ivanyan 1 Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted October 18, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted October 18, 2013 What would be affect on sever started and use @reloadscript command? Quote Link to comment Share on other sites More sharing options...
ivanyan Posted October 19, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 2 Joined: 09/25/12 Last Seen: December 5, 2013 Author Share Posted October 19, 2013 Everything will be fine Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted October 21, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted October 21, 2013 does it mean not respawn on sever started and use @reloadscript command? if yes,when respawn? Quote Link to comment Share on other sites More sharing options...
ivanyan Posted October 22, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 2 Joined: 09/25/12 Last Seen: December 5, 2013 Author Share Posted October 22, 2013 (edited) Boss monsters respawn like when option dynamic_mobs switched to off, other mobs respawns like dynamic. Edited October 22, 2013 by ivanyan Quote Link to comment Share on other sites More sharing options...
chriser Posted October 22, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 94 Reputation: 4 Joined: 01/29/13 Last Seen: August 11, 2020 Share Posted October 22, 2013 where is the difference? it does not matter if the mobs gets spawned when the map is not empty anymore or when mvps get spawned immediately. as you said, only a matter of ressources. Quote Link to comment Share on other sites More sharing options...
ivanyan Posted October 22, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 2 Joined: 09/25/12 Last Seen: December 5, 2013 Author Share Posted October 22, 2013 (edited) MVP dies on restart, when it is dynamic_mobs "off", but respawn immideately after restart when somebody appears on a map close to MVP when it switched to "on". That's why I decidet to move boss monsters to static mobs, and all other mobs to dynamic. The difference is, if your server crashes, your MVPs respawn immediately after server start. If it crashes again, MVP respawn again and again and so on... so your players will have tonns of MVP cards, if your server is unstable... Edited October 22, 2013 by ivanyan Quote Link to comment Share on other sites More sharing options...
chriser Posted October 22, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 94 Reputation: 4 Joined: 01/29/13 Last Seen: August 11, 2020 Share Posted October 22, 2013 ah okay, i see, then this is very useful. I hope we will have a mvp spawn table somewhen so that server crashes don't matter anymore. Quote Link to comment Share on other sites More sharing options...
Adam Posted February 3, 2014 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 111 Reputation: 3 Joined: 06/29/12 Last Seen: August 3, 2014 Share Posted February 3, 2014 (edited) Hi there, Just to make sure I understood well On 10/18/2013 at 1:42 AM, ivanyan said: As all of you know, when dynamic_mobs option is swithed to "yes" all MVP & BOSS monsters respawning on restart, but this option is so usefull on small servers, because it's save lots of resources. My modification allows to leave them static! Only MVP & BOSS monsters All you have to do - is to change one line of code in npc.c. if( battle_config.dynamic_mobs && map_addmobtolist(data->m, data) >= 0 ) to if( battle_config.dynamic_mobs && !mob.state.boss && map_addmobtolist(data->m, data) >= 0 ) Hope it will be usefull Once I modified the source line in npc.c; should i leave the dynamic_mobs 1 or 0 for the modification to apply (so ONLY MvP monsters won't respawn on server's reboot) ? Figured out (I think); so the idea is to leave Dynamic_mobs = 1 and to modify the line in npc.c Someone please correct me if I am wrong, if not then all good Edited February 3, 2014 by Adam Quote Link to comment Share on other sites More sharing options...
vulcan1991 Posted April 8, 2019 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 30 Reputation: 0 Joined: 03/05/19 Last Seen: March 23, 2020 Share Posted April 8, 2019 is this working on latest rathena? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.