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!
Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
TargetGround?
-
- Neophyte
- Posts: 22
- Joined: 04.09.2008 5:38
Re: TargetGround?
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;
Code: Select all
NPC: cardinal;
///
Re: TargetGround?
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');
sry for copy previous message
<( o_O<) <( O_O )> (>O_o )>
-
- Neophyte
- Posts: 22
- Joined: 04.09.2008 5:38
Re: TargetGround?
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));
?
correct?
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;
Re: TargetGround?
yeapcanabisman 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));
?
correct?Code: Select all
procedure CastWallNPC; begin Cast('Wall Of Stone'); WaitTargetXYZ(GetX(lasttarget), GetY(lasttarget), GetZ(lasttarget)); end;
<( o_O<) <( O_O )> (>O_o )>