Genbot v13.3.7 [Updated 04/19/05]

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

dark_matter
orc pawn
orc pawn
Posts: 22
Joined: Tue Jul 20, 2004 4:11 pm

Post by dark_matter » Mon Jul 11, 2005 10:28 am

Genbot does what I tell it to when I tell it to, advbot seems to be written to automate the whole process, I don't want that at all. I tried advbot, didn't like it, it can't canni for shit, was slow to get mobs debuffed, etc. Canniv4 is pretty good, but lacks too many features.

The code for advbot is cleaner, I'll give you that, but genbot is what I prefer to use.

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Jul 11, 2005 11:24 am

dark_matter wrote:it can't canni for shit, was slow to get mobs debuffed
uhh . . . k
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

Process
a lesser mummy
a lesser mummy
Posts: 73
Joined: Fri Jun 25, 2004 5:30 pm

Post by Process » Mon Jul 11, 2005 3:20 pm

I think Advbot is superior, however the lack of an all-inclusive macro makes it difficult to use for multiple bots. Keeping the command-line structure the same for all bots makes for more efficient control.


It's also nice being able to re-apply timed buffs outside of your group. That's a huge help. Genbot does that pretty well.

Has anyone gotten this to work with irc yet? I hate going through ingame commands. I read the post about adding in lines of code to make it respond to irc chat, however I haven't gotten it to work yet. Anyone else?

Process

mamba666
a lesser mummy
a lesser mummy
Posts: 49
Joined: Fri Aug 15, 2003 11:47 am

Post by mamba666 » Mon Jul 11, 2005 3:23 pm

Guys,
ADVbot id great! Genbot is Great! Everyone that contributes to these macros as well as any macros on these boards is great.
Lax is great for making Macroquest even better than it originally was.

We should think about why we use macroquest and how much more fun we have, not who is better or what macro is better. Whatever someone wants to use is what is best for them.

I have had so much fun playing around with scripts and seeing what is possible with macroquest.

Without all of the people contributing and sharing information, macroquest and everquest for that matter simply wouldn't be as dynamic and fun as it is.

Practice showing respect to you fellow macroer. Today you may be pissed at the person..tomorrow they might be the one that has a nice script or information that you could really use.

So thanks for those that work very hard at developing excellent macros and sharing the skill and information that they have! Thanks Lax and co developers for providing an excellent platform for us to play with!

Slackro
a lesser mummy
a lesser mummy
Posts: 46
Joined: Sun Apr 17, 2005 2:30 pm

Post by Slackro » Mon Jul 11, 2005 4:06 pm

What is this IRC error everyone is having?

I can't imagine I fixed mine differently than D_M did but all my bots operate perfectly with commands given over a local IRC chat. They output their replies to that chat as well. Not having any problems except those I mentioned earlier which I have a work-around for.

Is it only certain commands that aren't working over IRC?

When you start the Mac, are you only indicating ONE master?

If so, start the mac with THREE masters, with the first and last in the listing being named "pud" (or whatever). It seems that there is still an issue with Genbot not parsing the first and last param / member of an array; such as the list of commands, shortcuts, or masters to respond to.

/shrug

mamba666
a lesser mummy
a lesser mummy
Posts: 49
Joined: Fri Aug 15, 2003 11:47 am

Post by mamba666 » Tue Jul 12, 2005 12:04 pm

here is what I have that works for IRC. I did have trouble getting it to work at first. The documentation for genbot doesn't seeem to specify exactly what settings work for IRC. I took an educated guess however.

Code: Select all

ChatIn=irc
ChatInChannel=<this seems to be only for ingame channels>
checkname=on
listenchat=on
listengroup=on
ListenChan=<this seems to be only for ingame channels>

dark_matter
orc pawn
orc pawn
Posts: 22
Joined: Tue Jul 20, 2004 4:11 pm

Post by dark_matter » Tue Jul 12, 2005 3:08 pm

Sorry Process, I don't use IRC at all, so can't really test/fix the stuff I posted for you. Is your genbot working with other commands via chat/channel/etc?

mamba666, I agree, I appreciate everyones work on all this stuff. I really don't understand all the genbot hate and don't really care honestly. It's the macro I choose to use, it runs my shaman exactly how I want it to.

I'd like to fix the parsing in the macro I posted, don't know when I'll get to it, took quite a few hours to get it working and I'm unmotivated now that it works... ;)

I'll also probably work with advbot some more, probably add in some of the things to make it more genbot-like.

crisdan
a ghoul
a ghoul
Posts: 126
Joined: Mon Mar 24, 2003 1:56 pm

Post by crisdan » Wed Jul 13, 2005 8:32 am

For all of those trying to use genbot with IRC. Make a channel on your irc server that match's a channel in your ini file (i.e. like you were going to use the channels on the SOE servers). This works and has always worked for me in macro's that allow atleast soe chat channels.

Fixxer
a ghoul
a ghoul
Posts: 146
Joined: Wed Apr 13, 2005 8:15 am

Post by Fixxer » Wed Jul 13, 2005 11:42 am

I have tried that as well. Could it be that the problem might actually be with MQ2IRC itself? I have no way to actually check it and see if that is true since I lack the skill to rewrite it correctly.

I was thinking it might be the IRC plugin because I noticed that an adjustment I previously made to MQ2Mastermind no longer works either.

Then again, the regular version of MQ2Mastermind does not support IRQ commands, and this recently posted Genbot from Dark_Matter is different from the one I was using that worked before (even the .ini files are differently formatted).

Process
a lesser mummy
a lesser mummy
Posts: 73
Joined: Fri Jun 25, 2004 5:30 pm

