Code: Select all
} else /if (${ChatIn.Equal[IRC]}) {
/i say ${ChatText}
Moderator: MacroQuest Developers
Code: Select all
} else /if (${ChatIn.Equal[IRC]}) {
/i say ${ChatText}
Code: Select all
Sub Do-invite(string TargetName)
/if (!${Defined[Param0]}) {
/call Assist "${MasterName}"
} else /if (${TargetName.Equal[me]}) {Code: Select all
Sub Do-invite(string TargetName)
/if (!${Defined[TargetName]}) {
/call Assist "${MasterName}"
} else /if (${TargetName.Equal[me]}) {Code: Select all
Sub AssignCastTarget(string ACTarget)
/declare oldTarget string local
/varset oldTarget ${Target.ID}
/if (!${Defined[ACTarget]} || !${ACTarget.Length} || ${ACTarget.Equal[0]}) {
/if (${CastStep}==1 || ${Me.Casting.ID}) {
/return assist-
} else {
/call Assist ${MasterName}
/if (${Target.ID}) {
/return id ${Target.ID}
} else /if (${oldTarget}) {
/return id ${oldTarget}
} else {
/call ChatOut 4 "Unable to /assist you to find a target to cast on."
/return 0Code: Select all
Sub AssignCastTarget(string ACTarget)
/if (${Target.ID}) {
/return id ${Target.ID}
}
/if (!${Defined[ACTarget]} || !${ACTarget.Length} || ${ACTarget.Equal[0]}) {
/if (${CastStep}==1 || ${Me.Casting.ID}) {
/return assist-
} else {
/call Assist ${MasterName}
/if (${Target.ID}) {
/return id ${Target.ID}
} else {
/call ChatOut 4 "Unable to /assist you to find a target to cast on."
/return 0Code: Select all
Sub AddCommand(string CmdSect,string CmdPhrase,string CmdRoutine)
/varset Commands[1,${TopCommand}] ${CmdPhrase}
/varset Commands[2,${TopCommand}] ${CmdRoutine}
Code: Select all
#event Slowed "#*# yawns."
Code: Select all
Sub Event_Slowed
/if (${CastStep}) {
/call ChatOut 3 ${MasterName} "${Target.CleanName} has been SLOWED."
/varset CastStep 6
/varset CastLastResult CAST_Successful
}
/return
Code: Select all
:gCast-6
| Making sure we weren't lied to, and mob was actually immune
/if (${CastLastResult.Equal[CAST_Resisted]}) {
/varset CastStep 0
/return
}
/if (${CastLastResult.Equal[CAST_StillCasting]}) /varset CastLastResult CAST_Successful
/if (${CastInfo.Arg[1,-].Equal[b]} && ${CastInfo.Arg[2,-].NotEqual[s]}) {
/call BuffResult ${CastType} "${CastName}" "${CastTarget}" ${CastInfo.Arg[2,-]}
}
/if (${CastOldTargetID}) /squelch /target id ${CastOldTargetID} radius ${MaxTargetRange}
/if (${DebugList.Find[spell]}) /echo CastLastResult ${CastLastResult}
/if (${RememSpells} && ${SpellNeedToRemem}) {
/memspellset ${DefaultSpellSet}
/call ChatOut 6 "Re-memorizing original spells."
/varcalc CastStep ${CastStep}+1
/return
}
/call ListDelbyName CastQueue "${CastType};${CastName};${CastTarget};${CastInfo}" |
/varset CastStep 0
/if (${SitAfterCast}) /varset SitTimer ${DelayBeforeSit}
/return
| Wait until spells are rememmed to continue Code: Select all
|Be nice to see if you have ToT or Raid ToT skill.
|This assumes you do since I never group without it.
/if (${DoTaunt} && ${Me.AbilityReady[Taunt]}) {
/if (${Group}>2) {
/if (${Me.TargetOfTarget.ID}!=${Me.ID}) {
/if (${Target.Distance}<20) {
/call ChatOut 5 ${MasterName} "Taunting ${Target.CleanName}.
/doability "Taunt"
}
}
} else {
/declare TempCalc int local
/declare HeadingMax int local
/declare HeadingMin int local
/varset TempCalc ${Math.Calc[${Me.Heading.Degrees}+180]}
/if (${TempCalc}>360) /varset TempCalc ${Math.Calc[${TempCalc}-360]}
/varset HeadingMax ${Math.Calc[${TempCalc}+10]}
/varset HeadingMin ${Math.Calc[${TempCalc}-10]}
/if ((${Target.Heading.Degrees}>${HeadingMax})||(${Target.Heading.Degrees}<${HeadingMin})) {
/if (${Target.Distance3D}<20) {
/call ChatOut 5 ${MasterName} "Taunting ${Target.CleanName}.
/doability "Taunt"
}
}
}
}

Did you edit the ini for the character in question so that DoHeals=1?iusemq2 wrote:i have a interesting problem.. sorta .. i use genbot to run my cleric and when i give the commandd autohean on i get this error ..
/varset failed, variable IsHealer' not found
followed by a bunch of code and stuff .. i put ishealer in the ini file and she heals .. just strange to get that error
Code: Select all
Sub Event_EscKey
/call Do-stop
/returnCode: Select all
Sub Event_CastResist
/if (${CastStep}) {
/if (${CastLastResult.Equal[CAST_StillCasting]}) {
/varset CastStep 1
/varset CastLastResult CAST_Resisted
/call ChatOut 3 "${Target.CleanName} resisted ${CastType} ${CastName}."
}
}
/return