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
Calculating Distance and Delay
Moderators: Murderator+, Murderator
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
-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
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 забыл

-
- Posts: 2259
- Joined: 2005-04-19 18:00:29
- Location: Московская область
- Contact:
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