Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
// books: Brown 0xFEF, Tan 0xFF0, Red 0xFF1, Blue 0xFF2,
|
||||
// OpenSmall 0xFF3, Open 0xFF4, OpenOld 0xFBD, 0xFBE
|
||||
|
||||
public class LordSantaBook: BaseBook
|
||||
{
|
||||
private const string TITLE = "Yellow Snow";
|
||||
private const string AUTHOR = "Lord Santa";
|
||||
private const int PAGES = 2;
|
||||
private const bool WRITABLE = false;
|
||||
|
||||
[Constructable]
|
||||
public LordSantaBook() : base( Utility.RandomList( 0xFEF, 0xFF0, 0xFF1, 0xFF2 ), TITLE, AUTHOR, PAGES, WRITABLE )
|
||||
{
|
||||
// NOTE: There are 8 lines per page and
|
||||
// approx 22 to 24 characters per line.
|
||||
// 0----+----1----+----2----+
|
||||
int cnt = 0;
|
||||
string[] lines;
|
||||
|
||||
lines = new string[]
|
||||
{
|
||||
"Ok I need you to find",
|
||||
"thoses kids that are ",
|
||||
"making yellow snow ",
|
||||
"Beat them up and bring",
|
||||
"bring back the yellow ",
|
||||
"as proof. Dont fail me",
|
||||
"if you bring back 10 ",
|
||||
"yellow snows u will be",
|
||||
|
||||
};
|
||||
Pages[cnt++].Lines = lines;
|
||||
|
||||
lines = new string[]
|
||||
{
|
||||
"givin the best armor",
|
||||
"and cloths that santa's",
|
||||
"little helpers can make",
|
||||
". Show me the meaning",
|
||||
"Of haste. Dont Fail.",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
};
|
||||
Pages[cnt++].Lines = lines;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public LordSantaBook( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int)0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaArms : LeatherArms
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaArms()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Arms";
|
||||
Hue = 33;
|
||||
|
||||
Attributes.AttackChance=5;
|
||||
Attributes.RegenMana=1;
|
||||
Attributes.RegenHits=1;
|
||||
Attributes.RegenStam=1;
|
||||
Attributes.LowerRegCost=15;
|
||||
|
||||
PhysicalBonus = 3;
|
||||
FireBonus = 4;
|
||||
ColdBonus = 9;
|
||||
PoisonBonus =6;
|
||||
EnergyBonus = 9;
|
||||
}
|
||||
|
||||
public SantaArms( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaBoots : Boots
|
||||
{
|
||||
|
||||
[Constructable]
|
||||
public SantaBoots()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Boots";
|
||||
Hue = 1369;
|
||||
|
||||
LootType = LootType.Blessed;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public SantaBoots( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaGloves : LeatherGloves
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaGloves()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Gloves";
|
||||
Hue = 33;
|
||||
|
||||
ArmorAttributes.SelfRepair=3;
|
||||
Attributes.WeaponDamage=10;
|
||||
Attributes.WeaponSpeed=5;
|
||||
Attributes.ReflectPhysical=5;
|
||||
Attributes.LowerRegCost=5;
|
||||
|
||||
PhysicalBonus = 9;
|
||||
FireBonus = 9;
|
||||
ColdBonus = 5;
|
||||
PoisonBonus =5;
|
||||
EnergyBonus = 4;
|
||||
}
|
||||
|
||||
public SantaGloves( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaGorget : LeatherGorget
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaGorget()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Gorget";
|
||||
Hue = 33;
|
||||
|
||||
ArmorAttributes.SelfRepair=2;
|
||||
Attributes.WeaponDamage=10;
|
||||
Attributes.SpellDamage=5;
|
||||
Attributes.LowerRegCost=12;
|
||||
|
||||
PhysicalBonus = 4;
|
||||
FireBonus = 8;
|
||||
ColdBonus = 4;
|
||||
PoisonBonus =4;
|
||||
EnergyBonus = 8;
|
||||
}
|
||||
|
||||
public SantaGorget( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaHelm : LeatherCap
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaHelm()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Cap";
|
||||
Hue = 33;
|
||||
|
||||
Attributes.RegenMana=2;
|
||||
|
||||
PhysicalBonus = 12;
|
||||
FireBonus = 12;
|
||||
ColdBonus = 12;
|
||||
PoisonBonus =12;
|
||||
EnergyBonus = 12;
|
||||
}
|
||||
|
||||
public SantaHelm( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaLegs : LeatherLegs
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaLegs()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Legs";
|
||||
Hue = 33;
|
||||
|
||||
ArmorAttributes.SelfRepair=2;
|
||||
Attributes.WeaponDamage=10;
|
||||
Attributes.SpellDamage=5;
|
||||
Attributes.LowerRegCost=12;
|
||||
|
||||
PhysicalBonus = 8;
|
||||
FireBonus = 4;
|
||||
ColdBonus = 8;
|
||||
PoisonBonus =4;
|
||||
EnergyBonus = 4;
|
||||
}
|
||||
|
||||
public SantaLegs( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class SantaTunic : LeatherChest
|
||||
{
|
||||
public override int ArtifactRarity{ get{ return 4; } }
|
||||
|
||||
public override int InitMinHits{ get{ return 255; } }
|
||||
public override int InitMaxHits{ get{ return 255; } }
|
||||
[Constructable]
|
||||
public SantaTunic()
|
||||
{ Weight = 6.0;
|
||||
Name = "Santa Tunic";
|
||||
Hue = 33;
|
||||
|
||||
ArmorAttributes.SelfRepair=1;
|
||||
Attributes.SpellDamage=5;
|
||||
Attributes.LowerRegCost=10;
|
||||
Attributes.DefendChance=7;
|
||||
|
||||
PhysicalBonus = 4;
|
||||
FireBonus = 8;
|
||||
ColdBonus = 8;
|
||||
PoisonBonus =5;
|
||||
EnergyBonus = 4;
|
||||
}
|
||||
|
||||
public SantaTunic( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Server;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class YellowSnow : Item
|
||||
{
|
||||
[Constructable]
|
||||
public YellowSnow() : this( 1 )
|
||||
{
|
||||
}
|
||||
|
||||
[Constructable]
|
||||
public YellowSnow( int amount ) : base( 0x26B8 )
|
||||
{
|
||||
Name = "Yellow Snow";
|
||||
Stackable = true;
|
||||
Hue = 55;
|
||||
Weight = 0.1;
|
||||
Amount = amount;
|
||||
}
|
||||
|
||||
public YellowSnow( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
//public override Item Dupe( int amount )
|
||||
//{
|
||||
//return base.Dupe( new YellowSnow( amount ), amount );
|
||||
//}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
103
Scripts/Scripts-master/Quests/Santa's Quest/Moblies/AEvilElf.cs
Normal file
103
Scripts/Scripts-master/Quests/Santa's Quest/Moblies/AEvilElf.cs
Normal file
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "Bad little Boy" )]
|
||||
public class AEvilElf : BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public AEvilElf() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
|
||||
{
|
||||
Name = "A Evil Elf";
|
||||
Body = 400;
|
||||
BaseSoundID = 357;
|
||||
|
||||
SetStr( 80, 110 );
|
||||
SetDex( 80, 90 );
|
||||
SetInt( 80, 90 );
|
||||
|
||||
SetHits( 200 );
|
||||
|
||||
SetDamage( 5, 20 );
|
||||
|
||||
SetDamageType( ResistanceType.Physical, 50 );
|
||||
SetDamageType( ResistanceType.Fire, 25 );
|
||||
SetDamageType( ResistanceType.Energy, 25 );
|
||||
|
||||
SetResistance( ResistanceType.Physical, 40, 40 );
|
||||
SetResistance( ResistanceType.Fire, 40 );
|
||||
SetResistance( ResistanceType.Cold, 40, 40 );
|
||||
SetResistance( ResistanceType.Poison, 34 );
|
||||
SetResistance( ResistanceType.Energy, 40, 40 );
|
||||
|
||||
SetSkill( SkillName.Anatomy, 90 );
|
||||
SetSkill( SkillName.EvalInt, 50.1, 70.0 );
|
||||
SetSkill( SkillName.Magery, 50.5, 70.0 );
|
||||
SetSkill( SkillName.Meditation, 60 );
|
||||
SetSkill( SkillName.MagicResist, 40.5, 50.0 );
|
||||
SetSkill( SkillName.Tactics, 60.1, 60.0 );
|
||||
SetSkill( SkillName.Wrestling, 60.1, 60.0 );
|
||||
|
||||
Fame = 24000;
|
||||
Karma = -24000;
|
||||
|
||||
Kills = 10;
|
||||
|
||||
Hue = 0;
|
||||
|
||||
VirtualArmor = 12;
|
||||
|
||||
Item Boots = new Boots();
|
||||
Boots.Hue = 1369;
|
||||
Boots.Name = "Elf Boots";
|
||||
Boots.Movable = false;
|
||||
AddItem( Boots );
|
||||
|
||||
Item Doublet = new Doublet();
|
||||
Doublet.Hue = 1369;
|
||||
Doublet.Name = "Elf's Doublet";
|
||||
Doublet.Movable = false;
|
||||
AddItem( Doublet );
|
||||
|
||||
Item FancyShirt = new FancyShirt();
|
||||
FancyShirt.Hue = 1369;
|
||||
FancyShirt.Name = "Elf's Shirt";
|
||||
FancyShirt.Movable = false;
|
||||
AddItem( FancyShirt );
|
||||
|
||||
Item LongPants = new LongPants();
|
||||
LongPants.Hue = 1369;
|
||||
LongPants.Name = "Elf's Pants";
|
||||
LongPants.Movable = false;
|
||||
AddItem( LongPants );
|
||||
|
||||
|
||||
PackItem( new YellowSnow() );
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override bool CanRummageCorpses{ get{ return true; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Deadly; } }
|
||||
public override int TreasureMapLevel{ get{ return 5; } }
|
||||
public override int Meat{ get{ return 1; } }
|
||||
|
||||
public AEvilElf( 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
167
Scripts/Scripts-master/Quests/Santa's Quest/Moblies/LordSanta.cs
Normal file
167
Scripts/Scripts-master/Quests/Santa's Quest/Moblies/LordSanta.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Items;
|
||||
using Server.Targeting;
|
||||
using Server.ContextMenus;
|
||||
using Server.Gumps;
|
||||
using Server.Misc;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
[CorpseName( "You'r on the Nauty List" )]
|
||||
public class LordSanta : Mobile
|
||||
{
|
||||
public virtual bool IsInvulnerable{ get{ return true; } }
|
||||
[Constructable]
|
||||
public LordSanta()
|
||||
{
|
||||
Name = "Lord Santa";
|
||||
Title = "the Ruler of the green dudes";
|
||||
Body = 0x190;
|
||||
CantWalk = true;
|
||||
Hue = Utility.RandomSkinHue();
|
||||
|
||||
Item Boots = new Boots();
|
||||
Boots.Hue = 33;
|
||||
Boots.Name = "Santa Boots";
|
||||
Boots.Movable = false;
|
||||
AddItem( Boots );
|
||||
|
||||
Item Doublet = new Doublet();
|
||||
Doublet.Hue = 33;
|
||||
Doublet.Name = "Santa's Doublet";
|
||||
Doublet.Movable = false;
|
||||
AddItem( Doublet );
|
||||
|
||||
Item FancyShirt = new FancyShirt();
|
||||
FancyShirt.Hue = 33;
|
||||
FancyShirt.Name = "Santa's Shirt";
|
||||
FancyShirt.Movable = false;
|
||||
AddItem( FancyShirt );
|
||||
|
||||
Item LongPants = new LongPants();
|
||||
LongPants.Hue = 33;
|
||||
LongPants.Name = "Santa's Pants";
|
||||
LongPants.Movable = false;
|
||||
AddItem( LongPants );
|
||||
|
||||
Item WizardsHat = new WizardsHat();
|
||||
WizardsHat.Hue = 33;
|
||||
WizardsHat.Name = "Santa's Hat";
|
||||
WizardsHat.Movable = false;
|
||||
AddItem( WizardsHat );
|
||||
|
||||
|
||||
|
||||
|
||||
int hairHue = 1153;
|
||||
|
||||
switch ( Utility.Random( 1 ) )
|
||||
{
|
||||
case 0: AddItem( new LongHair( hairHue ) ); break;
|
||||
case 1: AddItem( new LongBeard( hairHue ) ); break;
|
||||
}
|
||||
|
||||
Blessed = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public LordSanta( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
|
||||
{
|
||||
base.GetContextMenuEntries( from, list );
|
||||
list.Add( new LordSantaEntry( from, this ) );
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
public class LordSantaEntry : ContextMenuEntry
|
||||
{
|
||||
private Mobile m_Mobile;
|
||||
private Mobile m_Giver;
|
||||
|
||||
public LordSantaEntry( Mobile from, Mobile giver ) : base( 6146, 3 )
|
||||
{
|
||||
m_Mobile = from;
|
||||
m_Giver = giver;
|
||||
}
|
||||
|
||||
public override void OnClick()
|
||||
{
|
||||
|
||||
|
||||
if( !( m_Mobile is PlayerMobile ) )
|
||||
return;
|
||||
|
||||
PlayerMobile mobile = (PlayerMobile) m_Mobile;
|
||||
|
||||
{
|
||||
if ( ! mobile.HasGump( typeof( SantaquestGump ) ) )
|
||||
{
|
||||
mobile.SendGump( new SantaquestGump( mobile ));
|
||||
mobile.AddToBackpack( new LordSantaBook() );
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnDragDrop( Mobile from, Item dropped )
|
||||
{
|
||||
Mobile m = from;
|
||||
PlayerMobile mobile = m as PlayerMobile;
|
||||
|
||||
if ( mobile != null)
|
||||
{
|
||||
if( dropped is YellowSnow)
|
||||
{
|
||||
if(dropped.Amount!=10)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Umm I didnt ask for that amount you are getting coal!", mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
|
||||
dropped.Delete();
|
||||
mobile.AddToBackpack( new SantaHelm() );
|
||||
mobile.AddToBackpack( new SantaLegs() );
|
||||
mobile.AddToBackpack( new SantaGloves() );
|
||||
mobile.AddToBackpack( new SantaTunic() );
|
||||
mobile.AddToBackpack( new SantaArms() );
|
||||
mobile.AddToBackpack( new SantaBoots() );
|
||||
mobile.AddToBackpack( new SantaGorget() );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
else if ( dropped is YellowSnow)
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "How dare you give me the wroung thing I give you shit all the time bring me the right item!", mobile.NetState );
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using Server;
|
||||
using Server.Commands;
|
||||
using Server.Gumps;
|
||||
using Server.Network;
|
||||
using Server.Items;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Gumps
|
||||
{
|
||||
public class SantaquestGump : Gump
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
CommandSystem.Register( "SantaquestGump", AccessLevel.GameMaster, new CommandEventHandler( SantaquestGump_OnCommand ) );
|
||||
}
|
||||
|
||||
private static void SantaquestGump_OnCommand( CommandEventArgs e )
|
||||
{
|
||||
e.Mobile.SendGump( new SantaquestGump( e.Mobile ) );
|
||||
}
|
||||
|
||||
public SantaquestGump( Mobile owner ) : base( 50,50 )
|
||||
{
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
||||
AddPage( 0 );
|
||||
AddImageTiled( 54, 33, 369, 400, 2624 );
|
||||
AddAlphaRegion( 54, 33, 369, 400 );
|
||||
|
||||
AddImageTiled( 416, 39, 44, 389, 203 );
|
||||
//--------------------------------------Window size bar--------------------------------------------
|
||||
|
||||
AddImage( 97, 49, 9005 );
|
||||
AddImageTiled( 58, 39, 29, 390, 10460 );
|
||||
AddImageTiled( 412, 37, 31, 389, 10460 );
|
||||
AddLabel( 140, 60, 0x34, "Yellow Snow and bad foes" );
|
||||
|
||||
|
||||
AddHtml( 107, 140, 300, 230, "<BODY>" +
|
||||
//----------------------/----------------------------------------------/
|
||||
"<BASEFONT COLOR=RED>Lord Santa walks over to you *As you hear rumbleing* He says I got a favor...<BR><BR>So you like snow I see. Well what if I told you that someone was peeing in my snow? Santa, As sad as thats sounds it's true.<BR>" +
|
||||
"<BASEFONT COLOR=RED>So you wish help me do you?<BR><BR>will you help me? You must beat up the kids that are peeing in my snow that are mean little kids so watch out." +
|
||||
"<BASEFONT COLOR=RED>What I require of you is to beat up theses little kid and make them stop, then bring me back 10 yellow snows as proof.<BR><BR>They are not easy cause they like to hide and sneak around but ill tell you what beat them up and bring back what I asked you too and then ill make the the best gifts that santa can make." +
|
||||
"</BODY>", false, true);
|
||||
|
||||
// <BASEFONT COLOR=#7B6D20>
|
||||
|
||||
// AddLabel( 113, 135, 0x34, "Santa walks over to you and askes..." );
|
||||
// AddLabel( 113, 150, 0x34, "so you like snow I hear" );
|
||||
// AddLabel( 113, 165, 0x34, "well some kids are peeing in my snow." );
|
||||
// AddLabel( 113, 180, 0x34, "I want you to beat them up and bring" );
|
||||
// AddLabel( 113, 195, 0x34, "me back 10 yellow snow as proof" );
|
||||
// AddLabel( 113, 210, 0x34, "can you bring me the items I need?" );
|
||||
// AddLabel( 113, 235, 0x34, "They are hard ass little bastard cause " );
|
||||
// AddLabel( 113, 250, 0x34, "they like to hide so ill tell you what ill" );
|
||||
// AddLabel( 113, 265, 0x34, "do beat them up and bring me back the snow" );
|
||||
// AddLabel( 113, 280, 0x34, "and ill make you the best items that santa" );
|
||||
// AddLabel( 113, 295, 0x34, "can make. Once you get them come back to me." );
|
||||
// AddLabel( 113, 310, 0x34, "" );
|
||||
AddImage( 430, 9, 10441);
|
||||
AddImageTiled( 40, 38, 17, 391, 9263 );
|
||||
AddImage( 6, 25, 10421 );
|
||||
AddImage( 34, 12, 10420 );
|
||||
AddImageTiled( 94, 25, 342, 15, 10304 );
|
||||
AddImageTiled( 40, 427, 415, 16, 10304 );
|
||||
AddImage( -10, 314, 10402 );
|
||||
AddImage( 56, 150, 10411 );
|
||||
AddImage( 155, 120, 2103 );
|
||||
AddImage( 136, 84, 96 );
|
||||
|
||||
AddButton( 225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0 );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
public override void OnResponse( NetState state, RelayInfo info ) //Function for GumpButtonType.Reply Buttons
|
||||
{
|
||||
Mobile from = state.Mobile;
|
||||
|
||||
switch ( info.ButtonID )
|
||||
{
|
||||
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
|
||||
{
|
||||
//Cancel
|
||||
from.SendMessage( "Let the power of yellow snow guide you." );
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user