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

last attack script..
http://forum.yoko.com.ua/viewtopic.php?f=17&t=12021
Page 1 of 1

Author:  motxu [ 2007-06-02 15:28:58 ]
Post subject:  last attack script..

imagine im attacking someone. Then he paralizes me and i have to explode a explosion potion in my pack to desparalize. Then i want to attack again last target...

sub sb()
VAR oppo
uo.addobject ('oppo','lasttarget')
UO.exec ("waittargettype 0x0F0D")
UO.cast ("Magic Arrow")
uo.exec ("waittargetobject 'oppo'")
end sub

Why doesnt that work? :D any help is welcome thanks.

Author:  Rivory [ 2007-06-02 19:09:15 ]
Post subject: 

Code:
sub sb() 
var mana
UO.exec ("waittargettype 0x0F0D")  ##lock the target
mana = uo.mana
UO.cast ("Magic Arrow")     ##cast spell on target
repeat
  wait(50)          ##wait for end of cast
until mana > uo.mana
uo.attack('lasttarget')  ##attack enemy
end sub

Author:  motxu [ 2007-06-02 21:53:40 ]
Post subject: 

nope, u havent understood.
Im attacking someone, imagine its called Asgaroth.
Then i want to explode a exposion potion from my pack using Magic Arrow.
But then i wanna continue casting spells to Asgaroth, get his target again.
I need a macro that doesnt miss Asgaroth's target and also exploses a bomb. Thanks ;:)

Author:  Rivory [ 2007-06-03 08:49:20 ]
Post subject: 

Code:
sub sb() 
var mana,enemy=uo.getserial('lasttarget')
UO.exec ("waittargettype 0x0F0D")  ##lock the target
mana = uo.mana
UO.cast ("Magic Arrow")     ##cast spell on target
repeat
  wait(50)          ##wait for end of cast
until mana > uo.mana
uo.cast('Magic Arrow',enemy)  ##attack enemy
end sub

Author:  Mihail [ 2007-06-07 15:23:24 ]
Post subject: 

hotkey:
Code:
attack "lastattack"

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