public static Spawn ( int level, Server.Point3D p, Server.Map map, Server.Mobile target, bool guardian ) : BaseCreature | ||
level | int | |
p | Server.Point3D | |
map | Server.Map | |
target | Server.Mobile | |
guardian | bool | |
Результат | BaseCreature |
public void SpawnAncientGuardian(Mobile from) { ExecuteTrap(from); if (!AncientGuardians.Any(g => g != null && g.Alive)) { BaseCreature spawn = TreasureMap.Spawn(Level, GetWorldLocation(), Map, from, false); if (spawn != null) { spawn.NoLootOnDeath = true; spawn.Name = "Ancient Chest Guardian"; spawn.Title = "(Guardian)"; spawn.Tamable = false; if (spawn.HitsMaxSeed >= 0) { spawn.HitsMaxSeed = (int)(spawn.HitsMaxSeed * Paragon.HitsBuff); } spawn.RawStr = (int)(spawn.RawStr * Paragon.StrBuff); spawn.RawInt = (int)(spawn.RawInt * Paragon.IntBuff); spawn.RawDex = (int)(spawn.RawDex * Paragon.DexBuff); spawn.Hits = spawn.HitsMax; spawn.Mana = spawn.ManaMax; spawn.Stam = spawn.StamMax; spawn.Hue = 1960; for (int i = 0; i < spawn.Skills.Length; i++) { Skill skill = spawn.Skills[i]; if (skill.Base > 0.0) { skill.Base *= Paragon.SkillsBuff; } } AncientGuardians.Add(spawn); } } }
public override void OnItemLifted(Mobile from, Item item) { bool notYetLifted = !this.m_Lifted.Contains(item); from.RevealingAction(); if (notYetLifted) { this.m_Lifted.Add(item); if (0.1 >= Utility.RandomDouble()) // 10% chance to spawn a new monster { TreasureMap.Spawn(this.m_Level, this.GetWorldLocation(), this.Map, from, false); } } base.OnItemLifted(from, item); }
public override void OnItemLifted(Mobile from, Item item) { bool notYetLifted = !m_Lifted.Contains(item); from.RevealingAction(); if (notYetLifted && !(item is Gold && item.Amount < 300)) { m_Lifted.Add(item); if (0.1 >= Utility.RandomDouble()) // 10% chance to spawn a new monster { TreasureMap.Spawn(m_Level, GetWorldLocation(), Map, from, false); } } base.OnItemLifted(from, item); }
public override void OnItemLifted(Mobile from, Item item) { var notYetLifted = !m_Lifted.Contains(item); from.RevealingAction(); if (notYetLifted) { m_Lifted.Add(item); if (Utility.RandomDouble() <= 0.1) // 10% chance to spawn a new monster { TreasureMap.Spawn(Level, GetWorldLocation(), Map, from, false); } } base.OnItemLifted(from, item); }
public override void OnItemLifted(Mobile from, Item item) { bool notYetLifted = !m_Lifted.Contains(item.GetType()); from.RevealingAction(); if (notYetLifted) { double roll = Utility.RandomDouble(); m_Lifted.Add(item.GetType()); if (PseudoSeerStone.TreasureMapMobSpawnChance >= roll) // 10% chance to spawn a new monster { TreasureMap.Spawn(m_Level, GetWorldLocation(), Map, from, false); } } base.OnItemLifted(from, item); }
public override void OnItemLifted(Mobile from, Item item) { bool notYetLifted = !m_Lifted.Contains(item); from.RevealingAction(); if (notYetLifted) { m_Lifted.Add(item); if (0.1 >= Utility.RandomDouble()) // 10% chance to spawn a new monster { BaseCreature spawn = TreasureMap.Spawn(Level, GetWorldLocation(), Map, from, false); spawn.Hue = 2725; } } base.OnItemLifted(from, item); }