using System using Server Items namespace Server Mobiles CorpseName Sa

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
using System;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName("Santa Klauss corpse")]
public class Santa : BaseCreature
{
[Constructable]
public Santa()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
this.Name = "Santa Klaus";
Body = 0x190;
this.BaseSoundID = 0x568;
this.SetStr(500);
this.SetDex(125);
this.SetInt(100);
this.SetHits(5000);
this.SetMana(1000);
this.SetDamage(1, 5);
this.SetDamageType(ResistanceType.Cold, 100);
this.SetResistance(ResistanceType.Physical, 55);
this.SetResistance(ResistanceType.Fire, 50);
this.SetResistance(ResistanceType.Cold, 50);
this.SetResistance(ResistanceType.Poison, 65);
this.SetResistance(ResistanceType.Energy, 80);
this.SetSkill(SkillName.DetectHidden, 100.0);
this.SetSkill(SkillName.Meditation, 120.0);
this.SetSkill(SkillName.Magery, 120.0);
this.SetSkill(SkillName.EvalInt, 160.0);
this.SetSkill(SkillName.MagicResist, 100.0);
this.SetSkill(SkillName.Tactics, 150.0);
this.SetSkill(SkillName.Wrestling, 120.0);
this.Fame = 5000;
this.Karma = -5000;
this.VirtualArmor = 40;
HairItemID = 0x754;
HairHue = 0x47E;
this.FacialHairItemID = 1882;
this.FacialHairHue = 0x47E;
AddItem(new FancyShirt(0xE8));
AddItem(new LongPants(0xE8));
AddItem(new Cap(0xE8));
AddItem(new Sandals(0xE8));
}
public Santa(Serial serial)
: base(serial)
{
}
public override bool AutoDispel
{
get
{
return true;
}
}
public override bool AlwaysMurderer
{
get
{
return true;
}
}
public override bool BardImmune
{
get
{
return true;
}
}
public override bool AreaPeaceImmune
{
get
{
return true;
}
}
public override void GenerateLoot()
{
this.AddLoot(LootPack.UltraRich, 10);
}
public virtual void Lifted_Callback(Mobile from)
{
if (from != null && !from.Deleted && from is PlayerMobile)
{
this.Combatant = from;
this.Warmode = true;
}
}
public override Item NewHarmfulItem()
{
Item bad = new AcidSlime(TimeSpan.FromSeconds(10), 25, 30);
bad.Name = "Acid Snow";
bad.Hue = 0x782;
return bad;
}
public override void OnDamage(int amount, Mobile from, bool willKill)
{
if (Utility.RandomBool())
{
if (from != null && from.Map != null && this.Map != Map.Internal && this.Map == from.Map && from.InRange(this, 12))
{
this.SpillAcid((willKill) ? this : from, (willKill) ? 3 : 1);
}
}
base.OnDamage(amount, from, willKill);
}
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();
}
}
}