Post by Process » Tue Jul 19, 2005 9:14 am

crisdan wrote:For all of those trying to use genbot with IRC. Make a channel on your irc server that match's a channel in your ini file (i.e. like you were going to use the channels on the SOE servers). This works and has always worked for me in macro's that allow atleast soe chat channels.
I tried this. IRC still doesn't work. Using tells really sucks because a) it's easily detectable by SOE and b) The pauses required between each tell for them to be transmitted correctly are quite long.

Would someone be willing to post a working version that responds to commands in IRC?

Thanks,

Process

mamba666
a lesser mummy
a lesser mummy
Posts: 49
Joined: Fri Aug 15, 2003 11:47 am

Post by mamba666 » Thu Jul 21, 2005 1:34 am

Make sure you have listenchat=on and listengroup=on I laso use checkname=on in ini file.

I was having problems with the bots randomly relaying tells to other groupmembers and potentially other random people that sent the bot a tell. i found this out on a raid when I was botting my cleric. was very emabarassing. So I looked further into the code that Dark_matter posted that works pretty damn well. I decided I needed to use IRC which I got to work mainly by adjusting my ini files with the info I posted.
I found the part in botcore.inc where the tells get relayed and now my tells get relayed to the IRC channel. here is the fix.....

Look in Bot core for this in sub event_chat

Code: Select all

/varset myvar ${MasterList.Lower} 
|/echo masterlist.lower = ${myvar} 
|   /if (${myvar.Find[ ${ChatSender.Lower} ]}) { 
|/echo found master in chat 
      /varset MasterName ${ChatSender} 
      /varset TalkToSelf 0 
      /call ExecCommand "${ChatText}" 
      /return 
   } 
/echo didn't find master in chat 
   /if (${Toggle-relaytells} && ${ChatType.Equal[TELL]}) { 
      /if (${Spawn[npc ${ChatSender} radius 100].ID} || ${Spawn[${ChatSender}].Master.ID}==${Me.ID}) /return 
      /call ChatOut 1 "${ChatSender} told me: ${ChatText}" 
   } 
/return 
change it to the following

Code: Select all

/varset myvar ${MasterList.Lower} 
|/echo masterlist.lower = ${myvar} 
   /if (${myvar.Find[ ${ChatSender.Lower} ]}) { 
      /echo found master in chat 
      /varset MasterName ${ChatSender} 
      /varset TalkToSelf 0 
      /call ExecCommand "${ChatText}" 
      /return 
    } 
/echo didn't find master in chat 
   /if (${Toggle-relaytells} && ${ChatType.Equal[TELL]}) { 
|      /if (${Spawn[npc ${ChatSender} radius 100].ID} || ${Spawn[${ChatSender}].Master.ID}==${Me.ID}) /return 
|      /echo ${ChatSender} sent me a tell
      /call ChatOut 1 "${ChatSender} told me: ${ChatText}" 
   } 
/return 
There is an /if statement there with an end bracket }
This end bracket doesn't get used properly with the /if commented out. I imagine it was commented out during troubleshooting. I added some echos and such to try and discover what the heck was happening with tells.
So this is working great for me. I really liked having tells get relayed directly to master in tells but htis is probably better since it goes to IRC and soe can't monitor that info.

I hope this helps some folks out there having the same problem as me.

I also realised that that /if statement commented out was causing the bots to react to non masters in group saying stuff as well as people sending tells to bots, because it removed the check for master. So this will solve more than just the tells not being relayed problem.

Fixxer
a ghoul
a ghoul
Posts: 146
Joined: Wed Apr 13, 2005 8:15 am

Post by Fixxer » Thu Jul 21, 2005 11:26 am

Error created a duplicate. Cleared the message so it's less annoying.
Last edited by Fixxer on Thu Jul 21, 2005 11:28 am, edited 1 time in total.

Fixxer
a ghoul
a ghoul
Posts: 146
Joined: Wed Apr 13, 2005 8:15 am

Post by Fixxer » Thu Jul 21, 2005 11:26 am

Error created a duplicate. Cleared the message so it's less anoying.
Last edited by Fixxer on Thu Jul 21, 2005 11:28 am, edited 1 time in total.

Fixxer
a ghoul
a ghoul
Posts: 146
Joined: Wed Apr 13, 2005 8:15 am

Post by Fixxer » Thu Jul 21, 2005 11:27 am

Not sure exactly why, but with the changes you posted Mamba666, all it will do is relay tells... It no longer recognizes the master's commands in any way. And it still doesn't respond to Commands issued from IRC.

Thanks for pointing out that the bot is answering commands from anyone though... That would have been really bad. Though I am not sure how to fix it, could it be that there is a myvar variable listed when it should be a mavar1 or something instead?

It's almost as if it's checking who the master is, making myvar=master and then when it checks the chat message to compare the sender's name to the master list it uses myvar for that too, assigning the actual master right in as the sender (because myvar didn't change)...

Just an idea. I'll keep experimenting with this to see if I can fix it and post it if I can figure it out.

mamba666
a lesser mummy
a lesser mummy
Posts: 49
Joined: Fri Aug 15, 2003 11:47 am

Post by mamba666 » Thu Jul 21, 2005 1:29 pm

Fixxer,
The bot should be echoing in MQ2 chat concering the master wether it is found in the list or isn't found in the list. These echos will help you determine the problem. Also it echos the complete masterlist. Is the master found in the list? Did you take the advice of another post and pad the list in botmain.inc with a fake master at beginning and end i.e. /masterlist fakename1 realname fakename2

It then responds to commands from realname for me In tells or in IRC.