A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.
Moderator: MacroQuest Developers
-
Nightshift
- a lesser mummy

- Posts: 54
- Joined: Mon Oct 13, 2003 8:52 am
Post
by Nightshift » Thu Oct 23, 2003 8:16 am
In bothealer.inc
Just a misspelled word.
Code: Select all
||||||||||||||||||Do- Subs
Sub Do-togglehot
/if $defined(Param1)==FALSE {
/if @CasterHealIsHot==1 /tell @MasterName Should we consider the caster heal as a HOT?=Yes
/if @CasterHealIsHot==0 /tell @MasterName Should we consider the caster heal as a HOT?=No
/return
}
/if @Param1=="off" /varset CasterHealIsHOT 0
/if @Param1=="on" /varset CasterHealIsHOT 1
/if @Param1=="1" /varset CasterHealIsHOT 1
/if @Param1=="0" /varset CasterHealIsHOT 0
/if @CasterHealIsHOT==1 /tell @MasterName [color=red]Shoulw[/color] we consider the caster heal as a HOT?=Yes
/if @CasterHealIsHOT==0 /tell @MasterName Should we consider the caster heal as a HOT?=No
/return
One other thing. Using the watch target part of the autoheal with autosit after cast on, the healer will sit down then stand right back up. It seems to do this with all casts actually, just didn't have time to fully test to make sure.
Still looking at the code to see if I can figure it out.
NightShift
-
ap50
- a snow griffon

- Posts: 425
- Joined: Sun Aug 18, 2002 2:29 pm
Post
by ap50 » Thu Oct 23, 2003 3:47 pm
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Thu Oct 23, 2003 6:06 pm
Updated:
bothealer.inc - Spelling error.
botcore.inc - Spelling error in variable.
personal.inc - Added petbuff command and ini settings.
Thanks
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Thu Oct 23, 2003 6:36 pm
Updated:
bothealer.inc - Fixed IsPally ini setting not being generated in ini.
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
RogerWilco
- a ghoul

- Posts: 86
- Joined: Thu Aug 28, 2003 4:05 am
Post
by RogerWilco » Thu Oct 23, 2003 7:58 pm
Grim could you please explain how the autohealpet work... maybe I am not doing something right but it is not healing my pet.
Also I noticed that Lootup isnt working right... the BOT will kneel to the corpse but not loot it.
-
funmonkey
- orc pawn

- Posts: 16
- Joined: Wed Mar 19, 2003 12:24 am
Post
by funmonkey » Thu Oct 23, 2003 8:47 pm
Awesome work man....
-
LordGiddion
- a snow griffon

- Posts: 352
- Joined: Sat Sep 13, 2003 6:12 pm
-
Contact:
Post
by LordGiddion » Thu Oct 23, 2003 10:55 pm
Working on the autoheal and the looting right now.
Pets will only be healed if you set HealPets to 1 in your ini or use the command autopetheal [on/off].
To keep the macro from locking up if you acidently fire a heal you haven't set in your ini add:
to the top of your SpellSub in BotSpell.inc
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Fri Oct 24, 2003 5:57 am
bothealer.inc - Added quickfix for locking up spells when turning on autoheals without setting the spells to use(from lordg). It didn't really lock up the bot but having it check vs NA is easier than telling the bot to stop trying to autoheal then giving the stop command to "unlock the bot" Good job lordg.
personal.inc - Updated the personal.inc example with my reportlom code. You can now set in the ini the percent to report lom and the message it gives. You can also toggle this on and off with the reportlom command. The lompct command can change the percent it triggers at.
Thanks
P.S. I hear that LordGiddion is working on some nifty additions. (The ability to handle group messages and fixes to corpse looting are two that stand out in my mind) I'll be sure to add them as soon as they are tested and free of smilies :P
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
gnome001
- a ghoul

