Jump to content

Question

Posted

Καλημερα, εχω ενα προβλημα με εναν κωδικα που εχω περασει στο 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();
					}

Recommended Posts

  • 0
Posted

σε αυτήν την γραμμή,

 

player.broadcastPacket(new InventoryUpdate());

 

σου βγάζει κανένα error? αν όχι, βρες έναν κώδικα που έχει το ίδιο πράγμα να δεις πως δουλεύει.

  • 0
Posted

σε αυτήν την γραμμή,

 

player.broadcastPacket(new InventoryUpdate());

 

σου βγάζει κανένα error? αν όχι, βρες έναν κώδικα που έχει το ίδιο πράγμα να δεις πως δουλεύει.

απάντα σε αυτή την ερώτηση.
  • 0
Posted

οχι δεν μου βγαζει error

Κάνε δεξί κλικ το " player.broadcastPacket(new InventoryUpdate()); " και αντικατέστησέ το όπως θα σου εμφανίσει.

Παίρνεις έρρορ στο eclipse, απλά στο Frozen δεν στο δείχνει.

  • 0
Posted

Κάνε δεξί κλικ το " player.broadcastPacket(new InventoryUpdate()); " και αντικατέστησέ το όπως θα σου εμφανίσει.

Παίρνεις έρρορ στο eclipse, απλά στο Frozen δεν στο δείχνει.

 

akiro telios auto p les , bump

Guest
This topic is now closed to further replies.


  • Posts

    • ⚔️ Balance or Power? The community decides!   During spot hunting and battles, the Destroyer (under limits) can wipe out dozens of mobs in seconds, outperforming other classes. A player on Destroyer (with three windows) can monopolize top farming spots solo, while most other classes require additional characters to compete. Result: Resources end up concentrated in the hands of a single player rather than being distributed among multiple participants.   We propose discussing possible changes: Reducing the number of targets the Destroyer can hit under limits. Balancing vampirism by implementing progressive efficiency reduction based on the number of enemies attacked. These changes would preserve the class identity while making PvE more fair for everyone.   🎯 What do you think?
    • Newcomers always raise suspicion. At first, people look at the newcomer cautiously. “Who is this? Where did they come from? Are they here to stay?” That’s just how it is trust isn’t given right away. It’s the same with services, especially when it comes to your accounts, money, and verifications. But the truth is, every major player was once that “newbie” entering the chat. VibeSMS we’re new on the forum, but definitely not new to the game: — Fast and stable SMS verification — Numbers from 68+ countries — Rentals for PayPal, Telegram, Amazon, and dozens of other services — Prices starting at $0.1 per activation or $5–8/month for rental We don’t promise mountains from the sky. We simply make sure the code arrives quickly, and you get what you paid for. No extra words or surprises. Because in the world of SMS verifications, it’s not magic that counts, but reliability consistent speed, transparent pricing, and a service you can depend on every day.
    • sell adena l2rebon signature x1 - 1kk = 1.4 dollars l2reborn x10 - 500kk = 7 dollars E-Global x Lu4 - 1kk = 4 dollars DISCORD - GODDARDSHOP TELEGRAM - MMOPROMO
    • Locked. Not following the rules.
    • Put prices on your first post. Read the rules.
  • Topics

×
×
  • Create New...

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.

I've Disabled AdBlock