• 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

Monk.mac v1.0 Melee Macro

This is a very basic macro for those that are semi-afk. This is an assistant, and when you hit attack it auto sticks and does your abilities for you. I also built in a auto-FD function both in and out of combat. So you can jump up right in the middle of combat and come back whenever. MQ2Moveutils, MQ2Cast, and MQ2Exchange MUST BE LOADED!!!

Rich (BB code):
|******Monk.mac v1.5*******|
|-Basic Macro to stick to target on attack and do 2 basic abilities.
|=======1.1 Update=====
|-Error trap Added for Stick at start of fight
|-Added Monk Epic weapon cast when no haste potion used
|=======1.2 Update=====
|Fixed logical error and broke combat into diffrent sub-routine
|=======1.3 Update=====
|Added Event State to prevent spamming screen when casting skill
|=======1.4 Update=====
|Added error trap because sometimes epic swap for haste gets bugged
|Added Feign Death on low HPs both in combat and out
|=======1.5 Update=====
|Added Line of Sight Checks when targeting
|Fixed bug when you loot sometimes you would get "stuck"
|Stick is ALWAYS on, no more breaking from key presses. 
|--------------------------|
|WARNING: MQ2MOVEUTILS MUST BE LOADED!!!!!!!

#event Stunned "You are too distracted to use a skill.#*#" 
#event Stunned "You are stunned#*#" 
#event Stunned "You can't cast spells while stunned!#*#" 
#event Stunned "You can't attack while stunned!#*#" 
#event Stunned "You cannot use a skill while stunned!#*#" 
#event Stunned "You *CANNOT* cast spells, you have been silenced!#*#" 

Sub Main 

|--------------------------------------------------------------------------------
|Configure Values Below
|--------------------------------------------------------------------------------
/declare monkage       int outer 1 |--Change to 1 for combat abilities / Clickies (monks only)
/declare dolootz       int outer 0 |--Change to 1 to have macro loot items
/declare usearray      int outer 1 |--Change to 1 to use loot array
/declare RV_LootArray[19] string outer
   /varset RV_LootArray[1] "Ancient"
   /varset RV_LootArray[2] "Tongue"
   /varset RV_LootArray[3] "Emerald"
   /varset RV_LootArray[4] "Diamond"
   /varset RV_LootArray[5] "Stonewarden"
   /varset RV_LootArray[6] "Blackflame"
   /varset RV_LootArray[7] "Sapphire"
   /varset RV_LootArray[8] "Jacinth"
   /varset RV_LootArray[9] "Glowgem"
   /varset RV_LootArray[10] "Glob"
   /varset RV_LootArray[11] "Geode"
   /varset RV_LootArray[12] "Starlight"
   /varset RV_LootArray[13] "Pearlescent"
   /varset RV_LootArray[14] "Junk"
   /varset RV_LootArray[15] "Scale"
   /varset RV_LootArray[16] "Purity"
   /varset RV_LootArray[17] "Spell"
   /varset RV_LootArray[18] "Star Ruby"
   /varset RV_LootArray[19] "Sparkling"


|--------------------------------------------------------------------------------
|MAIN LOOP: Out of Combat actions
|--------------------------------------------------------------------------------
:abilwatch
/if ((${NearestSpawn[NPC LoS].Distance} < 40) && (${NearestSpawn[NPC LoS].ID})) {
	/target ${NearestSpawn[NPC LoS]}
	/attack on
	}
/if (${Me.Combat}) /call Combat
/if (${Me.PctHPs} < 15) /call FDend
/goto :abilwatch

/return

|--------------------------------------------------------------------------------
|SUB: Combat Start Attack / End Fight
|--------------------------------------------------------------------------------
Sub Combat
:combatstart
   /if (${Target.ID} && !${Me.Combat}) /attack on
   /doevents
   /if (${Me.PctHPs} < 15) /call FDend
   /if (${Stick.Status.NotEqual[ON]}) {
	/stick 10 moveback
   } 
/if (${monkage}==1) /call Monkabil
|---------Run at end of fight---------------|
   /if (${Target.Type.Equal[corpse]}) /keypress esc
   /if (!${Target.ID}) { 
	/keypress back 
	/delay 20
	/if ((${NearestSpawn[NPC LoS].Distance} < 40) && (${NearestSpawn[NPC LoS].ID})) {
	  /target ${NearestSpawn[NPC LoS]}
	  /attack on
	  /goto :combatstart
	  }
	/attack off 
	/if (${dolootz}==1) /call Loot
	/return
   } 

/goto :combatstart
/return

