Jump to content

xbarel

Members
  • Content Count

    30
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

xbarel last won the day on April 16

xbarel had the most liked content!

Community Reputation

2 Neutral

About xbarel

  • Rank
    Vassal
  • Birthday 04/06/1983

Profile Information

  • Current Mood
    Busy
  • Gender
    Male
  • Country
    Greece
  • Location
    Larisa

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ευχαριστώ , τελικά δουλεύει με αυτό : for (Skill oldskills : player.getAllSkills()) { if ((oldskills).equals(newskill)) { player.sendMessage("::Skills Manager:: Oups, you have: " + newskill);
  2. Πως μπορώ να βάλω μια if ώστε μετά τον έλεγχο που κάνει στο inventory να κάνει και έλεγχο εάν ο player έχει αγοράσει το skill ? server h5 if (event.startsWith("regalarSkillsFighter1")) { StringTokenizer st = new StringTokenizer(event, " "); st.nextToken(); // regalarSkills try { if (player.getInventory().getItemByItemId(ITEMD_ID).getCount() < ITEM_COUNT) { player.sendMessage("You don't have enough items! I need" + " " + ITEM_COUNT +" " + ITEM_NAME + " Per Skill"); } else { player.addSkill(SKILLSFIGHTER1.get(Integer.parseInt(st.nextToken())).getSkill(), true); player.destroyItemByItemId("consume", ITEMD_ID, ITEM_COUNT, player, true); player.broadcastStatusUpdate(); player.broadcastUserInfo(); player.sendPacket(new UserInfo(player)); player.sendPacket(new ExBrExtraUserInfo(player)); player.sendMessage("Page1: You have learned a new Fighter skill!"); return GenerateHtmlRegalosFighter1(player); } }
×