public override bool OnBeforeDeath() { // spawn the item Item item = (Item)Activator.CreateInstance(typeof(Moongate)); Moongate moon = (Moongate)item; moon.TargetMap = Map.Trammel; //or map moon.Target = new Point3D(1422, 1697, 0); // Set map X,Y,Z location here // Map map = Map.Trammel; Point3D pnt = GetSpawnLocation(); moon.MoveToWorld(pnt, this.Map); Timer m_timer = new MobileDeleteTime(item); m_timer.Start(); return(base.OnBeforeDeath()); }
public override bool OnBeforeDeath() { // spawn the item Item item = (Item)Activator.CreateInstance( typeof(Moongate) ); Moongate moon = (Moongate)item; moon.TargetMap = Map.Felucca; //or map moon.Target = new Point3D( 5394, 1111, 0 ); //where the gate goes moon.Hue = 29; Point3D pnt = GetSpawnLocation(); moon.MoveToWorld(pnt,this.Map); Timer m_timer = new MobileDeleteTime( item ); m_timer.Start(); return true; }
public override bool OnBeforeDeath() { // spawn the item Item item = (Item)Activator.CreateInstance(typeof(Moongate)); Moongate moon = (Moongate)item; moon.TargetMap = Map.Trammel; //or map moon.Target = new Point3D(1422, 1697, 0); // Set map X,Y,Z location here // Map map = Map.Trammel; Point3D pnt = GetSpawnLocation(); moon.MoveToWorld(pnt, this.Map); Timer m_timer = new MobileDeleteTime(item); m_timer.Start(); return base.OnBeforeDeath(); }