Challenging Script

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Zamber
Posts: 9
Joined: 2009-04-09 14:09:07

Challenging Script

Post 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
knicholes
Posts: 9
Joined: 2004-05-16 00:08:59
Location: Utah
Contact:

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