Examples of CrestCache


Examples of com.l2jfrozen.gameserver.cache.CrestCache

      {
        activeChar.sendMessage("Only a clan that owns a clan hall or a castle can get their emblem displayed on clan related items"); //there is a system message for that but didnt found the id
        return;
      }

      CrestCache crestCache = CrestCache.getInstance();

      int newId = IdFactory.getInstance().getNextId();

      if(!crestCache.savePledgeCrestLarge(newId, _data))
      {
        _log.log(Level.INFO, "Error loading large crest of clan:" + clan.getName());
        return;
      }

      if(clan.hasCrestLarge())
      {
        crestCache.removePledgeCrestLarge(clan.getCrestLargeId());
      }

      Connection con = null;

      try
View Full Code Here

Examples of com.l2jfrozen.gameserver.cache.CrestCache

      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.CLAN_LVL_3_NEEDED_TO_SET_CREST));
        return;
      }

      CrestCache crestCache = CrestCache.getInstance();

      int newId = IdFactory.getInstance().getNextId();

      if(clan.hasCrest())
      {
        crestCache.removePledgeCrest(newId);
      }

      if(!crestCache.savePledgeCrest(newId, _data))
      {
        _log.log(Level.INFO, "Error loading crest of clan:" + clan.getName());
        return;
      }
View Full Code Here

Examples of com.l2jfrozen.gameserver.cache.CrestCache

      L2Clan leaderclan = ClanTable.getInstance().getClan(activeChar.getAllyId());

      if(activeChar.getClanId() != leaderclan.getClanId() || !activeChar.isClanLeader())
        return;

      CrestCache crestCache = CrestCache.getInstance();

      int newId = IdFactory.getInstance().getNextId();

      if(!crestCache.saveAllyCrest(newId, _data))
      {
        _log.log(Level.INFO, "Error loading crest of ally:" + leaderclan.getAllyName());
        return;
      }

      if(leaderclan.getAllyCrestId() != 0)
      {
        crestCache.removeAllyCrest(leaderclan.getAllyCrestId());
      }

      Connection con = null;

      try
View Full Code Here

Examples of net.sf.l2j.gameserver.cache.CrestCache

      {
        activeChar.sendMessage("Only a clan that owns a clan hall or a castle can get their emblem displayed on clan related items"); //there is a system message for that but didnt found the id
        return;
      }

      CrestCache crestCache = CrestCache.getInstance();

      int newId = IdFactory.getInstance().getNextId();

            if (!crestCache.savePledgeCrestLarge(newId,_data))
            {
                _log.log(Level.INFO, "Error loading large crest of clan:" + clan.getName());
                return;
            }

            if (clan.hasCrestLarge())
            {
                crestCache.removePledgeCrestLarge(clan.getCrestLargeId());
            }

            java.sql.Connection con = null;

            try
View Full Code Here

Examples of net.sf.l2j.gameserver.cache.CrestCache

      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.CLAN_LVL_3_NEEDED_TO_SET_CREST));
        return;
      }

            CrestCache crestCache = CrestCache.getInstance();

            int newId = IdFactory.getInstance().getNextId();

            if(clan.hasCrest())
            {
              crestCache.removePledgeCrest(newId);
            }

            if (!crestCache.savePledgeCrest(newId,_data))
            {
                _log.log(Level.INFO, "Error loading crest of clan:" + clan.getName());
                return;
            }
View Full Code Here

Examples of net.sf.l2j.gameserver.cache.CrestCache

            if (activeChar.getClanId() != leaderclan.getClanId() || !activeChar.isClanLeader())
            {
                return;
            }

            CrestCache crestCache = CrestCache.getInstance();

            int newId = IdFactory.getInstance().getNextId();

            if (!crestCache.saveAllyCrest(newId,_data))
            {
                _log.log(Level.INFO, "Error loading crest of ally:" + leaderclan.getAllyName());
                return;
            }

            if (leaderclan.getAllyCrestId() != 0)
            {
                crestCache.removeAllyCrest(leaderclan.getAllyCrestId());
            }

            java.sql.Connection con = null;

            try
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.