Author Topic: TheReaper's Ultimate Logging Tool - Death to trees  (Read 50106 times)

0 Members and 1 Guest are viewing this topic.

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #15 on: May 24, 2011, 04:59:51 AM »
+1
Well I could allow it to work in TerMur, but it'd be the same as Spewy's Miner, where you have to manually set up each tree location. Or I could make it try chopping every square 5x5 around the character whilst in TerMur until it found wood. But I don't think that's a terribly effective method.

Also, next update will include subs to make the Pause and End buttons work, as they don't right now :P

Standby for launch 5..............4................3.............2.............1............. BLAST OFF

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #16 on: May 24, 2011, 05:40:10 AM »
+1
I think the way to do it would be with persistent variables.

The first time you run the script it recalls to wood1 or whatever in the rune book.

Scan around for a tree tile, if it's found then chop. This position will always scan so a persistent variable would be set like

set *wood1 scan

From that point forward every time you recall to position wood1 it would scan for a tree tile and chop.

*IF* a tree tile is NOT found (ter mur) then it would attempt to chop at each space around the char. When you hit a successful tree spot the position of the tree (or relative position to the char) would be saved as a persistent variable.

set *wood1 348_23 ; x and y position
or
set *wood1 7 ; direction from the character with 1-N 3=E 5=S 7=W

Then if the script sees SCAN it scans for tree tile and if it sees 7 it just chops in direction 7. The first time running the script would have all the setup. It would take a while the first round, but after that it would work just as fast in Ter Mur as tram or fel.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #17 on: May 24, 2011, 06:41:07 AM »
+1
Exactly what I'm doing with mine. Mining and Lumberjacking both working just fine in Ter Mur and fully automated.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #18 on: May 25, 2011, 07:37:44 AM »
+1
TM I've spent most of the day thinking about how to do it, whilst at work, it wasn't a very productive day.

That's exactly what I've decided to do.

My next update will be for ML facets though. After that V2.0 will be for TerMur as well.

Should be ok to add to finished scripts library next week, as I've have ironed out all the little bugs.

Then the mammoth task of V2.0. Shouldn't take too long in all fairness, especially since I know know how to use your save subs :P

Offline xwardox

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • xwardox has no influence.
  • Respect: +10
  • Referrals: 0
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #19 on: June 03, 2011, 07:02:24 PM »
+1
im trying to use this script, i have my books setup and i have it set to use magery i start  at my secure box at my home, it recalls to first spot then equips my axe then opens house book sets default recalls to house then trys to cast a spell i do not have then equips the axe and trys to chop wood that is not there

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #20 on: June 05, 2011, 04:39:56 AM »
+1
Your overweight to start with if it's doing that.... think the threshhold is 40 below your max carrying capacity.

If it's casting a spell you don't have it might be trying to heal using chiv, will double check that the heal and cure subs are working properly.

If a script isn't working, try pressing F7 to start the script, continue pressing it until you get to the coding that you believe is wrong, then reply stating where in the script it is.


Actually, I found it, the heal subs weren't working properly. Should be working now. Please make sure your at full health before starting the script. If it still goes to first rune, then straight back to house to heal then increase the value of %TR_wait however this will then reduce the efficiency of the over-all script.

The other option is to wear a suit that DOES NOT have any +hp or +str on it. When you recall, it only takes your chars stats while naked, then re-equips your suit once you arrive at your destination. This means that your not at full HP when you get there. So the script is taking you back to a safe spot to heal you back up.
« Last Edit: June 05, 2011, 04:51:42 AM by The Reaper »

Offline xwardox

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • xwardox has no influence.
  • Respect: +10
  • Referrals: 0
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #21 on: June 05, 2011, 09:05:34 AM »
+1
ok ive tried the new script, i made sure ihave no +str or +hp armor or jewelery on. It starts at my secure goes to rune 1 in book 1 chops goes to secure drops off wood then tries to chop at secure

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #22 on: June 06, 2011, 02:45:34 AM »
+1
When it tries to chop at the secure, don't stop the script. Just let it run it out.

It will get bored of your house and move on.

But as a guess I'd say your carrying too much weight.

Did you re-download the script?

Offline xwardox

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • xwardox has no influence.
  • Respect: +10
  • Referrals: 0
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #23 on: June 06, 2011, 04:42:36 PM »
+1
When it tries to chop at the secure, don't stop the script. Just let it run it out.

It will get bored of your house and move on.

But as a guess I'd say your carrying too much weight.

Did you re-download the script?

yeah i re-downloaded the script and it starts the chopping after it has dropped the wood in to my secure so im not sure how im over weight

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #24 on: June 07, 2011, 02:25:29 AM »
+1
It is most likely trying to continue chopping from your last know point because your recall book hadn't recharged, or it simply failed to recall. Don't stop the script, let it sort it's self out. It's written to not stop just because it can't find any trees, it should simply go to another rune eventually. What is the system message produced when your at your secure and it tries to chop?? The script is designed to search for several system messages whilst chopping:

