Unhandled exception in parser

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

Unhandled exception in parser

Post 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 :(
Lord Ruslan Nightmare
Expert!
Posts: 359
Joined: 2004-04-25 11:11:07
Contact:

Post by Lord Ruslan Nightmare »

noone knows, why parser shows this error. Check out your arrys and indices for them.
Без труда не выловишь и рыбку из пруда,
А без пруда не выловишь её и с трудом...
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

Post by Sauza »

In my script i dont have a Array , i onlye have IF/ENDIF.
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

Post by Sauza »

Come ON i need help!! :cry: :cry:
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

so post it, why don't you done this from beginning?
Thdin
Posts: 51
Joined: 2004-07-22 07:37:37

Post by Thdin »

Yes. A parser error depends on what you've scripted. We have to SEE the script to spot out the error :P
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

Post 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

Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post 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.
Judic
Posts: 11
Joined: 2004-07-28 17:13:36

Post 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.
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

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