genbot.mac Bot for any class.

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
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Post by grimjack » Sun Oct 12, 2003 3:34 am

Rassilon wrote:Thanks, got it working. How can I get it to loot the whole corpse once rezed? I use the command to loot but it only loots 5 or 6 items then stops. I have to tell it to loot corpse 3 times to loot the whole thing.

THanks,

Rass
It does 9 atm. I never really botherd to figure out how to do slots that require scrolling. Telling the bot 3 times to loot it's corpse hasn't been a big issue with me but if you can get it to do all lemme know.
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

Splinter
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Oct 12, 2003 5:08 am

Post by Splinter » Sun Oct 12, 2003 5:13 am

I apologize if this is an incredibly stupid question but my grasp of perl is vague at best (just started the proccess of learning). I'm looking through this incredible script and I can't seem to grasp how to command the bot to actually cast spells. I see where you say to modify the variable in our personal.inc but I'm not sure what exactly to do there or how in game to tell the bot to use the memmed spells. Once again I apologize if this seems blatantly obvious to the rest of you guys, but perl is very different from my normal languages and I'm extremely out of practice with reading code :)

topgun
a lesser mummy
a lesser mummy
Posts: 43
Joined: Thu Jan 09, 2003 8:27 am

Post by topgun » Sun Oct 12, 2003 6:15 am

He he Splinter been there. I too could not get a simple spell cast to work.

do /tell boted-char sn spellname
Like /tell myshaman sn spirit of wolf

Then your shamn will cast spirit of wold on OUR target.
So no /tar myshaman /ttell sn spirit of wolf.
Always use /tell name
And do not use "spirit of wolf" always without ""

Hope this helps.
(I found the info in the outdated macro section)

Splinter
decaying skeleton
decaying skeleton
Posts: 3
Joined: Sun Oct 12, 2003 5:08 am

Post by Splinter » Sun Oct 12, 2003 7:00 pm

Thank you, topgun, that is exactly what I was looking for :)

