Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-03-2011, 03:14 AM
Criimson
Hill Giant
 
Join Date: Sep 2006
Posts: 172
Default

Well from the look of this code. It seems someone at one point thought to add the code. Maybe they went on to something else, but now that I know that CC isnt implimented I will work on that as it is important to me. I played a chanter for years and to see mine just Rune/DD/Buff/Debuff when they could be saving my ass bugs me. I play with the exp set at 0.25 and the death penalty unchanged...so even dying at level 10 sucks :P

Code:
case SpellType_Mez: {
			if (tar->GetBodyType() != BT_Giant) {
					if(!checked_los) {
						if(!CheckLosFN(tar))
							break;	//cannot see target... we assume that no spell is going to work since we will only be casting detrimental spells in this call
						
						checked_los = true;
					}
					
					botSpell = GetBestBotSpellForMez(this);

					if(botSpell.SpellId == 0)
						break;

					Mob* addMob = GetFirstIncomingMobToMez(this, botSpell);

					if(!addMob)
						break;

					if(!(!addMob->IsImmuneToSpell(botSpell.SpellId, this) && addMob->CanBuffStack(botSpell.SpellId, botLevel, true) >= 0))
						break;
					
					castedSpell = AIDoSpellCast(botSpell.SpellIndex, addMob, botSpell.ManaCost);
			}
			break;
							}
		default: {
			break;
					  }
	}

	return castedSpell;
Is the code in botspellsai.cpp. I'll start with this code as a baseline and see if I can get it working.

Criimson

EDIT:

So I did some thinking of what ya mean by some more bot AI.

Im going to run some tests on my own server and add some tables to my DB based on each bot class that allow for player settings for their bots.
Using your hybrid classes as an example:

(table) Bot_Paladin
(column) Healing (column) Percentage

First column is on/off - setting whether the player wants their paladin healing at all
Second column sets the percentage at which the paladin will start to throw out heals if set to on

Myself, if grouped with a pally, wouldn't want him throwing any heals unless the MT hits < 20%

I was already considering adding something like this because I love the clericcode pfyon added but was going to change it to the cleric not casting DDs when they hit 75% and didnt want to have to recompile the code everytime I was tweaking the %.


EDIT EDIT:
Is the #bots irc channel dead?
Not seeing anyone in there
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:25 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3