Jump to content
  • 0

[Request]Java Code


Question

6 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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?

  • 0
Posted

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

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

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

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

 

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

  • 0
Posted

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

 

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

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

 

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

Guest
This topic is now closed to further replies.


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