SOLVED Problem with Runebook Lumberjacking macro
Posted: Fri Jun 03, 2016 6:23 pm
Hi everyone,
I tried building a macro that teleports me from tree to tree while gathering the wood and putting it into a key when my weight is too high.
I took the body of a script someone else made that uses runebooks to mine from place to place, reference below;
http://www.uogamers.com/community/index ... ds/564098/
I also took a macro that I found that puts regs into a key, so I switched some stuff and now it puts wood into a key, reference below;
http://www.uoex.net/forum/viewtopic.php ... uos#p61117
and made a brand new for lumberjacking with a runebook, I've encountered a couple problems in the making as I am new to macros and all that stuff.
Here are my two problems;
1- When there is no more wood left in the tree, it seems as if the macro skips a rune from time to time and goes to the second one, rather than the next. It gives me the error known as '' replygump : gump id not found''
2- It only seems as if the macro uses the first of the three books I selected in the beginning rather than using all of them.
For the runes that this script uses, I marked runes 1 block East from each tree.
Here is the macro that I made, using UOSteam;
UPDATE : Here is the macro you can use to test on a certain area to determine if it will target the trees correctly. As in some places the macro can't target the trees for a reason that I ignore.
Thanks,
Trithebest
I tried building a macro that teleports me from tree to tree while gathering the wood and putting it into a key when my weight is too high.
I took the body of a script someone else made that uses runebooks to mine from place to place, reference below;
http://www.uogamers.com/community/index ... ds/564098/
I also took a macro that I found that puts regs into a key, so I switched some stuff and now it puts wood into a key, reference below;
http://www.uoex.net/forum/viewtopic.php ... uos#p61117
and made a brand new for lumberjacking with a runebook, I've encountered a couple problems in the making as I am new to macros and all that stuff.
Here are my two problems;
1- When there is no more wood left in the tree, it seems as if the macro skips a rune from time to time and goes to the second one, rather than the next. It gives me the error known as '' replygump : gump id not found''
2- It only seems as if the macro uses the first of the three books I selected in the beginning rather than using all of them.
For the runes that this script uses, I marked runes 1 block East from each tree.
Here is the macro that I made, using UOSteam;
Code: Select all
if not @findobject 'OreBookOne'
promptalias 'OreBookOne'
endif
if not @findobject 'OreBookTwo'
promptalias 'OreBookTwo'
endif
if not @findobject 'OreBookThree'
promptalias 'OreBookThree'
endif
if not listexists 'OreBook'
createlist 'OreBook'
pushlist 'OreBook' 'OreBookOne'
pushlist 'OreBook' 'OreBookTwo'
pushlist 'OreBook' 'OreBookThree'
endif
if not listexists 'Runes'
createlist 'Runes'
pushlist 'Runes' 7
pushlist 'Runes' 17
pushlist 'Runes' 27
pushlist 'Runes' 37
pushlist 'Runes' 47
pushlist 'Runes' 57
pushlist 'Runes' 67
pushlist 'Runes' 77
pushlist 'Runes' 87
pushlist 'Runes' 97
pushlist 'Runes' 107
pushlist 'Runes' 117
pushlist 'Runes' 127
pushlist 'Runes' 137
pushlist 'Runes' 147
pushlist 'Runes' 157
endif
For 0 to 'OreBook'
For 0 to 'Runes'
useobject OreBook[]
waitforgump 0x554b87f3 5000
replygump 0x554b87f3 Runes[]
//tells you which rune you are on, see runelist above
sysmsg 'Rune' 33
sysmsg Runes[] 33
if @injournal 'This book needs time'
pause 3000
endif
pause 500
clearjournal
pause 2500
while not @injournal 'enough wood here'
//use pickaxe to northern tile until specified weight is reached
pause 300
useobject 'LeftHand'
waitfortarget 1000
targettileoffset -1 0 0
// once weight is reached go home, if getting overweight, lower it
if 'weight' > 400
pause 1500
//============================================================
//=------------------Opens Woodworker's Keys----------------=
//============================================================
if not @findtype! '0x176b' '88' 'backpack'
sysmsg '*****No Keys*****' '88'
stop
else
@usetype! '0x176b' '88' 'backpack'
waitforgump 173511501 15000
replygump 0xa57934d 17
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Normal Logs and Puts in Keys---------=
//==============================================================
if not @targettype! '0x1bdd' '0'
else
@targettype! '0x1bdd' '0'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Pine Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '1262'
else
@targettype! '0x1bdd' '1262'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Ash Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '961'
else
@targettype! '0x1bdd' '961'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Mahogany Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '355'
else
@targettype! '0x1bdd' '355'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Yew Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '1281'
else
@targettype! '0x1bdd' '1281'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Oak Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '488'
else
@targettype! '0x1bdd' '488'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Zircote Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '1271'
else
@targettype! '0x1bdd' '1271'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------------Checks for Ebony Logs and Puts in Keys----------=
//==============================================================
if not @targettype! '0x1bdd' '43'
else
@targettype! '0x1bdd' '43'
waitfortarget '5000'
pause 600
endif
//==============================================================
//=------Checks for Purple Heart Logs and Puts in Keys---------=
//==============================================================
if not @targettype! '0x1bdd' '114'
replygump 0x68557d42 0
sysmsg '*****No Logs*****' '88'
@canceltarget
else
@targettype! '0x1bdd' '114'
waitfortarget '5000'
pause 600
endif
endif
endwhile
pause 1500
endfor
Code: Select all
useobject 'LeftHand'
waitfortarget 1000
targettileoffset -1 0 0
Trithebest