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

vaelin
orc pawn
orc pawn
Posts: 21
Joined: Fri Dec 19, 2003 8:52 pm

Post by vaelin » Wed Dec 24, 2003 2:44 am

The variable @PatchSpell is referred to as @PatchHealSpell in some cases...

Code: Select all

Sub Patchheal 
   /if n @Param0==$char(id) { 
      /if @Param0!=$target(id) /target myself 
   } 
   /if @Param0!=$char(id) { 
      /if $target(id)!=@Param0 /target id @Param0 
   } 
   /delay 1 
   /stand 
   /if n @CastMsgTimer1<=0 { 
      /if n @ReportAutoHeal==1 /g @PatchhealMsg 
      /varset CastMsgTimer1 50 
   } 
   /if n $char(gem,"@PatchhealSpell")>0 /cast "@PatchhealSpell" 
   /if n @SitAfterCast==1 /varset SitTimer @DelayBeforeSit 
   /press esc 
/return 
Also in the same section, the "/g @PatchhealMsg" didn't work until I changed it to "/g @PatchHealMsg" ... caps matters?

Corrected section below:

Code: Select all

Sub Patchheal 
   /if n @Param0==$char(id) { 
      /if @Param0!=$target(id) /target myself 
   } 
   /if @Param0!=$char(id) { 
      /if $target(id)!=@Param0 /target id @Param0 
   } 
   /delay 1 
   /stand 
   /if n @CastMsgTimer1<=0 { 
      /if n @ReportAutoHeal==1 /g @PatchHealMsg 
      /varset CastMsgTimer1 50 
   } 
   /if n $char(gem,"@PatchSpell")>0 /cast "@PatchSpell" 
   /if n @SitAfterCast==1 /varset SitTimer @DelayBeforeSit 
   /press esc 
