genbot.mac Generic Bot macro for any class. V9.3 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
SimpleMynd_01
a lesser mummy
a lesser mummy
Posts: 71
Joined: Thu May 08, 2003 3:16 pm

Events work fine...

Post by SimpleMynd_01 » Thu Jan 08, 2004 5:31 pm

Just add this...

Code: Select all

#Event GettingHit " YOU for " 
#Event AttackedMiss " YOU, but " 

sub main 
:loop 
/echo main loop 
[color=cyan]/doevents[/color]
/delay 1s 
/goto :loop 
/return 



Sub Event_GettingHit 
/if $char(state)==SIT /sit 
/target npc 
/face npc 
/attack on 
/return 

Sub Event_AttackedMiss 
/if $char(state)==SIT /sit 
/target npc 
/face npc 
/attack on 
/return
-SimpleMynd

User avatar
operat0r
RTFM, then ask again
Posts: 61
Joined: Thu Aug 28, 2003 2:04 am

still stupid

Post by operat0r » Fri Jan 09, 2004 1:38 am

ahhh so it must be in the loop to be activated ? or just called once ? :shock:
with love moron #6895423686

bluesman
decaying skeleton
decaying skeleton
Posts: 1
Joined: Fri Jan 09, 2004 2:03 am

a bug (minor)

Post by bluesman » Fri Jan 09, 2004 2:09 am

in botcore.inc:

Code: Select all

Sub Event_Chat 
   /if "@Param0"!="GROUP" { 
      /if "@Param0"!="@ListenChan" { 
         /if "@Param0"!="TELL" { 
            /return 
         } 
      } 
   } 
   /if "@Param0"=="GROUP" { 
      /if n @ListenGroup==0 /return 
   } 
   /if "@Param0"=="@ListenChan" { 
      /if @ListenChat==0 /return 
   } 
   /for tempvar 0 to @MasterCount 
      /if @MName(@tempvar)==@Param1 /goto :SetupTime 
   /next tempvar 
   /if "@Param0"=="GROUP" /return 

[b]   /if "@Param0"=="@ListenChan" /return[/b] 

   /if n @Relaytells==1 { 
      /if "@Param0"=="TELL" { 
         /call ChatOut 1 @MasterName "@Param1 told me: @Param2" 
      } 
   } 
the bold line above should be removed, it prevents using channels. 7 lines above it is the correct logic for channels.

Cheers,

Bluesman

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

Post by crisdan » Sun Jan 11, 2004 11:59 am

Okies...need some buffing help for my genbot setup. I have a warrior/shaman duo with shaman being botted.

I have personal.inc setup/edited to cast 8 buffs

1. swift like the wind
2. ferine avatar
3. focus of the soul
4. agility of the wrulan
5. endurance of the boar
6. replenishment
7. acumjen
8. spirit of wolf

Now my problem. When I send a message to the shaman "/t shaman buff me" He will only cast 2 buffs (each being memed and cast in spell gem slot 8 one at a time. i.e. spirit of the wolf is memed to gem slot 8 and cast, then acumen is memed in gem slot 8 and cast, etc).

After I send the tell he successfully casts 2 buffs of the 8 listed, and then I see numerous "/memspellset errors" and thats it. Can someone suggest/advise? The shaman personal.inc is all i have edited with the 8 buffs/ and 8 group buffs. Is there another file where I need to actually memspell sets or something?

showme1
a ghoul
a ghoul
Posts: 138
Joined: Wed Dec 17, 2003 5:51 pm

What am i missing to get this error grr

Post by showme1 » Sun Jan 11, 2004 6:59 pm

copied all the info fine, but when i try to run this is gives me this error

Ending macro: Subroutine Main wasn't found
Cleared the following: Timers Vars Arrays
The current macro has ended.

Not looking for a walkthrough, but any small hint would be great as to what I'm doing wrong. Thank you!

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Mon Jan 12, 2004 2:18 am

What exactly are you running? What's your command to start the macro?
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

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

Post by crisdan » Mon Jan 12, 2004 9:31 am

Stilll having the buffing problem I quoted above. Please let me know if someone can assit with this as it is the main bot I wanted to run with genbot.

showme1
a ghoul
a ghoul
Posts: 138
Joined: Wed Dec 17, 2003 5:51 pm

Post by showme1 » Mon Jan 12, 2004 2:30 pm

I'm running a magician as my main and a shaman bot to slow, buff, etc...
On the shaman i type in /mac genbot <my magician's name>
As far as I knew that was what i was suppose to do, but obviously I screwed up something hehe.

daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Mon Jan 12, 2004 8:47 pm

found a small error in personal.inc

Code: Select all

Sub PersonalMain 
   /if n @ReportLom==1 { 
   /call CheckMana 
   /if n @IsCleric==1 /call CheckYaulp 
   /if n @IsShaman==1 /call CheckCann 
   [color=red]}[/color] 
should probably be

Code: Select all

Sub PersonalMain 
   /if n @ReportLom==1 { 
   /call CheckMana 
   [color=red]}[/color] 
   /if n @IsCleric==1 /call CheckYaulp 
   /if n @IsShaman==1 /call CheckCann 
Otherwise Yaulp and Cann will only be done if the ReportLom var has been activated.

daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Mon Jan 12, 2004 8:55 pm

crisdan wrote:Okies...need some buffing help for my genbot setup. I have a warrior/shaman duo with shaman being botted.

I have personal.inc setup/edited to cast 8 buffs

1. swift like the wind
2. ferine avatar
3. focus of the soul
4. agility of the wrulan
5. endurance of the boar
6. replenishment
7. acumjen
8. spirit of wolf

Now my problem. When I send a message to the shaman "/t shaman buff me" He will only cast 2 buffs (each being memed and cast in spell gem slot 8 one at a time. i.e. spirit of the wolf is memed to gem slot 8 and cast, then acumen is memed in gem slot 8 and cast, etc).

After I send the tell he successfully casts 2 buffs of the 8 listed, and then I see numerous "/memspellset errors" and thats it. Can someone suggest/advise? The shaman personal.inc is all i have edited with the 8 buffs/ and 8 group buffs. Is there another file where I need to actually memspell sets or something?
Make sure you spell the buff names exactly like they appear in the Spellbook.
focus of the soul => Focus of Soul
acumjen => Acumen

The /memspellset errors can be fixed by saving your normal spellset as "Default", or whatever you have set in your ini file as DefaultSpellSet

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Mon Jan 12, 2004 10:10 pm

showme1 wrote:I'm running a magician as my main and a shaman bot to slow, buff, etc...
On the shaman i type in /mac genbot <my magician's name>
As far as I knew that was what i was suppose to do, but obviously I screwed up something hehe.
That is correct.
The error is straightforward...it can't find "Sub Main" anywhere.

Check Genbot.MAC, and make sure it's there.
Make sure there are not copy/paste errors (turn off worldwrap and make sure everything that is supposed to be on one line, is).
Wouldn't hurt to re-copy it, also....just in case, and to make sure you have the current version.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

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

Post by rencro » Tue Jan 13, 2004 12:10 am

Lasher said:
For those having trouble on the yaulp and cann portions. They are controlled by having the bot 'reportlom'.

So to turn off canning or yaulping for any reason; /t bot reportlom off

daerk said:
Otherwise Yaulp and Cann will only be done if the ReportLom var has been activated.
Exactly.

showme1
a ghoul
a ghoul
Posts: 138
Joined: Wed Dec 17, 2003 5:51 pm

Post by showme1 » Tue Jan 13, 2004 1:49 am

Well, i got it working now. I guess i got something out of line when i copied and pasted. Thank you very much for your help, Bad Karma! I should have thought to just recopy it instead of asking for help hehe. Appreciate the help though either way. Thanks again, and this macro owns!

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

Post by crisdan » Tue Jan 13, 2004 4:04 pm

daerck wrote:
crisdan wrote:Okies...need some buffing help for my genbot setup. I have a warrior/shaman duo with shaman being botted.

I have personal.inc setup/edited to cast 8 buffs

1. swift like the wind
2. ferine avatar
3. focus of the soul
4. agility of the wrulan
5. endurance of the boar
6. replenishment
7. acumjen
8. spirit of wolf

Now my problem. When I send a message to the shaman "/t shaman buff me" He will only cast 2 buffs (each being memed and cast in spell gem slot 8 one at a time. i.e. spirit of the wolf is memed to gem slot 8 and cast, then acumen is memed in gem slot 8 and cast, etc).

After I send the tell he successfully casts 2 buffs of the 8 listed, and then I see numerous "/memspellset errors" and thats it. Can someone suggest/advise? The shaman personal.inc is all i have edited with the 8 buffs/ and 8 group buffs. Is there another file where I need to actually memspell sets or something?
Make sure you spell the buff names exactly like they appear in the Spellbook.
focus of the soul => Focus of Soul
acumjen => Acumen

The /memspellset errors can be fixed by saving your normal spellset as "Default", or whatever you have set in your ini file as DefaultSpellSet
I have verified all spells are typed and spelled correctly in the personal.inc of the shaman bot. Are you saying that the 8 buffs I have listed in the personal.inc need to be in a eq spellset? Because it is memming the first 2 buffs one at a time and casting them, it is not memming the remaining spells. Maybe that is what I am missing ? lol

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

Post by rencro » Wed Jan 14, 2004 1:35 am

Well, figured I would post my SK Sub I use in personal.inc

Code: Select all

Sub Sknight
    /if n @Combatstatus!=1 {
    	 /if n $char(buff,"grim aura")<1 { 
                 /if n $char(buff,"Strenth of Tunare")<1 {
                 /if n $char(gem,"Grim Aura")>0 /call SpellSub "Grim Aura"
      }     
    }
}
    /if n @Combatstatus==1 {
    	/if $target()==TRUE { 
    		/if n $char(mana,pct)>40 {
    		        /if n $char(buff,"T. of Hate Recourse")<1 {
    			       /if n $target(hp,pct)>85 /return
    			       /if n $char(gem,"Torrent of Hate")>0 /call SpellSub "Torrent of Hate"
    			}
    		}
    	}
}
/if n @Combatstatus==1 {
    	/if $target()==TRUE { 
    		/if n $char(mana,pct)>40 {
    			/if n $target(hp,pct)<=50 {
    				/if n $char(gem,"Zevfeer's Bite")>0 /call SpellSub "Zevfeer's Bite"
    			}
    		}
    	}
}
/return
I let my warrior tank, sk is for snares really, and to offtank adds. Could add whole slew of spells in there, ala group ac tap, strenth tap, but im lazy and am happy with just these. Zevfeer's Bite and shamans in group were made for each other. Note also that if mob is highly resitant sk will keep trying to land these spells over and over, at the cost of melee. So I use em when I know they will land more than 50% of the time. I have a war that is master, probably better to let sk be master and be in complete control of sk and let war be botted, maybe someday.