Jump to content
  • 0

How to move a monster to specified map and coordinates?


rongmauhong

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

Hello,

I use 

unitwarp .GID,"prontera",154,176;

in the script below but it doesn't work

 

-	script	spawn_test	-1,{
end;
OnTest:
	monster "prontera",154,175,"--ja--",1026,1,strnpcinfo(3)+"::OnMyMobDead";
	.GID = $@mobid[0];
	initnpctimer;
	end;
OnTimer5000:
	if (unitexists(.GID) == 0) {
		stopnpctimer;
		end;
	}

	unitwarp .GID,"prontera",154,176;
	initnpctimer;
	end;
OnMyMobDead:

	end;
OnInit:
	bindatcmd "test",strnpcinfo(0)+"::OnTest",99,99;
	end;
}

Thanks

Edited by rongmauhong
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

2 hours ago, Hyroshima said:

is working! (@test)

screenrAthena015.thumb.jpg.3e6f785f33835d059f4ec27c18af2f8c.jpg

 

thanks, does this line work?

unitwarp .GID,"prontera",154,176;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

is working! (@test)

screenrAthena015.thumb.jpg.3e6f785f33835d059f4ec27c18af2f8c.jpg

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   58
  • Joined:  07/11/14
  • Last Seen:  

Yes, everything worked correctly.

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