RH mod for SK now 2.5

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

lazyshammy
orc pawn
orc pawn
Posts: 20
Joined: Sat Dec 11, 2004 2:49 pm

Post by lazyshammy » Mon Dec 27, 2004 1:16 am

code is now too long for 2 posts

Code: Select all

Sub Event_HelpInfo 
  /varset lastevent Event_HelpInfo 
  /if (${verbosity}>=0) /${channel} --------=========(SKH Help)=========---------- 
  /if (${verbosity}>=0) /${channel} /SKHhelp - Display this information! 
  /if (${verbosity}>=0) /${channel} /status - Display status of all SKH modes 
  /if (${verbosity}>=0) /${channel} /pause - Suspends the operations of SKH 
  /if (${verbosity}>=0) /${channel} /stopfight <%> - Set % of your health to stop attacking 
  /if (${verbosity}>=0) /${channel} /autostick - Toggle autosticking to NPCs SKHile attacking 
  /if (${verbosity}>=0) /${channel} /stickdist <range_target> <range_tank> - Set stick thresholds  
  /if (${verbosity}>=0) /${channel} /closeness <%> - Set % of max hit range SKHile autosticking 
  /if (${verbosity}>=0) /${channel} /dynclose - Toggle automatic real time closeness adjustments 
  /if (${verbosity}>=0) /${channel} /autoassist <main_assist> <%health> - Activate autoassist 
  /if (${verbosity}>=0) /${channel} /autoassist off - Disable autoassisting 
  /if (${verbosity}>=0) /${channel} /autoassist on - Turn on autoassist w/existing tank info 
  /if (${verbosity}>=0) /${channel} /mainassist <player> - Sets main assist to <player> 
  /if (${verbosity}>=0) /${channel} /secondassist <player> - Sets secondary assist to <player> 
  /if (${verbosity}>=0) /${channel} /thirdassist <player> - Sets third assist to <player> 
  /if (${verbosity}>=0) /${channel} /autosnare - Sets casting of ${Snare} ON|OFF|spell name
  /if (${verbosity}>=0) /${channel} /autoToH - Sets casting ${Attackdebuff} ON|OFF|spell name
  /if (${verbosity}>=0) /${channel} /autoToP - Setss casting ${AcDebuff} ON|OFF|spell name
  /if (${verbosity}>=0) /${channel} /autoToD - Sets casting ${Terrorspell} ON|OFF|spell name
  /if (${verbosity}>=0) /${channel} /autoSpear - Sets casting ${Spearspell} ON|OFF|spell name
  /if (${verbosity}>=0) /${channel} /autoBIte - Sets casting ${Bite} ON|OFF|spell name hp 
  /if (${verbosity}>=0) /${channel} /dynaggro - Toggle dynamic management of assist health % 
  /if (${verbosity}>=0) /${channel} /leash <distance> - Activate leash with <distance> ft. 
  /if (${verbosity}>=0) /${channel} /leash <distance> <master> - Activate leash w/a master 
  /if (${verbosity}>=0) /${channel} /leash off - Disable leashing 
  /if (${verbosity}>=0) /${channel} /leashflex <%length> - Set leash flexibility 
  /if (${verbosity}>=0) /${channel} /drag <body1> <body2> ... <bodyN> - Drag corpses 
  /if (${verbosity}>=0) /${channel} /lootmycorpse - Loot your own corpse completely 
  /if (${verbosity}>=0) /${channel} /iset <itemalias> keepup|nokeepup <"Item Name"> - Item settings 
  /if (${verbosity}>=0) /${channel} /ibounce <itemalias> <"Spell Name"> - Add bounce-off spell 
  /if (${verbosity}>=0) /${channel} /iclick <itemalias> - Click cast item defined in <itemalias> 
  /if (${verbosity}>=0) /${channel} /autoninja <mode> [<range>] - Automatic NPC corpse looting 
  /if (${verbosity}>=0) /${channel} /autofollow [<name>] [<distance>] - Follow <name> at <distance> 
  /if (${verbosity}>=0) /${channel} /weaponswitch <weapon1> <"switch text"> <weapon2> - weapon swap 
  /if (${verbosity}>=0) /${channel} /targetswitch - Toggle autoswitching of targets in autoassist  
  /if (${verbosity}>=0) /${channel} /autodisc1 "Discipline Name"|ON|OFF <end%> <reuse> - Auto disc 1 
  /if (${verbosity}>=0) /${channel} /autodisc2 "Discipline Name"|ON|OFF <end%> <reuse> - Auto disc 2 
  /if (${verbosity}>=0) /${channel} /addmaster <name> - Add a master to remote control users 
  /if (${verbosity}>=0) /${channel} /remmaster <name> - Remove a master from remote control users 
/return 

Sub Event_StatInfo 
  /varset lastevent Event_StatInfo 
  /if (${verbosity}>=0) /${channel} -------=======(Current Status)=======-------- 
  |- Check for the presense of MQ2MoveUtils plugin 
  /if (${Stick.Status.Length}) { 
    /varset useMU TRUE 
    /if (${verbosity}>=0) /${channel} ** MQ2MoveUtils ENABLED (Enhanced Movement ON) 
  } else { 
    /varset useMU FALSE 
    /if (${verbosity}>=0) /${channel} ** MQ2MoveUtils NOT FOUND (Enhanced Movement OFF) 
  } 
  /if (${verbosity}>=0) /${channel} ** Cease Combat: ${StopFightingHealth}% HP 
  /if (${verbosity}>=0) /${channel} ** Auto Stick: ${doStick}, Closeness${If[${doDynclose},[DYN],]}: ${closeness}% MaxRange 
  /if (${verbosity}>=0) /${channel} ** -- Range to Target: ${rngtarget} -- Range to Tank: ${rngtank} 
  /if (${verbosity}>=0) /${channel} ** Auto ${Snare}: ${doDD}, Auto ${Spear}: ${doSpear}
  /if (${verbosity}>=0) /${channel} ** Auto ${Bite}: ${doBite}
  /if (${verbosity}>=0) /${channel} ** Auto ${Acdebuff}: ${doToP}, Auto ${Attackdebuff}: ${doToH}
  /if (${verbosity}>=0) /${channel} ** Auto ${Terror}: ${doToD}, Auto ${Voice}: ${doVoice} on ${Voicereciever}
  /if (${verbosity}>=0) /${channel} ** Auto Taunt: ${doTaunt}
  /if (${verbosity}>=0) /${channel} ** Auto Ninja: ${ninjamode}, Distance: ${ninjadist} ft. 
  /if (${verbosity}>=0) /${channel} ** Auto TargetSwitching: ${doTSwitch}
  /if (${verbosity}>=0) /${channel} ** Auto Assist: ${doAutoassist}, Assist at ${assistpct}% HP 
  /if (${verbosity}>=0) /${channel} ** MA: ${firstassist}, SA: ${secondassist}, TA: ${thirdassist} 
  /if (${verbosity}>=0) /${channel} ** Leashing: ${doLeash} (${leashlength} ft.), Master: ${leashholder}, Flex: ${leashflex} 
  /if (${verbosity}>=0) /${channel} ** Auto Disc #1: ${doDisc1} -> ${disc1} / ${disc1reuse} mins - End: ${disc1end}% 
  /if (${verbosity}>=0) /${channel} ** Auto Disc #2: ${doDisc2} -> ${disc2} / ${disc2reuse} mins - End: ${disc2end}% 
  /if (${verbosity}>=0) /${channel} ** Dynamic Aggro Control: ${doDynaggro} 
  /if (${verbosity}>=0) /${channel} ** WeaponSwitching: ${doSwitch}, ${weapon1}->${weapon2} (${switchtext}) 
  /if (${verbosity}>=0) /${channel} ** Authorized remote controllers: 
  /for i 1 to 20 
    /if (${Ini[SKHSettings.ini,Masters,Controller${i}].NotEqual[Nobody]}) /if (${verbosity}>=0) /${channel} ---- ${Ini[SKHSettings.ini,Masters,Controller${i}]} allowed... 
  /next i 
  /doevents flush 
/return
Last edited by lazyshammy on Sun Jan 16, 2005 11:07 am, edited 1 time in total.

ztrike
a ghoul
a ghoul
Posts: 83
Joined: Fri Mar 26, 2004 1:17 pm
Contact:

Post by ztrike » Tue Dec 28, 2004 8:46 am

looks great !

future features that would rock -

set mana% on where you would stop casting so you dont run oom because of the different spells
Ztrike out

AEbard
a lesser mummy
a lesser mummy
Posts: 43
Joined: Fri Jan 30, 2004 10:53 am

...

Post by AEbard » Mon Jan 03, 2005 12:20 pm

Can it be setup so that when you run it, the program will assist puller and cast spell first instead of running and instantly sticking?

Ultra
orc pawn
orc pawn
Posts: 24
Joined: Tue Jun 08, 2004 10:42 pm
Location: Pittsburgh
Contact:

