- Incognito spell won't change gender anymore
(http://www.uodemise.com/discussion/showthread.php?t=117148) - Abyss Champion spawn has Greater Mongbats in tier 1 instead of Mongbats (http://www.uodemise.com/discussion/showthread.php?t=125248) - BOD books won't return to page 1 anymore when picking or dropping BODs (http://www.uodemise.com/discussion/showthread.php?t=115354) - Added Plague Beast Lords with relative puzzle; Plague Beasts release healty glands (http://www.uodemise.com/discussion/showthread.php?t=116548) - Arch Cure area effect will follow OSI rules in Felucca facet (http://www.uodemise.com/discussion/showthread.php?t=115600) - Solen Ants Holes can spawn randomly in forest (http://www.uodemise.com/discussion/showthread.php?t=123899) - Death Robes will decay after 60 seconds from dropping on the ground (http://www.uodemise.com/discussion/showthread.php?t=121188) - Weapon speeds are indicated in seconds of delay (http://www.uodemise.com/discussion/showthread.php?t=123707)
This commit is contained in:
parent
207be3f720
commit
123af436f9
99 changed files with 2341 additions and 75 deletions
127
Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs
Normal file
127
Scripts/Items/Special/Mutation Core/PlagueBeastBlood.cs
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class PlagueBeastBlood : PlagueBeastComponent
|
||||
{
|
||||
public bool Patched
|
||||
{
|
||||
get { return ItemID == 0x1765; }
|
||||
}
|
||||
|
||||
public bool Starting
|
||||
{
|
||||
get { return ItemID == 0x122C; }
|
||||
}
|
||||
|
||||
private Timer m_Timer;
|
||||
|
||||
public PlagueBeastBlood() : base( 0x122C, 0 )
|
||||
{
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1.5 ), TimeSpan.FromSeconds( 1.5 ), 3, new TimerCallback( Hemorrhage ) );
|
||||
}
|
||||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
if ( m_Timer != null && m_Timer.Running )
|
||||
m_Timer.Stop();
|
||||
}
|
||||
|
||||
public override bool OnBandage( Mobile from )
|
||||
{
|
||||
if ( IsAccessibleTo( from ) && !Patched )
|
||||
{
|
||||
if ( m_Timer != null && m_Timer.Running )
|
||||
m_Timer.Stop();
|
||||
|
||||
if ( Starting )
|
||||
{
|
||||
X += 2;
|
||||
Y -= 9;
|
||||
|
||||
if ( Organ is PlagueBeastRubbleOrgan )
|
||||
Y -= 5;
|
||||
else if ( Organ is PlagueBeastBackupOrgan )
|
||||
X += 7;
|
||||
}
|
||||
else
|
||||
{
|
||||
X -= 4;
|
||||
Y -= 2;
|
||||
}
|
||||
|
||||
ItemID = 0x1765;
|
||||
|
||||
if ( Owner != null )
|
||||
{
|
||||
Container pack = Owner.Backpack;
|
||||
|
||||
if ( pack != null )
|
||||
{
|
||||
for ( int i = 0; i < pack.Items.Count; i++ )
|
||||
{
|
||||
PlagueBeastMainOrgan main = pack.Items[ i ] as PlagueBeastMainOrgan;
|
||||
|
||||
if ( main != null && main.Complete )
|
||||
main.FinishOpening( from );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PublicOverheadMessage( MessageType.Regular, 0x3B2, 1071916 ); // * You patch up the wound with a bandage *
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private void Hemorrhage()
|
||||
{
|
||||
if ( Patched )
|
||||
return;
|
||||
|
||||
if ( Owner != null )
|
||||
Owner.PlaySound( 0x25 );
|
||||
|
||||
if ( ItemID == 0x122A )
|
||||
{
|
||||
if ( Owner != null )
|
||||
{
|
||||
Owner.Unfreeze();
|
||||
Owner.Kill();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( Starting )
|
||||
{
|
||||
X += 8;
|
||||
Y -= 10;
|
||||
}
|
||||
|
||||
ItemID--;
|
||||
}
|
||||
}
|
||||
|
||||
public PlagueBeastBlood( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue