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

Narces
a lesser mummy
a lesser mummy
Posts: 37
Joined: Thu Aug 07, 2003 7:50 am

Post by Narces » Sun Nov 23, 2003 6:51 pm

Thanks Rencro.
Was really looking more for a combat function than just a anytime it wears function. Otherwise it would chain cast it every couple seconds, breaking invis.

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

Post by rencro » Sun Nov 23, 2003 8:42 pm

Actually, notice it only gets called if you are in combat.

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

Post by grimjack » Sun Nov 23, 2003 11:11 pm

rencro wrote:Actually, notice it only gets called if you are in combat.
Also you can change /press 4 to /cast item "item name".
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

Narces
a lesser mummy
a lesser mummy
Posts: 37
Joined: Thu Aug 07, 2003 7:50 am

Post by Narces » Mon Nov 24, 2003 12:51 am

Yeah Rencro, That last comment was towards GJ. His code would have just casted the effect every couple secs when it wore off making it impossible to move around and what not.

:lol: :lol: :lol:

:D

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

Post by grimjack » Mon Nov 24, 2003 1:29 am

Narces wrote:Yeah Rencro, That last comment was towards GJ. His code would have just casted the effect every couple secs when it wore off making it impossible to move around and what not.

:lol: :lol: :lol:

:D
1) It was an example to point you in the right direction.

2) It was more an example of how you can add whatever you want to the personal.inc.

3) It was not a supposed to be a complete copy/paste bit of code.

4) Adding a combat check to that code would be trivial.

5) Come back and laugh at my code when you have posted something useful.

With that said, rencro's solution is better. Not having to rely on text events is always a better solution.

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

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

Post by rencro » Mon Nov 24, 2003 7:06 pm

The possibilities are endless really, its called genbot, which sounds generic, but this mac is no way near generic.

As far as "my code" being good or what have you, actually, I just rewrote someone else's from another mac and personalized for me, so no credit to me. Search has the answer.

I dont know what I would do if this stopped working...

So thanks GrimJack for all your efforts, and everyone that has contributed to this mac, and of course thanks for mq.

in_training
Craptastic
Posts: 115
Joined: Fri Oct 10, 2003 8:25 am

Post by in_training » Mon Nov 24, 2003 11:43 pm

I dunno if I am just wacked out, but anyone else notice that it seems to be a stray /sendkey down shift?

For some reason, after cerctan commands (I can't remember which ones right now. It's late and I am dead tired), but I have to tap the shift key to get it outta up-arrow for move forward mode.

Might just be me though. Not that it's a problem, just an observation.


GrimJack is a God.

Narces
a lesser mummy
a lesser mummy
Posts: 37
Joined: Thu Aug 07, 2003 7:50 am

Post by Narces » Tue Nov 25, 2003 3:12 am

5) Come back and laugh at my code when you have posted something useful.
Wasn't laughing at your code bro, relax. As for posting useful information, ideas seem pretty useful, sorry if your dont appreciate them. Don't remember those rset/rmod commands being in there before I suggested them from my old code. Again, wasn't laughing at you, and haven't said anything but praise of your scripts. Guess it was just a bad day at the office and everything you read seemed to be pointed at you. :oops:

Was coming here to post another idea I was going to include in my personal code, so here goes.

You have a yesres command, but to have the script loot a PC's corpse I've only found lootup when targetting your own corpse to work. It is pretty simple to add a similiar command that would target the PC, moveto, loot until nothing on cursor, and then stand up. Maybe merge the two commands (yesres & lootup) into one so that it automatically took the res and looted corpse. Just an idea thou.

P.S. Was just explaining the confusion of who I was talking to, and laughing at that confusion. Not you. Again, nothing but praise for your scripts man. Later.

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

Post by JimJohnson » Wed Nov 26, 2003 9:45 am

cleric bot just spams true but never heals also wizzie bot just spams true after telling to nuke but never casts. I screw somthing up or is it MQ2 changes

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 12:09 pm

Narces wrote:
5) Come back and laugh at my code when you have posted something useful.
Wasn't laughing at your code bro, relax. As for posting useful information, ideas seem pretty useful, sorry if your dont appreciate them. Don't remember those rset/rmod commands being in there before I suggested them from my old code. Again, wasn't laughing at you, and haven't said anything but praise of your scripts. Guess it was just a bad day at the office and everything you read seemed to be pointed at you. :oops:

Was coming here to post another idea I was going to include in my personal code, so here goes.

You have a yesres command, but to have the script loot a PC's corpse I've only found lootup when targetting your own corpse to work. It is pretty simple to add a similiar command that would target the PC, moveto, loot until nothing on cursor, and then stand up. Maybe merge the two commands (yesres & lootup) into one so that it automatically took the res and looted corpse. Just an idea thou.

P.S. Was just explaining the confusion of who I was talking to, and laughing at that confusion. Not you. Again, nothing but praise for your scripts man. Later.
Sorry bad day.
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

in_training
Craptastic
Posts: 115
Joined: Fri Oct 10, 2003 8:25 am

Post by in_training » Wed Nov 26, 2003 1:14 pm

I answered my own damn question, 3 seconds after I posted.

in_training
Craptastic
Posts: 115
Joined: Fri Oct 10, 2003 8:25 am

Post by in_training » Wed Nov 26, 2003 2:01 pm

"Couldn't parse /g @ChatText"

Using MQ2

Does this for all stuffs that are supposed to be in gsay.

Just changed /g to /gsay, seems to work fine now.

Botcore.inc:line 307, is the function you want
Last edited by in_training on Wed Nov 26, 2003 2:41 pm, edited 1 time in total.

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

Post by mekaniak » Wed Nov 26, 2003 2:20 pm

Just out of curiousity Grim, how long did it take you to write the entire genbot code???
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.

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

Post by ml2517 » Wed Nov 26, 2003 3:42 pm

I took a different approach to the /g problem. It seems the alias listed for /g was /groupsay. I just deleted the alias and recreated the alias as /g to be /gsay. Worked fine also.

uglyshaman

Post by uglyshaman » Wed Nov 26, 2003 4:21 pm

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