| Yoko http://forum.yoko.com.ua/ |
|
| Item Id? http://forum.yoko.com.ua/viewtopic.php?f=17&t=15725 |
Page 1 of 1 |
| Author: | mirre [ 2010-04-29 22:56:25 ] |
| Post subject: | Item Id? |
I need an Item Identification script that itemid a rune place in runebook then again out from runebook and repeat. I have already a script but it fails when i get messagne "Im not sure" then the runebooks opens up without the rune and the script cannot continue to work. Please help!! Quote: sub main()
while UO.life > 0 Var rune='0x1F14' VAR runebook ='0x41efe022' start: UO.Useskill('Item Identification') UO.waittargettype(rune) wait(500) If UO.InJournal("Im not sure") then #this doenst works as I like it, script fails!!! wait(8100) goto start Endif goto start1 start1: IF uo.lastmessage()=="This is a normal item." then UO.DeleteJournal() UO.FindType(rune) UO.MoveItem('finditem',0,runebook) wait(500) End if goto start2 start2: UO.LClick(143,499) wait(1000) UO.LClick(350,16) wait(1000) UO.LClick(69,119) wait(1000) goto start wend end sub |
|
| Author: | Beyonder [ 2010-04-30 08:14:45 ] |
| Post subject: | Re: Item Id? |
You'd better used a loop checking the journal, not one "if" statement. Like this: Code: while not UO.InJournal('...')Or a more complex way - with a timeout: Code: var timeLeft |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|