recall lumberjacking

RAVE GL

Master
need help with a UOsteam script I found and have been trying to edit. No, this is not to afk lumberjack, its just to save me the clicks while I chat, and I can interrupt to kill the spawns that pop up.

Couple things, I can't seem to get it to autoequip an axe of same type. Best I could do was make the macro assign a weapon to equip after recall.

The macro is broken right now, I can't get it to chop the tree after equipping the axe, waiting long enough for the logs to get into the backpack, and then recall to the next spot. It also goes to the drop point premature, before I hit my set weight limit.

anyone have something better?


/////////////////////////////////////

//Script Name: Recall Lumberjacking//

//Author: Prohunter //

//Version: 1.0 //

/////////////////////////////////////

if not @findobject 'BookOne'

promptalias 'BookOne'

endif

if not @findobject 'BookTwo'

promptalias 'BookTwo'

endif

if not @findobject 'BookThree'

promptalias 'BookThree'

endif

if not @findobject 'Home'

promptalias 'Home'

endif

if not listexists 'TreeBook'

createlist 'TreeBook'

pushlist 'TreeBook' 'BookOne'

pushlist 'TreeBook' 'BookTwo'

pushlist 'TreeBook' 'BookThree'

endif

if not listexists 'Runes'

createlist 'Runes'

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 'TreeBook'

For 0 to 'Runes'

//clearjournal

useobject TreeBook[]

waitforgump 0x554b87f3 5000

replygump 0x554b87f3 Runes[]

pause 1500

//while not @injournal 'enough wood here'

pause 300

if not @findobject 'weapon'

sysmsg 'Could not find a weapon.' 25

setalias 'weapon'

stop

endif

if @findobject 'lefthand'

if @findtype 0x1bdd 0x0

useobject lefthand

waitfortarget 1000

targettype 0x1bdd 0x0

pause 11000

endif

else

equipitem 'weapon' 1

endif

if @findtype 0x1bdd 'any' 'backpack'

useobject 'lefthand'

waitfortarget 1000

target 'found'

else

useobject 'lefthand'

waitfortarget 1000

targettileoffset -1 0 0

pause 1000

useobject 'lefthand'

waitfortarget 1000

targettileoffset -1 0 0

pause 1000

endif

// Change this if your getting overweight, Subtract 25

// from your max weight.

if weight > 355

// while @findtype 0x1bdd 'any' 'backpack'

useobject 'lefthand'

waitfortarget 1000

target 'found'

pause 500

endwhile

useobject 'Home'

waitforgump 0x554b87f3 5000

replygump 0x554b87f3 5

pause 1500

organizer 'Boards'

while organizing

pause 500

endwhile

useobject TreeBook[]

waitforgump 0x554b87f3 5000

replygump 0x554b87f3 Runes[]

pause 1500

endif

//endwhile

pause 500

// This drops normal boards 1 tile south of you if you become overweight to prevent the script getting stuck trying to recall.

if weight > maxweight

movetypeoffset 0x1bd7 'backpack' 'ground' 0 1 0 0

pause 1000

//endif

useobject 'Home'

waitforgump 0x554b87f3 5000

replygump 0x554b87f3 5

pause 1500

organizer 'Boards'

while organizing

pause 500

endwhile

endif

endfor

endfor
 
Last edited by a moderator:
This is how I would modify your code.
Code:
/////////////////////////////////////
//Script Name: Recall Lumberjacking//
//Author: Prohunter //
//Version: 1.0 //
/////////////////////////////////////
if not @findobject 'BookOne'
  promptalias 'BookOne'
endif
if not @findobject 'BookTwo'
  promptalias 'BookTwo'
endif
if not @findobject 'BookThree'
  promptalias 'BookThree'
endif
if not @findobject 'Home'
  promptalias 'Home'
endif
if not listexists 'TreeBook'
  createlist 'TreeBook'
  pushlist 'TreeBook' 'BookOne'
  pushlist 'TreeBook' 'BookTwo'
  pushlist 'TreeBook' 'BookThree'
endif
if not listexists 'Runes'
  createlist 'Runes'
  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
if not listexists 'axes'
  createlist 'axes'
  pushlist 'axes' 0xf4b  //Double Axe
  pushlist 'axes' 0xf49  //Axe
  pushlist 'axes' 0xf45  //Executioners Axe
  pushlist 'axes' 0x1443 //Two Handed Axe
  pushlist 'axes' 0xf47  //Battle Axe
  pushlist 'axes' 0x13fb //Large Battle Axe
  pushlist 'axes' 0xf43 //Hatchet
endif
for 0 to 'TreeBook'
  for 0 to 'Runes'
    useobject TreeBook[]
    waitforgump 0x554b87f3 5000
    replygump 0x554b87f3 Runes[]
    pause 1500
    @clearjournal
    for 0 to 'axes'
      if @findtype axes[] 'any' 'backpack' 1
        @setalias 'weapon' 'found'
        @equipitem 'found' 1
        pause 1000
      endif
    endfor
    if not @findobject 'weapon'
      msg 'Could not find a weapon.' 25
      stop
    endif
    if @findtype 0x1bdd 0x0
      @useobject 'weapon'
      waitfortarget 1000
      @targettype! 0x1bdd
      pause 1000
    endif
    while not @injournal 'enough wood here' 'system'
      @useobject 'weapon'
      waitfortarget 1000
      @targettileoffset! -1 0 0
      pause 1000
    endwhile
    if @findtype 0x1bdd
      while @findtype 0x1bdd 'any' 'backpack'
        useobject 'weapon'
        waitfortarget 1000
        @target! 'found'
        pause 500
      endwhile
    elseif weight > maxweight
      while weight > maxweight
        @movetypeoffset 0x1bd7 'backpack' 'ground' 0 1 0 'any' 1
        pause 1000
      endwhile
    endif
    pause 500
    useobject 'Home'
    waitforgump 0x554b87f3 5000
    replygump 0x554b87f3 5
    pause 1500
    @organizer 'Boards'
    while organizing
      pause 500
    endwhile
  endfor
endfor
 
Top