Posted with permission from s0rcier
INTRODUCTION
The MQ2Melee plugin is designed to be next evolution of MQ2AutoSkills and MQ2ThrowIt plugins with all their features and functionnalities and even more... All credits for the concept should go to Cr4zyb4rd and Bushdaka and all those people involved that have been maintaining those excellent plugins. They provided me, the inspiration to built upon their efforts. Current goals of MQ2Melee is to provide intelligent use of SHORT TIME REUSE MELEE ABILITIES and PET HANDLING during combat depending on current game conditions and plugins configuration. It is designed to replace melee oriented functions that are commonly used in macros. Things like "/assist" "/shield" or "lay hands" are still beyond scope of MQ2Melee.
DOWNLOAD
http://www.geocities.com/s0rcier_mq2/MQ2Melee3.762.zip
ABILITIES
ABILITIES: BackStab, Bash, Begging, Disarm, Dragon Punch, Eagle Strike, Feign Death, Flying Kick, Forage, Frenzy, Hide, Intimidation, Kick, Layhand, Mend, Pick Pockets, Round Kick, Sense Traps, Sneak, Taunt and Tiger Claw.
ALT ABILITIES: 2 Hand Bash, Call of Challenge, Feral Swipe, Mend Companion, Replenish Companion, and Pet Discipline (aka /pet hold).
COMBAT ABILITES: Ancient Chaos Cry, Bazu Bellow, Bellow, Bellow of the Mastruq, Berate, Commanding Voice, Cry Havoc, Destroyer`s Volley, Dragon Fang, Fists of Wu, Incite, Leopard Claw, Provoke, Rage Volley, Rake, Silentfist Discipline, Thief`s Eye, Throw Stone, and Thunderkick Discipline.
FEATURES
- BRILLANT USE OF ABILITIES:
- Auto use abilities according to setting and game conditions.
- Auto Equip defined items for bashing, backstabbing or ranged.
- Built in user conditions to restrain use of certain abilities.
- No longer needed to have abilities mapped to a buttons.
- CHAT MONITORING:
- Failed Feign Death Auto-Stand.
- Begin to Cast Auto(Bash/Slam/Kick) or Auto Cast defined Stuns.
- Enrage/Infuriate Auto Turn Attack On/Off.
- Auto-Detect most snare target message.
- MELEE:
- Auto Equip Weapon set prior to engage. (agro/non-aggro mode).
- Auto Use of defined abilities.
- Configurable Stick Arguments for Melee Mode.
- Configurable Auto-Facing Target.
- MELEE (AGGRO MODE):
- Auto Taunt when you loose aggro on target.
- Configurable spells to cast to gain/maintain aggro.
- MELEE (NON AGGRO MODE)
- BackOff/Feign/Evade fight if your health goes below a point.
- Auto Resume fight if your health goes back above a point.
- RANGED:
- Toggle between Melee/Range Mode According to Target Distance.
- Swap In/Out defined ranged items (bow/throwing).
- Auto Refill ammunitions slot when less than 80 in a stacks.
- Built-in /throwit command you could use to pulls.
- Auto-Sleep mode while autofire is on.
- PET HANDLING:
- Issue /pet back and /pet hold after each mobs dies.
- Configure pet to wait to assist till mobs within range.
- Configure pet to wait to assist till end of specified delay.
- Mend Pet if his life goes below a certain point.
- Option to auto-reengage target when no longer mezzed.
- Backup pet on enrage/infuriate events and re-engage after.
COMMANDS
Well i try to make MQ2Melee macro scripters friendly, with addition of TLO (Top Level Object) and some new / commands i hope i could shoulder their burdens!
/MELEE: Tell the plugin what setting you want on, this is the main configuration entry points for the plugins.
/KILLTHIS: Tell the plugin you want to engage current target, if your feigning this should stand you up, it's also reset all his internal value. (If your play your toon manually you dont need to use that command at all, just press the attack button!)
/THROWIT: Tell plugin to perform a ranged attack on current target. This use MQ2Melee Built-In Enhanced Ranged Mode! Means it should auto-equip defined ammunition and ranged item, auto-refill ammunition, perform archery/throwing, then swap back previous range item.
/ENRAGEON <targetid>: Tell plugin to react like their was an enrage events being detected. If target id is given it will make sure it's matches internal killing target id. (This is designed to be used with 3rd party plugin or macro ie: mq2events with mq2eqbc, create trigger on to detect that target goes on enrage state, then set it to broadcast via mq2eqbc "/bca //enrageon ${Target.ID}" it will allow casters that might be too far from melee to detect that mob is enraged and back up their pet!)
/ENRAGEOFF <targetid>: Tell plugin to react like enrage events is complete. See Also /ENRAGEON.
/INFURIATEON <targetid>: Tell plugin to react like infuriate was detected. See Also /ENRAGEON.
/INFURIATEOFF <targetid>: Tell plugin to react like infuriate event was complate. See Also /ENRAGEON.
HOLY SHIT
Well MQ2Melee now support up to 8 macro command line that will be executed one at a time if their is no casting going and the cursor is free. You must be carefull when setting those to not fall into an auto-repeat endless loops and make a spam wars, make sure your conditions when done will setup something that will force the next time this is evaluated to be false for a while! Here is a small example of 2 holyshits command that i setup on one of my toons. This is set to swap in primal weapon (id 29444) if i dont have avatar and that avatar could stack. Other one swap main default weapon (id 83834) if i have avatar or if avatar wont stack.
TOP LEVEL OBJECT
MQ2Melee now have built in Top Level Object (TLO) that provide data informations that could be used for macro scripting, hud designing or with internal built in user defined conditions. I plan on expending this TLO with request i get.
USER DEFINE CONDITION
MQ2Melee now support of user defined condition that will be used during skill triggering evaluation to determine if plugin should or should not attempt to perform a skill. Those conditions are character based and could only be set by editing the INI file. They are not required for this plugin to works, but it could make some skill to be more often activated when desired and make this plugin look more intelligent and flexible. Here is a look at the current supported list of variables.
INIKEY: BackStabIF, BashIF, BeggingIF, CommandingIF, CryHavocIF, DisarmIF, DragonPunchIF, EagleStrikeIF, EvadeIF, FallsIF, FistsOfWuIF, FlyingKickIF, ForageIF, FrenzyIF, HideIF, IntimidationIF, KickIF, LayhandIF, LeopardClawIF, MendIF, PickPocketsIF, RageVolleyIF, RakeIF, RoundKickIF, SenseTrapsIF, SlamIF, SnareIF, SneakIF, StunIF, TauntIF, ThiefEyeIF, ThrowStoneIF and TigerclawIF.
There is currently one restriction you have to consider before attempting to create your own special condition. CONDITION MUST RETURN AN INTEGER. Any evaluated result that is not 0 will return true, all the rest will return false. ${Me.Combat} will always return false. ${If[${Me.Combat],1,0]} will always be evaluated correctly.
Suggested Conditions: I strongly suggest that you check the one that you might need and put them in the ini file under your toonname. When you get used to them you could modify or add more for your needs.
SPECIAL RECOGNITION
Thumbs Up and big thanks to: A_Druid_00, Dark2phoenix, DigitalMocking, DigitalXero, Lacky, Moeymoejoe, Outlander and Warauinu, also big thanks to those plugin authors Cr4zyb4rd, Outlander and Wassup and finally thanks to Dark2phoenix and Wasted for updating and maintaining MQ2Melee Wiki Page.
DONATIONS
If you really enjoy my plugins and want to throw me a bone for all my good hard works, you could send me some via PAYPAL. Just click on the blue donations title to open Paypal Site. or use this id: [email protected].
s0rCieR
INTRODUCTION
The MQ2Melee plugin is designed to be next evolution of MQ2AutoSkills and MQ2ThrowIt plugins with all their features and functionnalities and even more... All credits for the concept should go to Cr4zyb4rd and Bushdaka and all those people involved that have been maintaining those excellent plugins. They provided me, the inspiration to built upon their efforts. Current goals of MQ2Melee is to provide intelligent use of SHORT TIME REUSE MELEE ABILITIES and PET HANDLING during combat depending on current game conditions and plugins configuration. It is designed to replace melee oriented functions that are commonly used in macros. Things like "/assist" "/shield" or "lay hands" are still beyond scope of MQ2Melee.
DOWNLOAD
http://www.geocities.com/s0rcier_mq2/MQ2Melee3.762.zip
ABILITIES
ABILITIES: BackStab, Bash, Begging, Disarm, Dragon Punch, Eagle Strike, Feign Death, Flying Kick, Forage, Frenzy, Hide, Intimidation, Kick, Layhand, Mend, Pick Pockets, Round Kick, Sense Traps, Sneak, Taunt and Tiger Claw.
ALT ABILITIES: 2 Hand Bash, Call of Challenge, Feral Swipe, Mend Companion, Replenish Companion, and Pet Discipline (aka /pet hold).
COMBAT ABILITES: Ancient Chaos Cry, Bazu Bellow, Bellow, Bellow of the Mastruq, Berate, Commanding Voice, Cry Havoc, Destroyer`s Volley, Dragon Fang, Fists of Wu, Incite, Leopard Claw, Provoke, Rage Volley, Rake, Silentfist Discipline, Thief`s Eye, Throw Stone, and Thunderkick Discipline.
FEATURES
- BRILLANT USE OF ABILITIES:
- Auto use abilities according to setting and game conditions.
- Auto Equip defined items for bashing, backstabbing or ranged.
- Built in user conditions to restrain use of certain abilities.
- No longer needed to have abilities mapped to a buttons.
- CHAT MONITORING:
- Failed Feign Death Auto-Stand.
- Begin to Cast Auto(Bash/Slam/Kick) or Auto Cast defined Stuns.
- Enrage/Infuriate Auto Turn Attack On/Off.
- Auto-Detect most snare target message.
- MELEE:
- Auto Equip Weapon set prior to engage. (agro/non-aggro mode).
- Auto Use of defined abilities.
- Configurable Stick Arguments for Melee Mode.
- Configurable Auto-Facing Target.
- MELEE (AGGRO MODE):
- Auto Taunt when you loose aggro on target.
- Configurable spells to cast to gain/maintain aggro.
- MELEE (NON AGGRO MODE)
- BackOff/Feign/Evade fight if your health goes below a point.
- Auto Resume fight if your health goes back above a point.
- RANGED:
- Toggle between Melee/Range Mode According to Target Distance.
- Swap In/Out defined ranged items (bow/throwing).
- Auto Refill ammunitions slot when less than 80 in a stacks.
- Built-in /throwit command you could use to pulls.
- Auto-Sleep mode while autofire is on.
- PET HANDLING:
- Issue /pet back and /pet hold after each mobs dies.
- Configure pet to wait to assist till mobs within range.
- Configure pet to wait to assist till end of specified delay.
- Mend Pet if his life goes below a certain point.
- Option to auto-reengage target when no longer mezzed.
- Backup pet on enrage/infuriate events and re-engage after.
COMMANDS
Well i try to make MQ2Melee macro scripters friendly, with addition of TLO (Top Level Object) and some new / commands i hope i could shoulder their burdens!
/MELEE: Tell the plugin what setting you want on, this is the main configuration entry points for the plugins.
/KILLTHIS: Tell the plugin you want to engage current target, if your feigning this should stand you up, it's also reset all his internal value. (If your play your toon manually you dont need to use that command at all, just press the attack button!)
/THROWIT: Tell plugin to perform a ranged attack on current target. This use MQ2Melee Built-In Enhanced Ranged Mode! Means it should auto-equip defined ammunition and ranged item, auto-refill ammunition, perform archery/throwing, then swap back previous range item.
/ENRAGEON <targetid>: Tell plugin to react like their was an enrage events being detected. If target id is given it will make sure it's matches internal killing target id. (This is designed to be used with 3rd party plugin or macro ie: mq2events with mq2eqbc, create trigger on to detect that target goes on enrage state, then set it to broadcast via mq2eqbc "/bca //enrageon ${Target.ID}" it will allow casters that might be too far from melee to detect that mob is enraged and back up their pet!)
/ENRAGEOFF <targetid>: Tell plugin to react like enrage events is complete. See Also /ENRAGEON.
/INFURIATEON <targetid>: Tell plugin to react like infuriate was detected. See Also /ENRAGEON.
/INFURIATEOFF <targetid>: Tell plugin to react like infuriate event was complate. See Also /ENRAGEON.
HOLY SHIT
Well MQ2Melee now support up to 8 macro command line that will be executed one at a time if their is no casting going and the cursor is free. You must be carefull when setting those to not fall into an auto-repeat endless loops and make a spam wars, make sure your conditions when done will setup something that will force the next time this is evaluated to be false for a while! Here is a small example of 2 holyshits command that i setup on one of my toons. This is set to swap in primal weapon (id 29444) if i dont have avatar and that avatar could stack. Other one swap main default weapon (id 83834) if i have avatar or if avatar wont stack.
Rich (BB code):
[MQ2Melee]
HolyFlag0=1
HolyFlag1=1
HolyShit0=/if (${Me.Inventory[offhand].ID}==83834 && !${Me.Buff[avatar].ID} && ${Spell[avatar].Stacks}) /exchange 29444 offhand
HolyShit1=/if (${Me.Inventory[offhand].ID}==29444 && (${Me.Buff[avatar].ID} || !${Spell[avatar].Stacks})) /exchange 83834 offhand
TOP LEVEL OBJECT
MQ2Melee now have built in Top Level Object (TLO) that provide data informations that could be used for macro scripting, hud designing or with internal built in user defined conditions. I plan on expending this TLO with request i get.
Rich (BB code):
${Melee.Enable}: true/false if plugin on/off, return null if not loaded.
${Melee.Combat}: true/false if plugin enable and got valid kill target. Should replace ${Me.Combat} logic.
${Melee.Casted}: integer time elapsed since last detect spell casting. 60000 if not.
${Melee.Snared}: true/false if plugin detect that killing target has been snared.
${Melee.Engage}: true/false if we have a valid kill target and it`s okay to turn attack on.
${Melee.Status}: string representing current plugin status.
${Melee.Target}: integer matching spawn id of current valid kill target, otherwise 0.
${Melee.DiscID}: integer matching spell id of current discipline running, 0 if none.
${Melee.GotAggro}: true/false if current target seems to be aggroed on you. (not perfect)
${Melee.AggroMode}: true/false if plugin operating in aggro mode or not.
${Melee.MeleeMode}: integer maximum distance to kill target to be considered in melee.
${Melee.RangeMode}: integer minimum distance to kill target to be considered in archery.
${Melee.Enrage}: true/false if kill target is enraged!
${Melee.Infuriate}: true/false if kill target is infuriated!
${Melee.BackAngle}: float angle representing heading difference with current target`s back.
${Melee.ViewAngle}: float angle of view with current target!
${Melee.Immobilize}: true/false if you are immobilize for more then 250ms.
${Melee.Ammunition}: integer count of ammunition for defined ammunition or current equipped ammunition.
${Melee.BackStabbing}: true/false if BackStab setting on/off.
USER DEFINE CONDITION
MQ2Melee now support of user defined condition that will be used during skill triggering evaluation to determine if plugin should or should not attempt to perform a skill. Those conditions are character based and could only be set by editing the INI file. They are not required for this plugin to works, but it could make some skill to be more often activated when desired and make this plugin look more intelligent and flexible. Here is a look at the current supported list of variables.
INIKEY: BackStabIF, BashIF, BeggingIF, CommandingIF, CryHavocIF, DisarmIF, DragonPunchIF, EagleStrikeIF, EvadeIF, FallsIF, FistsOfWuIF, FlyingKickIF, ForageIF, FrenzyIF, HideIF, IntimidationIF, KickIF, LayhandIF, LeopardClawIF, MendIF, PickPocketsIF, RageVolleyIF, RakeIF, RoundKickIF, SenseTrapsIF, SlamIF, SnareIF, SneakIF, StunIF, TauntIF, ThiefEyeIF, ThrowStoneIF and TigerclawIF.
There is currently one restriction you have to consider before attempting to create your own special condition. CONDITION MUST RETURN AN INTEGER. Any evaluated result that is not 0 will return true, all the rest will return false. ${Me.Combat} will always return false. ${If[${Me.Combat],1,0]} will always be evaluated correctly.
Suggested Conditions: I strongly suggest that you check the one that you might need and put them in the ini file under your toonname. When you get used to them you could modify or add more for your needs.
Rich (BB code):
BackStabIF=${If[${Melee.AggroMode} || ${Target.PctHps}<85,1,0]}
BashIF=${If[${Target.Class.CanCast} || ${Melee.AggroMode},1,0]}
DisarmIF=${If[${Target.Holding} || ${Math.Rand[100]>92,1,0]}
ForageIF=${If[${Me.Inventory[chest].ID} && !${Cursor.ID},1,0]}
TauntIF=${If[${Me.GroupSize} && !${Melee.GotAggro},1,0]}
CommandingIF=${If[${Target.PctHPs}>75,1,0]}
CryHavocIF=${If[${Target.PctHPs}>75,1,0]}
FistsOfWuIF=${If[${Target.PctHPs}>75,1,0]}
ThiefEyeIF=${If[${Target.PctHPs}>75,1,0]}
LeopardClawIF=${If[${Melee.AggroMode} || ${Target.PctHPs}<70,1,0]}
ThrowStoneIF=${If[!${Melee.AggroMode},1,0]}
SPECIAL RECOGNITION
Thumbs Up and big thanks to: A_Druid_00, Dark2phoenix, DigitalMocking, DigitalXero, Lacky, Moeymoejoe, Outlander and Warauinu, also big thanks to those plugin authors Cr4zyb4rd, Outlander and Wassup and finally thanks to Dark2phoenix and Wasted for updating and maintaining MQ2Melee Wiki Page.
DONATIONS
If you really enjoy my plugins and want to throw me a bone for all my good hard works, you could send me some via PAYPAL. Just click on the blue donations title to open Paypal Site. or use this id: [email protected].
s0rCieR


So it's not like the information wasn't readily available 
