lumberjacking script
Posted: March 4th, 2018, 12:40 pm
looking for good script for luberjacking
A Mondain's Legacy era Ultima Online freeshard.
https://www.uogdemise.com/community/
https://www.uogdemise.com/community/viewtopic.php?f=10&t=20619
Code: Select all
useobject 'Axe'
pause 1500
targettileoffset -1 0 0
Code: Select all
//Author: Experience
//Title: Recalling Lumberjack
//Description: Recalling Lumberjack. Must have a Double Axe.
//You will need a book with the default rune marked right next to your wood storage.
//All Books must have 16 runes to run properly!!
//To add more books simply add 'Wood4' findalias and to pushlist
removelist 'Runes'
removelist 'WoodBook'
@clearjournal
if not @findalias 'Wood Storage'
promptalias 'Wood Storage'
endif
if not @findobject 'Wood1r'
promptalias 'Wood1r'
endif
if not @findobject 'Wood2r'
promptalias 'Wood2r'
endif
if not @findobject 'Wood3r'
promptalias 'Wood3r'
endif
if not @findobject 'HomeWoodr'
promptalias 'HomeWoodr'
endif
if not listexists 'WoodBook'
createlist 'WoodBook'
endif
if list 'WoodBook' == 0
pushlist 'WoodBook' 'Wood1r'
pushlist 'WoodBook' 'Wood2r'
pushlist 'WoodBook' 'Wood3r'
endif
if @findtype '0xf4b' 'any' 'backpack' 'any' '2' or findlayer 'self' '2'
setalias 'Axe' 'found'
headmsg 'Axe Found'
else
headmsg 'No Axe Found'
pause 800
endif
if not listexists 'Runes'
createlist 'Runes'
endif
if list 'Runes' == 0
pushlist 'Runes' 5
pushlist 'Runes' 11
pushlist 'Runes' 17
pushlist 'Runes' 23
pushlist 'Runes' 29
pushlist 'Runes' 35
pushlist 'Runes' 41
pushlist 'Runes' 47
pushlist 'Runes' 53
pushlist 'Runes' 59
pushlist 'Runes' 65
pushlist 'Runes' 71
pushlist 'Runes' 77
pushlist 'Runes' 83
pushlist 'Runes' 89
pushlist 'Runes' 95
endif
for 0 to WoodBook
for 0 to 'Runes'
pause 500
@clearjournal
pause 500
useobject WoodBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
pause 4000
if injournal 'blocked' 'system'
@clearjournal
replay
endif
//tells you which rune you are on, see runelist above
sysmsg 'Rune' 33
sysmsg Runes[] 33
pause 2500
while not @injournal 'not enough wood here' 'system'
if not @findlayer 'self' '2'
equipitem 'Axe' '2'
pause 1000
endif
//use axe to WESTERN tile until specified weight is reached
pause 500
useobject 'Axe'
pause 1500
targettileoffset -1 0 0
pause 1000
msg 'Guards'
pause 1000
if @findtype '0x1bdd' 'any' 'backpack' 'any' 'any'
@setalias 'Logs' 'Found'
useobject 'Axe'
autotargetobject 'Logs'
pause 1000
endif
// once weight is reached go home, if getting overweight, lower it
if weight > '320'
useobject 'HomeWoodr'
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 5
pause 2500
//put up Wood
//while @findtype '0x1bdd' 'any' 'backpack' 'any' '2'
// moveitem 'found' 'Wood Storage'
// pause 1000
// Organizer approach //
organizer 'Lumberjack'
while organizing
endwhile
//endwhile
//recall back to where you were
useobject WoodBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
pause 2000
endif
endwhile
endfor
poplist 'Runes' 'front'
endfor
//recall home so Wood container is found
pause 1000
cast 'recall'
autotargetobject 'HomeWood'
pause 4000
poplist 'WoodBook' 'front'