Thread: Pet Taunt
View Single Post
  #10  
Old 01-15-2011, 04:51 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Okay, I completely must have made that up. I swear I was receiving messages from my pet that it was taunting, but apparently not. I must have been thinking about my bots (I was looking at the bot taunt code yesterday). I looked back on some logs last night as well as from Feb last year and didn't see any pet taunting messages. lerxst2112 is correct that there's no message, as the code that does the taunt is here, and no message is made within Taunt();

Code:
//general stuff, for all classes....
	//only gets used when their primary ability get used too
	if (taunting && HasOwner() && target->IsNPC() && target->GetBodyType() != BT_Undead && taunt_time) {
		Taunt(target->CastToNPC(), false);
	}
They taunt by default:
Code:
Pet::Pet(NPCType *type_data, Mob *owner, PetType type, int16 spell_id)
: NPC(type_data, 0, owner->GetX()+2, owner->GetY()+2, owner->GetZ(), owner->GetHeading(), FlyMode3)
{
	GiveNPCTypeData(type_data);
	typeofpet = type;
	SetOwnerID(owner->GetID());
	SetPetSpellID(spell_id);
	taunting = true;
}
Bot code I was thinking of, I think..
Code:
                Say("Taunting %s", target->GetCleanName());
		Taunt(target->CastToNPC(), true);
I'm not sure what I have for the SmartAggro rule, but I haven't really had any problems with the pet keeping aggro, unless I nuke too early. If I wait until the mob is <90-95% before I nuke, then I don't have any issues. Or, if I get aggro, I can usually walk away and the pet grabs aggro from me (although sometimes I do have to run around screaming like a little girl when that doesn't work).
Reply With Quote