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!!
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
var timeLeft
....
timeLeft = 5000 #Max time is 5 seconds
while (not UO.InJournal('...')) and (timeLeft > 0)
wait(100)
timeLeft = timeLeft - 100
wend
if (timeLeft > 0) then #If we found a line in journal
goto start1 #goto next step
else
goto start #otherwise - goto start, somewhy we got no message in journal
endif