Moderator: MacroQuest Developers


Code: Select all
Sub do-pull
|# The pull command, takes Master /assist and runs to it, smacks it and comes back to anchor
/varset Afollow 1
/varset FollowTarget "NULL"
/varset Combatstatus 0
/sit off
/if n $strlen("$p1")<=0 {
/assist $MasterName
/delay 5
} else /if n $strlen("$p2")<=0 {
/target npc "$p1"
} else /if n $strlen("$p3")<=0 {
/target npc "$p1 $p2"
} else /if n $strlen("$p4")<=0 {
/target npc "$p1 $p2 $p3"
} else npc /target "$p1 $p2 $p3 $p4"
/call Do-moveto
/if n $char(ability,taunt)>0 /doability taunt
/if n $char(ability,kick)>0 /doability kick
/tell $MasterName I am pulling %t
/call Do-anchor
/returnI can try to work on something that takes one command to do this. ATM though you can simply make an anchor.bob_the_builder wrote:Was trying to add a "pul"l command to genbot. Not working as intended.
By the way, any reason why not to use $target(id) anymore?Code: Select all
Sub do-pull |# The pull command, takes Master /assist and runs to it, smacks it and comes back to anchor /varset Afollow 1 /varset FollowTarget "NULL" /varset Combatstatus 0 /sit off /if n $strlen("$p1")<=0 { /assist $MasterName /delay 5 } else /if n $strlen("$p2")<=0 { /target npc "$p1" } else /if n $strlen("$p3")<=0 { /target npc "$p1 $p2" } else /if n $strlen("$p4")<=0 { /target npc "$p1 $p2 $p3" } else npc /target "$p1 $p2 $p3 $p4" /call Do-moveto /if n $char(ability,taunt)>0 /doability taunt /if n $char(ability,kick)>0 /doability kick /tell $MasterName I am pulling %t /call Do-anchor /return
I am trying to move away from the old pet.mac which uses $target(id) but there are some functions I did like; pull and auto-follow/guard after attack.

Try this:rencro wrote:grimjack, the Cleric portion of this works great for me. Now im trying to personalize this for my shadow knight, and have a few questions. Im trying to learn this as I go, but not having as much luck as I would like.
I've added a few Events fine, yet Im having trouble trying to implement what I call WIMPOUT.
This would allow me to feign death if I get below 15 percent health and stay down until I am at 60 percent or better.
This is what I tried, with no success:
in genbot.mac:
/call Combatcheck
|||Sub from botcombat.inc
/if n $char(hp,pct)<15 /call WimpOut
/if n $Combatstatus==0 {
at eof of same file:
Sub WimpOut
/attack off
/varset $Combatstatus 0
/delay 5
/call spellsub "feign death"
/delay 5
:wimp
/if n $char(hp,pct)>60 {
/stand
/g Im ready for more
/return
}
/goto :wimp
As soon as I got below 15 percent health the macro dumped out. It wanted to call wimpout, but it complained about some varset or another.
Idea for wimpout code from :
http://macroquest2.com/phpBB2/viewtopic ... ight=feign
Thanks...
Code: Select all
Sub WimpOut
/attack off
/varset $Combatstatus 0
/delay 5
/call spellsub "feign death"
/delay 5
:wim
/delay 1s
/if n $char(hp,pct)>60 {
/stand
/g Im ready for more
/return
}
/goto :wimp
/return



Tested it last night and it worked fine. I did notice that I didn't put a varset for the pet heal and I had to use the setpetheal command. I have added the /varset PetSpell "Name of Pet Heal" to the begining of genbot. Be sure to edit if you don't want to have to use the setpetheal command every time you load the macro. You will also want to make sure you have set the variable that tells it you want to autoheal pets at the begining of the genbot macro as well or use the in game command autohealpets on/off to toggle it.RogerWilco wrote:Grimjack...
been playing around with the autohealpets.... seems like it is not working like it should... the bot just stands there and watches the pet die... hehe
still looking at it to try and figure it out.... just wanted to give you a heads up
