Genbot v13.1.5 [Updated 07/11/2004] Invites and Events!

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

izusaga
a ghoul
a ghoul
Posts: 103
Joined: Thu Jul 01, 2004 8:02 am

Post by izusaga » Thu Jul 01, 2004 8:20 am

Reading through the genbot 13.1.2 code and having a little trouble trying to figure out exactly how to script an addition in the personal.inc where if combat=true and class=monk, it item casts celestial fists whenever celestial tranquility wears off, but having issues making it only try it for a monk. What exactly would be the check for this?

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 » Thu Jul 01, 2004 3:10 pm

izusaga wrote:Reading through the genbot 13.1.2 code and having a little trouble trying to figure out exactly how to script an addition in the personal.inc where if combat=true and class=monk, it item casts celestial fists whenever celestial tranquility wears off, but having issues making it only try it for a monk. What exactly would be the check for this?

Code: Select all

/if (${Me.Class.Name.Equal[Monk]}) {
....
}

izusaga
a ghoul
a ghoul
Posts: 103
Joined: Thu Jul 01, 2004 8:02 am

Post by izusaga » Fri Jul 02, 2004 12:49 am

Thanks to blueninja I actually managed to get this working just fine. My own code was somewhat sloppy due to my lack of detailed understanding, but it still managed to function correctly - just would not make it monk specific. I box War/Cleric/Sham/Bard/Monk/Rogue, and the monk and rogue are both on the same computer, so the rogue was getting spammed and failing to work because it kept trying to right click an item it could never even wear. =p

So, thanks blueninja, and I'll post the complete code he detailed to me which I ended up using over my own since it flowed a lot more quickly and effeciently.

Sub PersonalMain
/if (${Me.Combat} && !${Me.Stunned} && !${Me.Casting.ID} && ${Me.Class.Name.Equal[Monk]} && !${Me.Buff[Celestial Tranquility].ID}) {
/cast item "Celestial Fists"
}
/return

Edit: Another silly thing I did was fail to see the PersonalMain already in the personal.inc, I made a new one at the bottom of the file like a dork. =p Thanks guys.

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

Post by Undies » Fri Jul 02, 2004 11:48 pm

Am I the only one having trouble with v13.1.0 botcore.inc?

Surely line 147 should read

