View Single Post
  #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