Jump to content

xbarel

Members
  • Content Count

    14
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

1 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. Πως μπορώ να βάλω μια 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); } }
×