|-----------------------------|
|---------mindwiz.mac---------|
|-----------------------------|
#include spell_routines.inc
#Event SnareWornOff "Your |${Snare}| spell has worn off#*#"
#Event Summoned "You have been summoned!"
#Event ImHit "#*#YOU for#*#points of damage."
Sub Main(int MindCrash)
|-------------------------------|
|-- Edit These To Your Liking --|
|-------------------------------|
/declare SelfRune string outer Squamae of the Crystalwing Rk. II
/declare SelfHPBuff string outer Shield of the Crystalwing
/declare SmallNuke85 string outer Wildmagic Blast
/declare SmallNuke80 string outer Wildmagic Burst
/declare BigNuke85 string outer Ethereal Combustion Rk. II
/declare BigNuke80 string outer Ethereal Incineration Rk. II
/declare Concussion string outer Mindfreeze
/declare Harvest string outer Serene Harvest Rk. II
/declare Snare string outer Atol's Shackles
/declare Flappy string outer Ro's Flaming Familiar
/declare SnareAt int outer 95
/declare NukeAt int outer 95
/declare ConcussionAfter int outer 0
/declare UseHoDBelow int outer 70
/declare UseHarvestBelow int outer 50
/declare MedAt int outer 30
/declare ReAssist timer outer 4s
|--------------|
|-- END EDIT --|
|--------------|
/doevents
/call Initialize
/echo Time to NUKE some shit!
/keypress esc
:MainLoop
/doevents
|/call CheckHP
/call CheckBuffs
/call CheckAA
/call CheckTarget
/call Nuke
|/call Snare
/doevents
/call CheckHarvest
/call CheckMana
/goto :MainLoop
/return
|-------------------------------|
|-- Sub Initialize -------------|
|-------------------------------|
Sub Initialize
/if (!${Target.ID} || ${Target.Type.NotEqual[PC]} || ${Target.ID}==${Me.ID}) {
/echo Please target the main tank before running the macro
/end
}
/declare MainTank int outer ${Target.ID}
/declare SRG int outer ${Me.Gem[${SelfRune}]}
/declare SNG int outer ${Me.Gem[${SmallNuke85}]}
/declare BNG int outer ${Me.Gem[${BigNuke85}]}
/declare SN2 int outer ${Me.Gem[${SmallNuke80}]}
/declare BN2 int outer ${Me.Gem[${BigNuke80}]}
/declare CBG int outer ${Me.Gem[${Concussion}]}
/declare CBC int outer 0
/declare TarID int outer
/declare SIM int outer 0
/declare Snared int outer 0
/if (!${SRG} || !${SNG} || !${BNG} || !${CBG} || !${SN2} || !${BN2}) /multiline ; /echo Missing A Spell! ; /end
/return
|-------------------------------|
|-- Sub Check Buffs ------------|
|-------------------------------|
Sub CheckBuffs
| /if (!${Me.Buff[${SelfRune}].ID} && ${Me.CurrentMana}>=${Spell[${SelfRune}].Mana} && ${Me.SpellReady[${SelfRune}]}) /casting "${SelfRune}"
| /if (!${Me.Buff[${SelfHPBuff}].ID} && ${Me.CurrentMana}>=${Spell[${SelfHPBuff}].Mana} && ${Me.SpellReady[${SelfHPBuff}]}) /casting "${SelfHPBuff}"
| /if (!${Me.Buff[Cryomancy].ID} && ${Me.AltAbilityReady[Cryomancy]} && !${Me.Casting.ID}) /casting "Cryomancy"
/if (!${Me.Buff[${Flappy}].ID} && ${Me.AltAbilityReady[${Flappy}]} && !${Me.Casting.ID}) /casting "${Flappy}"
/if (${Me.Pet.ID}) /pet get lost
/return
|-------------------------------|
|-- Sub Check Target -----------|
|-------------------------------|
Sub CheckTarget
/if ((!${Target.ID} || ${Target.Type.NotEqual[NPC]} || !${ReAssist}) && ${Spawn[id ${MainTank} radius 300].ID}) {
/assist ${Spawn[id ${MainTank}]}
/varset ReAssist ${ReAssist.OriginalValue}
}
/if (${Target.ID} && ${Target.Type.Equal[NPC]} && ${Target.ID}!=${TarID}) {
/varset TarID ${Target.ID}
/varset CBC 0
/varset Snared 0
}
/return
|-------------------------------|
|-- Sub Nuke--------------------|
|-------------------------------|
Sub Nuke
/doevents
| /if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Volatile Mana Blaze].ID} && ${Me.AltAbilityReady[Volatile Mana Blaze]} && !${Me.Casting.ID} && ${Target.PctHPs}<80 && ${Target.PctHPs}>40) /call
cast "Volatile Mana Blaze"
| /if (${Target.PctHPs}>80 && ${Target.PctHPs}<95 && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Focus of Arcanum]}) /casting "Focus of Arcanum"
| /if (${Target.PctHPs}>80 && ${Target.PctHPs}<95 && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Fundament: Second Spire of Arcanum]}) /casting "Fundament: Second Spire of Arcanum"
/if (${Target.PctHPs}<=${NukeAt} && ${Target.ID} && ${Target.Type.Equal[NPC]}) {
/if (${Me.CurrentMana}>=${Spell[${Concussion}].Mana} && ${Me.SpellReady[${Concussion}]} && ${Target.Distance}<=${Spell[${Concussion}].Range} && ${Target.LineOfSight} && ${CBC}==${ConcussionAfter}) {
/casting "${Concussion}"
/varcalc CBC ${CBC}+1
}
/if (${Me.Song[Gift of Amazing Exquisite Radiant Mana].ID} && ${Me.CurrentMana}>=${Spell[${BigNuke85}].Mana} && ${Me.SpellReady[${BigNuke85}]} && ${Target.Distance}<=${Spell[${BigNuke85}].Range} &&
${Target.LineOfSight}) {
/casting "${BigNuke85}"
}
/if (${Me.Song[Gift of Exquisite Radiant Mana].ID} && ${Me.CurrentMana}>=${Spell[${BigNuke80}].Mana} && ${Me.SpellReady[${BigNuke80}]} && ${Target.Distance}<=${Spell[${BigNuke80}].Range} &&
${Target.LineOfSight}) {
/casting "${BigNuke80}"
}
/if (${Me.CurrentMana}>=${Spell[${SmallNuke85}].Mana} && ${Me.SpellReady[${SmallNuke85}]} && ${Target.Distance}<=${Spell[${SmallNuke85}].Range} && ${Target.LineOfSight}) {
/casting "${SmallNuke85}"
}
/if (${Me.CurrentMana}>=${Spell[${SmallNuke80}].Mana} && ${Me.SpellReady[${SmallNuke80}]} && ${Target.Distance}<=${Spell[${SmallNuke80}].Range} && ${Target.LineOfSight}) {
/casting "${SmallNuke80}"
}
}
/return
|-------------------------------|
|-- Sub Snare ------------------|
|-------------------------------|
Sub Snare
/if (${Target.PctHPs}<=${SnareAt} && ${Target.ID} && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Atol's Shackles]} && ${Snared}==0) /casting "Atol's Shackles"
/if (${Macro.Return.Equal[CAST_IMMUNE]} || ${Macro.Return.Equal[CAST_SUCCESS]}) /varset Snared 1
/return
|-------------------------------|
|-- Sub Check Mana Harvest -----|
|-------------------------------|
Sub CheckHarvest
/if (${Me.PctMana}<${UseHoDBelow} && ${Me.AltAbilityReady[Harvest of Druzzil]} && ${Me.State.Equal[STAND]}) {
/casting "Harvest of Druzzil"
}
/if (${Me.PctMana}<${UseHarvestBelow} && ${Me.SpellReady[${Harvest}]} && ${Me.State.Equal[STAND]}) {
/casting "${Harvest}"
/delay 5s
}
:HarvestDelay
/if (${Me.Buff[${Harvest}].ID}) {
/delay 1s
/goto :HarvestDelay
}
/return
|-------------------------------|
|-- Sub Check Mana -------------|
|-------------------------------|
Sub CheckMana
/if (${Me.Song[Gift of Amazing Exquisite Radiant Mana].ID}) /return
/if (${Me.Song[Gift of Exquisite Radiant Mana].ID}) /return
/if (${Me.PctMana}<${MedAt} && ${Me.CombatState.NotEqual[COMBAT]}) {
/echo Mana is below ${MedAt}% .. medding up
:Cycle
| /call CheckHarvest
/if (!${Me.Mount.ID} && ${Me.State.Equal[STAND]}) /sit
/if (${Me.PctMana}<100) /goto :Cycle
/echo Finished medding.
}
/return
|-------------------------------|
|-- Sub Event Hit --------------|
|-------------------------------|
Sub Event_ImHit
/echo Im being beat up on, do something!!
/if (${Me.Mount.ID}) /dismount
/keypress duck
/keypress duck
/if (${Target.ID} && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Mind Crash]} && !${MindCrash}==0) /casting "Mind Crash"
|/if (${Me.PctHPs}<70) /potionbelt activate 2
| /if (${Me.PctHPs}<30) {
| /fade
| /delay 60s
| }
| /if (${Me.PctHPs}<15) {
| /warp s
| /end
| }
/delay 15s
/return
|-------------------------------|
|-- Sub Check AA --------------|
|-------------------------------|
Sub CheckAA
|/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Silent Casting].ID} && ${Me.AltAbilityReady[Silent Casting]} && !${Me.Casting.ID} && ${Target.PctHPs}>85 && ${Target.PctHPs}<98) /casting "Silent
Casting"
|/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Arcane Whisper].ID} && ${Me.AltAbilityReady[Arcane Whisper]} && !${Me.Casting.ID} && ${Target.PctHPs}<30) /casting "Arcane Whisper"
/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Call of Xuzl].ID} && ${Me.AltAbilityReady[Call of Xuzl]} && !${Me.Casting.ID} && ${Target.PctHPs}>90 && ${Target.PctHPs}<95) /casting "Call of
Xuzl"
/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Force of Will].ID} && ${Me.AltAbilityReady[Force of Will]} && !${Me.Casting.ID} && ${Target.PctHPs}<70 && ${Target.PctHPs}<99) /casting "Force of
Will"
|/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Mind Crash].ID} && ${Me.AltAbilityReady[Mind Crash]} && !${Me.Casting.ID} && ${Target.PctHPs}<60) /casting "Mind Crash"
|/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Prolonged Destruction].ID} && ${Me.AltAbilityReady[Prolonged Destruction]} && !${Me.Casting.ID} && ${Target.PctHPs}>95 && ${Target.PctHPs}<99)
/casting "Prolonged Destruction"
|/if (${Target.ID} && ${Target.Type.Equal[NPC]} && !${Me.Buff[Ward of Destruction].ID} && ${Me.AltAbilityReady[Ward of Destruction]} && !${Me.Casting.ID} && ${Target.PctHPs}>98 && ${Target.PctHPs}<99)
/casting "Ward of Destruction"
/return
|-------------------------------|
|-- Sub Check HP --------------|
|-------------------------------|
Sub CheckHP
/doevents
/if (${Me.PctHPs}<40) {
/fade
/delay 60s
}
/if (${Me.PctHPs}<10) {
/warp s
/end
}
/return
|-------------------------------|
|-- Event Snare Wore Off ----|
|-------------------------------|
Sub Event_SnareWornOff
/varset Snared 0
/call Snare
/return