ivanyan Posted October 17, 2013 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
Darkpurple Posted October 18, 2013 Posted October 18, 2013 What would be affect on sever started and use @reloadscript command? Quote
Darkpurple Posted October 21, 2013 Posted October 21, 2013 does it mean not respawn on sever started and use @reloadscript command? if yes,when respawn? Quote
ivanyan Posted October 22, 2013 Author 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
chriser Posted October 22, 2013 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
ivanyan Posted October 22, 2013 Author 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
chriser Posted October 22, 2013 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
Adam Posted February 3, 2014 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
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.