Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()


         */
        else if (itemId == 6407) // large_firework, xml: 2025
        {
            MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2025, 1, 1, 0);
            activeChar.sendPacket(MSU);
            activeChar.broadcastPacket(MSU);
            useFw(activeChar, 2025, 1);
            playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
        }
    }
    public void useFw(L2PcInstance activeChar, int magicId,int level)
View Full Code Here


            // send packets
            InventoryUpdate iu = new InventoryUpdate();
            iu.addModifiedItem(itemInstance);
            player.sendPacket(iu);
            player.broadcastPacket(new CharInfo(player));
            player.sendPacket(new UserInfo(player));

            // informations
            activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s "
                + itemInstance.getItem().getName() + " from " + curEnchant + " to " + ench + ".");
View Full Code Here

      int itemId = item.getItemId();

      if (itemId == 5555) // Token of Love
      {
        ShowXMasSeal SXS = new ShowXMasSeal(5555);
      activeChar.broadcastPacket(SXS);
    }
  }

  /**
   * @see net.sf.l2j.gameserver.handler.IItemHandler#getItemIds()
View Full Code Here

    //item.getItem().getEffects(item, activeChar);

    // Use a summon skill effect for fun ;)
    MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2103, 1, 0, 0);
    activeChar.sendPacket(MSU);
    activeChar.broadcastPacket(MSU);

    activeChar.startAbnormalEffect(BIGHEAD_EFFECT);
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);

    SystemMessage sm = new SystemMessage(SystemMessageId.USE_S1);
View Full Code Here

          break;
        }
      }
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2042, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
      else if (itemId == 1832) // advanced antidote
    {
      L2Effect[] effects = activeChar.getAllEffects();
View Full Code Here

          break;
        }
      }
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2043, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if (itemId == 1833) // bandage
    {
      L2Effect[] effects = activeChar.getAllEffects();
View Full Code Here

          break;
        }
      }
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 34, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
    else if (itemId == 1834) // emergency dressing
    {
      L2Effect[] effects = activeChar.getAllEffects();
View Full Code Here

          break;
        }
      }
      MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2045, 1, 0, 0);
      activeChar.sendPacket(MSU);
      activeChar.broadcastPacket(MSU);
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
        else if (itemId == 3889) // potion of recovery
        {
            L2Effect[] effects = activeChar.getAllEffects();
View Full Code Here

            }
            activeChar.setIsImobilised(false);
            if (activeChar.getFirstEffect(L2Effect.EffectType.ROOT) == null) activeChar.stopRooting(null);
            MagicSkillUser MSU = new MagicSkillUser(playable, playable, 2042, 1, 0, 0);
            activeChar.sendPacket(MSU);
            activeChar.broadcastPacket(MSU);
            playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
       }
  }
  @Override
  public int[] getItemIds()
View Full Code Here

      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_MANUFACTURE);
      player.sitDown();
      player.broadcastUserInfo();
      player.sendPacket(new RecipeShopMsg(player));
      player.broadcastPacket(new RecipeShopMsg(player));
    }
  }


  @Override
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.