Yoko

All sides of Injection
It is currently 2026-01-16 11:00:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: invalid serial index
PostPosted: 2004-08-17 03:58:24 
Offline

Joined: 2004-08-17 03:53:24
Posts: 3
recently i'm getting this message when I'm casting spell on combat.
I use this script for casting some spells:

sub Harm()
if UO.Count("0x1F38")>0 then
UO.Exec("usetype 0x1F38")
UO.Exec("waittargetlast")
else
UO.Print("No pergas PKT!!")
UO.Exec("cast Harm last")
end if
end sub

and the others spells are in the hoytkeys menu. if anyone knows what am I doing wrong please tell me :D


Top
   
 Post subject:
PostPosted: 2004-08-17 10:43:56 
Offline

Joined: 2004-05-22 21:10:12
Posts: 15
When you type UO.Exec("cast Harm last") Injection understand cast Harmlast.. but Harmlast does not exist.

I noticed that you use frequently UO.Exec.
This way Injection inits a new process and the problems are various.
Try this script:

sub Harm()
if UO.Count("0x1F38")>0 then
UO.useType("0x1F38")
UO.waitTargetLast
else
UO.Print("No pergas PKT!!")
UO.Cast("Harm","last")
end if
end sub


Top
   
 Post subject:
PostPosted: 2004-08-17 17:39:08 
Offline
Expert!

Joined: 2004-04-25 11:11:07
Posts: 359
wrong!
You must call waittarget* BEFORE cast, use, or something else what requires target

_________________
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...


Top
   
 Post subject:
PostPosted: 2004-08-17 21:24:00 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
you must understand that Last in injection and Last Target in client is a different things. in injection LastTarget is ONLY that item you targeted by circle cursor in client. If you used macro Target Next you must use laststatus object pointer, e.g. uo.cast("Harm","laststatus")


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited