Yoko

All sides of Injection
It is currently 2025-11-11 12:11:06

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: last attack script..
PostPosted: 2007-06-02 15:28:58 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
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.


Top
   
 Post subject:
PostPosted: 2007-06-02 19:09:15 
Offline

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


Top
   
 Post subject:
PostPosted: 2007-06-02 21:53:40 
Offline

Joined: 2005-04-13 16:01:09
Posts: 48
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 ;:)


Top
   
 Post subject:
PostPosted: 2007-06-03 08:49:20 
Offline

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


Top
   
 Post subject:
PostPosted: 2007-06-07 15:23:24 
Offline
Expert!
User avatar

Joined: 2005-05-20 20:30:10
Posts: 548
hotkey:
Code:
attack "lastattack"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited