Jump to content

Dynamic Mobs Not Respawn MVP! (very small mod)


ivanyan

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  09/25/12
  • Last Seen:  

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 by ivanyan
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

What would be affect on sever started and use @reloadscript command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  09/25/12
  • Last Seen:  

Everything will be fine

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

does it mean not respawn on sever started and use @reloadscript command?

if yes,when respawn?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  09/25/12
  • Last Seen:  

Boss monsters respawn like when option dynamic_mobs switched to off, other mobs respawns like dynamic.

Edited by ivanyan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   2
  • Joined:  09/25/12
  • Last Seen:  

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 by ivanyan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   3
  • Joined:  06/29/12
  • Last Seen:  

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 by Adam
Link to comment
Share on other sites

  • 5 years later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  03/05/19
  • Last Seen:  

is this working on latest rathena?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...