Code: [Select]
if You_can't_use_ in #sysmsg
   {
   break
   }
if Target_cannot_be_seen in #sysmsg
   {
   break
   }
if too_far in #sysmsg
   {
   break
   }
until not_enough_wood in #sysmsg
return

If it's non of those, then it won't stop. So I need a little more information on your part.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6190
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #25 on: June 07, 2011, 05:11:08 AM »
+1
I started playing with this (on siege) and one thing it needs is a dispel gate sub. I have attached one written by someone (ranna?) tears ago

Code: [Select]



Set %GateType KEF_OTF_JEF

SUB GetRidOfMyGate
  if %Travel_Method = GA
   {
     IgnoreItem reset
     Set #TARGCURS 0
     FindItem %GateType
     Repeat
      {
       if #FindCnt > 0
        {
         For !tmp 1 #FindCnt
          {
           Set #FindIndex !tmp
            if #FindDist > 10
             {
              IgnoreItem #FindID
             }
             ELSE
             {
              ; Wait for Mana to Cast Lvl 5 Spell
              While #Mana < 14
               {
               }
              While %NEXTDispelTime > #SCNT
               {
               }
               ;Cast Dispel Field
               Set %NEXTDispelTime #SCNT + 4
               Event Macro 15 33 ; Dispel Field
               Wait 30
               Target
               Set #lTargetID #FindID
               Event Macro 22 0
               Wait 2s
             }
          }
         }
      ;Check for other Gates around
       FindItem %GateType
      }
     Until #FindCnt = 0
   }
RETURN

Offline xwardox

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • xwardox has no influence.
  • Respect: +10
  • Referrals: 0
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #26 on: June 07, 2011, 04:39:08 PM »
+1
It is most likely trying to continue chopping from your last know point because your recall book hadn't recharged, or it simply failed to recall. Don't stop the script, let it sort it's self out. It's written to not stop just because it can't find any trees, it should simply go to another rune eventually. What is the system message produced when your at your secure and it tries to chop?? The script is designed to search for several system messages whilst chopping:

Code: [Select]
if You_can't_use_ in #sysmsg
   {
   break
   }
if Target_cannot_be_seen in #sysmsg
   {
   break
   }
if too_far in #sysmsg
   {
   break
   }
until not_enough_wood in #sysmsg
return

If it's non of those, then it won't stop. So I need a little more information on your part.

it says
"What do you want to use this item on?"
"you can't do that"


Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #27 on: June 08, 2011, 02:21:31 AM »
+1
"You can't do that" wasn't in my list :S

Now been changed to:
Code: [Select]
if You_can't_ in #sysmsgThis will incorporate the new and old #sysmsg's

Also, Gimlet, added dispel sub for you.

Although I think I've found the issue over-all, when implimenting TM's travel subs, I think I missed the return to tree's after dropping off wood.

Let me know if it works, I haven't have time to test the updates as I'm frantically trying to get mace and shield glasses :p

Offline xwardox

  • Jr. Member
  • **
  • Posts: 23
  • Activity:
    0%
  • Reputation Power: 1
  • xwardox has no influence.
  • Respect: +10
  • Referrals: 0
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #28 on: June 08, 2011, 12:39:08 PM »
+1
"You can't do that" wasn't in my list :S

Now been changed to:
Code: [Select]
if You_can't_ in #sysmsgThis will incorporate the new and old #sysmsg's

Also, Gimlet, added dispel sub for you.

Although I think I've found the issue over-all, when implimenting TM's travel subs, I think I missed the return to tree's after dropping off wood.

Let me know if it works, I haven't have time to test the updates as I'm frantically trying to get mace and shield glasses :p

Works like a charm!

now only if it made boards it would be perfect! =P

Offline The ReaperTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Activity:
    0%
  • Reputation Power: 1
  • The Reaper has no influence.
  • Respect: +14
  • Referrals: 1
    • View Profile
Re: TheReaper's Ultimate Logging Tool - Death to trees
« Reply #29 on: June 08, 2011, 03:55:32 PM »
+1
Try this one:

FYI this script isn't finished, you have to select ALL LOGS for it to work correctly. Don't think it counts them or anything. I'm not officially releasing it, but it's there if you want it.

Over-all, it's faster running the two things seperately because otherwise your wasting time chopping 20 oak boards, as opposed to the 250 when script is dedicated to chopping logs into boards.

Been slowly working on a way to get it to be selective, and display properly. Not to far off, so look out for the propper release of my log splitter.

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Reaper's Log Spliter.txt

Tags: