Yoko

All sides of Injection
It is currently 2025-12-20 07:47:07

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Problem with get target
PostPosted: 2004-11-04 05:43:10 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
var check = 0
repeat
Uo.Press(80)#target next
hp = uo.GetHP("laststatus")
IF hp <= 0 THEN
UO.DeleteJournal()
IF UO.GetDistance("laststatus") <=1 THEN
serial = UO.GetSerial("laststatus")
#UO.Say(",set lasttarget " + serial)
#UO.Target("laststatus")
repeat
uo.waittargetlast()
uo.exec ("usetype bandage")
wait(4000)
until UO.InJournal("cliloc# 0xADD7")
check = 1
END IF
END IF
UO.DeleteJournal()
wait(100)
Until check > 0

i made this script that automatic ress ghost's player that are near my pg (max 1 tile of distance), but i have a problem with targeting..
infact remain always the last manual target i used.. i tried UO.Say(",set lasttarget " + serial) and UO.Target("laststatus") but it doesn't seem to work. any help?

thanks


Top
   
 Post subject:
PostPosted: 2004-11-04 07:35:57 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
UO.Say(",set lasttarget " + serial)

Hmmm... Great string! :lol:


UO.Set('lasttarget', serial)


Top
   
 Post subject:
PostPosted: 2004-11-05 06:29:14 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
great or not, it doesn't work ;)


Top
   
 Post subject:
PostPosted: 2004-11-05 07:29:55 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
TWI id on?


Top
   
 Post subject:
PostPosted: 2004-11-05 19:24:23 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
yes :(


Top
   
 Post subject:
PostPosted: 2004-11-06 15:01:08 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
ok i solved with :
UO.Target("0x0004CC92",serial)

;)


Top
   
 Post subject:
PostPosted: 2004-12-24 14:45:26 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
i have a problem with another script but the topic is the same.. so i prefer to reply here..

i have the serial ofmy new target with this command:
new_target = UO.GetSerial('laststatus')
now i want to set this serial my lasttarget..
UO.Set('lasttarget', new_target)

if i use the client macro "attacklast" or "cast flamestrike - waitfortarget - lasttarget" i hit the target before this one
if i put this command just after my script:
UO.Cast('Flamestrike,"lasttarget")
i cast the flamestrike on my new target..

How can i pass the injection 's lasttarget to my client?


Top
   
 Post subject:
PostPosted: 2004-12-25 22:15:10 
Offline

Joined: 2004-05-09 19:53:49
Posts: 58
no way?


Top
   
 Post subject:
PostPosted: 2004-12-25 22:35:51 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
no way


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


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