Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendPacket()


        }
        break;
      case HERMUNKUS_ID:
        if (event.equalsIgnoreCase("accept_scroll"))
        {
          player.sendPacket(new ExShowScreenMessage(NpcString.YOU_MAY_USE_SCROLL_OF_AFTERLIFE_FROM_HERMUNCUS_TO_AWAKEN, 10000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, ExShowScreenMessage.STRING_TYPE, 0, false, 0));
          st.playSound(SOUND_FINISH);
          st.giveItems(SCROLL_OF_AFTERLIFE, 1);
          st.exitCurrentQuest(false);
          htmltext = "2-3.htm";
        }
View Full Code Here


    if (equipped)
    {
      activeChar.getInventory().equipItem(_item);
      activeChar.getInventory().isRefresh = false;
    }
    activeChar.sendPacket(new InventoryUpdate().addModifiedItem(_item));
    activeChar.sendPacket(new ExChangeAttributeOk());
  }
}
View Full Code Here

    {
      activeChar.getInventory().equipItem(_item);
      activeChar.getInventory().isRefresh = false;
    }
    activeChar.sendPacket(new InventoryUpdate().addModifiedItem(_item));
    activeChar.sendPacket(new ExChangeAttributeOk());
  }
}
View Full Code Here

      packets.add(new SystemMessage(SystemMessage.CLAN_LEVEL_S1).addNumber(clans[i].getLevel()));
      packets.add(new SystemMessage(SystemMessage.CONNECTION_S1_TOTAL_S2).addNumber(online[i + 1]).addNumber(count[i + 1]));
      packets.add(Msg.__DASHES__);
    }
    packets.add(Msg.__EQUALS__);
    player.sendPacket(packets);
  }
}
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    player.sendPacket(new HennaEquipList(player));
  }
}
View Full Code Here

        update = true;
      }
    }
    if (update)
    {
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
 
  /**
 
View Full Code Here

    {
      if (!player.getInventory().isRefresh)
      {
        if (!player.getOpenCloak() && (player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_BACK, null) != null))
        {
          player.sendPacket(SystemMsg.YOUR_CLOAK_HAS_BEEN_UNEQUIPPED_BECAUSE_YOUR_ARMOR_SET_IS_NO_LONGER_COMPLETE);
        }
      }
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
View Full Code Here

        if (!player.getOpenCloak() && (player.getInventory().setPaperdollItem(Inventory.PAPERDOLL_BACK, null) != null))
        {
          player.sendPacket(SystemMsg.YOUR_CLOAK_HAS_BEEN_UNEQUIPPED_BECAUSE_YOUR_ARMOR_SET_IS_NO_LONGER_COMPLETE);
        }
      }
      player.sendPacket(new SkillList(player));
      player.updateStats();
    }
  }
}
View Full Code Here

        if (temp.isOnline())
        {
          Player player = temp.getPlayer();
          if (player != null)
          {
            player.sendPacket(packet);
            if (player.getPledgeType() == _type)
            {
              addSkill(player, newSkill);
            }
          }
View Full Code Here

          if (count > 10)
          {
            pointsCount += (count % 10) * 118;
          }
          int increasedPoints = clan.incReputation(pointsCount, true, "_510_AClansReputation");
          player.sendPacket(new SystemMessage(SystemMessage.YOU_HAVE_SUCCESSFULLY_COMPLETED_A_CLAN_QUEST_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(increasedPoints));
        }
      }
    }
    return htmltext;
  }
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.