UOSteam and lumber jacking

Don't know how something works? Here you will find some useful links. And if you have a question, feel free to ask.
Locked
Widmo
Novice Scribe
Posts: 9
Joined: Tue Jan 26, 2016 2:51 pm

UOSteam and lumber jacking

Post by Widmo »

Hello,
I Have problem i tried to record macro on UOSteam to lumber jacking a three. After recorded when i play it i get only "You can't use an axe on that" but i did't change any place. I just recorded double click on hatchet and on three thats all, so what happend? Whed I do the same in Razor everythink work great but this is tiring to change client to take logs only :D
I don't want to press last object all the time.

Thank you for help!
Rankul
Novice Scribe
Posts: 7
Joined: Thu May 07, 2015 1:18 pm

Re: UOSteam and lumber jacking

Post by Rankul »

hi there :)

i dont have Uosteam but in razor you can set target type and relative location .that might be your problem if the macro tries to hack on a tree it cant reach
Widmo
Novice Scribe
Posts: 9
Joined: Tue Jan 26, 2016 2:51 pm

Re: UOSteam and lumber jacking

Post by Widmo »

Thank you for answer but as I wrote i don't have this problem in Razor, this working well but this is tiring to change program and relog only for lumber jacking.
User avatar
Wil
Legendary Scribe
Posts: 1128
Joined: Mon Dec 30, 2013 1:19 pm
Location: Seattle, WA, USA
Contact:

Re: UOSteam and lumber jacking

Post by Wil »

OpenEUO can run at the same time as UO Steam. You don't have to log out and back in to use it. In OpenEOU, chopping trees looks more or less like this:

Code: Select all

function chop ()
  UO.SysMessage ("chop at x="..UO.CharPosX.." y="..UO.CharPosY.."                        :")
  wait (100)
  
  UO.LObjectID = axe
  UO.LTargetKind = 0
  UO.Macro(17,0)

  if not waitfortarget (2000) then
    print ("noaxe?")
    return 0
  end
  wait(100)
  
  UO.LTargetKind=3
  UO.LTargetX = UO.CharPosX+1
  UO.LTargetY = UO.CharPosY+1
  UO.LTargetZ = UO.CharPosZ
  local ncnt = UO.TileCnt(UO.LTargetX,UO.LTargetY)
  UO.LTargetTile = 0
  for nIndex = 1,ncnt do
    local nType,nZ,sName,nFlags = UO.TileGet(UO.LTargetX,UO.LTargetY,nIndex)
    if "tree"==string.match(sName,"tree") then
      UO.LTargetTile = nType 
    end
  end
  if UO.LTargetTile ==0 then
    print ("no tree at x="..UO.CharPosX.." y="..UO.CharPosY)
    UO.SysMessage ("no tree at x="..UO.CharPosX.." y="..UO.CharPosY)
    wait (20)
    return 0
  end
  UO.Macro(22,0)
  wait (1000) -- at least 1 second
  local chopped = waitforchopped (11000)
  return chopped
end
Widmo
Novice Scribe
Posts: 9
Joined: Tue Jan 26, 2016 2:51 pm

Re: UOSteam and lumber jacking

Post by Widmo »

Thank you for answer Wil, but how to use it? I have EasyUO and I pasted there this code and run, but nothing did. Should i change something?
User avatar
fixxer1963
Legendary Scribe
Posts: 271
Joined: Tue Apr 01, 2014 5:43 pm

Re: UOSteam and lumber jacking

Post by fixxer1963 »

EasyUO is not the same as OpenEUO. That sounds like your problem.
Hawke Armstrong/FiXXer
User avatar
Wil
Legendary Scribe
Posts: 1128
Joined: Mon Dec 30, 2013 1:19 pm
Location: Seattle, WA, USA
Contact:

Re: UOSteam and lumber jacking

Post by Wil »

Also, that's only a code fragment intended to demonstrate how to write a lumberjack script it OpenEUO. It's not a complete program.
Locked