- Posts: 109
- Joined: Fri Jan 24, 2003 1:01 am
Post
by gnome001 » Fri Oct 24, 2003 9:19 am
i love this macro, haven't totally figured it out, but i love what i have figured out. i usually bot a shammy, and before the macro change i had a macro that would do all the basic shammy stuff, slow, heal etc, however i also had it auto cann for me.. my problem is that here i'm not really sure where to put the auto cann routine so that it checks the hp/mana every cycle of the macro. i tried converting the macro i had but it was old and i generally made a mess of it... i'm not a programmer, never claimed to be. i have a cann macro that works, i'm just not sure of how to plug it into this macro.
Code: Select all
| Shamandance.mac
|CanniBot! Macro will cani you and heal when I thought was necessary (you can change it obviously)
|FizzleProtector! Fizzleprotector will recast canni in case of a fizzle
|usage /macro shamandance.mac
#event SpellFizzle "Your spell fizzles"
Sub Main
:loopstart
/if n $char(hp,pct)<35 /call HealMe
/if n $char(mana,pct)>5 /if n $char(hp,pct)>25 /if n $char(hp,pct)<70 /call HealMe
/if n $char(hp,pct)>60 /if n $char(mana,pct)<90 /call Canidance
/doevents
/goto :loopstart
/return
Sub Canidance
/sit off
:Canni
/cast "Cannibalize IV"
/delay 9s
/call Main
Sub HealMe
/sit off
:Heal
/target myself
/cast "quiescence"
/delay 12s
/call Main
Sub Event_SpellFizzle
/cast "Cannibalize IV"
/delay 9s
/call Main
/return
-
LordGiddion
- a snow griffon

- Posts: 352
- Joined: Sat Sep 13, 2003 6:12 pm
-
Contact:
Post
by LordGiddion » Fri Oct 24, 2003 11:22 am
Gnome,
Put your canni routine in your own version of Personal.inc
Put the check for HP/Mana in the sub PersonalMain - The main loop of Genbot calls personal main on each pass
something like this (I don't run a shaman so can't test)
in Setup personalVars
Code: Select all
/declare doCanni global
/declare CanniWait timer
/varset CanniWait 0
/varset docanni $ini(@IniFile,"Healer",docanni )
/if "@docanni "=="NOTFOUND" {
/ini "@IniFile" personal docanni 0
/varset docanni 0
}
in PersonalMain
add 2 new routines
Code: Select all
Sub CanniDance
/if n CanniWait>0 /return
/if @Combatstatus=="1" /return
/if (n $char(hp,pct)<40 || n $char(mana,pct)>90) /return
/stand
/cast "Cannibalize IV"
/varset CanniWait 9s
/return
Sub Do-canni
/if $defined(Param1)==FALSE {
/tell @MasterName canni is @doCanni
/return
}
/if @Param1=="off" /varset doCanni 0
/if @Param1=="on" /varset doCanni 1
/if @Param1=="1" /varset doCanni 1
/if @Param1=="0" /varset doCanni 0
/tell @MasterName canni is @doCanni
/return
add the new command to PersonalCommands and increment ArrayPers
if you only have this command it would look like this
Code: Select all
/varset Commands(0,0) canni
/varset ArrayPers 0
Hope this helps - the heal from canni would be taken care of by the normal heal routines
Last edited by
LordGiddion on Fri Oct 24, 2003 2:01 pm, edited 1 time in total.
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Fri Oct 24, 2003 1:19 pm
LordGiddion sent me a ton of great commands and code. I've added these from his code so far:
INI setting for having the bot listen in group.
Group commands support.
New assist command and aona command that goes with it.
aona - will toggle wether the bot will turn on attack when using the assist command.
I added 2 more commands that are similar. petona, and bona (pet, and behind on assist.)
getbehind will no longer attack when used. It will simply get behind. If you want something that will attack and get behind use the assist command with the bona flag set. You can set all of these defaults in the ini once you have ran the macro once after the update.
Lordg also added some code to sit the caster down more often when anchored.
Stuff coming:
New healer code withe better target watching: LordG.
New corpse looting code: LordG (In my mailbox but I need to make a few mods. Mainly I want the stop command to be able to stop the looting at any point in the loop.)
Files updated:
genbot.mac
botcore.inc
botcombat.inc
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Fri Oct 24, 2003 1:52 pm
Added LordG's loot code.
files updated:
botcore.inc
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Fri Oct 24, 2003 9:25 pm
LordG's healer updates are in as well as a spellsub update. I'll let him elaborate on all that has changed since I don't have a healer.
Thanks
Files that changed:
bothealer.inc
botspell.inc
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack
-
mackster
- a ghoul

- Posts: 95
- Joined: Mon Sep 09, 2002 3:02 pm
Post
by mackster » Fri Oct 24, 2003 9:45 pm
Thank you Grimjack, this is one hell of a macro

-
grimjack
- Macro Author

- Posts: 525
- Joined: Thu Nov 07, 2002 6:51 am
-
Contact:
Post
by grimjack » Fri Oct 24, 2003 10:03 pm
mackster wrote:Thank you Grimjack, this is one hell of a macro :D
Don't forget to thank lordg for all the updates he's been sending in. He's had a lot of great ideas and good clean code.
Thanks
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.
Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.
My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack