Page 1 of 1

Problems with one comand [English plz]

Posted: 2006-05-17 20:05:07
by Knight1106
Well, it was functioning normal for so much time and i don't know why when i use goto apears this problem... it didn't apears before and i don't know what I modified.

Can someone help me plz ?
Image

Sorry for my english and plz try to help me !

Posted: 2006-05-17 20:25:23
by Scripts Writer
I can have a mistake, but i think because that's something about this:

Code: Select all

sub main()
  ...
  main()
end sub


Why not :

Code: Select all

while 1
wend

or

Code: Select all

while not uo.Dead()
wend

Posted: 2006-05-17 20:45:02
by DerMeister =)
Маст, рекурсию ведь вроде можно использовать...
Наверно у него метка cicle 2 раза используется либо инжект глючит.
Скорее всего именно инжект...
ЗЫ: В английском не силен, переводите =)

P.S: Try reinstall injection (maybe your injection.xml is corrupted)
P.P.S: Use the latest version of injection.dll

Posted: 2006-05-17 21:05:54
by Edred
Рекурсию без проблем можно использовать только до 100 раз. Потом могут полезть глюки. Конечно, еще и от размера памяти зависит, рекурсия в инжекте жрет память как оглашенная, но 100 раз - надежно.

Posted: 2006-05-17 21:08:20
by Edred
Knight1106

Please, post to the forum your file with scripts.

PS (russian): Там еще wait(1) виден, прикольная команда...

Posted: 2006-05-18 00:14:23
by Knight1106
DerMeister =) wrote:Маст, рекурсию ведь вроде можно использовать...
Наверно у него метка cicle 2 раза используется либо инжект глючит.
Скорее всего именно инжект...
ЗЫ: В английском не силен, переводите =)

P.S: Try reinstall injection (maybe your injection.xml is corrupted)
P.P.S: Use the latest version of injection.dll


i understood only the "PS", soh I tried to reinstall injection and nothing, the problem persists.

Am I using an old version ? i think that my injection is up to date, isn't it ?

Posted: 2006-05-18 01:14:46
by Knight1106
sub FzPlate()
uo.cancelmenu()
uo.addtype('Random')
while uo.targeting()
wait(20)
wend
repeat
uo.deletejournal()
uo.waitmenu('Blacksmithing','Armor','Armor','Gauntlets')
uo.usetype('Random')
while not uo.injournal('You put') and not uo.injournal('errou')
wait(20)
wend
until uo.injournal('You put')
repeat
uo.deletejournal()
uo.waitmenu('Blacksmithing','Armor','Armor','Arms')
uo.usetype('Random')
while not uo.injournal('You put') and not uo.injournal('errou')
wait(20)
wend
until uo.injournal('You put')
repeat
uo.deletejournal()
uo.waitmenu('Blacksmithing','Armor','Armor','Legs')
uo.usetype('Random')
while not uo.injournal('You put') and not uo.injournal('errou')
wait(20)
wend
until uo.injournal('You put')
repeat
uo.deletejournal()
uo.waitmenu('Blacksmithing','Armor','Armor','Platemail (26')
uo.usetype('Random')
while not uo.injournal('You put') and not uo.injournal('errou')
wait(20)
wend
until uo.injournal('You put')
repeat
uo.print('Plate feita...')
end sub


Well... After testing several times i discovered that this script is causing that error... I read and read it and didn't find where is the problem!!!
Help me plz

Posted: 2006-05-18 01:16:42
by Knight1106
OMG!!! sorry for the flood but there is the error !!! one "repeat" alone at the last lines!!! I found it while posting !!!

Thanks all that tried to help
Sorry...

Posted: 2006-05-18 05:37:04
by Scripts Writer
Ok. Topic close.