Jump to content
  • 0

getunitdata/setunitdata difficulties


Hyoru

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   11
  • Joined:  01/30/12
  • Last Seen:  

Hello!
I'm currently working on a part of an instance where I need to obtain the coordinates from those mobs and then summon another mob to the same location. However, I'm facing some difficulties with utilizing getunitdata/setunitdata. Could someone kindly provide guidance on how to achieve this functionality? Thank you.

What I got so far, no errors on console:

areamonster instance_mapname("1@gl_prq"), 15, 25, 75, 75, "Flame Thorn", 1960, 6;

for (.@i = 0; .@i < 6; .@i++) {
		'ThornID = $@mobid[.@i];
		getunitdata 'ThornID, .@unitdata;
		monster instance_mapname("1@gl_prq"), .@unitdata[UMOB_X], .@unitdata[UMOB_Y], "Flame", 20426, 1;
		setunitdata $@mobid[0], UMOB_ADELAY, 400;
	}

 

Edit: After some research, I was able to fix it:

setunitdata 'ThornID, UMOB_ADELAY, 400;

 

Edited by Hyoru
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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