Moderator: MacroQuest Developers


Code: Select all
#event rootresist "#*#has resisted your Greater Fetter spell#*#"
#event nukeresist "#*#has resisted your Insanity spell#*#"
#event charmresist "#*#has resisted your Command of Druzzil spell#*#"
|Creates an event named xxxresist that happens when the condition occurs
sub main | beginning of macro
:newpet | subroutine called newpet
/if (${Me.Pet.ID}) {
/goto :loop | Checks to see if I have a pet, if I do...it goes to subroutine loop
}
:newpet2 |subroutine called newpet2
/if (${Target.ID}) { |this routine works only if I have something targetted
/if (${Target.ID!=${Me.ID}&&${Target.PctHPs}<5) { |If the target is me, and the mob I am killing is less than 5% hitpoints, proceed.
/popup "Nuking target, Inadequate pet!" | onscreen message
/e Killing an invalid pet, ${Target.Name} | message that comes up in MQ UI chat screen
/cast "Greater Fetter"
/delay 4.1s
/doevents rootresist
/cast "Insanity"
/delay 8.4s
/doevents nukeresist
/if (${Target.ID}) {
/goto :newpet2
}
}
/if (${Target.ID}!=${Me.ID}&&${Target.PctHPs}>5) {
/popup "Valid pet targetted, Attempting to Charm"
/e Attempt to charm ${Target.Name}
/cast "Command of Druzzil"
/delay 7.4s
/doevents charmresist
/goto :newpet
}
}
/goto :newpet
:loop
/if (${Me.Pet.PctHPs}<5) {
/target ${Me.Pet}
/cast item "Item Name"
|Need to change this Delay value to the casting time of your clicky invis.
|Or you need to change /cast item "Item Name" to /cast "Improved Invisibility"
|If using improv invis, change delay to /delay 6.3s
/delay 1s
/goto :newpet2
}
/goto :newpet
/return
sub Event_rootresist
/popup Root resisted, Recasting.
/cast "Greater Fetter"
/delay 4.1s
/return
sub Event_nukeresist
/popup Nuke resisted, Nuking again.
/cast "Insanity"
/delay 8.4s
/return
sub Event_charmresist
/popup Charm resist! Casting again.
/cast "Command of Druzzil"
/delay 7.4s
/return

Code: Select all
#turbo
#event rootresist "#*#has resisted your Greater Fetter spell#*#"
#event nukeresist "#*#has resisted your Insanity spell#*#"
#event charmresist "#*#has resisted your Command of Druzzil spell#*#"
#include spellcast.inc
sub main
/popup Starting
:newpet
/if (${Me.Pet.ID}) {
/goto :loop
}
:newpet2
/popup newpet2
/if (${Target.ID}) {
/if (${Target.ID!=${Me.ID}&&${Target.PctHPs}<5) {
/popup "Nuking target, Inadequate pet!"
/e Killing an invalid pet, ${Target.Name}
/cast "Greater Fetter"
/delay 4.1s
/doevents rootresist
/cast "Insanity"
/delay 8.3s
/doevents nukeresist
/if (${Target.ID}) {
/goto :newpet2
}
}
/if (${Target.ID}!=${Me.ID}&&${Target.PctHPs}>5) {
/popup "Valid pet targetted, Attempting to Charm"
/e Attempt to charm ${Target.Name}
/cast "Command of Druzzil"
/delay 7.3
/doevents charmresist
/goto :newpet
}
}
/goto :newpet
:loop
/popup loop
/if (${Me.Pet.PctHPs}<5) {
/target ${Me.Pet}
/cast item "Boots of the Mosquito"
|Need to change this Delay value to the casting time of your clicky invis.
|Or you need to change /cast item "Item Name" to /cast "Improved Invisibility"
|If using improv invis, change delay to /delay 6.3s
/delay 1s
/goto :newpet2
}
/goto :newpet
/return
sub Event_rootresist
/popup Root resisted, Recasting.
/cast "Greater Fetter"
/delay 4.1s
/return
sub Event_nukeresist
/popup Nuke resisted, Nuking again.
/cast "Insanity"
/delay 8.3s
/return
sub Event_charmresist
/popup Charm resist! Casting again.
/cast "Command of Druzzil"
/delay 7.3s
/return
/return
Code: Select all
:newpet2
/popup newpet2
/if (${Target.ID}) {
/if (${Target.ID!=${Me.ID}&&${Target.PctHPs}<5) {
Code: Select all
/if (${Target.ID}!=${Me.ID}&&${Target.PctHPs}<5) { 
