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 » Thu Nov 06, 2003 9:26 pm

Your getting that because the script runs a command that clears out all variables when it starts.

Its just cleaning stuff up for the program. Nothing to worry about.

Hmm

Post by Hmm » Thu Nov 06, 2003 10:23 pm

Ok then maybe I have another problem then, because I guess I really dont know how to get it to do anything.. I went into the INI file for the bot char and set up what spells he will heal with (he is a 65 cleric)

I essentially want him to stand out of group and heal toon

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

Post by grimjack » Thu Nov 06, 2003 11:10 pm

Hmm wrote:Ok then maybe I have another problem then, because I guess I really dont know how to get it to do anything.. I went into the INI file for the bot char and set up what spells he will heal with (he is a 65 cleric)

I essentially want him to stand out of group and heal toon
Start the bot with the toon you want to control it as a master. Fro the toon /msg botname watchtarget targetname

It will watch that target and heal if it drops below the percents you set up in the ini for the class type the character is. I believe you can have up to 10 watchtargets at one time. To stop watchtarget you can /msg botname watchtarget off. IsHealer must be set to 1 in the ini as well.

You can get a list of commands from the bot like this:
/msg botname cmds core
/msg botname cmds spells
/msg botname cmds healer
/msg botname cmds combat
/msg botname cmds personal

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

Janked
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Sep 10, 2003 10:53 am

Still running backwards and not autositting

Post by Janked » Fri Nov 07, 2003 7:24 am

I am having the problem reported earlier this week about giving an attack command the the player under bot control just starts running backwards. They will just keep going forever and ever till they hit a wall. :) The other problem is that I have a caster who I am giving cast commands to, but it does not autosit. If the caster is a healer and is on autoheal it does sit after the heal, but not if I give it a manual heal command. I have checked all the ini files and all seem in order for autosit. Any ideas?

Thanks for the great mac

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

Re: Still running backwards and not autositting

Post by grimjack » Fri Nov 07, 2003 8:27 am

Janked wrote:I am having the problem reported earlier this week about giving an attack command the the player under bot control just starts running backwards. They will just keep going forever and ever till they hit a wall. :) The other problem is that I have a caster who I am giving cast commands to, but it does not autosit. If the caster is a healer and is on autoheal it does sit after the heal, but not if I give it a manual heal command. I have checked all the ini files and all seem in order for autosit. Any ideas?

Thanks for the great mac
Here is a few things I can think of to check that could possibly cause the running backwards problem:
1) Check your ini for FastMin and make sure it's less than all the others(RangeMin,RangeMax... ect).
2) Make sure the bot doesn't somehow have himself targeted after the attack command.
3) Make sure you have the newest version.
4) Wait for me to find a bug I'm not aware of heh.

As for heal I have not had a chance to test the heal code since the patch. There are some things that are not working right with some of the spell code since the patch and this may be causing some issues. Also try bumping up the sit delay to a value that is more than your spell's cast time to test. If the casttime for some reason isn't being calculated properly the spell may be starting the sit timer way too soon. One last thing, when posting problems please include the date and version of the files you are using. Sometimes I find bugs and post fixes and forget to post an update message.

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

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

Post by in_training » Fri Nov 07, 2003 10:44 am

I have a question.
I am trying to use 2 characters on teh same computer (athalon 2500+ (barton), 512mb RAM, FSB is 333, Geforce4 64Mb DDR vid card), and it seems that my cleric bot goes through 1-2 cycles of healing, then just stops, until I set the focus back to the window that's running the cleric. Why is this?

Marnan
orc pawn
orc pawn
Posts: 12
Joined: Sun Oct 12, 2003 2:05 pm

Post by Marnan » Fri Nov 07, 2003 10:54 am

I have not run MQ or genbot since the patch. But the only way I have found to successfully run two botted characters on the same computer is through the use of EQWindows. But with EQWindows set up properly, I run four botted toons on one computer easily. The master character is run from another computer.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Fri Nov 07, 2003 11:09 am

