Examples of RecipeShopManageList


Examples of com.l2jfrozen.gameserver.network.serverpackets.RecipeShopManageList

    if(player.getCreateList() == null)
    {
      player.setCreateList(new L2ManufactureList());
    }

    player.sendPacket(new RecipeShopManageList(player, true));

    /*int privatetype=player.getPrivateStoreType();
    if (privatetype == 0)
    {
      if (player.getWaitType() !=1)
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.RecipeShopManageList

        if (activeChar.getCreateList() == null)
        {
          activeChar.setCreateList(new L2ManufactureList());
        }
       
        activeChar.sendPacket(new RecipeShopManageList(activeChar, true));
        break;
      case 39: // Soulless - Parasite Burst
        useSkill(4138);
        break;
      case 41: // Wild Hog Cannon - Attack
        useSkill(4230);
        break;
      case 42: // Kai the Cat - Self Damage Shield
        useSkill(4378, activeChar);
        break;
      case 43: // Unicorn Merrow - Hydro Screw
        useSkill(4137);
        break;
      case 44: // Big Boom - Boom Attack
        useSkill(4139);
        break;
      case 45: // Unicorn Boxer - Master Recharge
        useSkill(4025, activeChar);
        break;
      case 46: // Mew the Cat - Mega Storm Strike
        useSkill(4261);
        break;
      case 47: // Silhouette - Steal Blood
        useSkill(4260);
        break;
      case 48: // Mechanic Golem - Mech. Cannon
        useSkill(4068);
        break;
      case 51:
       
        // Player shouldn't be able to set stores if he/she is alike dead (dead or fake death)
        if (activeChar.isAlikeDead())
        {
          getClient().sendPacket(ActionFailed.STATIC_PACKET);
          return;
        }
       
        // Like L2OFF - You can't open Manufacture when you are in private store
        if (activeChar.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_BUY || activeChar.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_SELL)
        {
          getClient().sendPacket(ActionFailed.STATIC_PACKET);
          return;
        }
       
        // Like L2OFF - You can't open Manufacture when you are sitting
        if (activeChar.isSitting() && activeChar.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_MANUFACTURE)
        {
          getClient().sendPacket(ActionFailed.STATIC_PACKET);
          return;
        }
       
        // You can't open Manufacture when the task is launched
        if(activeChar.isSittingTaskLaunched())
        {
          sendPacket(ActionFailed.STATIC_PACKET);
          return;
        }
       
        if (activeChar.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_MANUFACTURE)
        {
          activeChar.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
         
          if (activeChar.isSitting())
            activeChar.standUp();
        }
       
        if (activeChar.getCreateList() == null)
        {
          activeChar.setCreateList(new L2ManufactureList());
        }
       
        activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
        break;
      case 52: // unsummon
        if (pet != null && pet instanceof L2SummonInstance)
        {
          if (pet.isInCombat() || activeChar.isInCombat())
View Full Code Here

Examples of l2p.gameserver.serverpackets.RecipeShopManageList

        if(!activeChar.checksForShop(true))
        {
          activeChar.sendActionFailed();
          return;
        }
        activeChar.sendPacket(new RecipeShopManageList(activeChar, true));
        break;
      }
      case 51: // Создание магазина Dwarven Craft
      {
        if(!activeChar.checksForShop(true))
        {
          activeChar.sendActionFailed();
          return;
        }
        if(activeChar.getCreateList() == null)
        {
          activeChar.setCreateList(new L2ManufactureList());
        }
        activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_NONE);
        activeChar.standUp();
        activeChar.broadcastUserInfo(true);
        activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
        break;
      }
      case 96: // Quit Party Command Channel?
        _log.info("96 Accessed");
        break;
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.RecipeShopManageList

            else if (!TradeHelper.checksIfCanOpenStore(activeChar, Player.STORE_PRIVATE_MANUFACTURE))
            {
              activeChar.sendActionFailed();
              return;
            }
            activeChar.sendPacket(new RecipeShopManageList(activeChar, true));
            break;
          }
          case 38:
            if (activeChar.getTransformation() != 0)
            {
              activeChar.sendPacket(SystemMsg.YOU_CANNOT_BOARD_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isMounted())
            {
              if (activeChar.isFlying() && !activeChar.checkLandingState())
              {
                activeChar.sendPacket(Msg.YOU_ARE_NOT_ALLOWED_TO_DISMOUNT_AT_THIS_LOCATION, ActionFail.STATIC);
                activeChar.sendActionFailed();
                return;
              }
              activeChar.setMount(0, 0, 0);
            }
            else if (activeChar.isMounted() || activeChar.isInBoat())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isDead())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isInDuel())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isFishing())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isSitting())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isCursedWeaponEquipped())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.getActiveWeaponFlagAttachment() != null)
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isCastingNow())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (activeChar.isParalyzed())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if ((pet == null) || activeChar.isInCombat() || pet.isInCombat())
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_MOUNT_BECAUSE_YOU_DO_NOT_MEET_THE_REQUIREMENTS);
            }
            else if (pet.isDead())
            {
              activeChar.sendPacket(Msg.A_DEAD_PET_CANNOT_BE_RIDDEN);
            }
            else if ((pet != null) && pet.isMountable())
            {
              activeChar.getEffectList().stopEffect(Skill.SKILL_EVENT_TIMER);
              activeChar.setMount(pet.getTemplate().npcId, pet.getObjectId(), pet.getLevel());
              activeChar.getSummonList().unsummonPet(false);
            }
            break;
          case 37:
          {
            if (activeChar.getSittingTask())
            {
              activeChar.sendActionFailed();
              return;
            }
            if (activeChar.isInStoreMode())
            {
              activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
              activeChar.standUp();
              activeChar.broadcastCharInfo();
            }
            else if (!TradeHelper.checksIfCanOpenStore(activeChar, Player.STORE_PRIVATE_MANUFACTURE))
            {
              activeChar.sendActionFailed();
              return;
            }
            activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
            break;
          }
          case 67:
            if (activeChar.isInBoat() && activeChar.getBoat().isClanAirShip() && !activeChar.getBoat().isMoving)
            {
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.RecipeShopManageList

        if (player.getCreateList() == null)
        {
            player.setCreateList(new L2ManufactureList());
        }

    player.sendPacket(new RecipeShopManageList(player, true));

    /*
    int privatetype=player.getPrivateStoreType();
    if (privatetype == 0)
    {
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.RecipeShopManageList

      if (activeChar.getCreateList() == null)
      {
        activeChar.setCreateList(new L2ManufactureList());
      }

      activeChar.sendPacket(new RecipeShopManageList(activeChar, true));
      break;
    case 39: // Soulless - Parasite Burst
    useSkill(4138);
    break;
    case 41: // Wild Hog Cannon - Attack
    useSkill(4230);
    break;
    case 42: // Kai the Cat - Self Damage Shield
    useSkill(4378, activeChar);
    break;
    case 43: // Unicorn Merrow - Hydro Screw
      useSkill(4137);
      break;
    case 44: // Big Boom - Boom Attack
      useSkill(4139);
      break;
    case 45: // Unicorn Boxer - Master Recharge
      useSkill(4025, activeChar);
      break;
    case 46: // Mew the Cat - Mega Storm Strike
      useSkill(4261);
      break;
    case 47: // Silhouette - Steal Blood
      useSkill(4260);
      break;
    case 48: // Mechanic Golem - Mech. Cannon
      useSkill(4068);
      break;
    case 51:
      // Player shouldn't be able to set stores if he/she is alike dead (dead or fake death)
      if (activeChar.isAlikeDead())
      {
        getClient().sendPacket(new ActionFailed());
        return;
      }
      if(activeChar.getPrivateStoreType() != 0){
        activeChar.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
        activeChar.broadcastUserInfo();
          }
      if (activeChar.isSitting())
        activeChar.standUp();

      if (activeChar.getCreateList() == null)
        activeChar.setCreateList(new L2ManufactureList());

      activeChar.sendPacket(new RecipeShopManageList(activeChar, false));
      break;
    case 52: // unsummon
      if (pet != null && pet instanceof L2SummonInstance)
        pet.unSummon(activeChar);
      break;
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.