Page 1 of 1

Challenging Script

Posted: 2009-04-12 16:02:25
by Zamber
this one is a challenging Script, i beleave it's almost impossible, i guess.

It's a Snooping/Stealing Script
it's necessary to 2x click a glove, that gives a target so u click a npc to snoop, if succesfull a backpack will open, and u can use the skill stealing each 3 seconds to get an item inside this bag.

I've tryed to write something.
Can someone help me?

At this moment the injection acuse an error at the line uo.useskill('Stealing')

sub snoopsteal()
uo.deletejournal()
inicio:
wait(80)
if uo.injournal("you successfully open the backpack") then
goto Steal
uo.deletejournal()
end if

wait(80)
if uo.injournal("You have successfully stolen the item") then
goto Steal
uo.deletejournal()
end if


wait(80)
if uo.injournal("You are noticed snooping in the backpack") then
goto Snoop
uo.deletejournal()
end if

Snoop:
uo.waittargettype('0x0191')
uo.usetype('0x13C6)
wait(1000)

Steal:
UO.findtype('-1', '-1', 'lastcontainer')
uo.addobject('aleatorio', 'finditem')
uo.waittargettype('aleatorio')
uo.useskill('Stealing')
goto inicio
end sub

Posted: 2009-05-18 21:31:26
by knicholes
Your UO.DeleteJournal() calls aren't being called because they're after the goto. Gotos are sloppy.

Also, just do uo.exec("useskill Stealing lasttarget")