Moderator: MacroQuest Developers

Code: Select all
Sub Do-camp
/dismount
/varset Afollow 0
/if ((@advpath)&&(@FollowFlag)) /call StopFunction
/varset FollowTarget "NULL"
/call ChatOut 3 @MasterName "Camping out."
/if (${Me.Sitting}) /Stand
/camp desktop
/return
Code: Select all
Sub Do-camp
/dismount
/varset Afollow 0
/if ((@advpath)&&(@FollowFlag)) /call StopFunction
/varset FollowTarget "NULL"
/call ChatOut 3 @MasterName "Camping out."
/if (${String[${Me.State}].Equal[STAND]}) /sit
/camp desktop
/return

Code: Select all
/if (${Cursor.ID}) /goto donelooting
/if (@BreakOut) /goto donelooting
Code: Select all
/if (${Cursor.ID}) /goto :donelooting
/if (@BreakOut) /goto :donelooting
Code: Select all
Sub StandardTarget
/if (!${Defined[Param0]}) {
/assist @MasterName
} [color=cyan]else /if (${String[@Param0].Length}==0)[/color] {
/assist @MasterName
} else /if (${String[@Param0].Equal[me]}) {
/target pc @MasterName
} else /if (${String[@Param0].Equal[yourself]}) {
/target myself
} else /if (${String[@Param0].Equal[${Me.CleanName}]}) {
/target myself
} else {
/target @Param0
}
/returnCode: Select all
Sub StandardTarget
/if (!${Defined[Param0]}) {
/assist @MasterName
} [color=cyan]else /if (!${String[@Param0].Length}) {[/color]
/assist @MasterName
} else /if (${String[@Param0].Equal[me]}) {
/target pc @MasterName
} else /if (${String[@Param0].Equal[yourself]}) {
/target myself
} else /if (${String[@Param0].Equal[${Me.CleanName}]}) {
/target myself
} else {
/target @Param0
}
/returnI think it was just a matter of how much work he did. Easy to lose track of something.Fuergrissa wrote:when you issue the camp out command it will not camp out.
code as follows:should it be this ?Code: Select all
Sub Do-camp /dismount /varset Afollow 0 /if ((@advpath)&&(@FollowFlag)) /call StopFunction /varset FollowTarget "NULL" /call ChatOut 3 @MasterName "Camping out." /if (${Me.Sitting}) /Stand /camp desktop /returnCode: Select all
Sub Do-camp /dismount /varset Afollow 0 /if ((@advpath)&&(@FollowFlag)) /call StopFunction /varset FollowTarget "NULL" /call ChatOut 3 @MasterName "Camping out." /if (${String[${Me.State}].Equal[STAND]}) /sit /camp desktop /return
Code: Select all
Sub Do-camp
/dismount
/varset Afollow 0
/if ((@advpath)&&(@FollowFlag)) /call StopFunction
/varset FollowTarget "NULL"
/call ChatOut 3 @MasterName "Camping out."
/if (!${Me.Sitting}) /sit
/camp desktop
/return
If it always returned a NULL when you were sitting then I would think it was a bug. The code itself is fine.xander wrote:In regards to sit not working, think this is your problem.
Line 772 of botcore.inc
This always evaluates to NULL for me. Try this:Code: Select all
/if (${Me.Standing}) /sit
Fixed it for meCode: Select all
/if (${String[${Me.State}].Equal[STAND]}) /sit
Code: Select all
/if (${Me.State.Equal[STAND]}) /sit

Code: Select all
/declare LowHealthCheck global
Code: Select all
/if ((${Spawn[@QuickID].PctHPs}<${Math.Calc[@TankPctHeal/2]})&&(@PatchHealer)) /call PatchHeal @QuickID
Code: Select all
/if (${Spawn[@QuickID].PctHPs}<${Math.Calc[@TankPctHeal/2]} && @PatchHealer==1) /call PatchHeal @QuickID
Code: Select all
/if (${Me.Gem[@PatchSpell]})/cast "@PatchSpell"
Code: Select all
/if (${Me.Gem[@PatchSpell]}) /cast "@PatchSpell"
Code: Select all
/if ((${Group[@tempvar].PctHPs}<@PalHealPct)&&(${Group[@tempvar].State.NotEqual[DEAD]})) /call PallyHeal $group(@tempvar)
Code: Select all
/if ((${Group[@tempvar].PctHPs}<@PalHealPct)&&(${Group[@tempvar].State.NotEqual[DEAD]})) /call PallyHeal ${Group[@tempvar].ID}

Code: Select all
/if [@SitAfterCast] /varset SitTimer @DelayBeforeSit
Code: Select all
/if (@SitAfterCast) /varset SitTimer @DelayBeforeSit

Code: Select all
Sub Do-Setvar
/if (!${Defined[Param0]}) /return
/declare VarLen local
/declare ValueLen local
/declare VarName Local
/varset VarName ${String[@CommandParam].Arg[1]}
/varset VarLen ${String[@CurrCommand].Length}
/varset ValueLen ${String[@CommandParam].Length}
/varsub ValueLen @VarLen
/varset @Param0 "${String[@CommandParam].Right[@ValueLen]}"
/call ChatOut 5 @MasterName "@Param0 is now equal to @@Param0"
/return



IMO, it should just stop trying to cast the re-buff but hold the re-buff till next cycle, if it gets the message a second time, then remove it from the list.LordGiddion wrote:Ok user feedback question, when the bot goes to do a re-buff - if it gets the "spell would not take hold" message how long should if wait before it trys to rebuff? Or should it take the buff out of the rebuff list? If it waits how should it determine if enough time has passed?