I'm still confused on a few things though and I hope this doesn't show just how out of practice I am with reading code :(

what does the variable DefaultSpellSet do exactly and how do you set it in the personal section? (I'm fairly sure it uses the spell sets you can save on a character but not entirely sure )

How do you get your bot to mem a new spell, is that possible?

How do you set up say a shammie to auto heal a tank or pet etc.? I was looking through the healer.inc and since perl is still foreign to me atm I wasn't sure how you tell the bot what spells to use to heal ( I think I know how to set it to auto heal but I'm at work and can't try it out right now) :)

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Mon Oct 13, 2003 3:21 am

Whew...we need a special thing at the beginning of this thread that tells us the newest versions of everything and what not. AMAZING work here!

When people post new personal.inc ....how do we easily merge it with whatever we already have?

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

my prob

Post by Waxxedazz » Mon Oct 13, 2003 3:36 am

I am having a prob where whenever I try to do anything, I.E. sn, heal, pretty much any spell casting thing I get "Couldnt find a comparison operator in "$arg(1,loadlist group"(for loadlist). I try to do sn "swift like the wind" and it wont mem the spell or cast it. when I do /tell bot heal it targets, stands then nothing. im guessing I havent set the heal to a certain heal spell and am still looking on where to add that info. I used to use the caster bot which I changed into a half working shammy bot. I had seet my own commands like /t bot slow, and it would slow my target. Thats pretty much what I would like again but would also like tha added convience of being able to buff without moving to the other computer and stopping group. any help would be nice. THX


I will bring up the difference between ` and ' again. I know there is a difference but I seem to keep forgetting about it. Tnarg`s Mending uses the apostrophe above the tab key and Kragg's Mending uses the key to the left of the enter key.
Last edited by Waxxedazz on Wed Oct 15, 2003 9:32 pm, edited 2 times in total.

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

Post by grimjack » Mon Oct 13, 2003 5:19 am

Amadeus wrote:Whew...we need a special thing at the beginning of this thread that tells us the newest versions of everything and what not. AMAZING work here!

When people post new personal.inc ....how do we easily merge it with whatever we already have?
It depends on what type of things they have added. If they only added new commands you can add the command to your array:

Code: Select all

/varset Commands(0,1) newcommand
And you copy the do- sub to the end of your personal file:

Code: Select all

do-newcommand
   /echo This is my new command
/return
If they added new variables you will ned to add those to yours as well. Those would get added to the Sub "SetupPersonalVars" portion of the personal file. Anything that gets ran every iteration of the main loop gets added to the "Sub PersonalMain " portion of the personal file. If everyone coments the begining of their personal file with what variables where added and some explination of the subs it should not be very dificult.


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

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

Post by Waxxedazz » Mon Oct 13, 2003 8:50 am

I think I found the prob with the healing. It seems that Beastlord was left out of tank heals.

Code: Select all

 /if n $spawn($group(@GroupMember),hp,pct)<@TankPctHeal { 
      /if n $spawn($group(@GroupMember),hp,pct)>=1 { 
         /if $spawn($group(@GroupMember),class)=="Warrior" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Paladin" /call Tankheal 
         /if "$spawn($group(@GroupMember),class)"=="Shadow Knight" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Monk" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Ranger" /call Tankheal      
      } 
I added a line myself to make it say

Code: Select all

 /if n $spawn($group(@GroupMember),hp,pct)<@TankPctHeal { 
      /if n $spawn($group(@GroupMember),hp,pct)>=1 { 
         /if $spawn($group(@GroupMember),class)=="Warrior" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Paladin" /call Tankheal 
         /if "$spawn($group(@GroupMember),class)"=="Shadow Knight" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Monk" /call Tankheal 
         /if $spawn($group(@GroupMember),class)=="Beastlord" /call Tankheal
         /if $spawn($group(@GroupMember),class)=="Ranger" /call Tankheal      
      } 
Do I need to change anything else to add bst into the tank heals?

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Post by Nightshift » Mon Oct 13, 2003 8:59 am

Code: Select all

/if "$spawn($group(@GroupMember),class)"=="Shadow Knight" /call Tankheal 
Just wondering if this is right, since the syntax is not the same as all the rest.

Shouldn't it be this;

Code: Select all

/if $spawn($group(@GroupMember),class)=="Shadow Knight" /call Tankheal 
or is it that way due to two words(Shadow Knight)?


NightShift

blakbelt
a lesser mummy
a lesser mummy
Posts: 70
Joined: Wed Aug 27, 2003 12:40 pm
Location: Scotland UK

Post by blakbelt » Mon Oct 13, 2003 11:45 am

Is it possible in your Bothealer, to add a switch to say whether the target is slowed and cast different heals for tanks (fast cast large heal, supernal light) or when slowed back to Complete healing.

I cant get to grips with the new syntax / language yet :(
Blakbelt

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

Post by Rassilon » Mon Oct 13, 2003 4:58 pm

Couple of things:
1. When the tank bot attacks, is there a way to have it auto taunt/kick/bash/etc.. everytime it refreshes and stop when the mob is dead ot when it stops attacking?
2. Is there a way to have it auto click follow on an invite if your not looking at the screen or /afk?
3. Is there a way to tell it to /follow someone in the group if your not in the same group with your bot?
4. What is afollow command? It doesn't seem to do anything when I use it.

Thanks,

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

Post by grimjack » Mon Oct 13, 2003 7:29 pm

Rassilon wrote:Couple of things:
1. When the tank bot attacks, is there a way to have it auto taunt/kick/bash/etc.. everytime it refreshes and stop when the mob is dead ot when it stops attacking?
2. Is there a way to have it auto click follow on an invite if your not looking at the screen or /afk?
3. Is there a way to tell it to /follow someone in the group if your not in the same group with your bot?
4. What is afollow command? It doesn't seem to do anything when I use it.

Thanks,
1) Look in the personal.inc vars section. Also look at the command taunt, slam, kick, ect ect. These turn on/off auto taunt, slam, kick, ect ect.

2) I'm not going to add auto accept invite. I may have it report to the master when someone invites. If you wish to have this support you can add it to your personal.inc I'm sure.

3) Use /msg bot afollow targetname

4) Answerd by 3.


Added beastloard to list of heals. I can't believe I missed that one.
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

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

Post by theafkxper » Mon Oct 13, 2003 7:30 pm

Suggestion, allow the user to specify wheter it wants the master to get /tells or not

i know i use this more as an autoattack mac often, and i get tired of the "talkign to yourself again"??" spam. Would be easy enough to write in, but i figured i would suggest it rather than writing it myself so you could keep your format and naming scheme :)

thanks
/afk

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

Post by grimjack » Mon Oct 13, 2003 7:35 pm

Nightshift wrote:

Code: Select all

/if "$spawn($group(@GroupMember),class)"=="Shadow Knight" /call Tankheal 
Just wondering if this is right, since the syntax is not the same as all the rest.

Shouldn't it be this;

Code: Select all

/if $spawn($group(@GroupMember),class)=="Shadow Knight" /call Tankheal 
or is it that way due to two words(Shadow Knight)?


NightShift
It's because Shadow Knight is 2 words.
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

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

Post by grimjack » Mon Oct 13, 2003 7:49 pm

theafkxper wrote:Suggestion, allow the user to specify wheter it wants the master to get /tells or not

i know i use this more as an autoattack mac often, and i get tired of the "talkign to yourself again"??" spam. Would be easy enough to write in, but i figured i would suggest it rather than writing it myself so you could keep your format and naming scheme :)

thanks
/afk
Done. Download the newest botcore.inc. Also add /varset Relaytells 0 to your personal.inc's var's section.
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