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
Undies
a ghoul
a ghoul
Posts: 94
Joined: Mon Oct 20, 2003 9:12 pm

Post by Undies » Wed Dec 10, 2003 11:30 pm

Has ispuller been set to 1 in the ini file?
(and aggressive = 0)

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Thu Dec 11, 2003 10:41 pm

As a matter of fact, now that i looked in the ini, there ISNT an ispuller=0 (or = 1 for that matter) in the ini file? If i were to stick it in, would it go under the combat menu? I've altered a few things to start and turned aggressive off.

Will check it out again tho!

PS: update on the non, pulling thing...he actually tends to pull every SECOND time. Sometimes every 3rd time, but he wont come back every single time..took about 20 mobs to realize the pattern lol (im slow).

In any case, thanks for the idea!

Draekz

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

Post by Undies » Thu Dec 11, 2003 11:32 pm

I suggest you delete the ini file and let it generate another one.
Then edit it to your needs.
Maybe your ini file is a very old one, pre-puller code?

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri Dec 12, 2003 1:27 am

Heyo!

Checked my configuration and ini, not pre-puller btw, just downloaded mq onto a new comp which im utilizing atm :)

Hmm still no ispuller cmd in the ini tho? If i were to redownload the code, which part should i replace? the core? or hte main bot itself? Not sure where its stored..i think its the core in the /help type thing inside eq.

All the same, not really sure exactly whats wrong :P using it to pull mobs that stun sometimes when they attack, could that be a factor? if he's stunned before he gets first knock in, could it be affecting the script?

In any case, thanks for the replies so far undies :)

Draekz

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

Post by Undies » Fri Dec 12, 2003 1:31 am

getting beyond me now, sorry... leave it to someone else (Grim?)

newstarter
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Dec 10, 2003 10:24 am

question

Post by newstarter » Fri Dec 12, 2003 7:26 am

Damn nice work with making genbot, im a big noob to this macro' ing, been reading the manual and help forum some. But i was wondering if there is any "manual" for this genbot ? would be very nice to know what commands you can use, i have tried with a cleric and found the most standard commands like, "heal" "sit" etc etc. anyone that got a list of commands that can be used ? i know i can prolly find em all in the inc files, but as i said im a big noobs and think its hard to find em.

btw: its mostly the command for the cleric bot im looking for

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

Post by grimjack » Fri Dec 12, 2003 7:32 am

Draekz wrote:As a matter of fact, now that i looked in the ini, there ISNT an ispuller=0 (or = 1 for that matter) in the ini file? If i were to stick it in, would it go under the combat menu? I've altered a few things to start and turned aggressive off.

Will check it out again tho!

PS: update on the non, pulling thing...he actually tends to pull every SECOND time. Sometimes every 3rd time, but he wont come back every single time..took about 20 mobs to realize the pattern lol (im slow).

In any case, thanks for the idea!

Draekz
This isn't causing your problem but puller should not be set on in the INI. I should remove it actualy. You should always set puller on in game after you have anchored the bot. Also try making your anchor radius like 6 or maybe 10 and see if that helps. I have not had any problems yet with it pulling back to the camp but I'll look in to the code some tonight if I get a chance.

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

DontShoot
a lesser mummy
a lesser mummy
Posts: 58
Joined: Thu Jun 20, 2002 11:20 am

Post by DontShoot » Fri Dec 12, 2003 12:04 pm

