Lemke Member Nov 11, 2020 #1 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!
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!
Falkor Member Nov 12, 2020 #2 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()); }
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()); }