Yoko
http://forum.yoko.com.ua/

Calculating Distance and Delay
http://forum.yoko.com.ua/viewtopic.php?f=17&t=12420
Page 1 of 1

Author:  Azt [ 2007-09-06 12:38:03 ]
Post subject:  Calculating Distance and Delay

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

Author:  Rivory [ 2007-09-07 15:34:20 ]
Post subject: 

Code:
sub Cast()
var range = '15'
var cast = 'Magic Arrow'
if uo.getdistance('lasttarget') < range then
  uo.cast (cast,'lasttarget')
end if
end sub

Author:  Scripts Writer [ 2007-09-07 15:36:14 ]
Post subject: 

Rivory wrote:
Code:
var range = '15'
var cast = 'Magic Arrow'
if uo.getdistance('lasttarget') < range then
  uo.cast (cast,'lasttarget')
end if
end sub


sub забыл ;)

Author:  Azt [ 2007-09-08 12:13:05 ]
Post subject: 

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

Author:  Scripts Writer [ 2007-09-08 19:44:57 ]
Post subject: 

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

Author:  Azt [ 2007-09-09 13:03:20 ]
Post subject: 

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/