Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

lockpicking
#1

is there a macro out for injection?
#2

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.
#3

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 Smile
#4

hmm doesn't seem to be working, I keep getting "you can't unlock that"
#5

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..
#6

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
#7

why not use Easy uo...so much easier to script with
#8

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
#9

ya for some reason i cant understand injection at all but easy uo i can..wierd


Forum Jump:


Users browsing this thread: 2 Guest(s)