Author Topic: Oh how i hated marking runebooks for choping trees  (Read 5646 times)

0 Members and 1 Guest are viewing this topic.

Offline YulackTopic starter

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • Yulack has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Oh how i hated marking runebooks for choping trees
« on: July 13, 2015, 11:11:34 AM »
+1
Code: [Select]
// Stand Next to Tree, the tree on the west side
// at prompt /target runebook not the tree
while not dead 'self'
  if not findtype 0x1f14
    headmsg 'Need more runes!!!!!!!!!'
    stop
  endif
  clearjournal
  unsetalias 'setrunebook'
  if not findalias 'setrunebook'
    headmsg 'Target Runebook'
    promptalias 'setrunebook'
  endif
  while not hidden 'self'
    if not findtype 0x1f14
      headmsg 'Need more runes!!!!!!!!!'
      break
    endif
    //use axe to West tile
    pause 1000
    useobject 'LeftHand'
    waitfortarget 15000
    targettileoffset -1 0 0
    pause 5000
    if injournal 'use an axe on that' 'system'
      break
    elseif not injournal 'You chop some' 'system'
      break
    endif
    if injournal 'You chop some' 'system'
      if @findtype 0x1bdd 'any' 'backpack'
        useobject 'LeftHand'
        waitfortarget 15000
        target! 'found'
        pause 1000
      endif
      if findtype 0x1f14
        setalias 'markedrune' 'found'
        pause 500
        if findobject 'markedrune'
          cast "Mark"
          waitfortarget 15000
          pause 1500
          target! 'found' 15000
        endif
        if findobject 'markedrune'
          moveitem 'found' 'setrunebook'
          pause 1500
        endif
      else
        headmsg 'WHERE DiD the runes go!!!!!!!!!!!!!!!!!!!!' 33
        stop
      endif
      if not findobject 'markedrune'
        headmsg 'Off to the next spot'
        break
      else
        headmsg 'Runebook Full'
        stop
      endif
    endif
  endwhile
endwhile

hope this helps

Post Merge: July 13, 2015, 05:09:52 PM
ok I needed to gain hiding on a char (playing on a free shard) so I wanted to know how long  to make my pause times perfect to catch the injournal so I made this little script
Code: [Select]
useskill 'Hiding'
// injournal find time
pause 1000
if injournal 'You must wait a' 'system'
  // if checking skilluse times
  headmsg 'longer pause' 33
  //if checking injournal find time
  //headmsg 'shorter pause' 33
  clearjournal
else
  // if checking skilluse times
  headmsg 'shorter pause' 33
  //if checking injournal find time
  //headmsg 'longer pause' 33
  clearjournal
endif
//skilluse time is a total of injournal find pause and the second
pause 9270
// use loop, best if 10 injournal ten times before changing
« Last Edit: July 14, 2015, 04:47:37 AM by Yulack »

Tags: