Exemple #1
0
 public boolean setAllianceNotice(int aId, String notice) {
   MapleAlliance alliance = alliances.get(aId);
   if (alliance != null) {
     alliance.setNotice(notice);
     return true;
   }
   return false;
 }
Exemple #2
0
 public boolean increaseAllianceCapacity(int aId, int inc) {
   MapleAlliance alliance = alliances.get(aId);
   if (alliance != null) {
     alliance.increaseCapacity(inc);
     return true;
   }
   return false;
 }
Exemple #3
0
 public boolean setAllianceRanks(int aId, String[] ranks) {
   MapleAlliance alliance = alliances.get(aId);
   if (alliance != null) {
     alliance.setRankTitle(ranks);
     return true;
   }
   return false;
 }
Exemple #4
0
 public boolean removeGuildFromAlliance(int aId, int guildId) {
   MapleAlliance alliance = alliances.get(aId);
   if (alliance != null) {
     alliance.removeGuild(guildId);
     return true;
   }
   return false;
 }
Exemple #5
0
 public boolean addGuildtoAlliance(int aId, int guildId) {
   MapleAlliance alliance = alliances.get(aId);
   if (alliance != null) {
     alliance.addGuild(guildId);
     return true;
   }
   return false;
 }
Exemple #6
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 #7
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);
       }
     }
   }
 }