Lemke

Member
Hello guys!

Anyone have an example or idea about how to send a gump to all online players?
Just need to send but never tryed to do and have no idea about the code,thank you so much!
 
This code will send a gump to all players online. You'll have to script the gump itself of course.

Code:
            foreach (NetState ns in NetState.Instances) 
            { 
                if (ns.Mobile == null) 
                    continue; 

                ns.Mobile.CloseGump(typeof (YourNewGump) ); 
                ns.Mobile.SendGump(new YourNewGump()); 
            }
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back