public virtual void DropOoze() { int amount = Utility.RandomMinMax(1, 3); bool corrosive = Utility.RandomBool(); for (int i = 0; i < amount; i++) { Item ooze = new InfernalOoze(corrosive); Point3D p = new Point3D(Location); for (int j = 0; j < 5; j++) { p = GetSpawnPosition(2); bool found = false; foreach (Item item in Map.GetItemsInRange(p, 0)) { if (item is InfernalOoze) { found = true; break; } } if (!found) { break; } } ooze.MoveToWorld(p, Map); } if (Combatant != null) { if (corrosive) { Combatant.SendLocalizedMessage(1072071); // A corrosive gas seeps out of your enemy's skin! } else { Combatant.SendLocalizedMessage(1072072); // A poisonous gas seeps out of your enemy's skin! } } }
public virtual void DropOoze() { int amount = Utility.RandomMinMax(1, 3); for (int i = 0; i < amount; i++) { Item ooze = new InfernalOoze(false, Utility.RandomMinMax(6, 10)); Point3D p = new Point3D(this.Location); for (int j = 0; j < 5; j++) { p = this.GetSpawnPosition(2); bool found = false; foreach (Item item in this.Map.GetItemsInRange(p, 0)) { if (item is InfernalOoze) { found = true; break; } } if (!found) { break; } } ooze.MoveToWorld(p, this.Map); } if (this.Combatant is Mobile) { ((Mobile)this.Combatant).SendLocalizedMessage(1070820); // The creature spills a pool of acidic slime! } }
public virtual void DropOoze() { int amount = Utility.RandomMinMax( 1, 3 ); bool corrosive = Utility.RandomBool(); for ( int i = 0; i < amount; i ++ ) { Item ooze = new InfernalOoze( corrosive ); Point3D p = new Point3D( Location ); for ( int j = 0; j < 5; j ++ ) { p = GetSpawnPosition( 2 ); bool found = false; foreach( Item item in Map.GetItemsInRange( p, 0 ) ) if ( item is InfernalOoze ) { found = true; break; } if ( !found ) break; } ooze.MoveToWorld( p, Map ); } if ( Combatant != null ) { if ( corrosive ) Combatant.SendLocalizedMessage( 1072071 ); // A corrosive gas seeps out of your enemy's skin! else Combatant.SendLocalizedMessage( 1072072 ); // A poisonous gas seeps out of your enemy's skin! } }