Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

TargetGround?

Ask for help
Post Reply
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

TargetGround?

Post 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!
NoSilence
Novice
Novice
Posts: 94
Joined: 02.01.2010 13:55

Re: TargetGround?

Post 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

Code: Select all

NPC: cardinal;
http://stealth.od.ua/Doc:Api
///
nepopus
Novice
Novice
Posts: 121
Joined: 29.02.2012 23:45
Location: Москва
Contact:

Re: TargetGround?

Post 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
:P sry for copy previous message
<( o_O<) <( O_O )> (>O_o )>
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Re: TargetGround?

Post 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?
nepopus
Novice
Novice
Posts: 121
Joined: 29.02.2012 23:45
Location: Москва
Contact:

Re: TargetGround?

Post 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
<( o_O<) <( O_O )> (>O_o )>
Post Reply