Page 1 of 1

"Until uo.injournal...." Problem! plz help me yoko

Posted: 2004-10-17 15:28:51
by Predator di Khars
i'm scripting a macro (very long i think) for my worker whit many subs.

my macro consists to:
1) check save/check weight/check backpack when full/ingots in backpack/ores in backpack ecc. (WORKS - NO PROBLEMS)

2) many recall places in where i'd mine (temporany 6 places) (WORKS - NO PROBLEMS)

3) recall and mine in each place. (DOESN'T WORK DAMN! :P )

4) drop ingots into a secure (WORKS - NO PROBLEMS)

when injection scan all the script to find any bug or error, it says:

line XXX: error parse

in this kind of sub (there are many subs of this kind)

Sub place_1()#################################################
If Uo.Getglobal("p") == "1" then
Wait(700)
check_save()
runebook_1()
next_page()
next_page()
next_page()
DX_page()
Uo.Print('Runa: [MIN] 1')#####################
Wait(4515)####################################
##############################################
End If
Repeat
Wait(200)
Uo.exec('waittargettile 1206 918 1857 27)
mining()
Until uo.injournal('no metal')
Uo.deletejournal()
Uo.setglobal("p") = "2"
End sub


This is the line: Until uo.injournal('no metal')

i tried to change the script, but i don't like this way below, and it still doesn't work!

Sub place_0()#################################################
If Uo.Getglobal("p") == "0" then
Wait(700)
check_save()
runebook_1()
next_page()
next_page()
next_page()
SX_page()
Uo.say('Runa: [MIN] 0')#####################
Wait(4515)####################################
##############################################
End If
If uo.injournal('Runa: [MIN]') then
Uo.deletejournal()
Repeat
Wait(200)
Uo.exec('waittargettile 1206 918 1857 27)
mining()
Until uo.injournal('World save complete')
Uo.deletejournal()
End If
Uo.setglobal("p") = "1"
End sub


i thought the problem was in the mining sub, but i made another script whit "until uo.injournal ecc" and it doesn't work neither, but THIS sub, works:

Sub check_save()##############################################
If uo.injournal('The world will save') then
Repeat
Wait(3000)
Until uo.injournal('World save complete')
Uo.deletejournal()
Wait(5000)
End if
End sub


WHY????!!!!! i don't get it.... plz.... someone helps me i beg u!!!!

tnx

ps: if you want to check all the script i'll posts it right below this 3d :)

Posted: 2004-10-17 20:15:58
by AGRS
Uo.exec('waittargettile 1206 918 1857 27)

-->

Uo.exec('waittargettile 1206 918 1857 27')

Posted: 2004-10-17 22:43:41
by Yoko
i hope problem solved
i do not like to check scripts larger then 5 lines length

Posted: 2004-10-18 21:04:08
by Predator di Khars
i thank u for the help!

im not a scripter PRO, i don't know any language but i like to test myself making my own scripts :)

sorry for the waste of time and for my english too :P