dunno if it's a problem with formatting in IRC, but I haven't been able to get this to work: I want my bot to click epic (Celestial Fists) while in combat. Only while in combat. I know this needs to go in the PersonalMain sub. I know the duration of Celestial Tranquility is 18s. Please help. Any help would be appreciated (thanks to TheColonel and GrimJack for the IRC help, I must be dumb though.

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

Post by rencro » Fri Dec 12, 2003 7:29 pm

DontShoot, this is outdated but used to work for me, maybe needs just a little touch up, but since you asked, in personal.inc :

Code: Select all

Sub PersonalMain  
   /if @Combatstatus=="1" /call Epic  
   /if @Combatstatus=="1" /call Mend 
/return 

Sub Mend  
   /if n $char(ability,"Mend")<1 /return 
   /if n $char(hp,pct)<68 { 
      /if @Combatstatus=="1" {  
            /doability mend 
      } 
   } 
/return 

Sub Epic 
   /if n $char(buff,"Celestial Tranquility")<1 { 
      /if @Combatstatus=="1" { 
         /press 4 
      } 
   }    
/return 
I had my epic bound to hotkey 4, believe this can be changed from:


/press 4

to

/castitem "Celestial Fists"

Also, as was previously stated, the second check for combat status is redundant and could be removed. I used to use many different types of chars on same computer and at one point I had this macro only call Epic if
char type=monk(at work, cant look at old code) but I took it out and renamed some files and the way genbot works, but you may want to add some personilazation so epic and mend dont get called by your "shaman" if you have multiple chars.(Again easy to do, im lazy)

Last I remember Enchater haste spells that affect atttack (VOG for example) and Ranger Strenth of Tunare do not stack with epic, if you had these on you, then you will get spammed with "didnt take effect" or did not hold" type spam constantly. I just clicked off those spells and asked for WR for haste(as it has more haste anyways)

Think this might work, I dunno, as I no longer have a monk to test on:

Sub Epic
/if n $char(buff,"Celestial Tranquility")<1 {
/if n $char(buff,"Strenth of Tunare")>"0" /return
/if n $char(buff,"Visions of Grandeur")>"0" /return
/castitem "Celestial Fists"
}
/return

Not sure on the buffs part if it needs to say >"0" or maybe =="1" or if they will do the same.

Let us know how it goes..

Waxxedazz
a lesser mummy
a lesser mummy
Posts: 47
Joined: Sat May 31, 2003 7:09 pm

same prob

Post by Waxxedazz » Fri Dec 12, 2003 7:34 pm

I am getting the same problem with the puller part of this. When I /tell bot attack he will run out attack and not come back till the mob is dead. I set aggressive to 0 and manually set ispuller on in game.

w00tz0r
orc pawn
orc pawn
Posts: 18
Joined: Sun Dec 14, 2003 2:37 am

Humm!

Post by w00tz0r » Sun Dec 14, 2003 2:41 am

Hi there 1st off i would like to thank yah Grim this is some amazing stuff! I just got back into EQ , and used to 4 box. So to me this is heaven hehe. Im just curious as to how i would make the bot(s) receive thier commands over irc. (Using the MQ2 Irc plugin specifically, so as im not sending bot commands where GM's etc can see)

Thanks for any help in advance!

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Sun Dec 14, 2003 4:21 pm

The chat from the irc plugin is percieved by event_chat as coming from your group. Set genbot up to listen to commands in group chat.

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 » Sun Dec 14, 2003 4:48 pm

Grimjack:

Question here... Would it be possible to add in an ini file for mobs which could be used to set the min/max ranges?

Some of the encounters I do require specific ranges ie hitbox and would love to be able to set the range based on the target name. Default to what the current settings are if the name is not in the ini.

w00tz0r
orc pawn
orc pawn
Posts: 18
Joined: Sun Dec 14, 2003 2:37 am

Ok one more Q's

Post by w00tz0r » Mon Dec 15, 2003 12:45 am

NM Figured it out on my own.

But i am curious, in personal.inc The call "ChatOut 5" is used. which using my settings goes to IRC. What would i have to change that to , to go to group chat (so as the %t works).

Sorry for my newbish questions

w00tz0r
orc pawn
orc pawn
Posts: 18
Joined: Sun Dec 14, 2003 2:37 am

One more newb question hehe

Post by w00tz0r » Tue Dec 16, 2003 9:54 pm

Hi there i have been customizing your awesome macro. And so far its excellent, only problem im having is im not programming savvy.

Im curious as to what the number after ChatOut corresponds to. So i can change where certain bot replies go.

I am also attempting to make a Sub for Chainrooting adds.

I simply want to have it Cast root every x seconds, as well as stop when i send a certain command.

Any help would be very much apprecaiated.