/if (${advpathv}>=1.24) {

not

/if (${advpathv}>=1.24) {

???
(original line gives "non-numeric encountered" error and it crashes.

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Sat Jul 03, 2004 6:51 am

DKAA posted about the old comparison operators in code brackets. You do a replace > with > and < with <.

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

Post by Undies » Sat Jul 03, 2004 7:14 am

thanks (smacks forehead!)

Draimen
a lesser mummy
a lesser mummy
Posts: 69
Joined: Sun Jan 25, 2004 3:13 pm

Post by Draimen » Sun Jul 04, 2004 2:01 pm

I'm having all kinds of trouble with this macro lately. I replaced all the $lt; and > in all the files, even advpatch and all.

When I tell me bot to attack on assist and behind on assist, he gets behind the mob, starts attacking, but bot doesn't stick to the mob and just stands there when mob gets oor.

If I tell bot to do archery, he just stands there switch bewteen sowrd and bow and never shoots.

No error messages, macro just doesn't work right hehe.

SlowAndStupid
orc pawn
orc pawn
Posts: 23
Joined: Sun May 02, 2004 10:23 pm

Post by SlowAndStupid » Sun Jul 04, 2004 4:58 pm

You're not alone. "Itemcast Blahblah" and "Heal Pet" were'n't working properly for me either.

draco
a ghoul
a ghoul
Posts: 145
Joined: Thu Jan 29, 2004 7:06 pm
Contact:

Post by draco » Mon Jul 05, 2004 10:31 am

Any ideas on a combat code update.

I want to determine if you have a shield in your off hand and if so. bash. Rather than having to set a doBash flag. Yes, kinda lazy since you can switch weapons and then toggle the bash shortcut. However, I was wondering if anyone has any ideas.
Also, I was wondering about caster combat. I.e. if certain flags are set. the bot would have the awareness to snore/root back-off then DOT/Nuke.
Last, ideal is for autospell interuption. on Event soandso begin to cast a spell. stun/bash/slam

Vexix
Genbot Janitor
Posts: 245
Joined: Sat Apr 17, 2004 10:10 am

Post by Vexix » Mon Jul 05, 2004 5:51 pm

Hey guys!

Back from vacation, although it will take a few days to get organized and moving the code along again.

I've reposted the code, so you don't have to do replace the &gtr; nonsense any more.

Frabtik - what do you mean by "doesn't respond to master?" If you mean that tells don't go to the master but are /echoed instead after a /gb command, that is working as intended. ;) If you give another command from the master, such as "exp", the output mastername will be reset, and should work as normal. If you mean the bot no longer performs actions as directed by the master, then I'll need some specific examples of what you happened that isn't what you expected.

Frab - If you could update the warrior "incite" code to read from the .ini file, that would be great. It's something I've been looking to do, but just not gotten around to. It should have a toggle in the .ini, and read in the appropriate aggro disc from .ini as well.

Sael -- thanks for cutting up the equip swap stuff routine from spell_routine. I'll start working that in now!

Macster
In botspell.inc

Code: Select all

Sub Event_CastResist
   /if (${CastStep}) {
      /varset CastStep 5
Change the 5 to a 0, and it will recast on resists by default.

Frabtik & SlowandStupid - Itemcast has been retired. Doco is a bit out of date. New command is the "sn item shrunken goblin earring", etc.

Has anyone else tried archery or do behind stuff? Does it work? I've only got one tank, so tricky to test. Draimen, what is your movetomode set to?

SlowandStupid - Are you literally typing "heal pet"? Did that work before? Will take a look at the code.

Draco - The bash thing is doable. Look for what's equipped in the offhand, and see if it is type "shield". At least I think that's a type. As for the spell interrupt thing, I'm working on some triggers that will enable you to do that. It's a bit off in the future, though.

Caster combat spell programming is also in the works, but will be after the above mentioned triggers. Looking to steal all the functionality of advbot, but with more flexibility and easier entry. ;)

--Vexix
Last edited by Vexix on Tue Jul 06, 2004 9:55 pm, edited 2 times in total.

Vexix
Genbot Janitor
Posts: 245
Joined: Sat Apr 17, 2004 10:10 am

Post by Vexix » Mon Jul 05, 2004 5:51 pm

Bah. Double post.
Last edited by Vexix on Tue Jul 06, 2004 5:03 pm, edited 1 time in total.

mackster
a ghoul
a ghoul
Posts: 95
Joined: Mon Sep 09, 2002 3:02 pm

Post by mackster » Tue Jul 06, 2004 1:24 pm

Thanks Vexix!

SlowAndStupid
orc pawn
orc pawn
Posts: 23
Joined: Sun May 02, 2004 10:23 pm

Post by SlowAndStupid » Tue Jul 06, 2004 6:36 pm

Vexix,

Yes , in the past I had a hotkey that sent a tell to my Bot literally saying "Heal Pet". With the latest update, my healer tries to heal himself when I say that. I used to use "Heal" and my Bot would assist me and heal my target. Now he only heals me.

gus
a lesser mummy
a lesser mummy
Posts: 70
Joined: Fri Apr 09, 2004 11:58 pm

Post by gus » Tue Jul 06, 2004 9:22 pm

I posted once about /tells not working, and I figured out what is causing it, at least for me. If I have "Use Tell Windows" on, then the bot does not respond to tells.

No clue if it's fixable, just sharing.

--gus

Vexix
Genbot Janitor
Posts: 245
Joined: Sat Apr 17, 2004 10:10 am

Post by Vexix » Thu Jul 08, 2004 8:25 pm

Updated the botcore.inc file. I'm bringing in new events code which will give much more customization ability to the .ini file without forcing people to edit the botXXX.inc files or add stuff into the personal.inc.

--Vexix