public override void OnDoubleClick(Mobile from) { base.OnDoubleClick(from); AuthorStatistics ast = ForumCore.GetAuthorStatistics(from.Serial.Value); if (ast.Banned) { from.SendMessage("You have been banned from this forum!"); return; } ForumCore.Threads.Sort(new DateSort()); from.CloseGump(typeof(ForumGump)); from.SendGump(new ForumGump(from, 0)); }
public override void OnResponse(NetState sender, RelayInfo info) { Mobile from = sender.Mobile; switch (info.ButtonID) { case 1: // #1 Site's Url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://DragonKnights.homeip.net"); break; } case 2: // #2 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://dragonknights.kicks-ass.net/e107_plugins/forum/forum.php"); break; } case 3: // #3 Site's url { AuthorStatistics ast = ForumCore.GetAuthorStatistics(from.Serial.Value); if (ast.Banned) { from.SendMessage("You have been banned from this forum!"); return; } ForumCore.Threads.Sort(new DateSort()); from.CloseGump(typeof(ForumGump)); from.SendSound(1224); // 1224= click noise from.SendGump(new ForumGump(from, 0)); break; } case 4: // #4 Site's Url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://uo.stratics.com/"); break; } case 5: // #5 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://dragonknights.kicks-ass.net/download.php?view.3"); break; } case 6: // #6 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://dragonknights.kicks-ass.net/download.php?view.1"); //sender.LaunchBrowser( "http://aaaservices.homeip.net/TeamSpeak.htm" ); break; } case 7: // #7 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://aaaservices.homeip.net/UO/status.html"); break; } case 8: // #8 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://www.xtremetop100.com/in.php?site=1132300022"); sender.LaunchBrowser("http://www.gamesites200.com/ultimaonline/in.php?id=1874"); break; } case 9: // #9 Site's url { from.CloseGump(typeof(WebstoneGump)); from.SendGump(new WebstoneGump()); from.SendSound(1224); // 1224= click noise sender.LaunchBrowser("http://aaaservices.homeip.net/index.html"); break; } case 0: // Close button { from.SendSound(1224); // 1224= click noise from.CloseGump(typeof(WebstoneGump)); from.SendSound(240); break; } // case 10: // #10 Site's url // { // sender.LaunchBrowser( "http://www.jeff6o6-hosting.com/" ); // break; // } } }