Moderator: MacroQuest Developers



Code: Select all
[Settings]
Radius=100
TrackNumber=20
DebuffCount=2
Debuff1=Malos
Debuff2=Turgur's Insects
Debuff3=Cripple
Debuff4=Debuff Spell Name
Debuff5=Debuff Spell Name
Debuff6=Debuff Spell Name
Debuff7=Debuff Spell Name
Debuff8=Debuff Spell Name
DebuffDuration1=99999
DebuffDuration2=280
DebuffDuration3=200
DebuffDuration4=99999
DebuffDuration5=99999
DebuffDuration6=99999
DebuffDuration7=99999
DebuffDuration8=99999
DebuffStartWait1=0
DebuffStartWait2=0
DebuffStartWait3=0
DebuffStartWait4=0
DebuffStartWait5=0
DebuffStartWait6=0
DebuffStartWait7=0
DebuffStartWait8=0
DebuffMinHealth1=100
DebuffMinHealth2=100
DebuffMinHealth3=100
DebuffMinHealth4=100
DebuffMinHealth5=100
DebuffMinHealth6=100
DebuffMinHealth7=100
DebuffMinHealth8=100
DebuffMinHealthNoCast1=0
DebuffMinHealthNoCast2=0
DebuffMinHealthNoCast3=0
DebuffMinHealthNoCast4=0
DebuffMinHealthNoCast5=0
DebuffMinHealthNoCast6=0
DebuffMinHealthNoCast7=0
DebuffMinHealthNoCast8=0
DebuffMinMobsInArea1=0
DebuffMinMobsInArea2=0
DebuffMinMobsInArea3=0
DebuffMinMobsInArea4=0
DebuffMinMobsInArea5=0
DebuffMinMobsInArea6=0
DebuffMinMobsInArea7=0
DebuffMinMobsInArea8=0
NoSit=1
PauseMacro=0
RetryCount=2
SelfBuffCount=0
SelfBuff1=Self Buff Spell Name
SelfBuff2=Self Buff Spell Name
SelfBuff3=Self Buff Spell Name
SelfBuff4=Self Buff Spell Name
SelfBuff5=Self Buff Spell Name
SelfBuff6=Self Buff Spell Name
SelfBuff7=Self Buff Spell Name
SelfBuff8=Self Buff Spell Name
SelfBuffDuration1=0
SelfBuffDuration2=0
SelfBuffDuration3=0
SelfBuffDuration4=0
SelfBuffDuration5=0
SelfBuffDuration6=0
SelfBuffDuration7=0
SelfBuffDuration8=0
SelfBuffAtStart1=0
SelfBuffAtStart2=0
SelfBuffAtStart3=0
SelfBuffAtStart4=0
SelfBuffAtStart5=0
SelfBuffAtStart6=0
SelfBuffAtStart7=0
SelfBuffAtStart8=0
EventCount=0
EventSpell1=Event Spell Name
EventSpell2=Event Spell Name
EventSpell3=Event Spell Name
EventSpell4=Event Spell Name
EventSpell5=Event Spell Name
EventSpell6=Event Spell Name
EventSpell7=Event Spell Name
EventSpell8=Event Spell Name
EventMinMana1=100
EventMinMana2=100
EventMinMana3=100
EventMinMana4=100
EventMinMana5=100
EventMinMana6=100
EventMinMana7=100
EventMinMana8=100
EventMaxMana1=
EventMaxMana2=0
EventMaxMana3=0
EventMaxMana4=0
EventMaxMana5=0
EventMaxMana6=0
EventMaxMana7=0
EventMaxMana8=0
EventMinHP1=100
EventMinHP2=100
EventMinHP3=100
EventMinHP4=100
EventMinHP5=100
EventMinHP6=100
EventMinHP7=100
EventMinHP8=100
EventMaxHP1=0
EventMaxHP2=0
EventMaxHP3=0
EventMaxHP4=0
EventMaxHP5=0
EventMaxHP6=0
EventMaxHP7=0
EventMaxHP8=0
EventDuration1=0
EventDuration2=0
EventDuration3=0
EventDuration4=0
EventDuration5=0
EventDuration6=0
EventDuration7=0
EventDuration8=0
PauseEvents=1


