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

TargetLast? LastTarget? WaitTargetLast?

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

TargetLast? LastTarget? WaitTargetLast?

Post by canabisman »

Im trying to create a HotKey to Cast paralyze in the lasttarget(player)

making my autoload and in the hotkey i put exec CastParalyze

Code: Select all

procedure CastParalyze;
begin
 WaitTargetLast;
 Cast('Paralyze');
end;
And i tried like this too:

Code: Select all

procedure CastParalyze;
begin
 Cast('Paralyze');
 TargetToObject(LastTarget)
end;

Why this procedure is not working?

Thank you...
nepopus
Novice
Novice
Posts: 121
Joined: 29.02.2012 23:45
Location: Москва
Contact:

Re: TargetLast? LastTarget? WaitTargetLast?

Post by nepopus »

1. run this script file in main stealth window. does it contain errors?
2. try to run this procedure from "Script" -> "Load" -> "CastParalyze" -> "Run function". Is it ok?

i didn't get errors in your code and macro works fine from hotkey "exec CastParalyze" with WaitTargetLast.
<( o_O<) <( O_O )> (>O_o )>
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Re: TargetLast? LastTarget? WaitTargetLast?

Post by canabisman »

wtf here didnt work, it does not cast
canabisman
Neophyte
Neophyte
Posts: 22
Joined: 04.09.2008 5:38

Re: TargetLast? LastTarget? WaitTargetLast?

Post by canabisman »

here it worked tih

Code: Select all

procedure CastParalyze;
begin
 Cast('Paralyze');
 WaitForTarget(1000);
 TargetToObject(LastTarget)
end;
Post Reply