Page 1 of 1

TargetLast? LastTarget? WaitTargetLast?

Posted: 18.06.2012 9:04
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...

Re: TargetLast? LastTarget? WaitTargetLast?

Posted: 18.06.2012 10:06
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.

Re: TargetLast? LastTarget? WaitTargetLast?

Posted: 18.06.2012 14:33
by canabisman
wtf here didnt work, it does not cast

Re: TargetLast? LastTarget? WaitTargetLast?

Posted: 18.06.2012 14:43
by canabisman
here it worked tih

Code: Select all

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