This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
Devilfenix
Καλημερα, εχω ενα προβλημα με εναν κωδικα που εχω περασει στο Eclipse , εχω βαλει οταν κανει sub ο παιχτης να του βγαινουν armor,weapon αλλα το προβλημα ειναι οτι δεν κανει update το inventory...
Οριστε ο κωδικας :
if(allowAddition) { String className = CharTemplateTable.getClassNameById(paramOne); if(!player.addSubClass(paramOne, player.getTotalSubClasses() + 1)) { player.sendMessage("The sub class could not be added."); player.setLocked(false); return; } int[] armorType = { Inventory.PAPERDOLL_RHAND, Inventory.PAPERDOLL_LHAND, Inventory.PAPERDOLL_LRHAND, Inventory.PAPERDOLL_LRHAND, Inventory.PAPERDOLL_CHEST, Inventory.PAPERDOLL_HEAD, Inventory.PAPERDOLL_LEGS, Inventory.PAPERDOLL_GLOVES, Inventory.PAPERDOLL_FEET, Inventory.PAPERDOLL_BACK}; for (int items : armorType) { L2ItemInstance parmorInstance = player.getInventory().getPaperdollItem(items); if (parmorInstance != null) player.getInventory().unEquipItemInSlot(items); } player.broadcastPacket(new InventoryUpdate()); player.setActiveClass(player.getTotalSubClasses()); if(Config.CHECK_SKILLS_ON_ENTER && !Config.ALT_GAME_SKILL_LEARN) { player.checkAllowedSkills(); }25 answers to this question
Recommended Posts