Page 1 of 1
TargetGround?
Posted: 14.06.2012 13:07
by canabisman
Hello friends i need a simple procedure but i dont know how to make it... something like
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetGround <<<<< here will be the x y z from the NPC
end;
THANK YOU!
Re: TargetGround?
Posted: 14.06.2012 13:23
by NoSilence
Code: Select all
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetXYZ(GetX(NPC), GetY(NPC), GetZ(NPC));
end;
Code: Select all
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetObject(NPC);
end;
where
http://stealth.od.ua/Doc:Api
Re: TargetGround?
Posted: 14.06.2012 13:39
by nepopus
canabisman wrote:Hello friends i need a simple procedure but i dont know how to make it... something like
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetGround <<<<< here will be the x y z from the NPC
end;
THANK YOU!
Code: Select all
if targetpresent then
canceltarget
else
cancelwaittarget;
waittargetxyz(getx(NPC) + 1(if needed), gety(NPC) + 1(if needed), getz(NPC));
cast('Wall of Stone');
http://stealth.od.ua/Doc:Api/WaitTargetXYZ
sry for copy previous message
Re: TargetGround?
Posted: 14.06.2012 16:37
by canabisman
But the NPC is the LASTTARGET how can i get the xyz from last target?
can i do like this:
waittargetxyz(getx(lasttarget) + 1(if needed), gety(lasttarget) + 1(if needed), getz(lasttarget));
?
Code: Select all
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetXYZ(GetX(lasttarget), GetY(lasttarget), GetZ(lasttarget));
end;
correct?
Re: TargetGround?
Posted: 14.06.2012 17:26
by nepopus
canabisman wrote:But the NPC is the LASTTARGET how can i get the xyz from last target?
can i do like this:
waittargetxyz(getx(lasttarget) + 1(if needed), gety(lasttarget) + 1(if needed), getz(lasttarget));
?
Code: Select all
procedure CastWallNPC;
begin
Cast('Wall Of Stone');
WaitTargetXYZ(GetX(lasttarget), GetY(lasttarget), GetZ(lasttarget));
end;
correct?
yeap