Jump to content
  • 0

[Request]Java Code


niraklas

Question

6 answers to this question

Recommended Posts

  • 0

psakse gia afto mesa sto L2PcInstance:

public boolean setActiveClass(int classIndex)

{

kai vale afton ton kodika:

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,
Inventory.PAPERDOLL_DHAIR, Inventory.PAPERDOLL_HAIR,
Inventory.PAPERDOLL_LEAR, Inventory.PAPERDOLL_REAR,
Inventory.PAPERDOLL_RFINGER, Inventory.PAPERDOLL_LFINGER,
Inventory.PAPERDOLL_NECK, Inventory.PAPERDOLL_UNDER
};

for (int items : armorType)
{
L2ItemInstance parmorInstance = getInventory().getPaperdollItem(items);
if (parmorInstance != null)
{
	L2ItemInstance[] unequipped = getInventory().unEquipItemInBodySlotAndRecord(parmorInstance.getItem().getBodyPart());
	InventoryUpdate iu = new InventoryUpdate();
	for (L2ItemInstance element : unequipped)
	iu.addModifiedItem(element);
	sendPacket(iu);
	}
}

P.S remove oti den xreiazesai apo afta

Link to comment
Share on other sites

  • 0

psakse gia afto mesa sto L2PcInstance:

public boolean setActiveClass(int classIndex)

{

kai vale afton ton kodika:

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,
Inventory.PAPERDOLL_DHAIR, Inventory.PAPERDOLL_HAIR,
Inventory.PAPERDOLL_LEAR, Inventory.PAPERDOLL_REAR,
Inventory.PAPERDOLL_RFINGER, Inventory.PAPERDOLL_LFINGER,
Inventory.PAPERDOLL_NECK, Inventory.PAPERDOLL_UNDER
};

for (int items : armorType)
{
L2ItemInstance parmorInstance = getInventory().getPaperdollItem(items);
if (parmorInstance != null)
{
	L2ItemInstance[] unequipped = getInventory().unEquipItemInBodySlotAndRecord(parmorInstance.getItem().getBodyPart());
	InventoryUpdate iu = new InventoryUpdate();
	for (L2ItemInstance element : unequipped)
	iu.addModifiedItem(element);
	sendPacket(iu);
	}
}

P.S remove oti den xreiazesai apo afta

 

Magkes gt exw dei pola request gia tetoio pragma? stuckari tpt?? me tis alages ton sub?

Link to comment
Share on other sites

  • 0

Magkes gt exw dei pola request gia tetoio pragma? stuckari tpt?? me tis alages ton sub?

ναι υπάρχουν 2-3 bugs και για active/passives(ls) αλλά και για τα κανονικά skills των παικτών.
Link to comment
Share on other sites

  • 0

ναι υπάρχουν 2-3 bugs και για active/passives(ls) αλλά και για τα κανονικά skills των παικτών.

Ο μόνος τρόπος όμως είναι να βάλουνε αυτό?

 

Επειδή σε αυτό δεν επιτρέπει τα active/passive, (επειδή βγαίνει weapon,armor) όμως για τα κανονικά skills ισχύει ακόμη?

Link to comment
Share on other sites

  • 0

Ο μόνος τρόπος όμως είναι να βάλουνε αυτό?

 

Επειδή σε αυτό δεν επιτρέπει τα active/passive, (επειδή βγαίνει weapon,armor) όμως για τα κανονικά skills ισχύει ακόμη?

με ένα delay  στην αλλαγή των sub(floodprotector) θα είσαι οκ.

 

δηλαδή να γίνεται να αλλάζουν sub κάθε 10-15 δευτερόλεπτα.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...