Jump to content
  • 0

How to spawn not agressive mobs?


3TAJIOH

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  73
  • Reputation:   1
  • Joined:  11/27/18
  • Last Seen:  

I need to spawn not agressive monsters on event (normally monsters are agressive).

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

.@total = 10;
monster "prontera",0,0,"Quest Poring",1002,.@total,"NPCNAME::OnPoringKilled";

copyarray .@mob_gid, $@mobid, .@total;
for (.@i = 0; .@i < .@total; .@i++) {
	getunitdata .@mob_gid[.@i], .@array;
	if (.@array[UMOB_MODE] & MD_AGGRESSIVE)
		setunitdata .@mob_gid[.@i], UMOB_MODE, (.@array[UMOB_MODE] - MD_AGGRESSIVE);
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  26
  • Reputation:   1
  • Joined:  06/25/16
  • Last Seen:  

I don´t know if there is an easiest way to do it. But... you can store each monster GID and modify their AI with a function.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  73
  • Reputation:   1
  • Joined:  11/27/18
  • Last Seen:  

Wow, thx a lot  @Emistry

 

Edited by 3TAJIOH
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...