Jump to content
  • 0

Problem with mobcount


Luigi

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  11/01/18
  • Last Seen:  

Hello guys,

I'm making an NPC that checks if a monster is alive in an map and then teleports the player to that map.

That part is ok, the problem is, when I start the server or do a @reloadscript the monster is not spawned until I teleport to the map for the first time.

Do you know how can I correct this?

This is the basic check of the NPC

if(mobcount("1@tnm1", "all") > 0) {
	warp "1@tnm1",25,115;
}

and this is the monster spawn

1@tnm1,24,74	monster	MonsterName	2255,1,3600000,600000,0

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  21
  • Reputation:   4
  • Joined:  11/04/18
  • Last Seen:  

enable the dynamic mob in the conf

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  11/01/18
  • Last Seen:  

Hi, sorry for the late response.

Actually dynamic_mobs are enabled already. I was searching about dynamic_mobs in rathena and found some issues about dynamic mobs and MVPs.

The monsters I want to check are MVPs so maybe that's the problem...

Any new toughts about it?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  11/01/18
  • Last Seen:  

I made it using global variables that keep a flag, I think I will use this way if no better option appears

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
Answer this question...

×   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...