//public void polymorph(Mobile m) //{ // //if (m.Body.IsHuman) { BodyMod = 243; } // //else { BodyMod = 0; } //} public void polymorph(Body bd, Lucky m) { //if (Mounted) // Dismount(this); if (!Controlled || IsDeadPet || IsDeadBondedPet || ControlMaster == null) { return; } m.PlaySound(0x20C); if (bd == 0x191) { m.BodyMod = 0x191; m.HueMod = 1009; if (Race != Race.Elf) { Race = Race.Elf; } FixedParticles(0x3728, 200, 25, 9942, EffectLayer.Waist); } else if (bd == 719) { m.BodyMod = 0; m.HueMod = -1; FixedParticles(0x3728, 200, 25, 9942, EffectLayer.Waist); } else { m.BodyMod = bd; m.HueMod = -1; FixedParticles(0x3728, 200, 25, 9942, EffectLayer.Waist); } if (m.Controlled && m.ControlMaster != null && m.ControlMaster.Alive) { if (m.ControlMaster.HasGump(typeof(Luckgump))) { m.ControlMaster.CloseGump(typeof(Luckgump)); } m.ControlMaster.SendGump(new Luckgump(m.ControlMaster, m)); } }
public void ComputeLevel(Lucky x) { if (!Controlled) { return; } if (x.exp >= 1000 + 20 * x.level) { x.exp -= 1000 + 20 * x.level; ++x.level; x.Emote("*等级提升*"); valid += (short)Utility.Random(3, 3); } if (x.level > 100) { ++x.generation; x.level = 1; x.Emote("*大于一百级,阶段上升*"); } //SetDamage(level / 10 + 12 + generation * 5, level / 5 + 13 + generation * 5); DaMin = generation + 5; DaMax = generation + 10; }
public PolyEntry(Mobile from, Lucky bc) : base(1075824, 8) { this.m_From = from; this.m_bc = bc; }