#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
|
|
@ -0,0 +1,77 @@
|
|||
using System;
|
||||
//using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
[TypeAlias( "Server.Items.ClownMask", "Server.Items.DaemonMask", "Server.Items.PlagueMask" )]
|
||||
public class BasePaintedMask : Item
|
||||
{
|
||||
public override string DefaultName
|
||||
{
|
||||
get
|
||||
{
|
||||
if( m_Staffer != null )
|
||||
{
|
||||
return String.Format( "{0} hand painted by {1}", MaskName, m_Staffer );
|
||||
}
|
||||
|
||||
return MaskName;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual string MaskName { get { return "A Mask"; } }
|
||||
|
||||
private string m_Staffer;
|
||||
|
||||
private static string[] m_Staffers =
|
||||
{
|
||||
"Ryan",
|
||||
"Mark",
|
||||
"Krrios",
|
||||
"Zippy",
|
||||
"Athena",
|
||||
"Eos",
|
||||
"Xavier"
|
||||
};
|
||||
|
||||
public BasePaintedMask( int itemid )
|
||||
: this( m_Staffers[ Utility.Random( m_Staffers.Length ) ], itemid )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public BasePaintedMask( string staffer, int itemid )
|
||||
: base( itemid + Utility.Random( 2 ) )
|
||||
{
|
||||
m_Staffer = staffer;
|
||||
|
||||
Utility.Intern( m_Staffer );
|
||||
}
|
||||
|
||||
public BasePaintedMask( Serial serial ) : base( serial )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( ( int )1 ); // version
|
||||
writer.Write( ( string )m_Staffer );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if( version == 1 )
|
||||
{
|
||||
m_Staffer = Utility.Intern( reader.ReadString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
35
Scripts/Holiday Stuff/Halloween/2011/Items/ClownMask.cs
Normal file
35
Scripts/Holiday Stuff/Halloween/2011/Items/ClownMask.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PaintedEvilClownMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Evil Clown Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PaintedEvilClownMask( )
|
||||
: base( 0x4a90 )
|
||||
{
|
||||
}
|
||||
|
||||
public PaintedEvilClownMask( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
Scripts/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs
Normal file
36
Scripts/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PaintedDaemonMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Daemon Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PaintedDaemonMask()
|
||||
: base( 0x4a92 )
|
||||
{
|
||||
}
|
||||
|
||||
public PaintedDaemonMask( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
35
Scripts/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs
Normal file
35
Scripts/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items.Holiday
|
||||
{
|
||||
public class PaintedPlagueMask : BasePaintedMask
|
||||
{
|
||||
public override string MaskName { get { return "Plague Mask"; } }
|
||||
|
||||
[Constructable]
|
||||
public PaintedPlagueMask()
|
||||
: base( 0x4A8E )
|
||||
{
|
||||
}
|
||||
|
||||
public PaintedPlagueMask( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
131
Scripts/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs
Normal file
131
Scripts/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Items.Holiday;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "a killer pumpkin corpse" )]
|
||||
public class PumpkinHead : BaseCreature
|
||||
{
|
||||
public override bool AutoDispel { get { return true; } }
|
||||
public override bool BardImmune { get { return true; } }
|
||||
public override bool Unprovokable { get { return true; } }
|
||||
public override bool AreaPeaceImmune { get { return true; } }
|
||||
|
||||
[Constructable]
|
||||
public PumpkinHead()
|
||||
: base( Utility.RandomBool() ? AIType.AI_Melee : AIType.AI_Mage, FightMode.Closest, 10, 1, 0.05, 0.1 )
|
||||
{
|
||||
Name = "a killer pumpkin";
|
||||
Body = 1246 + Utility.Random( 2 );
|
||||
|
||||
BaseSoundID = 268;
|
||||
|
||||
SetStr( 350 );
|
||||
SetDex( 125 );
|
||||
SetInt( 250 );
|
||||
|
||||
SetHits( 500 );
|
||||
SetMana( 1000 );
|
||||
|
||||
SetDamage( 10, 15 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 100 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 55 );
|
||||
SetResistance( ResistanceType.Fire, 50 );
|
||||
SetResistance( ResistanceType.Cold, 50 );
|
||||
SetResistance( ResistanceType.Poison, 65 );
|
||||
SetResistance( ResistanceType.Energy, 80 );
|
||||
|
||||
SetSkill( SkillName.DetectHidden, 100.0 );
|
||||
SetSkill( SkillName.Meditation, 120.0 );
|
||||
SetSkill( SkillName.Necromancy, 100.0 );
|
||||
SetSkill( SkillName.SpiritSpeak, 120.0 );
|
||||
SetSkill( SkillName.Magery, 160.0 );
|
||||
SetSkill( SkillName.EvalInt, 100.0 );
|
||||
SetSkill( SkillName.MagicResist, 100.0 );
|
||||
SetSkill( SkillName.Tactics, 100.0 );
|
||||
SetSkill( SkillName.Wrestling, 80.0 );
|
||||
|
||||
Fame = 5000;
|
||||
Karma = -5000;
|
||||
|
||||
VirtualArmor = 49;
|
||||
}
|
||||
|
||||
public override void GenerateLoot()
|
||||
{
|
||||
if( Utility.RandomDouble() < .05 )
|
||||
{
|
||||
//PackItem( new TwilightLantern() ); OLD Halloween
|
||||
|
||||
switch( Utility.Random( 5 ) )
|
||||
{
|
||||
case 0: PackItem( new PaintedEvilClownMask() ); break;
|
||||
case 1: PackItem( new PaintedDaemonMask() ); break;
|
||||
case 2: PackItem( new PaintedPlagueMask() ); break;
|
||||
case 3: PackItem( new PaintedEvilJesterMask() ); break;
|
||||
case 4: PackItem( new PaintedPorcelainMask() ); break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
PackItem( new WrappedCandy() );
|
||||
AddLoot( LootPack.UltraRich, 2 );
|
||||
}
|
||||
|
||||
public virtual void Lifted_Callback( Mobile from )
|
||||
{
|
||||
if( from != null && !from.Deleted && from is PlayerMobile )
|
||||
{
|
||||
Combatant = from;
|
||||
|
||||
Warmode = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override Item NewHarmfulItem()
|
||||
{
|
||||
Item bad = new AcidSlime( TimeSpan.FromSeconds( 10 ), 25, 30 );
|
||||
|
||||
bad.Name = "gooey nasty pumpkin hummus";
|
||||
|
||||
bad.Hue = 144;
|
||||
|
||||
return bad;
|
||||
}
|
||||
|
||||
public override void OnDamage( int amount, Mobile from, bool willKill )
|
||||
{
|
||||
if( Utility.RandomBool() )
|
||||
{
|
||||
if( from != null && from.Map != null && Map != Map.Internal && Map == from.Map && from.InRange( this, 12 ) )
|
||||
{
|
||||
SpillAcid( ( willKill ) ? this : from, ( willKill ) ? 3 : 1 );
|
||||
}
|
||||
}
|
||||
|
||||
base.OnDamage( amount, from, willKill );
|
||||
}
|
||||
|
||||
public PumpkinHead( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
writer.Write( ( int )0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue