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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-24-2009, 11:13 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Question for Congdar on mage pets.

On my server all of the players pretty well only want the Mage Bots to cast two possible pets (water and air). I played with the code last night and found this.
Code:
	case SpellType_Pet: {
  if (!IsPet() && !GetPetID() && !IsBotCharmer()) {
    if(botClass == MAGICIAN) {
   			     int randpets;
   			     randpets = 2;
	                     }
			     i = MakeRandomInt(i-randpets, i);
			     }
			     AIDoSpellCast(i, tar, mana_cost);
                             return true;
			     }
			     break;
		    }
		}
Sorry I think the spacing from Visual Studio throws it off. This is not the original I modified it some and took out the comments before posting it.

Okay so I can reduce the number of pets case by changing the randpets number but I think it cast the first two, like fire and water pets. Where are these kept, my C++ is very basic. I may be able to do it in the database but not sure where to look.
Reply With Quote
 


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 03:00 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3