31
New member introductions / Re: Ohhhh how things have changed
« on: August 27, 2015, 09:13:21 PM »
Welcome to SUO!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
set %RailOneX1 100
set %RailOneY1 300
set %RailOneX2 110
set %RailOneY2 300
set %RailOneX3 110
set %RailOneY3 290
set %RailOneCnt 3
set %RailTwoX1 100
set %RailTwoY1 300
set %RailTwoX2 90
set %RailTwoY2 300
set %RailTwoX3 90
set %RailTwoY3 310
set %RailTwoCnt 3
set %RailThreeX1 100
set %RailThreeY1 300
set %RailThreeX2 110
set %RailThreeY2 300
set %RailThreeX3 110
set %RailThreeY3 290
set %RailThreeCnt 3
while #true
{
onhotkey 1
gosub MoveRail RailOne
onhotkey 2
gosub MoveRail RailTwo
onhotkey 3
gosub MoveRail RailThree
}
halt
sub MoveRail
namespace push
namespace local MR , #systime
set !Cnt %1 , Cnt
set !Cnt % . !Cnt
set !SX %1 , X
set !SY %1 , Y
display ok !Cnt
for !i 1 !Cnt
{
set !nX !SX , !i
set !nY !SY , !i
set !nX % . !nX
set !nY % . !nY
move !nX !nY 1 5s ;you might have to adjust timeout depending on move length
}
namespace clear
namespace pop
return
gosub InRange 6 5 1
if #result
display ok It's in range!
else
display ok come a little closer baby.
halt
sub InRange
if abs ( %1 - %2 ) <= % 3
return #true
return #false
I worked on 1.6 yesterday making arrows. Here are a few items.
1. My resource box had everytype of wood in it. and started with regular wood in my backpack. When it was done with the boards in my pack it pulled bloodwood boards from my resource box instead of regular boards. I switched the resource box to a different one and just put boards in and it ran fine.
2. When it finishes a stack of boards in the resource box it stops and says out of resources even though there are several stacks in the box.
3. Ran out of feathers and the script said I was out of boards.