| DruidSpellUp.mac
| Raises all 5 spell types with self only spells so no targeting is needed.
| This will take over spell gems 1, 2, 3, 4, 5, and 8
| Usage - Run the macro, cross your fingers, hehe.
#include spell_routines.inc
#event YouDied "You have been slain by#*#"
#event Camp "It will take you about #*# seconds to prepare your camp."
#event attack "#*# you for #*# points #*#"
sub main
/declare iGM int outer 0
/cleanup
:MedUp
/if (${Me.PctMana}<90) {
/if (${Me.State.Equal[STAND]}) /sit
/delay 5
/doevents
/delay 5s
/goto :MedUp
}
:Start
/if ( !${Me.Gem[${"Gate"}]} ) {
/memspell ${"Gate"} 8
}
/doevents
/call GMcheck
:ClearCursor
/if (${Cursor.ID}) {
/autoinventory
/goto :ClearCursor
}
/if (${Me.PctMana}<20) /goto :MedUp
/call Spellcast
/goto :Start
:Exit
/end
:OnExit
/echo "See Ya!"
/return
Sub Event_Camp
/end
/return
| GM
Sub GMCheck
:GMCheck1
/if (${Spawn[gm].ID}) {
/beep
/popup GM Spawn!
/beep
/varset iGM 1
/delay 5
/echo GM has entered the zone ${Time}, waiting 10 min.
|Keep pausing 10 min. each time till GM is gone.
/delay 10m
/goto :GMCheck1`
}
|Timestamp of when gm left if one was detected.
/if (${iGM}==1) {
/delay 5
/echo GM noticed to be gone at ${Time}
/varset iGM 0
/delay 2s
}
/return
| Died
Sub Event_YouDied
/echo You Died at ${Time}, ending macro.
/quit
/end
/return
| Attacked
sub event_attack
/call cast "gate"
/delay 15s
/echo you have been attacked and have escaped safely
/beep
/beep
/beep
/delay 5s
/mqlog you have been camped out due to being attacked and no longer in desired zone
/camp desktop
/return
| Cast
Sub Spellcast
| Evocation
/delay 10
/call Cast "Firefist" gem1 7s
| Abjuration
/delay 30
/call Cast "Thistlecoat" gem2 7s
| Conjuration
/delay 30
/call Cast "Summon Drink" gem3 7s
/delay 10
/if (${Cursor.Name.Equal[Summoned: Globe of Water]}) /destroy
| Alteration
/delay 20
/call Cast "Wolf Form" gem4 7s
| Divination
/delay 30
/call Cast "Sense Animals" gem5 7s
/delay 30
/return