Page 1 of 1

Logs to boards

Posted: October 15th, 2016, 3:34 am
by Segneal
does any1 have a macro to cut logs into boards?
thx in advance

Re: Logs to boards

Posted: October 15th, 2016, 3:00 pm
by kentares
Razor v1.0.14

Code: Select all

Assistant.Macros.DoubleClickAction|1134592593|3907
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.AbsoluteTargetAction|0|0|1153617480|128|107|0|7133

Re: Logs to boards

Posted: December 27th, 2016, 10:25 am
by Girion
Perhaps anyone got such for UOS ?
I would like to point secured container with logs, to cut part in my backpack and put back to the same secure container.

Re: Logs to boards

Posted: December 28th, 2016, 9:06 am
by Madmarz
Do not press loop button, will run through each color of logs and stop when out

Code: Select all

//Set this as your container with logs
@setalias 'LogRestock' xxxxxxx
//Sets log colors
if not listexists 'LogHue'
  createlist 'LogHue'
endif
if list 'LogHue' == 0
  //Normal
  pushlist 'LogHue' 0
  //Oak
  pushlist 'LogHue' 2010
  //Ash
  pushlist 'LogHue' 1191
  //Yew
  pushlist 'LogHue' 1192
  //Bloodwood
  pushlist 'LogHue' 1194
  //Heartwood
  pushlist 'LogHue' 1193
  //Frostwood
  pushlist 'LogHue' 1151
endif
//Opens Restock
useobject 'LogRestock'
pause 500
for 0 to 'LogHue'
  //Moves logs to backpack
  while counttype 0x1bdd LogHue[] 'LogRestock' > 0
    movetype 0x1bdd 'LogRestock' 'backpack' [(0 0 0)] LogHue[] 200//<<< Change this amount to whatever you want
    pause 1000
    //Chops logs
    if @findtype 0x1bdd LogHue[] 'backpack'
      useobject 'LeftHand'
      waitfortarget 1000
      target! 'found'
      pause 1000
    endif
    //Moves boards back to restock
    if @findtype 0x1bd7 LogHue[] 'backpack' 'any'
      movetype 0x1bd7 'backpack' 'LogRestock' [(0 0 0)] LogHue[] 'any'
      pause 1000
    endif
  endwhile
  if counttype 0x1bdd LogHue[] 'LogRestock' == 0
    poplist 'LogHue' 'front'
    pause 500
    replay
    stop
  endif
  if counttype 0x1bdd 'any' 'LogRestock' == 0
    stop
  endif
endfor

Re: Logs to boards

Posted: December 28th, 2016, 10:40 am
by Girion
Oh thank you, i will test it today. :)

Re: Logs to boards

Posted: January 31st, 2020, 6:01 pm
by Excorsion
doesn't work for me... won't ask for the container just says no source container.