Yoko
http://forum.yoko.com.ua/

Unhandled exception in parser
http://forum.yoko.com.ua/viewtopic.php?f=3&t=1082
Page 1 of 1

Author:  Sauza [ 2004-08-06 04:13:49 ]
Post subject:  Unhandled exception in parser

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 :(

Author:  Lord Ruslan Nightmare [ 2004-08-06 08:45:20 ]
Post subject: 

noone knows, why parser shows this error. Check out your arrys and indices for them.

Author:  Sauza [ 2004-08-06 22:26:47 ]
Post subject: 

In my script i dont have a Array , i onlye have IF/ENDIF.

Author:  Sauza [ 2004-08-09 19:57:55 ]
Post subject: 

Come ON i need help!! :cry: :cry:

Author:  Yoko [ 2004-08-10 14:39:26 ]
Post subject: 

so post it, why don't you done this from beginning?

Author:  Thdin [ 2004-08-10 20:33:27 ]
Post subject: 

Yes. A parser error depends on what you've scripted. We have to SEE the script to spot out the error :P

Author:  Sauza [ 2004-08-11 03:31:29 ]
Post subject: 

Sorry, here is the script

Code:

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


Author:  Edred [ 2004-08-11 11:25:04 ]
Post subject: 

Sauza wrote:
Sorry, here is the script

Code:

sub robar()
robar:
uo.useskill('Stealing')
uo.waittargetobject('0x00143537')
wait(1000)
goto robar
end sub


You must use UO.Waittargetobject BEFORE UO.Useskill.

Author:  Judic [ 2004-08-11 14:26:32 ]
Post subject: 

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.

Author:  Sauza [ 2004-08-11 22:40:39 ]
Post subject: 

Edred wrote:
Sauza wrote:
Sorry, here is the script

Code:

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. =(=(

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/