Page 1 of 1
Unhandled exception in parser
Posted: 2004-08-06 04:13:49
by Sauza
When I run a script for long time appears this Error: "unhandled exception in parser "
Any help?? I search in the forum but all is in russian

Posted: 2004-08-06 08:45:20
by Lord Ruslan Nightmare
noone knows, why parser shows this error. Check out your arrys and indices for them.
Posted: 2004-08-06 22:26:47
by Sauza
In my script i dont have a Array , i onlye have IF/ENDIF.
Posted: 2004-08-09 19:57:55
by Sauza
Come ON i need help!!

Posted: 2004-08-10 14:39:26
by Yoko
so post it, why don't you done this from beginning?
Posted: 2004-08-10 20:33:27
by Thdin
Yes. A parser error depends on what you've scripted. We have to SEE the script to spot out the error

Posted: 2004-08-11 03:31:29
by Sauza
Sorry, here is the script
Code: Select all
sub robar()
robar:
uo.useskill('Stealing')
uo.waittargetobject('0x00143537')
wait(1000)
goto robar
end sub
sub tirar()
uo.print('<< Tirador de Monedas: Loaded... >>')
inicio:
uo.findtype('0x0EED')
if uo.getquantity('finditem')>=100 then
uo.print('<< Muchas Monedas, Freeing... >>')
uo.moveitem('finditem',-1,'0x4013E631')
else
uo.print('<< Pocas Monedas, Waiting... >>')
end if
wait(10000)
goto inicio
end sub
sub comer()
uo.print('<< Comer Manzanas: Loaded... >>')
comer:
uo.findtype('0x09D0',-1,'ground')
uo.print('<< Comiendo... >>')
uo.useobject('finditem')
wait(500000)
goto comer
end sub
Posted: 2004-08-11 11:25:04
by Edred
Sauza wrote:Sorry, here is the script
Code: Select all
sub robar()
robar:
uo.useskill('Stealing')
uo.waittargetobject('0x00143537')
wait(1000)
goto robar
end sub
You must use UO.Waittargetobject BEFORE UO.Useskill.
Posted: 2004-08-11 14:26:32
by Judic
Actually this error can refer not only to current executing script, but to another one in loaded file. I had a file with several scripts and the same error appeared. I check the current script and find no mistakes, then I copy that script alone to separated file, load it and the error gone.
Posted: 2004-08-11 22:40:39
by Sauza
Edred wrote:Sauza wrote:Sorry, here is the script
Code: Select all
sub robar()
robar:
uo.useskill('Stealing')
uo.waittargetobject('0x00143537')
wait(1000)
goto robar
end sub
You must use UO.Waittargetobject BEFORE UO.Useskill.
If i delete that part of the script the error appear again after 10 minutes. =(=(