Page 3 of 6

Posted: Thu Jul 01, 2004 8:20 am
by izusaga
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?

Posted: Thu Jul 01, 2004 3:10 pm
by blueninja
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]}) {
....
}

Posted: Fri Jul 02, 2004 12:49 am
by izusaga
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.

Posted: Fri Jul 02, 2004 11:48 pm
by Undies
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.

Posted: Sat Jul 03, 2004 6:51 am
by magictiger
DKAA posted about the old comparison operators in code brackets. You do a replace > with > and < with <.

Posted: Sat Jul 03, 2004 7:14 am
by Undies
thanks (smacks forehead!)

Posted: Sun Jul 04, 2004 2:01 pm
by Draimen
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.

Posted: Sun Jul 04, 2004 4:58 pm
by SlowAndStupid
You're not alone. "Itemcast Blahblah" and "Heal Pet" were'n't working properly for me either.

Posted: Mon Jul 05, 2004 10:31 am
by draco
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

Posted: Mon Jul 05, 2004 5:51 pm
by Vexix
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

Posted: Mon Jul 05, 2004 5:51 pm
by Vexix
Bah. Double post.

Posted: Tue Jul 06, 2004 1:24 pm
by mackster
Thanks Vexix!

Posted: Tue Jul 06, 2004 6:36 pm
by SlowAndStupid
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.

Posted: Tue Jul 06, 2004 9:22 pm
by gus
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

Posted: Thu Jul 08, 2004 8:25 pm
by Vexix
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