Jump to content
  • 0
Sign in to follow this  
3TAJIOH

How to spawn not agressive mobs?

Question

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1
[email protected] = 10;
monster "prontera",0,0,"Quest Poring",1002,[email protected],"NPCNAME::OnPoringKilled";

copyarray [email protected]_gid, [email protected], [email protected];
for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) {
	getunitdata [email protected]_gid[[email protected]], [email protected];
	if ([email protected][UMOB_MODE] & MD_AGGRESSIVE)
		setunitdata [email protected]_gid[[email protected]], UMOB_MODE, ([email protected][UMOB_MODE] - MD_AGGRESSIVE);
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

Wow, thx a lot  @Emistry

 

Edited by 3TAJIOH

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.