hello, i would like to not be able to add pet ability points to a discorded pet until after discord wears off. can someone please guide me on how to do that please? thanks in advance for any help

I think the easiest way would be, players cannot open the gump to add points until after the discordance wears off. but I have no clue where to start. thanks.
 
I can remember this as an old bug happening, maybe some one can help with a fix :)
Maybe a code added in PetLeveling.cs
 
Hey !

Maybe this can help :
(in .../FS-ATS/Advanced Pet System/Gump & Menus/PetLevelGump.cs)
(around line 219 if you have same version as me of FS-ATS)

Code:
public override void OnResponse( NetState state, RelayInfo info )
{
	Mobile from = state.Mobile;

	BaseCreature bc = (BaseCreature)m_Pet;	

	if ( from == null )
		return;

	int effect = 0;

	if (SkillHandlers.Discordance.GetEffect(bc, ref effect))
	{
		from.SendMessage("You cannot apply ability points to a creature under the effects of Discordance!");
		return;
	}

	if (CurseSpell.UnderEffect(bc))
  	{
  		from.SendMessage("You cannot apply ability points to a creature under the effects of Curse!");
 		return;
 	 }	
	(...)
 
Hey !

Maybe this can help :
(in .../FS-ATS/Advanced Pet System/Gump & Menus/PetLevelGump.cs)
(around line 219 if you have same version as me of FS-ATS)

Code:
public override void OnResponse( NetState state, RelayInfo info )
{
	Mobile from = state.Mobile;

	BaseCreature bc = (BaseCreature)m_Pet;	

	if ( from == null )
		return;

	int effect = 0;

	if (SkillHandlers.Discordance.GetEffect(bc, ref effect))
	{
		from.SendMessage("You cannot apply ability points to a creature under the effects of Discordance!");
		return;
	}

	if (CurseSpell.UnderEffect(bc))
  	{
  		from.SendMessage("You cannot apply ability points to a creature under the effects of Curse!");
		return;
	 }	
	(...)



you are the best, you have no idea how much hair I lost over this one..Mines a bit different but works works perfect ..thanks a million..
 
Back