Ejemplo n.º 1
0
 public void sendFML() {
   for (ChannelServer lol : ChannelServer.getAllInstances()) {
     lol.broadcastPacket(MaplePacketCreator.sendYellowTip(MapleFML.getFML()));
   }
   int lol = (int) (Math.random() * 3);
   /*    if (lol < 1) {
       MainIRC.getInstance().sendGlobalMessage("#FML : " + MapleFML.getFML());
   } else {*/
   MainIRC.getInstance().sendMessage("#ninjashelp", "#FML : " + MapleFML.getFML());
   // }
 }
Ejemplo n.º 2
0
 public void sendBashQuote() {
   MainIRC.getInstance().sendMessage("Sunny", "#BASH : 0");
   for (ChannelServer lol : ChannelServer.getAllInstances()) {
     MainIRC.getInstance().sendMessage("Sunny", "#BASH : 1 - " + lol.getChannel());
     List<String> gay = BashBot.getQuotes();
     MainIRC.getInstance().sendMessage("Sunny", "#BASH : 2- Gay");
     lol.broadcastPacket(
         MaplePacketCreator.sendYellowTip(
             "---------------------------------------Random bash.org Quote---------------------------------------"));
     for (String i : gay) {
       lol.broadcastPacket(MaplePacketCreator.sendYellowTip(i));
     }
     lol.broadcastPacket(
         MaplePacketCreator.sendYellowTip(
             "---------------------------------------Random bash.org Quote---------------------------------------"));
     if (lol.getChannel() == 2) {
       for (String i : gay) {
         MainIRC.getInstance().sendIrcMessage("#BASH : " + i);
       }
     }
   }
 }
Ejemplo n.º 3
0
 public void sendMLIA() {
   for (ChannelServer lol : ChannelServer.getAllInstances()) {
     lol.broadcastPacket(MaplePacketCreator.sendYellowTip(MLIABot.findMLIA()));
   }
   MainIRC.getInstance().sendIrcMessage("#MLIA : " + MLIABot.findMLIA());
 }