Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.broadcastPacket()


    }
    if(activeChar.isInVehicle() && activeChar.getVehicle().getObjectId() == _boatid)
    {
      activeChar.setInVehiclePosition(_loc);
      activeChar.setHeading(_loc.h);
      activeChar.broadcastPacket(new StopMoveToLocationInVehicle(activeChar, _boatid));
    }
  }
}
View Full Code Here


      Log.LogItem(activeChar, Log.EnchantItem, itemToEnchant);
      activeChar.sendPacket(EnchantResult.SUCESS);
      if(Config.EnableFireworksEnhant && itemToEnchant.getEnchantLevel() >= (itemType == L2Item.TYPE2_WEAPON ? Config.FireworksEnhantWeapon : Config.FireworksEnhantArmor))
      {
        activeChar.altUseSkill(SkillTable.getInstance().getInfo(21006, 1), activeChar);
        activeChar.broadcastPacket(new SystemMessage(SystemMessage.C1_HAS_SUCCESSFULY_ENCHANTED_A__S2_S3).addName(activeChar).addNumber(itemToEnchant.getEnchantLevel()).addItemName(itemToEnchant.getItemId()));
      }
    }
    else
    {
      Log.add(activeChar.getName() + "|Failed to enchant|" + itemToEnchant.getItemId() + "|+" + itemToEnchant.getEnchantLevel() + "|" + chance, "enchants");
View Full Code Here

    }
    createList.setStoreName(activeChar.getCreateList().getStoreName());
    activeChar.setCreateList(createList);
    activeChar.setPrivateStoreType(L2Player.STORE_PRIVATE_MANUFACTURE);
    activeChar.broadcastUserInfo(true);
    activeChar.broadcastPacket(new RecipeShopMsg(activeChar));
    activeChar.sitDown();
  }
}
View Full Code Here

        {
          for(int doorId : DOORS)
          {
            ReflectionTable.getInstance().get(r.getId()).openDoor(doorId);
          }
          player.broadcastPacket(new ExShowScreenMessage("", 4000, ScreenMessageAlign.TOP_CENTER, true, 0, 3033, false));
          player.sendPacket(new SystemMessage(3033));
          player.sendPacket(new SystemMessage(3037));
          player.sendPacket(new SystemMessage(3038));
          return "32578-yes.htm";
        }
View Full Code Here

    }
    activeChar.stopMove();
    activeChar.setVehicle(boat);
    activeChar.setInVehiclePosition(loc);
    activeChar.setLoc(boat.getLoc());
    activeChar.broadcastPacket(new ExGetOnAirShip(activeChar, boat, loc));
  }
}
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    activeChar.broadcastPacket(new FinishRotating(activeChar, _degree, 0));
  }
}
View Full Code Here

    }
    else if(event.equalsIgnoreCase("32586-06.htm"))
    {
      st.setCond(4);
      st.playSound(SOUND_MIDDLE);
      player.broadcastPacket(new ExShowScreenMessage("", 4000, ScreenMessageAlign.TOP_CENTER, true, 0, 3031, false));
      player.sendPacket(By_using_the_skill_of_Einhasads_holy_sword);
      player.sendPacket(By_using_the_holy_water_of_Einhasad);
      st.giveItems(ElmoredenHolyWater, 1);
      st.giveItems(SacredSwordofEinhasad, 1);
    }
View Full Code Here

        {
          return "32586-06a.htm";
        }
        else
        {
          player.broadcastPacket(new ExShowScreenMessage("", 4000, ScreenMessageAlign.TOP_CENTER, true, 0, 3031, false));
          player.sendPacket(By_using_the_skill_of_Einhasads_holy_sword);
          st.giveItems(SacredSwordofEinhasad, 1);
          return "32586-06b.htm";
        }
      }
View Full Code Here

        activeChar.sendPacket(Msg.YOU_CANNOT_DO_ANYTHING_ELSE_WHILE_FISHING);
        return;
      }
     
      if(Config.ALT_SOCIAL_ACTION_REUSE && FloodProtector.tryPerformAction(activeChar, FloodProtector.Action.DO_SOCIAL))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
      else if (!Config.ALT_SOCIAL_ACTION_REUSE)
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
     
      return;
    }
View Full Code Here

      }
     
      if(Config.ALT_SOCIAL_ACTION_REUSE && FloodProtector.tryPerformAction(activeChar, FloodProtector.Action.DO_SOCIAL))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
      else if (!Config.ALT_SOCIAL_ACTION_REUSE)
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), action.value));
     
      return;
    }
    final L2Object target = activeChar.getTarget();
    final L2Summon pet = activeChar.getPet();
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.