Posts: 813
Threads: 33
Joined: Feb 2012
is there a macro out for injection?
Posts: 66
Threads: 10
Joined: Feb 2012
I got you covered bud.
Code:
sub Lockpicking()
While UO.SkillVal("Lockpicking") < 1000
uo.exec("usetype LOCKPICKTYPEHERE")
uo.waittargetobject("box")
wait(4500)
uo.exec("useobject 'key'")
wait(500)
uo.waittargetobject("box")
wend
end sub
,addobject box (target your lockbox)
,addobject key (target the key inside the lockbox)
I wrote this at work, so I don't have the lockpick object type off hand. You'll have to ,info it and enter it yourself. I wrote this up tonight for myself before leaving for work.
(This post was last modified: 04-11-2012, 01:51 PM by
Xyn.)
Posts: 813
Threads: 33
Joined: Feb 2012
Xyn Wrote:I got you covered bud.
Code:
sub Lockpicking()
While UO.SkillVal("Lockpicking") < 1000
uo.exec("usetype LOCKPICKTYPEHERE")
uo.waittargetobject("box")
wait(4500)
uo.exec("useobject 'key'")
wait(500)
uo.waittargetobject("box")
wend
end sub
,addobject box (target your lockbox)
,addobject key (target the key inside the lockbox)
I wrote this at work, so I don't have the lockpick object type off hand. You'll have to ,info it and enter it yourself. I wrote this up tonight for myself before leaving for work.
yeah np, thanks bro
Posts: 813
Threads: 33
Joined: Feb 2012
hmm doesn't seem to be working, I keep getting "you can't unlock that"
Posts: 287
Threads: 10
Joined: Dec 2011
Thats because injection isn't supposed to use targets like that... It's:
Target
Action
Targets in injection work this way. You set it, then next action will be used on it...
Imagine a nuclear missle. You have to set the destination point first, only then you launch it. Wouldn't make much sense to do it way around. Or well, try to open a door with a key without an idea where keyhole is...
Quote:uo.exec("useobject 'key'")
wait(500)
uo.waittargetobject("box")
Here you even let it wait 500ms before setting actual target.. Why?
wait(500)
uo.waittargetobject("box")
uo.exec("useobject 'key'")
That is how these three lines should look. And time delays aren't really reliable, better check journal, very few commands to learn actually..
Posts: 813
Threads: 33
Joined: Feb 2012
Gang Wrote:Thats because injection isn't supposed to use targets like that... It's:
Target
Action
Targets in injection work this way. You set it, then next action will be used on it...
Imagine a nuclear missle. You have to set the destination point first, only then you launch it. Wouldn't make much sense to do it way around. Or well, try to open a door with a key without an idea where keyhole is...
Here you even let it wait 500ms before setting actual target.. Why?
wait(500)
uo.waittargetobject("box")
uo.exec("useobject 'key'")
That is how these three lines should look. And time delays aren't really reliable, better check journal, very few commands to learn actually..
I know i fixed that, but it's not locking the box or it's doing it at the wrong time or something that's why it's not registering and saying the you can't unlock that it still doesn't work even with the thing you said
Posts: 167
Threads: 7
Joined: Feb 2012
why not use Easy uo...so much easier to script with
Posts: 287
Threads: 10
Joined: Dec 2011
Mael Wrote:why not use Easy uo...so much easier to script with
It's really easy with injection as well if you know what you're doing though xd
Posts: 167
Threads: 7
Joined: Feb 2012
ya for some reason i cant understand injection at all but easy uo i can..wierd