Moderator: MacroQuest Developers




Code: Select all
Sub Do-heal
/call StandardTarget "@CommandParam"
/if (!${Target.ID}) {
/target pc @MasterName
} else
/if (${Target.Type.Equal[NPC]}) /target pc @MasterName
[color=red])[/color]
/call ChatOut 3 @MasterName "Casting @DefaultHealSpell on ${Target.CleanName}."
/call SpellSub "@DefaultHealSpell"
/if (@SitAfterCast) /varset SitTimer @DelayBeforeSit
/return
Code: Select all
Sub Do-camp
/dismount
/delay 3
/varset Afollow 0
/if ((@advpath)&&(@FollowFlag)) /call StopFunction
/varset FollowTarget "NULL"
/call ChatOut 3 @MasterName "Camping out."
[color=red] /if (${String[${Me.State}].Equal[STAND]}) /sit[/color]
/camp desktop
/return
THe declare stuff is due to some variable changes in the latest MQ that Lax put out. I found that removing the variable types from the declares in advpath.inc and changing the outer to global that it at least got rid fo that error.midget wrote:Now getting a large spamming in MQ2 window of "useage: /declare varname [global|local|timer|array|array2]
followed by (about 20 lines later) "no variable named 'plotflag'
also with some errors in advpath.inc@1467, botcore.inc@333, genbot.mac@50, ect,ect




Code: Select all
/if (!${Me.Sitting}) /sit
- or -
/if (!${Me.Standing}) /stand
Code: Select all
/if (${Me.State.Equal[FEIGN]}) /return

Code: Select all
#event RecoveryTime "Spell recovery time not yet met."
...
Sub Event_RecoveryTime
/call Delay 2
/varset DoAgain 1
/return