Yoko http://forum.yoko.com.ua/ |
|
Challenging Script http://forum.yoko.com.ua/viewtopic.php?f=17&t=14695 |
Page 1 of 1 |
Author: | Zamber [ 2009-04-12 16:02:25 ] |
Post subject: | Challenging Script |
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 |
Author: | knicholes [ 2009-05-18 21:31:26 ] |
Post subject: | |
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") |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |