#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
85
Scripts/Engines/Factions/Items/Traps/FactionGasTrap.cs
Normal file
85
Scripts/Engines/Factions/Items/Traps/FactionGasTrap.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
public class FactionGasTrap : BaseFactionTrap
|
||||
{
|
||||
public override int LabelNumber{ get{ return 1044598; } } // faction gas trap
|
||||
|
||||
public override int AttackMessage{ get{ return 1010542; } } // A noxious green cloud of poison gas envelops you!
|
||||
public override int DisarmMessage{ get{ return 502376; } } // The poison leaks harmlessly away due to your deft touch.
|
||||
public override int EffectSound{ get{ return 0x230; } }
|
||||
public override int MessageHue{ get{ return 0x44; } }
|
||||
|
||||
public override AllowedPlacing AllowedPlacing{ get{ return AllowedPlacing.FactionStronghold; } }
|
||||
|
||||
public override void DoVisibleEffect()
|
||||
{
|
||||
Effects.SendLocationEffect( this.Location, this.Map, 0x3709, 28, 10, 0x1D3, 5 );
|
||||
}
|
||||
|
||||
public override void DoAttackEffect( Mobile m )
|
||||
{
|
||||
m.ApplyPoison( m, Poison.Lethal );
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public FactionGasTrap() : this( null )
|
||||
{
|
||||
}
|
||||
|
||||
public FactionGasTrap( Faction f ) : this( f, null )
|
||||
{
|
||||
}
|
||||
|
||||
public FactionGasTrap( Faction f, Mobile m ) : base( f, m, 0x113C )
|
||||
{
|
||||
}
|
||||
|
||||
public FactionGasTrap( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
|
||||
public class FactionGasTrapDeed : BaseFactionTrapDeed
|
||||
{
|
||||
public override Type TrapType{ get{ return typeof( FactionGasTrap ); } }
|
||||
public override int LabelNumber{ get{ return 1044602; } } // faction gas trap deed
|
||||
|
||||
public FactionGasTrapDeed() : base( 0x11AB )
|
||||
{
|
||||
}
|
||||
|
||||
public FactionGasTrapDeed( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue