Page 2 of 7

Posted: Mon Dec 27, 2004 1:16 am
by lazyshammy
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

Posted: Tue Dec 28, 2004 8:46 am
by ztrike
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

...

Posted: Mon Jan 03, 2005 12:20 pm
by AEbard
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?

Posted: Wed Jan 05, 2005 6:51 pm
by Ultra
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

Posted: Wed Jan 05, 2005 9:07 pm
by fearless
yes

Posted: Thu Jan 06, 2005 3:56 am
by lazyshammy
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.

Posted: Thu Jan 06, 2005 6:42 am
by A_Druid_00
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.

Posted: Fri Jan 07, 2005 3:39 pm
by Birdbrain
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>

Posted: Fri Jan 07, 2005 4:52 pm
by aChallenged1
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.

Posted: Fri Jan 07, 2005 5:33 pm
by Neolesh

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]}) { 

Posted: Fri Jan 07, 2005 6:59 pm
by aChallenged1
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.

Posted: Fri Jan 07, 2005 7:58 pm
by Birdbrain
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.

Posted: Fri Jan 07, 2005 8:34 pm
by Neolesh
Hehe I make stupid mistakes in formating all the time, I guess you just get an eye for it :D

Posted: Fri Jan 07, 2005 8:56 pm
by A_Druid_00
You really do after staring long enough. Then it's just following your logic through and making sure you cover all possible angles.

Posted: Wed Jan 19, 2005 6:50 pm
by Birdbrain
2.5 doesnt work after you attack a mob it automatically ends, something with bite.