Code: Select all
//search for a boat inside backpack
//if found waits you to place it
if findtype 0x14f4 0 backpack
useobject found
while not @findtype "0x3eb1" 0 ground "any" 12
waitingfortarget 1000
endwhile
endif
//Try to unlock the left side of the
//boat max 8 tiles of range.
//Bigger ranges may prevent you to
//open the plank.
if findtype 0x3eb1 any ground any 8
clearjournal
while not injournal "You unlock it"
usetype 0x100f 0 backpack any 0
waitfortarget 15000
target! found
pause 600
endwhile
pause 1000
//open the left plank
useobject found
pause 1000
//move over the left plank
if findtype 0x3ed5 any ground any 8
useobject found
endif
//try to unlock the right side of the
//boat max 6 tiles of range.
elseif findtype 0x3eb2 any ground any 8
clearjournal
while not injournal "You unlock it"
usetype 0x100f 0 backpack any 0
waitfortarget 15000
target! found
pause 600
endwhile
pause 1000
//open the right plank
useobject found
pause 1000
//move over the right plank
if findtype 0x3ed4 any ground any 8
useobject found
endif
//Message about being too far away
//to unlock the boat. Solution: Reduce
//your distance from the boat.
//OR
//You can't go over the plank because,
//for some reason the macro was started
// when the plank was already opened .
//Solution: wait some seconds so the
//plank will close automatically then
//run the macro again.
else
msg "too far from the boat or plank open"
endif
//pause 100
useobject 0x413d2748
pause 100
msg "raise anchor"