using System using Server Items using Server Engines CannedEvil namesp

  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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
using System;
using Server.Items;
using Server.Engines.CannedEvil;
namespace Server.Mobiles
{
[CorpseName("Santa Klauss corpse")]
public class Santa : BaseChampion
{
[Constructable]
public Santa()
: base(AIType.AI_Mage)
{
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(5, 6);
this.SetDamageType(ResistanceType.Cold, 100);
this.SetResistance(ResistanceType.Physical, 40);
this.SetResistance(ResistanceType.Fire, 10);
this.SetResistance(ResistanceType.Cold, 90);
this.SetResistance(ResistanceType.Poison, 40);
this.SetResistance(ResistanceType.Energy, 40);
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, 100.0);
this.SetSkill(SkillName.Wrestling, 130.0);
this.Fame = 10000;
this.Karma = -5000;
this.VirtualArmor = 40;
HairItemID = 0xC60D;
HairHue = 0x47E;
FacialHairItemID = 0xC675;
FacialHairHue = 0x47E;
this.AddItem(new FancyShirt(0xE8));
this.AddItem(new LongPants(0xE8));
this.AddItem(new Cap(0xE8));
this.AddItem(new Sandals(0xE8));
}
public Santa(Serial serial)
: base(serial)
{
}
public override ChampionSkullType SkullType
{
get
{
return ChampionSkullType.Venom;
}
}
public override Type[] UniqueList
{
get
{
return new Type[] { typeof(Calm) };
}
}
public override Type[] SharedList
{
get
{
return new Type[] { typeof(OblivionsNeedle), typeof(ANecromancerShroud), typeof(EmbroideredOakLeafCloak), typeof(TheMostKnowledgePerson) };
}
}
public override Type[] DecorativeList
{
get
{
return new Type[] { typeof(Web), typeof(MonsterStatuette) };
}
}
public override MonsterStatuetteType[] StatueTypes
{
get
{
return new MonsterStatuetteType[] { MonsterStatuetteType.Spider };
}
}
public override bool AutoDispel
{
get
{
return true;
}
}
public override bool AlwaysMurderer
{
get
{
return true;
}
}
public override WeaponAbility GetWeaponAbility()
{
switch (Utility.Random(3))
{
default:
case 0:
return WeaponAbility.DoubleStrike;
case 1:
return WeaponAbility.WhirlwindAttack;
case 2:
return WeaponAbility.CrushingBlow;
}
}
public override bool BardImmune
{
get
{
return true;
}
}
public override bool AreaPeaceImmune
{
get
{
return true;
}
}
public override void GenerateLoot()
{
this.AddLoot(LootPack.UltraRich, 5);
}
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(3), 10, 15);
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();
}
}
}