Post by Ultra » Wed Jan 05, 2005 6:51 pm

What are the chances of a mod simler to this, for Paladin's? I took a look at this code, and was entirely blown away by the complexity that my small brain can't even begin to comprehend, even after looking at the MQ2 Manual, for some insight.. I see a macro for just about every class, but a Paladin.. are we soldiers of light, hated that much? hehe

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Wed Jan 05, 2005 9:07 pm

yes
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

lazyshammy
orc pawn
orc pawn
Posts: 20
Joined: Sat Dec 11, 2004 2:49 pm

Post by lazyshammy » Thu Jan 06, 2005 3:56 am

been away etc for awhile so havnt done work on it.

it is possible to do it for pally but i dont play one so i dont know what spells to use etc

with casting spells on inc you could do it but if say you target another npc it would try to cast on it but it would be easy to set atm i have it in code not to try and cast on npc with over 95% just either delete the

Code: Select all

 && ${Target.PctHPs}<95 
or change it to 100

other problem i have is i dont know a good routine to cast damage spells ... spear just chain casts but it has long recast time so it doesnt stop you meleeing etc but if i used that routine for bite etc it would just chaincast the spell.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Thu Jan 06, 2005 6:42 am

Can just set a timer for any spells you don't want to chain. Could also use TargetofTarget as your gauge to cast Aggro type spells.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Birdbrain
a lesser mummy
a lesser mummy
Posts: 45
Joined: Sat Oct 23, 2004 1:40 pm

Post by Birdbrain » Fri Jan 07, 2005 3:39 pm

Anyone know why i get an error once i manually attack a mob and the macro ends? This is what the error is.

Code: Select all

Failed to parse /if command. Could not find command to execute
skh.mac@604 (main):/if(${me.abilityready["1 1 1"] &&
!${invslot[offhand].item.type.equal[shield]}{
The current macro has ended
Usage:/if (<conditions>) <command>

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 07, 2005 4:52 pm

Birdbrain wrote:Anyone know why i get an error once i manually attack a mob and the macro ends? This is what the error is.

Code: Select all

Failed to parse /if command. Could not find command to execute
skh.mac@604 (main):/if(${me.abilityready["1 1 1"] &&
!${invslot[offhand].item.type.equal[shield]}{
The current macro has ended
Usage:/if (<conditions>) <command>
It ran into a problem at line 604... looking at what you have there, it seems there are spaces between the numbers for the abilityready["111"]. That's all I can tell just looking at that.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Neolesh
a hill giant
a hill giant
Posts: 231
Joined: Mon Aug 23, 2004 11:15 am

Post by Neolesh » Fri Jan 07, 2005 5:33 pm

Code: Select all

/if (${Me.AbilityReady["111"]} && !${InvSlot[Offhand].Item.Type.Equal[Shield]} {
should be

Code: Select all

/if (${Me.AbilityReady["111"]} && !${InvSlot[Offhand].Item.Type.Equal[Shield]}) { 

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 07, 2005 6:59 pm

Neolesh wrote:

Code: Select all

/if (${Me.AbilityReady["111"]} && !${InvSlot[Offhand].Item.Type.Equal[Shield]} {
should be

Code: Select all

/if (${Me.AbilityReady["111"]} && !${InvSlot[Offhand].Item.Type.Equal[Shield]}) { 
Neo, for the life of me, I can't see a difference....

Then I copied and pasted them one over the other and I see it now. Adding one silly ")" made all the difference.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

Birdbrain
a lesser mummy
a lesser mummy
Posts: 45
Joined: Sat Oct 23, 2004 1:40 pm

Post by Birdbrain » Fri Jan 07, 2005 7:58 pm

theres ) instead of { or something that fixed it though, thnx a lot dude great macro except it should have a timer on tod imo instead of chain casting it and, adding zevfeers/inrukus would be niced, i edited tof to be inrukus but doesnt work too good.

Neolesh
a hill giant
a hill giant
Posts: 231
Joined: Mon Aug 23, 2004 11:15 am

Post by Neolesh » Fri Jan 07, 2005 8:34 pm

Hehe I make stupid mistakes in formating all the time, I guess you just get an eye for it :D

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Fri Jan 07, 2005 8:56 pm

You really do after staring long enough. Then it's just following your logic through and making sure you cover all possible angles.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Birdbrain
a lesser mummy
a lesser mummy
Posts: 45
Joined: Sat Oct 23, 2004 1:40 pm

Post by Birdbrain » Wed Jan 19, 2005 6:50 pm

2.5 doesnt work after you attack a mob it automatically ends, something with bite.