• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

How to add additional abilities to fish macro

I am wondering if it is possible to add more doability commends to this macro. The macro works great as it is written, but i would like my my bard and monk to also sneak and/or sense traps at the same time. I suspect I can just add the command /doability sneak under the /doability fish command. Is that correct? or will it cause problems?

I do not know very much about programming and only use very basic macro's and plugin's, mostly to avoid pressing the same key over and over a few hundred times. I rarely leave the computer for very long while macro's are running. I just don't want to mess up what is working good for me.

The macro code follows (hopefully in the box like it's suppose to), hehe.
Rich (BB code):
|*******************************************************************|
| - YodaFish.mac -                                                 *|
| - By: Yoda                                                       *|
| - v2.0 by DKAA                                                   *|
|                                                                  *|
| Usage:                                                           *|
| To Fish and Gate if anything attacks you.                        *|
| Will Sit and camp out when you run out of bait.                  *|
| To be used with a Fisherman's Companion.                         *|
|                                                                  *|
|*******************************************************************|

#turbo

#event BrokenPole "#*#You can't fish without a fishing pole, go buy one.#*#"
#event NoBait "#*#You can't fish without fishing bait, go buy some.#*#"

Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /delay 65 
        /doevents

        /if (!${Cursor.ID}) /goto :Fish

        /if (${Cursor.Name.Equal[Tattered Cloth Sandal]}) {
            /destroy
            /delay 1s
        } else {
            /if (${Cursor.Name.Equal[Rusty Dagger]}) {
                /destroy
                /delay 1s
            } else {
                /call KeepItem
            }
      }
   /goto :Fish
/return

Sub KeepItem
   /if (${Cursor.Name.NotEqual[Fish Scales]}) /echo Caught ${Cursor.Name}
   /notify InventoryWindow IW_CharacterView leftmouseup
/return

Sub CheckPole
   /if (${Me.Inventory[mainhand].Name.Find[Fishing Pole]}) /return
   /echo  You need to put your fishing pole in your primary hand.
   /endm
/return

Sub Event_BrokenPole
   /endmacro
/return

Sub Event_NoBait
   /endmacro
/return

I think this part :
Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /delay 65 
        /doevents

Could be changed like this:

Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /doability sneak
        /doability "sense traps"
        /doability hide
        /delay 65 
        /doevents

Am I correct?

I am also interested in a simple macro that will allow me to perform any ability such as lock pick, hide, sneak.... Just want it to activate the command for me is all really.

Thanks for taking the time to post an answer :)
 
Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /doability sneak
        /doability "sense traps"
        /doability hide
        /delay 65 
        /doevents


I think it need to look like

Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability "Fishing"
        /doability "sneak"
        /doability "sense traps"
        /doability "hide"
        /delay 65 
        /doevents

i Think this would work <<<<<<<i'm not that good yet trying to learn still>>>>>>>>>>>

Rich (BB code):
#turbo

#event BrokenPole "#*#You can't fish without a fishing pole, go buy one.#*#"
#event NoBait "#*#You can't fish without fishing bait, go buy some.#*#"

Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
	/call sneak
	/call hide
	/call sense 
        /delay 65 
        /doevents

        /if (!${Cursor.ID}) /goto :Fish

        /if (${Cursor.Name.Equal[Tattered Cloth Sandal]}) {
            /destroy
            /delay 1s
        } else {
            /if (${Cursor.Name.Equal[Rusty Dagger]}) {
                /destroy
                /delay 1s
            } else {
                /call KeepItem
            }
      }
   /goto :Fish
/return

Sub Sneak
	/if (${Me.AbilityReady["Sneak"]) /doability "Sneak"
 /return

sub hide
	/if (${Me.AbilityReady["Hide"]) /doability "Hide"
 /return

Sub sense
	/if (${Me.AbilityReady["sense traps"]) /doability "sense traps"
 /return



Sub KeepItem
   /if (${Cursor.Name.NotEqual[Fish Scales]}) /echo Caught ${Cursor.Name}
   /notify InventoryWindow IW_CharacterView leftmouseup
/return

Sub CheckPole
   /if (${Me.Inventory[mainhand].Name.Find[Fishing Pole]}) /return
   /echo  You need to put your fishing pole in your primary hand.
   /endmacro
/return

Sub Event_BrokenPole
   /endmacro
/return

Sub Event_NoBait
   /endmacro
/return
 
Just a point and someone who knows more can comment and if wrong I will remove ... the only time you need it in quotes is when the phrase has a space in it example: "sense traps" must be in quotes becuse of the space sneak does not because there are no spaces.

I know this is true of the bardswap.ini when you have spacing...

Rich (BB code):
I think it need to look like

Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability "Fishing"
        /doability "sneak"
        /doability "sense traps"
        /doability "hide"
        /delay 65 
        /doevents
 
thez said:
You can just put the /if's that you are calling in the main sub. Calling them is just superfluous code.

Do I NEED to have the /if statements? Will it work with just the /doability commands or will it crash if I don't actually have the ability?

Also is the /delay commends tenths of a second, I'm guessing that they are?

Again I know almost nothing about programming or writting macros, I can always expirment but would rather make sure I'm not doing anything that could cause problems.

Thank you very much for teh time to answer.

Is this an acceptable modification?

This:
Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /delay 65 
        /doevents

Could be changed like this:


Rich (BB code):
Sub Main
    /cleanup
    :Fish
        /call CheckPole 
        /doability Fishing
        /delay 15
        /doability sneak
        /delay 15
        /doability "sense traps"
        /delay 15
        /doability hide
        /delay 20
        /doevents
 
How to add additional abilities to fish macro

Users who are viewing this thread

Back
Top
Cart