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

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

Post by grimjack » Wed Nov 26, 2003 5:42 pm

uglyshaman wrote:Wow - this macro is amazing. I've spent the last hour or so perusing the macro itself and then some time reading the thread. I do however have a relatively newb'ish question until we come up with a readme for the macro...

I think I understand the basic usage of the macro - I hope. It basically looks like you send a command to the bot and then it takes various actions based on what command you gave it. However, I am uncertain as to what the commands entail and how involved they are. Ie: if you have to issue a command to get healed, to slow, to rebuff - or if some are automatic. My goal is simply to adapt it for my shaman and have him assist the tank, slow, send in the pet, heal when necessary, and rebuff when necessary. I'm sure many are using it in that capacity. However, in lieu of a readme, I'm a little confused as to *what* to customize in the personal.inc (and the macro itself) to make it work for my shaman. For example, where do I tell it what spells I have memmed? When using the "watchtarget" command, what exactly does it do - only heal when the target gets low? How do the various files work together? (generally).

I have implemented a few macros (and am working on one of my own) with some success, and am amazed at the capability of GenBot and MQ. I think I just need someone to explain to me the nuts and bolts of how it operates so that I can customize it.

My apologies in advance for the moronic-ness of the question. Please feel free to flame away if you need to :) Can't say I'd blame you.

Ugly Shaman
No problem at all.

First load the macro on your shaman

then do /end.

Go and edit the ini file named genbot_charactername.ini.

Restart the macro on the shaman. If you want commands that are not already provided you can add them to the personal.inc.

That should get you started.

Commands of which to take note:
/msg botname cmds core
/msg botname cmds spell
/msg botname cmds personal
/msg botname cmds combat
/msg botname cmds healer

These should reply to the master who sent the tell with a list of commands for that module.

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 » Thu Nov 27, 2003 7:45 am

Cleric / wizie bot -- anyone else having cleric or wizzie bot just spam TRUE TRUE TRUE but not casting anything after they get targets?

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Nov 27, 2003 2:53 pm

It's because you are on a mount. The currently MQ code sees the subtle movements of you on your horse (yes.. you actually move) and says that you are moving around and hence can't cast a spell.

Try it without a mount and having your character auto-sit after like 3 or 4 seconds.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Nov 27, 2003 7:07 pm

I ended up making this change so I could use my mount. Seems to work for me.

Change this:

Code: Select all

   /if $char(ismoving)!=FALSE { 
      /sendkey up up 
      /sendkey up down 
      /delay 1s 
   } 
   :WaitForStop 
   /doevents 
   /if n $BreakOut==1 /return 
   /echo $char(ismoving) 
   /if $char(ismoving)!=FALSE { 
      /delay 1s 
      /goto :WaitForStop 
   } 
To this:

Code: Select all

    /if n $char(speed)=>1 {
      /sendkey up up 
      /sendkey up down 
      /delay 1s 
   } 
   :WaitForStop 
   /doevents 
   /if n $BreakOut==1 /return 
      /if n $char(speed)=>1 {
      /delay 1s 
      /goto :WaitForStop 
   } 

rencro
Custom Builder
Custom Builder
Posts: 56
Joined: Sat Sep 27, 2003 12:39 am

Post by rencro » Thu Nov 27, 2003 8:09 pm

Thanks ml, I had just commented the /if statements out, but this looks better.

Obviously these changes are in botspell.inc

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu Nov 27, 2003 8:15 pm

Oops.. yeah botspell.inc

Cash42
orc pawn
orc pawn
Posts: 23
Joined: Sat Nov 22, 2003 1:38 pm

Hello all, some new ideas

Post by Cash42 » Sun Nov 30, 2003 12:41 pm

Heya guys,

As I just got MQ to work about a week ago I am having a ball with it. Thanks to all those who made it possible.

I have been using the genbot with my 3 accounts, if this goes as well as I hope I will be adding 3 accounts for my own group ;)

The new function that I want to add is a dungeon crawl. As I see it, genbot is designed for camping. With the advent of LDoN this is clunky. So here are my thoughts. If I can find the code which controls the assiting, I would like to make a new command named Crawl. The bots would auto follow the leader and behave normally as the genbot commands. However once the assist command is given the bots would stop following, attack the intended target until it's dead, then resume following the leader until the next assist command. The problem is, that I am doing this by hotkley's now, and after a few hours of play, the bots begin to behave VERY erraticly. It is difficult to get the melee's to stop following and attack.

