poisoning armed weapon

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
cilginprof
Posts: 3
Joined: 2005-01-23 02:01:27

poisoning armed weapon

Post by cilginprof »

i am new at injection, there is no eng. tutorial functions and commands,
so it is hard to learn,
firstly is there any doc. url eng. about functions and commands,
second
i did not understand targeting anything that i have serial ,type and layer,

where is the problem on that script or how can you get better simple this script.

thanks for your help

sub posi()
var weapon
var wpntype
wpntype=0
Weapon=UO.ObjAtLayer('Rhand')
If weapon<>"" Then
wpntype=UO.GetGraphic(Weapon)
uo.usetype (0x0f0a,0x000)
while not UO.Targeting()
wait(50)
wend
uo.print(UO.GetSerial('lasttargetkey'))
uo.print(weapon)
uo.target(UO.GetSerial('lasttargetkey'),weapon,0,wpntype)
Endif
end sub
CFA
Posts: 64
Joined: 2006-02-03 06:53:36

Re: poisoning armed weapon

Post by CFA »

Code: Select all

sub posi()
    weapon = uo.ObjAtLayer('Rhand')
    if (Weapon <> '') then
        uo.WaitTargetObject(weapon)
        uo.UseType('0x0f0a','0x000')
    end if
end sub
Post Reply