Moderator: MacroQuest Developers


The sn command uses assist to get a target. If you assist someone who has himself targetted I think it won't do anything. You have a few options at this point. You can tell the bot to target the master before issuing the sn comand.RogerWilco wrote:Grimjack,
I have noticed that if the MASTER selects himself and instructs the bot to cast a buff spell on him it will NOT select him and cast it....
Code: Select all
/varset a(1,[color=red]#[/color]) [color=red]command[/color]Code: Select all
Sub Do-[color=red]command[/color]
/if n $strlen("$p1")<=0 {
/assist $MasterName
/delay 3
} else /if n $strlen("$p2")<=0 {
/target "$p1"
} else /if n $strlen("$p3")<=0 {
/target "$p1 $p2"
} else /if n $strlen("$p4)<=0 {
/target "$p1 $p2 $p3"
} else /target "$p1 $p2 $p3 $p4"
/call SpellSub "[color=red]Spell to Cast[/color]"
/returnCode: Select all
/varset a(1,37) setdefaultheal
/varset a(1,38) heal
/varset a(1,39) togglehot
|||||||||||||||||||||||Personal Commands|||||||||||||||||||||||||||||||||
|||Add commands you want here.
|||Example:
||| /varset a(1,40) mycommand
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[color=red]/varset a(1,40) invis[/color]Code: Select all
|||||||||||||||||||||||Personal Commands|||||||||||||||||||||||||||||||||
|||Add Sub routines for any commands you added here.
|||Example:
||| Sub do-mycommand
||| /echo this is my command
||| /return
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|||||||||||||||||||||||Personal Commands|||||||||||||||||||||||||||||||||
[color=red]
Sub do-invis
/if n $strlen("$p1")<=0 {
/assist $MasterName
/delay 3
} else /if n $strlen("$p2")<=0 {
/target "$p1"
} else /if n $strlen("$p3")<=0 {
/target "$p1 $p2"
} else /if n $strlen("$p4)<=0 {
/target "$p1 $p2 $p3"
} else /target "$p1 $p2 $p3 $p4"
/call SpellSub "invisibility"
/return[/color]
Maybe I mis-posted somthing. I reposted all 5 files. Make sure you update all of them. genbot.mac, bocore.inc, bothealer.inc, botspell.inc, and botcombat.inc. They should all say v4.1 at the top when you are done.RogerWilco wrote:hummm Grimjack...
When I run the new verson I get the following errors
genbot.mac@## (main): /varset Dobackstab
I get the same error for Evade, Slam, Bash, casterhealishot, casterspell...
on a positive note... Taunt works :P


Code: Select all
Core Commands
afk Make bot set afk. You can give up to an 8 word message.
accept Make the bot accept a group invite.
reject Make the bot reject a group invite.
invite Make the bot invite a person by name or by assisting master.
follow Make the bot turn on in game follow on master. Must be grouped.
stop Stop doing everything. Moving, Casting, Attacking...
moveto Move to target by name or by assisting master.
sit Make the bot sit.
stand Make the bot stand.
camp Make the bot camp.
duck Make the bot toggle duck.
run Make the bot toggle run/walk.
say Make the bot /say up to 8 words at a time.
tell Make the bot /tell up to 8 words at a time. Example /msg botname tell joe how are you.
group Make the bot /group up to 8 words at a time.
cmds Make the bot /tell the master a list of commands.
target Make the bot /target by name.
notarget Make the bot lose target.
assist Make the bot assist the master or by name.
saytarget Make the bot /tell the master what it's current target is.
afollow Make the bot /assist master and afollow target or follow target by name.
trade Make bot click trade.
yesres Make bot click yes on res window
petattack Make bot send pet to attack
petguard Make bot tell pet guard here.
petbackoff Make bot tell pet to back off.
anchor Set/remove anchor point for bot to return to after combat.
Fix for tankheals, and possible fix for healing shadow knights.
Other minor fixes.
Combat commands
attack Bot will target using /assist off of master or target by name and enter combat mode.
noattack Turn off combat mode.
backstab Toggle auto backstab.
taunt Toggle auto taunt.
evade Toggle auto evade.
slam Toggle auto slam.
bash Toggle auto bash.
traps Toggle auto traps.
kick Toggle auto kick.
getbehind Make bot get behind it's current target.
Spell Commands
sn Make bot cast spell by name. Bot will mem spells if needed.
mana Make bot report mana to master.
evac Make bot move close to master and attempt to cast evac.
aftercastsit Toggle sit after cast.
loadlist Make bot /memspellset by name.
itemcast Make bot cast item by name.
lootup Make bot loot whatever the master has targeted or specifies.
Healer Commands
autoheal Toggle auto heal.
settankheal Set heal used to heal tanks.
setcasterheal Set heal used to heal casters.
setdefaultheal Set heal used with the heal command.
heal Heal target by name or using assist off of master.
autohealpets Turn on/off auto heal for pets.
setpetheal Set heal used to heal pets