Author Topic: lumberjacking List help  (Read 9012 times)

0 Members and 1 Guest are viewing this topic.

Offline PauseBreakTopic starter

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • PauseBreak has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
lumberjacking List help
« on: June 14, 2015, 06:04:26 PM »
0
hey guys. Long time lurker.
I use lists as most people do for the use of rune locations for my lumberjack script. My question is when I break out of my for loop how do I get it to recall to the last location in the list?  as it stands now. when I break due to weight check or hatchet check.. i will return to my secure, and then start the rune list over again from the first location..


Offline Ultimafreak77

  • Full Member
  • ***
  • Posts: 105
  • Activity:
    0%
  • Reputation Power: 2
  • Ultimafreak77 has no influence.
  • Gender: Male
  • Respect: +14
  • Referrals: 0
    • View Profile
Re: lumberjacking List help
« Reply #1 on: June 14, 2015, 06:24:01 PM »
0
hey guys. Long time lurker.
I use lists as most people do for the use of rune locations for my lumberjack script. My question is when I break out of my for loop how do I get it to recall to the last location in the list?  as it stands now. when I break due to weight check or hatchet check.. i will return to my secure, and then start the rune list over again from the first location..



I don't know how to script but wouldn't you save the list location as a variable before recalling home? Then use the same variable to return? I hope someone else can be of more assistance.
The few. The proud. The AFK.

Offline Yulack

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • Yulack has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: lumberjacking List help
« Reply #2 on: July 17, 2015, 09:50:31 AM »
0
Code: [Select]
a push list of Treebook
a pust list of Runes
for 0 to 'TreeBook'
    for 0 to 'Runes'
//this part to trees
          useobject TreeBook[]
          waitforgump 0x554b87f3 5000
          replygump 0x554b87f3 Runes[]
          pause 1500


//to recall back to drop off spot and wait till your ready to start it back up
if @injournal 'pause'//<-------- type pause push enter
  while @findtype 0x1bdd 'any' 'backpack'
    useobject 'LeftHand'
    waitfortarget 1000
    target! 'found'
    pause 500
  endwhile
  useobject 'Home'
  waitforgump 0x554b87f3 15000
  replygump 0x554b87f3 5
  pause 1500
  organizer 'R LJ'
  while organizing
    pause 5000
    if not organizing
      break
    endif
  endwhile
  useskill "Hiding"
  while not @injournal 'go' // this is the wait part
    pause 10000
    if injournal 'go'  //type    go    hit enter and starts back up
      clearjournal
      break
    endif
  endwhile
  useobject TreeBook[]
  waitforgump 0x554b87f3 5000
  replygump 0x554b87f3 Runes[]
  pause 1000
endif
          
//this part to home bag
          useobject 'Homebook'
          waitforgump 0x554b87f3 5000 //<----- the replygump maybe dif on your shard
          replygump 0x554b87f3 5 //<----- the replygump maybe dif on your shard
          pause 1500
//this part back to last tree
          useobject TreeBook[]
          waitforgump 0x554b87f3 5000
          replygump 0x554b87f3 Runes[]
          pause 1500
     endfor
endfor
hope that clears it up
« Last Edit: July 20, 2015, 07:24:52 AM by Yulack »

Offline PauseBreakTopic starter

  • Newbie
  • *
  • Posts: 8
  • Activity:
    0%
  • Reputation Power: 1
  • PauseBreak has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: lumberjacking List help
« Reply #3 on: September 27, 2015, 09:00:36 PM »
0
been a long time since I checked this. Good Idea.
What I did was put the iterations inside of a weight and stock check..

Code: [Select]
for 0 to 'Runes'
  if not @findtype 0xf43 'any' 'self' or weight >= 550
    //*******ORGANIZE*********\\
    useobject! 'Home_Runebook'
    waitforgump 0x74e9ffa1 15000
    replygump 0x74e9ffa1 7
    sysmsg 'Home' 33
    pause 1250
Once organize / restock is completed it moves onto the next location.
Code: [Select]
useobject! Runebooks[0]
  waitforgump 0x74e9ffa1 15000
  replygump 0x74e9ffa1 Runes[]
  sysmsg 'Rune Location' 33
  sysmsg Runes[] 33
  pause 1500
  if @injournal 'location is blocked' 'system'
    clearjournal
    pause 1500
    sysmsg 'Location Break!' 33
    break
  endif

and if anything pops an if statement like blocked location or another weight or restock check. It Breaks out of the loop, restocks then progresses with the next set.. so yea I guess to sum it up the answere is  for 0 - Runes []  <-- the [] is key. :D

Tags: