- Pet resurrection gump fixed to work as OSI

(http://www.uodemise.com/discussion/showthread.php?t=121055)

- Every tamable pet with Poisoning skill can train Poisoning up to 100 skill
(http://www.uodemise.com/discussion/showthread.php?t=134817)
This commit is contained in:
daedalus 2010-01-19 13:45:00 +00:00
parent 208acafd7e
commit 65198a79ac
3 changed files with 15 additions and 11 deletions

View file

@ -65,20 +65,12 @@ namespace Server.Gumps
m_Pet.FixedEffect( 0x376A, 10, 16 );
m_Pet.ResurrectPet();
double decreaseAmount;
if( from == m_Pet.ControlMaster )
decreaseAmount = 0.1;
else
decreaseAmount = 0.2;
for ( int i = 0; i < m_Pet.Skills.Length; ++i ) //Decrease all skills on pet.
m_Pet.Skills[i].Base -= decreaseAmount;
m_Pet.Skills[i].Base -= 0.2;
if( !m_Pet.IsDeadPet && m_HitsScalar > 0 )
m_Pet.Hits = (int)(m_Pet.HitsMax * m_HitsScalar);
}
}
}
}

View file

@ -244,7 +244,16 @@ namespace Server.Items
{
Mobile master = petPatient.ControlMaster;
if ( master != null && master.InRange( petPatient, 3 ) )
if( master != null && m_Healer == master )
{
petPatient.ResurrectPet();
for ( int i = 0; i < petPatient.Skills.Length; ++i )
{
petPatient.Skills[i].Base -= 0.1;
}
}
else if ( master != null && master.InRange( petPatient, 3 ) )
{
healerNumber = 503255; // You are able to resurrect the creature.

View file

@ -2623,8 +2623,11 @@ namespace Server.Mobiles
if ( m_Paragon )
p = PoisonImpl.IncreaseLevel( p );
if ( p != null && HitPoisonChance >= Utility.RandomDouble() )
if ( p != null && HitPoisonChance >= Utility.RandomDouble() ) {
defender.ApplyPoison( this, p );
if ( this.Controlled )
this.CheckSkill(SkillName.Poisoning, 0, this.Skills[SkillName.Poisoning].Cap);
}
if( AutoDispel && defender is BaseCreature && ((BaseCreature)defender).IsDispellable && AutoDispelChance > Utility.RandomDouble() )
Dispel( defender );