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

    • [CENTER][B][SIZE=6]🔥 Developer Updates[/SIZE][/B][/CENTER] [CENTER][I]Current list of implemented systems, improvements, and new features[/I][/CENTER] [HR][/HR] [B][SIZE=5]✅ Current Updates[/SIZE][/B] [LIST] [*]Rework of [B]Commission Trade / Auction House[/B] [*]Update: [B]Class System & Subclass Manager[/B] [*]Update: [B]Community Board (.menu) + Settings[/B] [*][B]Donate Hero[/B] (NPC + Alt+B) [/LIST] [HR][/HR] [B][SIZE=5]⚙️ Implemented Systems[/SIZE][/B] [LIST] [*][B]Custom Potion Settings[/B] [*][B]Buff and Debuff Duration Configuration[/B] [*][B]Player Cabinet[/B] [*][B]Epic Boss Status[/B] [*][B]Server Statistics[/B] [*][B]Gatekeeper System[/B] [*][B]Merchant System[/B] [*][B]Donate Manager[/B] [*][B]NPC + Community Buffer[/B] [*][B]Auto Potion System (.acp)[/B] [*][B]Player Cabinet[/B] (Community Board) [*][B]Configuration Translation[/B] [/LIST] [HR][/HR] [CENTER][B]📌 Follow this topic — the update list will continue to grow.[/B][/CENTER]  
    • [CENTER][B][SIZE=6]🔥 Developer Updates[/SIZE][/B][/CENTER] [CENTER][I]Current list of implemented systems, improvements, and new features[/I][/CENTER] [HR][/HR] [B][SIZE=5]✅ Current Updates[/SIZE][/B] [LIST] [*]Rework of [B]Commission Trade / Auction House[/B] [*]Update: [B]Class System & Subclass Manager[/B] [*]Update: [B]Community Board (.menu) + Settings[/B] [*][B]Donate Hero[/B] (NPC + Alt+B) [/LIST] [HR][/HR] [B][SIZE=5]⚙️ Implemented Systems[/SIZE][/B] [LIST] [*][B]Custom Potion Settings[/B] [*][B]Buff and Debuff Duration Configuration[/B] [*][B]Player Cabinet[/B] [*][B]Epic Boss Status[/B] [*][B]Server Statistics[/B] [*][B]Gatekeeper System[/B] [*][B]Merchant System[/B] [*][B]Donate Manager[/B] [*][B]NPC + Community Buffer[/B] [*][B]Auto Potion System (.acp)[/B] [*][B]Player Cabinet[/B] (Community Board) [*][B]Configuration Translation[/B] [/LIST] [HR][/HR] [CENTER][B]📌 Follow this topic — the update list will continue to grow.[/B][/CENTER]
    • Look at the stupidity of what you're saying, you put a price tag on my post, you mentally ill person You do it and then you want to disguise yourself as something else. Every day you surpass yourself more. Quit the drugs, they're ruining you. Guytis 
    • you are UnknownSoldier (L2Devs) Devs is Developers,... You're a psychopath.
    • https://prnt.sc/Lw8ByMRc-HJi   His level of delusion is getting worse every day; he thinks SkyLord programs for Devs hahaha
  • Topics

×
×
  • Create New...

Important Information

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..