invalid serial index

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
mordred
Posts: 3
Joined: 2004-08-17 03:53:24

invalid serial index

Post by mordred »

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
SeeK-n-DeSTroY
Posts: 15
Joined: 2004-05-22 21:10:12

Post by SeeK-n-DeSTroY »

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
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post by Lord Ruslan Nightmare »

wrong!
You must call waittarget* BEFORE cast, use, or something else what requires target
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

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")
Post Reply