Mining Macro

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
Gumbi
Grandmaster Scribe
Posts: 76
Joined: Sun Nov 23, 2008 3:11 am

Mining Macro

Post by Gumbi »

ok here is my mining macro i use with my lboh to whoever wanted it
It will all seem like junk until you save it in your macro folder
!Loop
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.WaitForTargetAction|2
Assistant.Macros.TargetRelLocAction|0|0
Assistant.Macros.PauseAction|00:00:00.9000000
Assistant.Macros.IfAction|5|1|390
Assistant.Macros.HotKeyAction|0|Organizer Agent-2
Assistant.Macros.PauseAction|00:00:02
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|you put some electrum in your backpack
Assistant.Macros.PauseAction|00:00:00.0010000
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|you put some platinum in your backpack
Assistant.Macros.PauseAction|00:00:00.0010000
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|there is no metal here to mine.
Assistant.Macros.WalkAction|2
Assistant.Macros.EndIfAction
I put that electrum and plat part for it to pause so i can mark.
how it works is it keeps mining until either i get overweight (then it activates an organizer) or there is no metal. if there is no metal ithen it takes a step where i want it to and tries again
User avatar
Krypher
Novice Scribe
Posts: 6
Joined: Sun Mar 29, 2009 5:08 pm
Location: Porum,Oklahoma USA
Contact:

Re: Mining Macro

Post by Krypher »

How do u save this macro is it a copy/paste? what are the steps? :? :oops:
User avatar
Skade
Expert Scribe
Posts: 32
Joined: Tue Mar 31, 2009 7:17 pm
Location: northeast USA
Contact:

Re: Mining Macro

Post by Skade »

copy and paste all of that into a notepad doc and name it something you will remember

then save it in razor/macros

then when you use razor the macro you just saved and named should be there to use.

pretty simple. at least, that's how I remember i did it.

good luck.

Keith. happy mining.
Silencer Beoulve
Expert Scribe
Posts: 32
Joined: Thu May 14, 2009 7:10 pm
Location: Dibble, Oklahoma
Contact:

Re: Mining Macro

Post by Silencer Beoulve »

hehe, looks like a few of the razor macros i've made. Hope it works, i've never been able to get a mineing one figured out exactly.
Image
Silencer Beoulve
Expert Scribe
Posts: 32
Joined: Thu May 14, 2009 7:10 pm
Location: Dibble, Oklahoma
Contact:

Re: Mining Macro

Post by Silencer Beoulve »

well, this one has the same problem mine usually gets, it tells me that it can't see the target if i'm in a cave, works fine in dungeons that aren't in a mountain.
Image
Kaervas
Elder Scribe
Posts: 113
Joined: Thu May 07, 2009 1:26 pm

Re: Mining Macro

Post by Kaervas »

Make one that looks like this:

  • Double Click shovel (change it to double click by type)
    Wait 0.5 seconds (this can be adjusted to fit your connection)
    Target RelLoc 0,0 (to do this, record the macro targeting the ground at your feet, then change to relative)
    Wait 1.0 seconds
    If (Weight > 400)
    Say >>>HEAVY (just a visual warning)
    Wait 20.0 seconds (adjust as needed, gives you time to pause the macro and go smelt, or drag it into a pack animal, etc.)

It's as easy as that.
If you have a bag of holding you can change the part after the if conditional to:
  • Wait 2.0 seconds
    Run Organizer Agent __
    Wait 5.0 seconds


This macro will work for all ground mining. If you want to mine cliff-faces relative location does not work particularly well because the cliff face can be any of eight tiles relative to you.
For this, make a second macro which replaces the Target RelLoc with a Target LastTarget. Mine once manually and then start the macro for that spot.
User avatar
Krypher
Novice Scribe
Posts: 6
Joined: Sun Mar 29, 2009 5:08 pm
Location: Porum,Oklahoma USA
Contact:

Re: Mining Macro

Post by Krypher »

Skade wrote:copy and paste all of that into a notepad doc and name it something you will remember

then save it in razor/macros

then when you use razor the macro you just saved and named should be there to use.

pretty simple. at least, that's how I remember i did it.

good luck.

Keith. happy mining.
The Copy/paste into the Razor/marco did not show up anything so i could mine with a razor macro. So ill do it by hand till I find a Macro that works. Thanks for the info anyway
Locked