genbot.mac Generic Bot macro for any class. V8 with ini

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

RogerWilco
a ghoul
a ghoul
Posts: 86
Joined: Thu Aug 28, 2003 4:05 am

Post by RogerWilco » Thu Oct 30, 2003 12:54 pm

Guys I just want to say this is a GREAT bot ... Grim your hard work has not gone unnoticed and Lord's add-ons ....WOW!!!! This Bot makes the game alot more fun... Thanks guys


I did noticed something in the personal.ini and I am not a Dev by any means but this just does not seem right to me

Code: Select all

 |||||||||||||||||||||||| 
   |Non INI vars.
    /declare LomTimer global
/return 
Doesnt this need some type of /varset and /if syntex

I sort of looked at some of the other code that Grim and Lord wrote and I came up with this

Code: Select all

/declare LomTimer global
/varset LomTimer "$ini(@IniFile,"Personal",LomTimer)" 
/if "@LomTimer"=="NOTFOUND" /ini "@IniFile" Personal LomTimer 0
/return 

the problem with is is that one the bot gets below XX% of mana it tells the master - "Only" and does not give the percentage and it spams the master

Is there a way that the bot will check the mana pool and at every 10% tell you

Only 30% of mana left
Only 40% of mana left
Only 50% of mana left
Only 60% of mana left
Only 70% of mana left
Only 80% of mana left

and have it at a certain percent, in this instance, lets say at 90% stop spamming the master

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

LOM timer

Post by grimjack » Thu Oct 30, 2003 3:06 pm

Code: Select all

|Non INI vars. 
   /declare LomTimer timer 
Is what I have which is correct.

The timer gets set to 2m after reporting lom.

The message is configurable in the ini and so is the percent it fires off at.

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

RogerWilco
a ghoul
a ghoul
Posts: 86
Joined: Thu Aug 28, 2003 4:05 am

Post by RogerWilco » Thu Oct 30, 2003 4:20 pm

Thanks...maybe something else is wrong

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Post by grimjack » Fri Oct 31, 2003 12:54 am

RogerWilco wrote:Thanks...maybe something else is wrong
I'm not sure. Mine works I just double checked. The last time I posted had some fixes for it I believe. Perhaps you don't have the newest "It is possible that I forgot to update the date and version". I have mine set at 20 percent and I get the tell when I get below 20percent mana.

I'll check when I get home to make sure the newest code is out there.

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

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

Post by Undies » Fri Oct 31, 2003 2:23 am

Time for an ignorant question.

What are patch heals?

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Fri Oct 31, 2003 2:49 am

Patch heals = fast heals

User avatar
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

Post by Undies » Fri Oct 31, 2003 3:12 am

OK thanks...

But I can't see a threshold setting for it in the ini file. Also when my shaman did a CAN5 I got a message to the group "@Patchhealmessage".

Just as well I wasn't grouped with anyone else at the time! But I can't see why it would do this from the code (version 8.3). Also I am trying to figure out how shaman can use torpor or quiescence on pets or PCs other than casters...

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Fri Oct 31, 2003 3:28 am

The only way I can see to quickly target a pet if they are in your group is to press the group members hotkey twice, then verify that it is a pet before casting the heal.

I haven't tried this bot, and I play a shaman so I will give it a try sometime.

boredom
a lesser mummy
a lesser mummy
Posts: 49
Joined: Thu Jun 19, 2003 3:45 pm

pet

Post by boredom » Fri Oct 31, 2003 6:42 am

There is code in the bot to target (and heal) the pet. I'm pretty sure it's something like

Code: Select all

/target id $spawn($group(@GroupMember),pet)
if there is no pet attatched to that group member, spawn will return 0.

/Bored

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Update:

Post by grimjack » Fri Oct 31, 2003 9:31 am

All files updated to what I currently use.

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

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Sat Nov 01, 2003 6:09 am

moved my post was in wrong section

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Update:

Post by grimjack » Sat Nov 01, 2003 12:19 pm

Tweked botcombat.inc to not spam you if you use spells in combat without using spellsub.

files updated:
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

Guest

Post by Guest » Sat Nov 01, 2003 7:11 pm

1st : Great work Grim (and all who added stuff to it)

something is strange tho, and i dont know if it is MQ or the Macro.
since compiling MQ from 31. it isnt working anymore.
it doesnt show any errors, but does nothing. it dont Heal, or replys to any commands in Tells.
i still started it with
/macro genbot <mainchar>

any hints ?

User avatar
MDewHead
orc pawn
orc pawn
Posts: 28
Joined: Fri Oct 31, 2003 4:08 am

Post by MDewHead » Sun Nov 02, 2003 3:28 am

Genbot working for me with Nov 1 version, I'm having a huge problem with my bot backing up and away from the mob when I /t genbot attack target. He's also not facing the target. Although he does assist and get the correct target.

I keep getting spammed:

There were no matches for (0, -100) any nopredict.

in /echo when I tell bot to attack, or loot.

So atm, I've got him in a corner and root the mobs close to him so he will actually attack and kill the mobs.

Guest

nopredict

Post by Guest » Sun Nov 02, 2003 6:14 am

search and replace nopredict with nothing.