#include Spell_routines.inc
#turbo 40
#chat group
#chat tell
#event buffme "#1# tells the group, 'check buffs'"
#event nukeit "#1# tells the group, 'nuke'"
#event rootit "#1# tells the group, 'root'"
#event evacing "#1# tells the group, 'EVAC'"
|#event stunit "#1# to cast a spell."
Sub Main
| Spells |
|******************************************|
| Spells and there locations
| **MySpells**
|
| 1. Conflagration
| 2. Thunder Strike
| 3. Tishan's Clash
| 4. Root
| 5. Harvest
| 6. Lesser Evacuate
| 7. Diamondskin
| 8. Greater Shielding
|
|------------------------------------------|
/declare MA string outer Backbreaker
/declare snuke string outer Elnerick's Entombment of Ice
/declare bnuke string outer Conflagration
/declare root string outer Root
/declare evac string outer Lesser Evacuate
/declare stun string outer Tishan's Clash
/declare skin string outer Diamondskin
/declare shield string outer Greater Shielding
/declare harv string outer Harvest
/declare harvtimer timer outer
/declare shieldtimer timer outer
/declare skintimer timer outer
/declare sn2timer timer outer
/declare bn1timer timer outer
|********************|
| Other Declares |
|********************|
:start
/if (!${Me.Casting.ID} && ${Me.State.Equal[STAND]} && ${Me.PctMana}<98) /sit
/doevents
/delay 10
/if (${Me.PctMana}>20) /goto :next
/goto :start
|*****Time to Nuke Loop*****|
:next
/assist ${MA}
/delay 1s
/if (${Target.PctHPs}>45 && ${Target.PctHPs}<60 && ${Target.Type.NotEqual[CORPSE]} && ${Target.Type.Equal["NPC"]} && ${sn2timer}==0) /call SmallNuke
/if (${Target.PctHPs}>20 && ${Target.PctHPs}<40 && ${Target.Type.NotEqual[CORPSE]} && ${Target.Type.Equal["NPC"]} && ${bn1timer}==0) /call BigNuke
/if (${Target.Type.Equal[CORPSE]} && ${Me.PctMana}<=40 && ${harvtimer}==0) {
/call cast "${harv}" gem5 4s
/varset harvtimer 20s
}
/if (${Target.Type.Equal["NPC"]} && ${Target.Type.Equal[CORPSE]}) /varset sn2timer 0
/if (${Target.Type.Equal["NPC"]} && ${Target.Type.Equal[CORPSE]}) /varset bn1timer 0
/goto :start
/return
Sub SmallNuke
/assist ${MA}
/call cast "${snuke}" gem2 3s
/delay 3s !${Me.Casting.ID}
/varset sn2timer 15s
/return
Sub BigNuke
/call cast "${bnuke}" gem1 3s
/delay 3s !${Me.Casting.ID}
/varset bn1timer 10s
/return
|******Root Event******|
Sub Event_rootit(Line,Targ)
/assist ${Targ.Right[-2].Left[-1]}
/delay 1s
/call cast "${RootSpell}" gem4 3s
/if (${Macro.Return.Equal[CAST_SUCCESS]}) /goto :endroot
/if (${Macro.Return.Equal[CAST_IMMUNE]}) /goto :rootimmune
/if (${Macro.Return.Equal[CAST_RESISTED]}) /goto :rootresisted
:rootresisted
/delay 3s
/g [ %T ] RESISTED MY ROOT!
/return
:rootimmune
/delay 3s
/g [ %T ] IS IMMUNE TO ROOT!
/return
:endroot
/delay 3s
/g [ %t ] IS ROOTED!
/return
Sub Event_nukeit(Line,Targ)
/assist ${Targ.Right[-2].Left[-1]}
/delay 1s
/call Cast "${snuke}" gem2 3s
/delay 2s
/return
Sub Event_stunit(Line,Targ)
/target ${Targ.Right[-2].Left[-1]}
/if (${Target.PctHPs}<85 && ${Target.Type.Equal["NPC"]}) {
/call cast "${stun}" gem3 3s
}
/return
Sub Event_evacing(Line)
/call Cast "${evac}" gem6 3s
/delay 10s
/return
Sub Event_buffme(Line)
/target Foxyfire
/if (${skintimer}==0) /call cast "${skin}" gem7 3s
/if (${shieldtimer}==0 && !${Me.Casting.ID}) /call cast "${shielding}" gem8 3s
/varset skintimer 90m
/varset shieldtimer 52m
/return