Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user