Calculating Distance and Delay

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Azt
Posts: 43
Joined: 2007-09-03 16:31:57

Calculating Distance and Delay

Post 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
Rivory
Posts: 205
Joined: 2005-01-06 11:49:28

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

Post 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 забыл ;)
Azt
Posts: 43
Joined: 2007-09-03 16:31:57

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

Post 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
Azt
Posts: 43
Joined: 2007-09-03 16:31:57

Post 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
Post Reply