/return 
Also while I'm here, is there an easy way that I'm missing using this script to have a melee assist on a target without sending a command (that's built into this already)?

Great work!!

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

Post by grimjack » Wed Dec 24, 2003 5:51 am

Updated bothealer with the Patch Heal fix from Vaelin.

I've canceled billing on all of my accounts and probably won't be playing anymore at least for a while(forever if I can get a decent offer on my accounts) so chances are I won't be doing many updates to genbot.

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

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

Post by ml2517 » Wed Dec 24, 2003 8:07 am

:(

Raebis
a ghoul
a ghoul
Posts: 81
Joined: Fri Dec 12, 2003 6:23 am

Post by Raebis » Wed Dec 24, 2003 8:21 am

yeah grims tired of chasing the carrot...

i completely understand his reasonings though i like to give him shit for it :D :D :D

ok man but whenya get bored and saw your legs off from sheer boredom.... don't come runnin to me!!

later jack, stop by every so often... and thanks for your contributions (specially genbot - most complicated and featured mac i've ever seen)
Always say what you want to say. Because those who mind, don't matter. And those who matter, don't mind.

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

Post by Narces » Thu Dec 25, 2003 12:18 am

Aye, a really nice macro GJ. Hate to see ya go because now that means I have to update my own scripts. Damn you for making my lazy ass work!

See ya around, and have a happy christmas/holidays.

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

bump

Post by w00tz0r » Mon Dec 29, 2003 3:40 pm

Just bumping this back up.

And i hope maybe someone else will take over updating this

Achy Wrists
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Aug 27, 2003 4:17 pm

Post by Achy Wrists » Mon Dec 29, 2003 4:06 pm

Will miss your great macros Grim. :(

Good luck kicking the habbit!

fishez
orc pawn
orc pawn
Posts: 19
Joined: Tue Dec 09, 2003 3:42 pm

Commands Question

Post by fishez » Tue Dec 30, 2003 10:25 am

I understand there will probably not be any further development of this wonderful macro but it is so awesome already I plan to use it extensively.

I'm still very much in the learning process, both of this macro and MQ2.

I have a couple of questions and possible issues for you genbot experts out there. :D

What exactly is the loadlist command supposed to do. I assumed it was to have to bot load a saved list of spells. Is that incorrect? If not, I can't seem to get it to work so what is the syntax I should use so I can be sure I'm doing it correctly.

I'm want to bot 3 chars, necro, shammy, and cleric. 2 on 1 machine with the master, using EQW and one on a separate machine (laptop).

They all answer and respond to basic commands, sit, stand, cmds, afollow, stop, etc, however, I have not been able to get some of the more difficult commands to work. For instance, I cannot get my shammy to buff or groupbuff. Buff works fine with the cleric.

This issue is also tied to the first question about the loadlist syntax since the shammy would need to load different lists to buff for individuals and for group.

I'm assuming I can do what I am trying to do but if not please correct me and if this can be done please enlighten me to the correct way.

Last question, is there a way to make the necro watch the mana of other characters and "twitch" them if they are low. Something similiar to the clerics watchtarget maybe? If it's not already built in, I'll just put that on my project list once I have other things working smoothly.

Thanks in advance for the assistance. I sure hope someone picks up the development of this excellent piece pof programming!!

Edit:
OK the loadlist is working this morning, never would last night. /msg charname groupbuff or /msg charname buff charname is still not working though. Is that syntax correct?

Fishez

User avatar
lasher
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu Dec 18, 2003 4:09 pm

Post by lasher » Tue Dec 30, 2003 10:56 am

With respect to grimjack; I've picked up the ball on genbot code, until he comes back.

v9 of genbot.mac

OK the loadlist is working this morning, never would last night. /msg charname groupbuff or /msg charname buff charname is still not working though. Is that syntax correct?
/msg charname groupbuff me
or
/msg charname groupbuff otherplayer

same with "buff". Make sure you setup the genbot_charname.ini though. It requires the buff/groupbuff values filled in.

fishez
orc pawn
orc pawn
Posts: 19
Joined: Tue Dec 09, 2003 3:42 pm

Post by fishez » Tue Dec 30, 2003 11:29 am

Most excellent! Glad to hear you are willing to do that. Grim has certainly carried the ball on this for a LONG time and done an excellent job. I'm sure you will do the same.

Tried your suggestion, in fact it is what I was already doing. The bot targets the char named to buff but just never starts casting anything. I do have the spells listed in the proper places in the genbot_charname.ini.

Do the spells listed in the .ini need quotes around them if they have spaces? In other words, multi word names like complete healing?

As I said, the 58 cleric works fine. He's the character on the separate machine by himeself. Only have one buff listed for him, temperance. He will cast it on all the other characters and himself, no problem.

I've compared the .ini's and they all are similiar except of course for different names and spells.

Other thoughts to try?

User avatar
lasher
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu Dec 18, 2003 4:09 pm

Post by lasher » Tue Dec 30, 2003 12:38 pm

fishez wrote:Most excellent! Glad to hear you are willing to do that. Grim has certainly carried the ball on this for a LONG time and done an excellent job. I'm sure you will do the same.

Tried your suggestion, in fact it is what I was already doing. The bot targets the char named to buff but just never starts casting anything. I do have the spells listed in the proper places in the genbot_charname.ini.

Do the spells listed in the .ini need quotes around them if they have spaces? In other words, multi word names like complete healing?

As I said, the 58 cleric works fine. He's the character on the separate machine by himeself. Only have one buff listed for him, temperance. He will cast it on all the other characters and himself, no problem.

I've compared the .ini's and they all are similiar except of course for different names and spells.

Other thoughts to try?
Thanks!

In reference to your comments, here is a sample from one of my shaman .ini's:

Code: Select all

BuffSpell1=Focus of Soul
BuffSpell2=Name of Buff spell 2
BuffSpell3=Name of Buff spell 3
BuffSpell4=Name of Buff spell 4
BuffSpell5=Name of Buff spell 5
BuffSpell7=Name of Buff spell 7
BuffSpell8=Name of Buff spell 8
GBuffSpell1=Khura's Focusing
GBuffSpell2=Talisman of the Boar
GBuffSpell3=Talisman of the Wrulan
GBuffSpell4=Spirit of Bih`Li
GBuffSpell5=Name of Group Buff spell 5
GBuffSpell6=Name of Group Buff spell 6
GBuffSpell7=Name of Group Buff spell 7
GBuffSpell8=Name of Group Buff spell 8
Watch out for the using the proper "tick" direction. ' is not the same as `.

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

genbot first time setup assistance

Post by crisdan » Tue Dec 30, 2003 1:29 pm

I am going my first attempt at running this marveled macro. I will be using a shaman, warrior, mage combo. Can someone give me a quick checklist of what I need to do before initial run.

Also, if you can give a breack checklist of an example of the warrior being the master and wanting the shaman to cast a buff spell on him..and the mage casting a Damage shield on the warrior as well.

I have read the forums and have a partial idea and I admit I would love to see a readme.doc file but I also know that is last on list of priorties.

Appreciate any checklists you can jot down for me.

b
Last edited by crisdan on Tue Dec 30, 2003 1:58 pm, edited 1 time in total.

fishez
orc pawn
orc pawn
Posts: 19
Joined: Tue Dec 09, 2003 3:42 pm

Post by fishez » Tue Dec 30, 2003 1:37 pm

My most humble apologies. :oops:

It appears this was my DOH. I had started MQ2 from the folder on my laptop by mistake, so it of course was not reading the changes I was making in the .ini files on my main computer.

Everything to this point now appears to be working great.

Now next project is to add the shammy canni that is found elsewhere in this thread.

Thanks for the quick response and again sorry for wasting you time. I should know by now to check the most obvious things first.

User avatar
lasher
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu Dec 18, 2003 4:09 pm

Post by lasher » Tue Dec 30, 2003 2:41 pm

Check out v9 at this link here:

http://macroquest2.com/phpBB2/viewtopic.php?t=4796

It already has canning included. I'd like to try to get all further replies focused on that topic since that's the codebase I'll be supporting.