Package lineage2.gameserver.model.pledge

Examples of lineage2.gameserver.model.pledge.Alliance.broadcastAllyStatus()


      Alliance ally = requestor.getAlliance();
      activeChar.sendPacket(Msg.YOU_HAVE_ACCEPTED_THE_ALLIANCE);
      activeChar.getClan().setAllyId(requestor.getAllyId());
      activeChar.getClan().updateClanInDB();
      ally.addAllyMember(activeChar.getClan(), true);
      ally.broadcastAllyStatus();
    }
    finally
    {
      request.done();
    }
View Full Code Here


      else if (ally.hasAllyCrest())
      {
        CrestCache.getInstance().removeAllyCrest(ally.getAllyId());
      }
      ally.setAllyCrestId(crestId);
      ally.broadcastAllyStatus();
    }
  }
}
View Full Code Here

    }
    clan.broadcastToOnlineMembers(Msg.YOU_HAVE_WITHDRAWN_FROM_THE_ALLIANCE, Msg.A_CLAN_THAT_HAS_WITHDRAWN_OR_BEEN_EXPELLED_CANNOT_ENTER_INTO_AN_ALLIANCE_WITHIN_ONE_DAY_OF_WITHDRAWAL_OR_EXPULSION);
    Alliance alliance = clan.getAlliance();
    clan.setAllyId(0);
    clan.setLeavedAlly();
    alliance.broadcastAllyStatus();
    alliance.removeAllyMember(clan.getClanId());
  }
}
View Full Code Here

        return;
      }
      clan.broadcastToOnlineMembers(new SystemMessage("Your clan has been expelled from " + alliance.getAllyName() + " alliance."), new SystemMessage(SystemMessage.A_CLAN_THAT_HAS_WITHDRAWN_OR_BEEN_EXPELLED_CANNOT_ENTER_INTO_AN_ALLIANCE_WITHIN_ONE_DAY_OF_WITHDRAWAL_OR_EXPULSION));
      clan.setAllyId(0);
      clan.setLeavedAlly();
      alliance.broadcastAllyStatus();
      alliance.removeAllyMember(clan.getClanId());
      alliance.setExpelledMember();
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustAlly.ClanDismissed", activeChar).addString(clan.getName()).addString(alliance.getAllyName()));
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.