Page 1 of 1
Calculating Distance and Delay
Posted: 2007-09-06 12:38:03
by Azt
Hi, I need a casting script that calculates the distance, for example if my target is IN casting range Injection do last target, but if my target is out the casting range, Injection KEEPS the target...
And a question, somebody knows the delay in ms of a mage with Faster Cast 2 and Fast Casting Recovery 6??? tnx
Posted: 2007-09-07 15:34:20
by Rivory
Code: Select all
sub Cast()
var range = '15'
var cast = 'Magic Arrow'
if uo.getdistance('lasttarget') < range then
uo.cast (cast,'lasttarget')
end if
end sub
Posted: 2007-09-07 15:36:14
by Scripts Writer
Rivory wrote:Code: Select all
var range = '15'
var cast = 'Magic Arrow'
if uo.getdistance('lasttarget') < range then
uo.cast (cast,'lasttarget')
end if
end sub
sub забыл

Posted: 2007-09-08 12:13:05
by Azt
I need that you have already the taget...
I cast... if the target is in range ---- > last target
if the target isn't in range -----> keep the target
Posted: 2007-09-08 19:44:57
by Scripts Writer
Azt wrote:I need that you have already the taget...
I cast... if the target is in range ---- > last target
if the target isn't in range -----> keep the target
Keep a target you can only with uo.target(). Look help
Posted: 2007-09-09 13:03:20
by Azt
Scripts Writer wrote:Azt wrote:I need that you have already the taget...
I cast... if the target is in range ---- > last target
if the target isn't in range -----> keep the target
Keep a target you can only with uo.target(). Look help
yes but "keep the target" is for example when Uo Target Cursor remains