I am correct in saying the Anchor command declares "camp" for the party. Meaning after killing a mob or executing a function, they return to the anchor point while awaiting the next command? If so, all I want to add is a "roaming" anchor point. The anchor being the leader. This sound like a good idea to you guys?

Aside from this, I am also wanting to add a bind wound routine. if I could add the macro found in the depot to genbot, that would rock.

I would also like you all to know that I am not asking you to do this for me. I would really appreciate a little guidance while I try to learn this for myself, as well as some validation of my ideas. I would hate to go through this process only to find out the premise for the work was flawed hehe.

I have profited much from the work you all have done. Now it's time for me to give something back. Nice to meet ya's and I look forward to working with you in the future.

Cash42
Cash42

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Sun Nov 30, 2003 6:34 pm

cant you just have the bots follow you? I havent used genbot in a long time so I'm not sure if the "/tell botname follow" command is still there.

P.S. 2 months isn't that long, but for the amount of change MQ went through it really is.
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

Cash42
orc pawn
orc pawn
Posts: 23
Joined: Sat Nov 22, 2003 1:38 pm

Post by Cash42 » Sun Nov 30, 2003 11:53 pm

Currently, I have the bots follow me to the next fight spot. Then I comand them to stop while I pull. then command them to assit, then follow me again. The problem is after a few hours of this, the bots begin to misbehave. I.E. they become VERY laggy, the melee's don't attack, and so fourth.
Cash42

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

Post by grimjack » Mon Dec 01, 2003 1:53 am

Cash42 wrote:Currently, I have the bots follow me to the next fight spot. Then I comand them to stop while I pull. then command them to assit, then follow me again. The problem is after a few hours of this, the bots begin to misbehave. I.E. they become VERY laggy, the melee's don't attack, and so fourth.
I've been meaning to fix this for some time and just keep forgeting. When I first wrote the afollow command I was in a rush and just had it disable the command when in combat. I'll post an updated version once I get home. It should follow the person you tell it to follow(when using afollow) until assist or attack call is given, break off to attakc mob, then return to following.

Once the fix is in make sure you use the noattack command to stop the bots from fighting instead of the stop command. Stop will continue to make the bots stop following/attackin/ect as it does now and noattack will just make the bots stop doing combat.

Thanks
GrimJack
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

inorpo
a lesser mummy
a lesser mummy
Posts: 31
Joined: Sat Nov 29, 2003 1:44 pm

Post by inorpo » Mon Dec 01, 2003 2:46 am

Granted I'm new to the MQ community, I would just like to express my thanks to all the devs for making this possible and GJ and everyone who has commited to this.

I tested this tonight with my 30 war and a 25 cleric, cleric being the bot in HHK. It worked great. Only a few questions, why is it echo "FALSE" every now and then?

This is the only bug I had, oh and the /g stuff but I fixed that.

just really wanted to say thanks.

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

Post by grimjack » Mon Dec 01, 2003 4:06 am

inorpo wrote:Granted I'm new to the MQ community, I would just like to express my thanks to all the devs for making this possible and GJ and everyone who has commited to this.

I tested this tonight with my 30 war and a 25 cleric, cleric being the bot in HHK. It worked great. Only a few questions, why is it echo "FALSE" every now and then?

This is the only bug I had, oh and the /g stuff but I fixed that.

just really wanted to say thanks.
This is debug output that I never removed. I'll remove it next update. It is from a movement check that I will also be comenting out next update since so many people use mounts (When on a mount you are reported as moving almost all of the time).

Thanks
GrimJack
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
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Post by grimjack » Mon Dec 01, 2003 10:10 am

New code is in.

Now when you tell a bot to assist or attack that was on afollow he will stop following until the end of the fight or until stop is called. If you want the bot to stop following you now need to use the stay command. This only applys with the afollow command.

Thanks
GrimJack
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 » Tue Dec 02, 2003 4:31 am

dumb question how do you get genbot to loop a spell / action like fire / nuke / ice?

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

Post by grimjack » Tue Dec 02, 2003 5:43 am

JimJohnson wrote:dumb question how do you get genbot to loop a spell / action like fire / nuke / ice?
It really depends on what you want. Currently you have to call for nukes but if you wanted to make it to chain nuke at a specific percent once assist is called it would not be hard to add. I may work up an example for this when I get some free time.

Thanks
GrimJack
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