MQ Scripts stop running when EQ loses focus unless your using EQW

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

Post by in_training » Fri Nov 07, 2003 7:07 pm

great. thanks! I'll DL a copy from somewhere.

//EDIT//

Found link.. thanks

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Sat Nov 08, 2003 7:35 am

Some updates

To keep genbot from crashing EQ when you camp.
in Botcore.inc

Code: Select all

#Event Camping "It will take about 5 more seconds to prepare your camp."


Sub Event_Camping
   /endmacro
/return
These 2 are to help keep the bot a bit safer

Code: Select all

#Event Appear "You appear."
#Event Appearing "You feel yourself starting to appear."
#Event LosingLev "You feel as if you are about to fall"

Sub Event_Appear
   /call ChatOut 3 @MasterName "I'm no longer invis." 
/return 

Sub Event_Appearing
   /call ChatOut 3 @MasterName "I'm starting to appear." 
/return 

Sub Event_LosingLev
   /call ChatOut 3 @MasterName "I'm losing Levitate" 
/return

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

Post by grimjack » Sat Nov 08, 2003 3:37 pm

Code: Select all

Hmm it won't fit here. Thanks to Teh_Ish for teaching me what I didn't know about xml and giving me examples to work from.

http://webpages.charter.net/grimjack/EQUI_HelpWnd.xml 
Also updating genbot for some minor bug fixes.
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

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Sat Nov 08, 2003 3:46 pm

Isn't /autobehind supposed to make the bot stay behind the mob the whole time? It just tells me that it won't go behind the mob from now on.

If it doesn't, is there a command that I can put in that will have one bot stay behind the mob? The bot isn't a rogue.

Thanks

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

Post by in_training » Sun Nov 09, 2003 4:35 pm

grimjack wrote:

Code: Select all

Hmm it won't fit here. Thanks to Teh_Ish for teaching me what I didn't know about xml and giving me examples to work from.

http://webpages.charter.net/grimjack/EQUI_HelpWnd.xml 
Also updating genbot for some minor bug fixes.
It's crashing the UI and loading teh default. No idea why. Tested: Loaded UI with the HelpWind, got error, loaded default. Without Help Window loaded all other MQ modded windows fine.

greggor
orc pawn
orc pawn
Posts: 28
Joined: Tue Jun 17, 2003 2:30 pm

Post by greggor » Sun Nov 09, 2003 5:39 pm

in genbot.mac 11/6 there is a $DoTraps Variable that should be @DoTraps I assume...

also in 11/8 botspell I think you should add...

#Event Sitting "You must stand upright and still in order to cast!"

thats what it says when you are sitting and try to use an aa spell type ability, IE divine arbitration group cure etc etc


in sub spellsub:

:WaitForStop
/doevents
/if n $BreakOut==1 /return
|/echo $char(ismoving)
/if $char(ismoving)!=FALSE {


should really comment out that /echo like I did or remove it alltogether.

Also in spellsub:


Sub Event_NoLOS
/if "$char(class)"!="warrior" /if "$char(class)"!="monk" /if "$char(class)"!="rogue" {
/call ChatOut 5 @MasterName "I can't see my target. "
/varset Fail 1
/varset CTimer 0
}
/return


Sub Event_CastResist
/if "$char(class)"!="monk" /if "$char(class)"!="rogue" /if "$char(class)"!="warrior" {
/call ChatOut 3 @MasterName "%t Resisted."
/varset Fail 1
}
/return



While sloppy this will prevent pure melees from spamming I can't see my target etc etc...


just a lil one :)

theafkxper
a hill giant
a hill giant
Posts: 207
Joined: Sun Sep 08, 2002 6:41 pm

Post by theafkxper » Mon Nov 10, 2003 12:40 am

hrmm, i get the window to open just fine, but it all says unknown label for the values...

btw, you scare me grim... http://webpages.charter.net/grimjack/