Jump to content
  • 0
Mice

Regarding monster movement

Question

Hello, how its possible to make monster movement in certain cordinate? example poring monste can move where you want to move it using coordinate thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
9 hours ago, EIysium said:

Hope this helps: 

 

This is unitwarp, its better if the monster will walk in x,y not teleporting it is possible? thank you

Link to comment
Share on other sites

  • 0

I don't know if this will be useful for your or not.

-	script	Monster_Walk	-1,{

OnInit:

	[email protected] = monster("prontera",150,150,"Poring",1002);
	setarray [email protected][0],	155,150,
				155,155,
				160,155,
				165,160;

	[email protected] = getarraysize([email protected]);

	while(true) {
		unitwalk [email protected],[email protected][[email protected]*2],[email protected][[email protected]*2 + 1];
		[email protected] = ([email protected] + 2)%[email protected];
		sleep 1200;
	}

	end;

}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

Im trying to figure the error, but i dont have clue because i try to trial error, i thinking if the npc will not trace the monster id or what ever

image.png.cd2217ef4f550427cddcb9f923ab90a5.png

Link to comment
Share on other sites

  • 0

Can you test this one?

-	script	Monster_Walk	-1,{

OnInit:

	monster "prontera",150,150,"Poring",1002,1;
	[email protected] = [email protected][0];

	setarray [email protected][0],	155,150,
				155,155,
				160,155,
				165,160;

	[email protected] = getarraysize([email protected]);

	while(true) {
		unitwalk [email protected],[email protected][[email protected]*2],[email protected][[email protected]*2 + 1];
		[email protected] = ([email protected] + 2)%[email protected];
		sleep 1200;
	}

	end;

}

 

  • MVP 1
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...

Important Information

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