Jump to content
  • 0

How can i know the coordinate of a mob unit?


luizragna

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

 

Anybody know?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  869
  • Reputation:   115
  • Joined:  05/23/12
  • Last Seen:  

I dont rly know what u want to know. Take a look at "getunitdata" at the script command documentation. 

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

prontera,155,185,5	script	skdjfksjdf	1_F_MARIA,{
	if ( !.mobid ) {
		monster "this", -1,-1, "--ja--", 1002,1, strnpcinfo(0)+"::Onkill";
		.mobid = $@mobid;
	}
	else {
		getunitdata .mobid, .@unitdata;
		dispbottom "X: "+ .@unitdata[UMOB_X] +" - Y: "+ .@unitdata[UMOB_Y];
	}
	end;
Onkill:
	.mobid = 0;
	end;
}

EDIT: forgot to add event labels

Edited by AnnieRuru
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...