Spawn monster after double click an item?

Lemke

Well-Known Member
Sep 26, 2015
66
5
37
Yo!
Got an item on my shard,if you double lcik it,the item open a portal to another map location,its possible to get this item spawn portal and monsters on the target location?
Here the code im using to open portal:

C#:
public override void OnDoubleClick( Mobile m )
        {
            Moongate moon = new Moongate(new Point3D(5987, 1522, 10), Map.Felucca);
            moon.Dispellable = false;
            moon.Hue = 1150;
            moon.MoveToWorld(m.Location, m.Map);
            Timer m_timer = new MobileDeleteTime(moon);
            m_timer.Start();
            
            base.OnDoubleClick(m);
            this.Delete();
        }
Thank you!