ScriptUO
Scripting Resources & Utilities => UOSteam => UOSteam scripts => Topic started by: PauseBreak on June 14, 2015, 06:04:26 PM
-
hey guys. Long time lurker.
I use lists as most people do for the use of rune locations for my lumberjack script. My question is when I break out of my for loop how do I get it to recall to the last location in the list? as it stands now. when I break due to weight check or hatchet check.. i will return to my secure, and then start the rune list over again from the first location..
-
hey guys. Long time lurker.
I use lists as most people do for the use of rune locations for my lumberjack script. My question is when I break out of my for loop how do I get it to recall to the last location in the list? as it stands now. when I break due to weight check or hatchet check.. i will return to my secure, and then start the rune list over again from the first location..
I don't know how to script but wouldn't you save the list location as a variable before recalling home? Then use the same variable to return? I hope someone else can be of more assistance.
-
a push list of Treebook
a pust list of Runes
for 0 to 'TreeBook'
for 0 to 'Runes'
//this part to trees
useobject TreeBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
pause 1500
//to recall back to drop off spot and wait till your ready to start it back up
if @injournal 'pause'//<-------- type pause push enter
while @findtype 0x1bdd 'any' 'backpack'
useobject 'LeftHand'
waitfortarget 1000
target! 'found'
pause 500
endwhile
useobject 'Home'
waitforgump 0x554b87f3 15000
replygump 0x554b87f3 5
pause 1500
organizer 'R LJ'
while organizing
pause 5000
if not organizing
break
endif
endwhile
useskill "Hiding"
while not @injournal 'go' // this is the wait part
pause 10000
if injournal 'go' //type go hit enter and starts back up
clearjournal
break
endif
endwhile
useobject TreeBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
pause 1000
endif
//this part to home bag
useobject 'Homebook'
waitforgump 0x554b87f3 5000 //<----- the replygump maybe dif on your shard
replygump 0x554b87f3 5 //<----- the replygump maybe dif on your shard
pause 1500
//this part back to last tree
useobject TreeBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
pause 1500
endfor
endfor
hope that clears it up
-
been a long time since I checked this. Good Idea.
What I did was put the iterations inside of a weight and stock check..
for 0 to 'Runes'
if not @findtype 0xf43 'any' 'self' or weight >= 550
//*******ORGANIZE*********\\
useobject! 'Home_Runebook'
waitforgump 0x74e9ffa1 15000
replygump 0x74e9ffa1 7
sysmsg 'Home' 33
pause 1250
Once organize / restock is completed it moves onto the next location.
useobject! Runebooks[0]
waitforgump 0x74e9ffa1 15000
replygump 0x74e9ffa1 Runes[]
sysmsg 'Rune Location' 33
sysmsg Runes[] 33
pause 1500
if @injournal 'location is blocked' 'system'
clearjournal
pause 1500
sysmsg 'Location Break!' 33
break
endif
and if anything pops an if statement like blocked location or another weight or restock check. It Breaks out of the loop, restocks then progresses with the next set.. so yea I guess to sum it up the answere is for 0 - Runes [] <-- the [] is key. :D