Exemple #1
0
 public void disbandAlliance(int id) {
   synchronized (alliances) {
     MapleAlliance alliance = alliances.get(id);
     if (alliance != null) {
       for (Integer gid : alliance.getGuilds()) {
         guilds.get(gid).setAllianceId(0);
       }
       alliances.remove(id);
     }
   }
 }
Exemple #2
0
 public void allianceMessage(int id, final byte[] packet, int exception, int guildex) {
   MapleAlliance alliance = alliances.get(id);
   if (alliance != null) {
     for (Integer gid : alliance.getGuilds()) {
       if (guildex == gid) {
         continue;
       }
       MapleGuild guild = guilds.get(gid);
       if (guild != null) {
         guild.broadcast(packet, exception);
       }
     }
   }
 }