• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

built in MQ2 commands

shadowman33

Member
Joined
Jan 26, 2005
RedCents
70¢
I only put this up here because seems every question you always ask on the MQ2 boards you always get "RTFM A--hole!" I wondered what the built in commands were especially the /mapfilter commands which come in very handy. For all of you who have not "RTFM" as they so politely tell you in mq2 forums, here is the list of basic built-in mq2 commands. This is a long post, but I have found it most useful.

MacroQuest2 Commands

/aa [list all|timers] [info abilityname] [act abilityname]
used to retrieve information on AA Abilities, or to activate an AA ability

list all Lists all AA abilities available to you (doesn't mean you have them) in format [ID : name]
list timers Lists just the AA you have that have timers
info abilityname Gives information about a particular AA ability
act abilityname Works like "/alt act ##", but takes the name instead of ## (note: You will notice a fraction of a second delay using this method vs. the /alt act ## method.)

/alert add # [pc|npc|corpse|any] [radius #] [range lowerlevel upperlevel] "spawnname" [clear|list #]
Used to manipulate alert lists which 'watch' for spawns.



Examples /alert add 1 "spawnname" Adds spawnname to alert list 1
/alert clear # Clears all members from alert list 1
/alert list # Lists all members of alert list 1
/alert add 1 npc radius 300 'spawnname' Sets alert(1) to TRUE if 'spawnname' is within radius of 300 from your location
/alert add 2 npc range 30 200 'spawnname' Sets alert(2) to TRUE if any 'spawnname' are within 30 to 200 range from your location

/alias [list|aliasname delete] [name command]
Useful for creating shorter versions of a command.
/alias list
Lists all aliases

/alias /hp /echo My health is ${Me.PctHPs}
Typing /hp in the EQ chat box will display: My health is % in the EQ chat window

/alias aliasname delete
Deletes aliasname from Macroquest.ini
/altkey command
Execute a command while telling the window manager that the alt key is pressed. Can also be used together with /ctrlkey and/or /shift, as in /ctrlkey /altkey /shiftkey command

/banklist
Displays an inventory of the currently logged in character in this format:

Bankslot#:Typeofcontainer
-ContainerSlot1:Item
-Containerslot2:Item
-etc

/beep
Performs a system beep

/bind [ list | eqlist ] | [~]name [ keycombo| clear ]
list Lists all MQ2 binds
eqlist Lists all Everquest binds
name keycombo Binds name to the normal key combination keycombo
~name keycombo Binds name to the alternate key combination keycombo
name clear Clears the key combination from name
~name clear Clears the alternate key combination from name

keycombo can be any combination of "alt", "shift" and "ctrl" plus a key.


Examples: /bind forward e Binds the forward command to key e
/bind ~forward up Binds the forward command to alternate key uparrow
/bind forward clear Clears the key used for the forward command
/bind '/bind cast1 shift+1 Binds ''Cast gem 1'' to shift 1 key combination

Note: Changing EQ binds will not immediately update the display in the options window. Change the bind
list selection in the options window to see the updated keys.


/buyitem #
Buys # of the items selected in the merchant inventory (stackable only)

/call subroutine [Param0... [Param#]]
Calls a subroutine (defined by Sub <name>)


Examples
/call MySub Executes Sub MySub
/call MySub varname1 varname2 ...[varname#] Executes Sub Mysub and passes parameters

/caption list|type value|update #
Command that sets the custom captions from in-game. Using this command will also change the ini settings for the particular level.

EQ itself constantly updates the name of every spawn in the zone, even though only a small portion of those are displayed. Using /caption allows you to modify how many spawn captions updated. The default setting for /caption update is 35.

Also see NamingSpawn

Player1 through Player4 in MacroQuest.ini are directly related to which /shownames level you use.


Player1 is linked to /shownames 1
Player2 is linked to /shownames 2
Player3 is linked to /shownames 3
Player4 is linked to /shownames 4

Example

Player1=${If[${NamingSpawn.Trader},Trader,]}${If[${NamingSpawn.Invis},(${NamingSpawn.DisplayName})

Use "\n" to add a new line when setting captions



To use the default (EQ settings) clear the specific setting(Player1-Player4) in the ini using:

/caption Player1

You can also configure Player1 - Player4 from the EQ client using:

/caption Playern configsettings

Example

/caption update 20
Sets the number of nearest spawns for MQ2 to update the name of each pass to 20. By default, this is 35.
Look at the Macroquest.ini file in the zip file under [Captions] for examples of configuring Player1-Player4.

/captioncolor list | [name off|on|# # #]
Allows a lot of custom spawn caption coloring.

The caption of marked NPCs or assist NPCs can be a specific color, the caption of bankers and merchants can be a set color.
NPCs can be done by con color. All spawns can be done by CLASS color (using the raid settings).

Note that you can only set the raid class colors right now through the raid options window. You can open this window by typing /windowstate raidoptionswindow show


Examples

/captioncolor list
/captioncolor pcclass on
/captioncolor pctrader on
/captioncolor pctrader 255 128 0
name that can be used

PC OFF (Default color for PCs)
PCCon OFF (PCs by con color)
PCPVPTeam OFF (PCs by PVP team color)
PCRaid OFF (Raid members))
PCClass OFF (PCs by class color(raid settings))
PCGroup OFF (Group members))
PCTrader ON Color: 255 127 0. (Traders)
NPC OFF (NPC default color))
NPCCon ON (NPCs by con color))
NPCClass OFF (NPCs by class color (raid settings))
NPCMerchant ON Color: 255 127 0. (NPC Merchants)
NPCBanker ON Color: 200 0 255. (NPC Bankers)
NPCAssist ON Color: 255 255 0. (NPCs from main assist))
NPCMark ON Color: 255 255 0. (Marked NPCs)
PetNPC OFF (Pet with NPC owner)
PetPC OFF (Pet with PC owner)
PetClass OFF (Pet by class color (raid settings))
Corpse OFF (Corpses))
CorpseClass OFF (Corpse by class color (raid settings))
/cast ["spellname" | "${varname}" | #] [item "itemname"]

  • Will cast the specified spell, or perform a right click of an item that has a right click spell
    /cast "complete heal"
    /cast "${SpellName}"
    /cast 1
    /cast item "mana robe"
    /cast list


    /charinfo
    Returns Your current bind zone and location.
    You are bound in zonename at x, y, z

    /cleanup
    Closes all open windows and then opens inventory window

    /clearerrors
    Clears each of the "last errors" in the macroquest type

    /click left|right [corpse|target|windowloc] [ [+-]x [+-]y ] ]
    Clicks the left/right mouse button at coordinates or a defined location.


    Examples /click left Performs a left mouse click at the current mouse position
    /click left 100 100 Performs a left mouse click at 100 100
    /click left +30 -30 Performs a left mouse click 30 pixels right and 30 pixels up from the current location
    /click right target Performs a right click on your current target

    /combine packn
    Activates the Combine button combine of pack

    Example

    /combine pack8
    /ctrlkey command
    Execute a command while telling the window manager that the ctrl key is pressed. Can also be used together with /altkey and/or /shiftkey, as in /ctrlkey /altkey /shiftkey command

    /custombind list [add|delete bindname] [set|clear bindname [-down|-up] command(s)]

    "/custombind list" will list all of your custom binds names and commands (the key combinations must be set using /bind)
    "/custombind add name" will add a new bind name for use here, with /keypress, /bind, etc.
    "/custombind delete name" will remove a custom bind
    "/custombind clear name [-down|-up]" will clear a specific command for a custom bind. If up or down is not specified, defaults to down.
    "/custombind set name [-down|up] command" will set a specific command for a custom bind. If up or down is not specified, defaults to down.
    Example usage (NOTE: MQ2's very first bind command is "RANGED" so you do not need to do this, but for example)

    /custombind add mybind
    /custombind set mybind /ranged
    /bind mybind n

    Binds the /ranged command to the n key
    /declare varname global | local | timer | array | array2
    Sets varname as a global, local, timer, one dimensional array or two dimensional array

    /defaulthud
    Loads the default HUD. See MQ2HUD for specifics.

    /delay # | ${varname} [s | m] [condition]
    Fully pauses macro for a set amount of time. #|${varname} is in 10ths of a second (or suffixes s/m)
    Examples /delay 5 Delays the macro execution for 5 tenths of a second
    /delay 1s Delays the macro for 1 second
    /delay 1m Delays the macro for one minute

    Example of condition usage:

    /keypress forward hold
    /delay 1s ${Spawn[1234].Distance}<${Spawn[1234].MaxMeleeTo}
    /keypress forward

    Will execute /keypress forward when ${Spawn[1234].Distance}<${Spawn[1234].MaxMeleeTo} evaluates to TRUE or after 1 second passes.

    /deletevar name [* global]
    Deletes an existing variable. Gives a message if the variable did not exist, but no message if the variable did exist.

    Using * global will delete all global variables.

    /destroy
    Destroys whatever you have on your cursor. Use with care. [Not an MQ2 command but placed in the documentation for reference]

    Example:

    /if (${Cursor.Name.Find[rusty]}) /destroy

    /docommand


    Example

    /docommand ${If[${Me.Sitting},dotrue,dofalse]}

    /doevents [flush | specificevent]
    Runs any events that have queued up or flushes queued events
    If specificevent is used, only those events will run (/doevents chat )

    Examples /doevents chat doevents will only run chat events
    /doevents flush Clears all events in the /doevents queue
    /doevents SpellFizzle doevents will only run SpellFizzle events

    /doors ["filter"]
    Lists all doors in the zone

    /doortarget id# | "filter"
    "Targets" a door for use with /face door

    /dosocial

    /drop
    Drops the item currently on the cursor

    /dumpbinds name
    Dumps all current binds to Configs\name.cfg which can be used to load later.

    /echo text
    Echo's the specified text and or variable values to the EQ client


    Example:

    /echo My current health is at ${Me.PctHPs}


    /endmacro
    Stops the macro

    /face [predict] [fast] [nolook] [away] [alert # | loc y,x | heading angle | item | door | id # | name]
    Turns your character to face your target
    Using look will change your view elevation to face and look at the target at it's z axis location
    Using predict will return estimated distances, unless the target is stationary
    Examples

    /face Turns you to face and look at your selected target
    /face nolook Faces your target without changing your vertical view angle
    /face fast Immediately turns your character to face and look at the target
    /face fast predict Immediately turns your character to face and look at the target's estimated position
    /face fast nolook Immediately turns your character to face your target without changing your vertical view angle
    /face fast nopredict Immediately turns your character to face and look at your target's estimated position
    /face item Faces and looks at the item from /itemtarget
    /face fast item Immediately faces and looks at the item from /itemtarget

    /filter [macros all|enhanced|none] [skills all | increase | none] [target | money | food | encumber | debug on | off] [name [add text] | remove ] [zrange #] [mq on|off]

    /for varname val1 to|downto val2 [step val3]
    Runs commands while changing varname from val1 to val2 in steps of val3 (default is 1)
    /for varname value1 to|downto value2 [step val3]
    .
    commands
    .
    /next varname
    /goto :labelname
    Moves macro execution to a label
    /goto :MyLabel
    /help macro
    Lists all commands available to the client

    /hud normal|underui|always
    Adds additional functionality to the MQ2 HUD. See MQ2HUD for more details

    /highlight "spawnname" [color # # #] [reset]
    Temporarily highlights these spawns on the in-game map


    /highlight color # # #

    Sets the highlight color to an RGB value

    Note: You can use search filters for spawnname

    /identify
    Cross between the Identify spell and right-clicking an item for info

    /if (conditions) { command(s) } Runs command(s) if conditions evaluates to TRUE.

    conditions are ONLY numeric compares. You must use MQ2Data string comparison to turn string compares into numeric compares.

    conditions gets evaluated down to a single term from however many terms there are (You may use && and || freely.)

    Multiple commands can be surrounded by { }, allowing multiple commands to be executed if the comparison is true. } can be followed by else and a command. (also see /multiline)
    Example

    /if (${String[${firstvar}].Equal[This is true]}) {
    /echo TRUE
    } else /if (!${secondvar}) {
    /echo FALSE
    /mqlog secondvar equals: ${secondvar}
    } else {
    /echo It's Something else
    }
    /ini "ini filename" "keyname" "valuename" "value"
    Writes data to the specified ini file. Also see the Ini TLO

    Example

    stuff.ini contains:

    [MySection]
    Key1=123
    Key2=This is cool!
    Key3=Wheeee... 15

    /ini "stuff.ini" "Section2" "ANewKey" "Some Data!"

    stuff.ini after the above command is executed:

    [MySection]
    Key1=123
    Key2=This is cool!
    Key3=Wheeee... 15

    [Section2]
    ANewKey=Some Data!

    /itemnotify [in] location [slot#] notification
    Similar to the /click function, but does not involve the use of the mouse.
    slot can be an inventory slot name, while slot# can be pack1-pack8, bank1-bank16 (sharedbank1,
    sharedbank2 and trade1-trade8 are not yet implemented in /itemnotify)

    notification can be:

    leftmouse No action
    leftmouseup Removes the item and puts it on cursor (same as left clicking it)
    leftmouseheld For making hotkeys (you know, hold down left button)
    leftmouseheldup No action
    rightmouse No action
    rightmouseup Casts the effect, or opens the container (same as right clicking it)
    rightmouseheld Opens item display window
    rightmouseheldup Closes the item display window for that item

    Examples:

    Exchange of item in primary slot:
    /itemnotify pack8 leftmouseup
    itemnotify mainhand leftmouseup
    itemnotify pack8 leftmouseup

    Click grim aura earring:
    itemnotify rightear rightmouseup
    /items ["filter"]
    Lists all ground spawns in the zone if "filter" is not used

    /itemtarget "itemname"
    "Targets" a ground spawn or environmental container

    /itemtarget <"itemname">

    /keepkeys [off|on]
    Keeps keys that were pressed with /keypress in their current state when a macro ends.

    /keepkeysGives the state of keepkeys

    /keypress name [hold]
    /keypress is used strictly for the keys that are mapped by the EQ client. /keypress does not actually emulate
    the key being pressed and therefore will not interfere if you're typing. See Appendix D for the list of mapped key names
    See /press or /sendkey for using unmapped keys.


    Examples /keypress jump Taps the key mapped as the jump key
    /keypress forward hold Holds down the mapped forward key
    /keypress forward Releases the mapped forward key after /keypress forward hold

    Note: /keypress works with EQ key binds as well as MQ2 keybinds. See /bind

    /listmacros ["filter"]
    Lists macro files that are in the 'macros' directory (listed alphabetically)

    /loadcfg filename command
    Loads a cfg file

    * Plugins can use LoadCfgFile(filename)
    * Configs that are automatically loaded:

    AutoExec.CFG
    Executed on the first pulse

    CharSelect.CFG
    Executed when you are put at character select

    server_character.CFG
    Executed when this character enters the world

    mapshortname.CFG
    Executed when you zone into this zone

    pluginname-AutoExec.CFG
    Executed when this plugin is loaded (after its initialization is complete)




    Examples of file names:
    tallon_lordsoth.cfg
    character

    oot.cfg, soldungb.cfg, soldunga.cfg, take.cfg
    maps

    MQ2Map-AutoExec.CFG, MQ2ChatWnd-AutoExec.CFG
    plugins
    /loadhud hudname
    Loads a HUD with the name hudname from the ini. See MQ2HUD for specifics.

    /loadspells "spellset"
    Will load one of your memorized sets of spells

    /location
    Returns your x,y location and the cardinal direction you are facing.

    Resulting message: Your Location is x, y, z, and are heading south

    /loginname
    Displays the login name of the account you are currently logged into

    /look [[-]angle]
    Changes the angle you are looking. <angle> can be any value between -128 and 128. Default for <angle> is 0.
    Examples /look 50 Changes your look angle to +50
    /look -75 Changes your look angle to -75 (down)

    /macro filename [Param0 [Param1...]]
    Starts running a macro. Calling a macro from another macro will end the calling macro.

    /macro mymacro
    /macro mymacro "water flask" "metal bits"

    /mapclick keycombo commandoption
    command and special right click commands (hold a combination of shift, control, left alt, right alt to execute a special command when right clicking on a spawn). Defaults include left-alt right-click to highlight and control r-click tohide. (Requires MQ2Map plugin to be loaded)


    Example

    /mapclick lalt+shift /mycommand %i
    leftalt+shift right click on a spawn will cause /mycommand to be executed.
    /mapfilter help|option [color R# G# B#] (Requires MQ2Map plugin to be loaded)

    Map filtering options : All Enables/disables map functions
    CastRadius # Sets radius of casting circle to # (omit or set to 0 to disable)
    Corpse Displays corpses
    Custom Sets custom filter (omit to disable). Used same search options as /target and the Spawn search TLOs
    Ground Displays ground items
    Group Displays group members in a specific color
    Help Displays the available options for /mapfilter
    Menu Allows display of right-click context menu
    Mount Displays mounts
    NormalLabels Toggles non-MQ2 label display
    NPC Displays NPCs
    NPCConColor Displays NPCs in consider colors
    PC Displays PCs
    PCConColor Displays PCs in consider colors
    Pet Displays pets
    Target Displays your target
    TargetLine Displays a line to your target
    TargetMelee # Draws a melee-range circle around your target
    TargetRadius # Sets radius of a circle around your target to # (omit or set to 0)
    Timer Displays Timer objects on the map
    Trap Displays trap objects on the map
    Trigger Displays hidden triggers/traps
    Untargetable Displays untargettable spawns on the map
    Vector Displays heading vectors

    /maphide "spawnname" [reset] (Requires MQ2Map plugin to be loaded)
    Command to hide spawnname from the map. Hidden spawns are in effect until the mapped spawns are re-generated (such as changing some map filters)


    Examples

    /maphide reset
    Re-generates the spawn list.

    /maphide npc range 1-39
    Hides all spawns level 39 and below
    /mapnames normal|target options (Requires MQ2Map plugin to be loaded)
    Sets the way real spawn names are displayed for a) your current target, or b) normally.. You can set up a custom scheme using special "%" codes made up just for this.

    The command takes a parameter specifying normal/target, and then the custom string. The plugin will replace the %l %r %c %N stuff with a piece of information. Each code is CASE SENSITIVE and exactly one character in length. It is important to note that names are NOT updated continually, except for your target if the target map filter is on. In testing the system was approximately 4 times as slow if all names were updated continually.


    Here are a few examples as a guide

    /mapnames normal [%l %R %C] %N

    /mapnames target [%l %R %C] %N (%x, %y, %z)
    Current % codes (more may be added later)

    n "Decorated" name like "a_coyote34"
    N "Cleaned up" name like "a coyote"
    h Current health %
    i SpawnID
    x X coordinate
    y Y coordinate
    z Z coordinate
    R Race full name - lower case "r" is reserved for race 3-letter code
    C Class full name - lower case "c" is reserved for class 3-letter code
    l Level
    Note: % - shows a % sign (so if you want your health display to show "100%" you would use %h%%)

    /mapshow "spawnname" [reset] (Requires MQ2Map plugin to be loaded)
    command to explicitly show spawnname on the map. Only in effect until the mapped spawns are re-generated (same as maphide).

    /memspell gem# "spell name"
    Attempts to memorize "spell name" into gem#


    Example

    /memspell 1 "complete heal" memorizes Complete Heal in spell gem 1


    /mouseto
    Moves the mouse to specified locations

    [+-]x [+-]y Moves the mouse to x y (+|- is relative to the current position)

    /mqfont #
    Changes the size of the font in the MQ2ChatWnd. The font sizes are not the same as EQ's chat window sizes yet, so be aware of that. You will probably want # to be in the range of -3 to 2.

    /mqlog text|clear
    Logs text to 'logs'directory or clears the log file. The log file will be saved in the logs folder.

    /mqlog The number of combines completed is: ${CombineCount}

    /mqpause [on|off]
    Pauses/resumes a macro to aid in debugging or chatting. Not using a parameter will toggle pausing on/off

    /multiline delimiter command [ delimiter command [ delimiter command [ ...]]]]
    Executes all commands


    Example

    /multiline ; /stand;/rude;/sit
    /nomodkey command
    Releases all ctrl/alt/shift keys for the duration of the execution of command

    /noparse command
    Prevents any MQ2Data from being parsed when used in a command.


    Example

    /noparse /ini blah blah blah ${stuff}

    Note: ${stuff} is literal instead of changing it to the current value of stuff.
    /notify windowname 0 | controlname [notification [data]]
    /notify is used to interact with UI windows directly instead of using the mouse. /notify cannot be used to interact with objects.

    Currently notification can be: leftmouse, leftmouseup, leftmousehold, rightmouse, enter, close, newvalue, mouseover,
    or history. The use of data will usually not be necessary unless you are notifying a slider control.
    Entering "0" for control would send the message to the window itself (used for "close" at least, possibly others). See /windows.

    notification can be:

    leftmouseup Performs a left click on controlname
    leftmouseheld Left click and hold on controlname until leftmouseheldup is performed
    leftmouseheldup Releases the mouse from leftmouseheld
    rightmouseup Performs a right click on controlname
    rightmouseheld Performs a right click and hold on controlname
    rightmouseheldup Releases the mouse from rightmouseheld
    enter Presses the enter key on controlname
    close Clicks the Close Window gadget of windowname
    mouseover Hovers the mouse over controlname
    newvalue n Changes the value in controlname to n
    listselect n Selects the nth item in the controlname list


    Examples /notify hotbuttonwnd HB_Button1 leftmouseup Activates the first hotkey
    /notify somewindow SomeSlider newvalue 100 Moves the referenced slider in the window to 100
    /notify trackingwnd 0 close Closes the tracking window
    /notify TradeskillWnd RecipeList listselect 1 Selects the first item in the RecipeList listbox

    /plugin list | name [noauto] |unload [noauto]
    Lists, loads, and unloads plugins. Using the noauto switch prevents updating of Macroquest.ini when loading or unloading the plugin


    /plugin name noauto
    loads name without updating Macroquest.ini

    /plugin name unload noauto
    unloads name without updating Macroquest.ini
    /popup text
    Displays text in the center of your screen. Currently the text is fixed font and color.

    /popup Current Mana: ${Me.CurrentMana}
    /popup Run away! Run away!
    /ranged [spawnID]
    Performs a ranged attack. Use with no parameters to do a ranged attack on your current target,
    or with spawnID to do a ranged attack on that spawn.

    /return [value|${varname}]
    Returns to the line immediately following the call. Can return values or variables.

    Example

    Sub MySub
    .
    <code>
    .
    /return [value|${varname}]
    /sellitem 1|#
    Sells the selected item. If # is specified it will sell that # of a stacked item.

    /setautorun
    Creates an ini entry in Macroquest.ini. Forces character into autorun at login.

    /seterror errormsg | clear
    Sets macroquest.Error to errormsg


    /seterror clear
    Clears the last error value
    /shiftkey command
    Execute a command while telling the window manager that the shift key is pressed. Can also be used together with /altkey and/or /ctrlkey, as in /ctrlkey /altkey /shiftkey command


    Example

    /shiftkey /itemnotify pack1 leftmouseup
    Pick up an entire stack

    /skills ["skillname"] (Skills are listed in Appendix C)
    Lists your skills, or your skill level
    Examples

    /skills Lists all of your skills with skill level
    /skills pottery Returns your pottery skill

    /spew on|off
    Enables or disables the output of Debug Spew to a file

    /squelch command
    Executes a command and prevents any output from the command. This does the following:
    1: Turns mq filter off
    2: Executes the command
    3: Turns mq filter back to the state it was in before step 1

    ** It is recommended that you do the following in your .CFG files that you dont want to see output from

    /squelch /filter mq on
    <do your stuff here>
    /squelch /filter mq off

    /substitute [orig substitution | delete]

    • Allows you to create custom midline substitutions that will work

      Substitutes are called from any alias or commandline by using the percent sign (%)
      Examples

      /substitute mom Mother
      /substitute omg Oh my god!
      /substitute k "%omg, kill %t before I tell your %mom"

      The final example if you typed "/say %k" would produce:

      Oh my god!, kill targetname before I tell your Mother

      Please note the following rules/reminders:
      You don't use the percent signs when creating the substitutions or editing your config file.
      You can use MQ's subsitutions without spaces around them (unlike EQs!) (ie: /echo "%omg%mom" would return "/echo Oh my god!Mother"
      Substitutions do not currently work in macros.
      /sub is currently a valid shorthand for "/subsitute"
      You can use EQ's wildcards (ie: %t) within your substitutions; however, you have to leave spaces around them (yes, they suck)
      You cannot CURRENTLY replace EQ wildcards with MQ substitutions (ie, you can't make a replacement for %m (This may be supported in the future.)
      /target option

      option can be:
      clear Clears your current target
      pc|npc Selects nearest pc or npc.
      corpse Selects the nearest corpse
      pet Selects the nearest pet
      class class Selects the nearest class match to target
      race race Selects nearest race to target
      range min max Sets the minimum and maximum level range to target
      noalert alert# Target nearest spawn not on alert #
      nearalert alert# ***NEED TO FILL THIS DESCRIPTION IN***
      notnearalert alert# ***NEED TO FILL THIS DESCRIPTION IN***
      zradius zheight Targets the spawn if it is within the height value
      radius distance Targets the spawn if it is within the 2D distance
      nopcnear radius ***NEED TO FILL THIS DESCRIPTION IN***
      notid|id spawnid ***NEED TO FILL THIS DESCRIPTION IN***
      spawnname Targets the nearest specified spawnname
      myself|mycorpse Targets the yourself or your corpse
      alert alert# Targets the specified keyword

      /timed deciseconds command
      Executes a command after a specified duration (in deciseconds like pause)

      Note: This does not "pause" successive commands.


      Example

      /timed 10 /echo 1 second has passed
      /unload
      Unloads MacroQuest

      /updateitems
      Walks through the characters inventory and bank and collects item id's and names.
      The item id and name is placed in ItemDB.txt which is created if it does not already exist.

      /varcalc varname equation
      Calculates the value of equation and stores the result in varname


      Example

      /varcalc MyVar ${Me.CurrentMana} - ${Spell[Complete Heal].Mana}
      /vardata varname new_mq2data_value
      Sets a variable directly to the end result of a MQ2Data string.


      Example

      /vardata MyFloat Math.Calc[${Me.X}+${Me.Y}]
      /varset varname value|${varname2}
      Sets varname to the specified value. If the variable is a timer, value can be in 10ths of a
      second, suffix s for seconds, m for minutes.
      Examples /varset myvar 25 Sets myvar to 25
      /varset array[3] 10 Sets the value of array[3] to 10
      /varset casttimer 30 Sets the timer to 3 seconds
      /varset array[2,12] 45 Sets the value of array[2,12] to 45
      /varset casttimer 3m Sets the Timer to 3 minutes

      /where [pc|npc|"spawn name"]
      Lists where the closest spawn or pc is


      Examples /where Lists the closest pc or npc
      /where pc Lists the closest pc
      /where npc Lists the closest npc
      where npc "orc pawn" Lists where the closest orc pawn is

      The message returned is:
      The closest 'spawnname' is a level # <race> <class> and <distance> away to the <direction>, Z difference = #.##.

      /who option

      option can be: group|pc|npc [invis|merchant|tribute|gm|corpse|any] Lists all matches in the zone for the option used.
      Note that tribue is tribute master and gm is Guild Leader
      range minlevel maxlevel Lists all matches for the option used that are within the level range designated.
      radius # Lists all matches for the option used that are within the radius designated.
      guild | noguild Lists all guild members in the zone or pc's in the zone not in a guild
      lfg Lists all characters who are looking for a group in the zone
      loc intX intY Returns the spawn located that intX intY
      name Lists the character with the name name if he/she/it is in the zone
      alert # Lists any npc/pc on alert #
      noalert # Match all spawns not on list #
      knight returns Paladins and Shadowknights in the zone
      tank returns paladins, shadowknights, and warriors in the zone
      healer returns druids and clerics in the zone
      dps returns wizards, rangers, and rogues in the zone
      slower returns shamans, enchanters, and beastlords in the zone

      /whofilter afk|anon|class |arg|gm|guild |holding|invisible|lastname |level|ld|lfg|npctag |race|spawnid|trader [on |off]
      Toggles the display of the specified option when using /who

      /whotarget
      MacroQuest enhances this command by allowing you to use it on any target (including NPC's) and displays the
      target's class, race, level, guild, con color, and distance (even if the player is in anonymous or roleplaying mode).

      /windows
      List all available UI windows. See /notify command.

      /windowstate window [open|close] Opens or closes the selected window.
      window can be: inventory, merchant, corpse, spellbook, map, or notes
 
built in MQ2 commands

Users who are viewing this thread

Back
Top
Cart