Code: Select all
[color=red] /delay 3 [/color]
/doevents Fizzle
/doevents Interrupt
/doevents Interrupt
/doevents Recover
/doevents Standing
/doevents OutOfRange
/doevents OutOfMana
/doevents NoLOS
/doevents Resisted
Let me play around, I might add in the mob avoidance code.Shocks wrote:I would like to start of saying this is a great macro. Thank you very much for making and updating it.
Here is what Im looking to do.
1. I want to add in a way to add certain mobs to ignore. Such as wondering npcs that I dont want to attack.
2. Im trying to add a groupcheckhealth call to heal the group if we need it. Im currently working with a hacked verson of groupcheckhealth from genbot.


Code: Select all
| SpellCast.inc
| This will cast a spell reliably for you...
| Usage:
| /call Cast "spellname"
| or
| /call Cast "itemname" [item]
| example: /call Cast "Death Peace"
| example: /call Cast "
| It will return the following values:
| CAST_SUCCESS
| CAST_UNKNOWNSPELL
| CAST_OUTOFMANA
| CAST_OUTOFRANGE
| CAST_CANNOTSEE
| CAST_STUNNED
| CAST_RESISTED
|
| New Vars Modification
| Plazmic's no globals needed version
|
| Oct 9, 2003 - Updated to work with new vars and $char(casting) - gf
| Oct 11, 2003 - switched some logic, removed defines - gf
| Oct 15, 2003 - Item support added by EqMule
| Modified to add automeming of spells. Goofmester1
| Dec 26, 2003 fd fail 1 added by m0nk
#event Fizzle "Your spell fizzles"
#event Interrupt "Your casting has been interrupted"
#event Interrupt "Your spell is interrupted."
#event Recover "You haven't recovered yet..."
#event Recover "Spell recovery time not yet met."
#event Resisted "Your target resisted the "
#event OutOfMana "Insufficient Mana to cast this spell!"
#event OutOfRange "Your target is out of range, get closer!"
#event NoLOS "You cannot see your target."
#event Stunned "You cannot cast while stunned"
#event Standing "You must be standing to cast a spell"
#event Standing "has fallen to the ground."
#event Collapse "Your gate is too unstable, and collapses."
Sub Cast(SpellName,Item)
/sendkey up up
/sendkey up down
/delay 5
/if "@Item"=="Item" /goto :StartCast
/if n $char(gem,"@SpellName")==0 {
/memspell 5 "@SpellName"
/delay 5s
}
:StartCast
/if "@Item"=="Item" {
/call ClearReturnValue
/cast item "@SpellName"
} else {
/if n $char(gem,"@SpellName")==0 /return CAST_UNKNOWNSPELL
/call ClearReturnValue
/if n $char(gem,"@SpellName")<0 {
/delay 0
/goto :StartCast
}
/cast "@SpellName"
}
:WaitCast
/if "$char(casting)"=="TRUE" {
/delay 1
/goto :WaitCast
}
/delay 1
/doevents Fizzle
/doevents Interrupt
/doevents Interrupt
/doevents Recover
/doevents Standing
/doevents OutOfRange
/doevents OutOfMana
/doevents NoLOS
/doevents Resisted
/if "$return"=="CAST_RESTART" /goto :StartCast
/if "$return"!="CAST_SUCCESS" /return "$return"
/return CAST_SUCCESS
Sub ClearReturnValue
/return NULL
Sub Event_Fizzle
/return CAST_RESTART
Sub Event_Interrupt
/return CAST_RESTART
Sub Event_Recover
/delay 5
/return CAST_RESTART
Sub Event_Standing
/stand
/return CAST_RESTART
Sub Event_Collapse
/return CAST_RESTART
Sub Event_OutOfMana
/return CAST_OUTOFMANA
Sub Event_OutOfRange
/return CAST_OUTOFRANGE
Sub Event_NoLOS
/return CAST_CANNOTSEE
Sub Event_Stunned
/delay 1s
/return CAST_RESTART
Sub Event_Resisted
/return CAST_RESISTED