Jump to content
  • 0

Regarding monster movement


Mice

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

Hope this helps: 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

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

-	script	Monster_Walk	-1,{

OnInit:

	.@id = monster("prontera",150,150,"Poring",1002);
	setarray .@path[0],	155,150,
				155,155,
				160,155,
				165,160;

	.@size = getarraysize(.@path);

	while(true) {
		unitwalk .@id,.@path[.@i*2],.@path[.@i*2 + 1];
		.@i = (.@i + 2)%.@size;
		sleep 1200;
	}

	end;

}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

Im not sure where need to put the , or what error in line 5

image.png.90fcac0e625666ab8fd5965632a6bac7.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

Forgot the amount.

Just change it to:

.@id = monster("prontera",150,150,"Poring",1002,1);
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

Can you test this one?

-	script	Monster_Walk	-1,{

OnInit:

	monster "prontera",150,150,"Poring",1002,1;
	.@id = $@mobid[0];

	setarray .@path[0],	155,150,
				155,155,
				160,155,
				165,160;

	.@size = getarraysize(.@path);

	while(true) {
		unitwalk .@id,.@path[.@i*2],.@path[.@i*2 + 1];
		.@i = (.@i + 2)%.@size;
		sleep 1200;
	}

	end;

}

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  12/24/18
  • Last Seen:  

Ok now working thanks again ? this is my 2nd request you helped me

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