|--------------------------------------------------------------------------------
|SUB: Loot w/ Array
|--------------------------------------------------------------------------------
Sub Loot 
   /declare LootSlot    int inner  0
   /declare LootCheck   int inner  0
   /declare LootTotal   int inner  0

  :lootstart
    /target corpse radius 220 
    /stick 5 hold 
  :Moveto 
    /if (${Target.Distance} > 5) { 
        /delay 1s 
        /goto :Moveto 
    } 

    /stick off 
    /loot 
    /delay 1s 
   
    /keypress forward
    /keypress back
   
    /fastdrop on
    /lootn never
    /delay 1s
    /loot
    /delay 1s
    /if (!${Corpse.Items}) /goto :endofloot

    /varset LootTotal ${Corpse.Items}
    /for LootSlot 1 to ${LootTotal}
      /nomodkey /shiftkey /itemnotify loot${LootSlot} leftmouseup
      /delay 2s

|-------------------
|--Array Usage------
|-------------------
/if (${usearray}==1) {
         /for LootCheck 1 to ${RV_LootArray.Size}
            /if (${Cursor.Name.Find[${RV_LootArray[${LootCheck}]}]}) {
               /echo Keeping a ${Cursor.Name}... WOOT!
               /autoinventory
               /delay 1s
            }
         /next LootCheck    
      /if (${Cursor.ID}) {
         /echo Destroying a ${Cursor.Name}...
         /destroy
         /delay 1s
      } 	
   /next LootSlot
} else {
	/autoinventory
	/next LootSlot
}
|------End Array

:endofloot
   /notify LootWnd DoneButton leftmouseup
   /delay 1s
   /target corpse radius 200
   /if (${Target.Type.Equal[corpse]}) /goto :lootstart
/return 


|--------------------------------------------------------------------------------
|SUB: Monk Abilities (Epic Click, Mend, Flying Kick, Specials)
|--------------------------------------------------------------------------------
Sub Monkabil
|---------Abilities-------------------------|
   /if ((${Me.AbilityReady["Flying Kick"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Flying Kick"
   /if ((${Me.AbilityReady["Mend"]}) && (${Me.PctHPs} < 50)) /doability "Mend"
   /if ((${Me.CombatAbilityReady["Clawstriker's Flurry"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Calanin's Synergy Rk. III"
   /if ((${Me.CombatAbilityReady["Defer Death Rk. III"]}) && (${Me.PctHPs} < 45)) /doability "Defer Death Rk. III"
|---------Instant Casts Check---------------|
   /if (!${Me.Buff[Celestial Tranquility].ID} && ${Spell[Celestial Tranquility].Stacks} && ${Me.FreeBuffSlots}>=1 && ${Me.State.Equal[STAND]}) {
	/casting "Celestial Fists" hands
	/return
	}
   /if (${Cast.Ready[Transcended Fistwraps of Immortality]}) {
	/casting "Transcended Fistwraps of Immortality" item
        /delay 1s
	}

/return

|--------------------------------------------------------------------------------
|SUB: Feign Death (Something went terribly wrong)
|--------------------------------------------------------------------------------
Sub FDend
 /doability "Feign Death"
 /echo LOW HP!!!! ENDING MACRO
 /end
/return


|--------------------------------------------------------------------------------
|Event Triggers
|--------------------------------------------------------------------------------
Sub Event_Stunned 
   /delay 1s
/return
 
Last edited:
MQ2Melee doesnt assist that I know of but it does stick and can be setup to do potions abilities ect, he just build them into the mac for the not so mac savy can use this without problems I believe.
 
oh i was just saying because i used to have a hotbutton where it would just /assist Tankname and have /attack on

because he posted as
This is a very basic macro for those that are semi-afk. This is an assistant, and when you hit attack it auto sticks and does your abilities for you. Much like RH or other melee macros, but without the pages of code. MQ2Moveutils MUST BE LOADED!!!

(not knocking, i was just wondering about it)

and Welcome back !
 
Yea, for some odd reason MQ2Melee just didn't work like I wanted. I am gonna try and make something a bit more useful, because to a lot of people this is more like re-inventing the wheel. lol.
 
Updated this to Auto-FD ... I mainly use this if im at work or doing things around the house. I can jump up and do what ever i need to do, without having to worry about dying.
 
Updated this again, I decided to reapply sticks, and fix a couple bugs. Basically you can just pop the macro and it will kill anything in the 40 unit area that is in Line of Sight. This is great for spawn camping or just generally afk killing. All you are doing is running around and this thing will do the rest for you.

This is very close to perfect, and a couple more tweaks for it to be final. I will start remaking my complete afk movement macros with this.
 
Monk.mac v1.0 Melee Macro

Users who are viewing this thread

Back
Top
Cart