Jump to content

Recommended Posts

Posted

I always have the same problem. Sorry.  :'(

 

It's normal that we do not see the visual armor on our character when she is activated but that the others see her ?

  • 2 weeks later...
Posted

I get in eclipse around 40 times this error:

 

VisualArmors cannot be resolved to a variable	DressMe.java	/dist/game/data/scripts/handlers/voicedcommandhandlers	line 138	Java Problem

 

And this one only one time

 

Description	Resource	Path	Location	Type
The import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.VisualArmors cannot be resolved	DressMe.java	/L2JTitaniumDataPack/dist/game/data/scripts/handlers/voicedcommandhandlers	line 19	Java Problem

 

L2J Beta

  • 1 month later...
Posted

Can you say me where to add this code for add .dressme to my server? I have not this folder called java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

 

I am using navicat with  l2j 4418 freya... and model/actor/instance/... is not in my DB, in what place I have to add this .java file?, thanks ^^

 

  • 6 months later...
Posted

This patch has problems because you can use without any restriction armor no matter what class is.

Please add restriction armor and weapon.

Exactly.

 

When you guys try to rip someone else's share, at least make it better than the older version. I've seen like ... 3 dressme implementations so far and they are all cheap rip-offs. Spend some time add the proper ruling, restrictions and accessability.

 

Instead of all these else if else if to check the weapon, make a NxN boolean table that evaluates restrictions. ( true/false ).

 

And if you ask me, you dont really need to add three different commands. It's already confusing for most players with one command. Making three different dressing options, makes it overly complex.

 

Example:

 

public static void callRules()
{
	//Example: a Virtual sword can mount an Equipped blunt.
	weaponMapping[L2WeaponType.SWORD.ordinal()][L2WeaponType.BLUNT.ordinal()] = true;

	//Example: a Virtual blunt can mount an Equipped sword.
	weaponMapping[L2WeaponType.BLUNT.ordinal()][L2WeaponType.SWORD.ordinal()] = true;

	weaponMapping[L2WeaponType.BIGSWORD.ordinal()][L2WeaponType.BIGBLUNT.ordinal()] = true;
	weaponMapping[L2WeaponType.BIGBLUNT.ordinal()][L2WeaponType.BIGSWORD.ordinal()] = true;

	//armorMapping[L2ArmorType.SIGIL.ordinal()][L2ArmorType.SHIELD.ordinal()] = true;
	//armorMapping[L2ArmorType.SHIELD.ordinal()][L2ArmorType.SIGIL.ordinal()] = true;

	//armorMapping[L2ArmorType.HEAVY.ordinal()][L2ArmorType.LIGHT.ordinal()] = true;
	//armorMapping[L2ArmorType.HEAVY.ordinal()][L2ArmorType.MAGIC.ordinal()] = true;

	//armorMapping[L2ArmorType.LIGHT.ordinal()][L2ArmorType.HEAVY.ordinal()] = true;
	//armorMapping[L2ArmorType.LIGHT.ordinal()][L2ArmorType.MAGIC.ordinal()] = true;

	//armorMapping[L2ArmorType.MAGIC.ordinal()][L2ArmorType.LIGHT.ordinal()] = true;
	//armorMapping[L2ArmorType.MAGIC.ordinal()][L2ArmorType.HEAVY.ordinal()] = true;
}

/**
 * Checks if the weapon is the same type. If that is true then return
 * the matching virtual id. Else check the mapping tables if any
 * rule states that the two different weapon types should be matched.
 * @param virtual
 * @param equiped
 * @param matchId
 * @param noMatchId
 * @return
 */
public static int weaponMatching(L2WeaponType virtual, L2WeaponType equiped, int matchId, int noMatchId)
{
	if(virtual.ordinal() == equiped.ordinal())
		return matchId;

	if(weaponMapping[virtual.ordinal()][equiped.ordinal()] == true)
	{
		return matchId;
	}

	return noMatchId;
}

/**
 * Checks if the armor is the same type. If that is true then return
 * the matching virtual id. Else check the mapping tables if any
 * rule states that the two different armor types should be matched.
 * @param virtual
 * @param equiped
 * @param matchId
 * @param noMatchId
 * @return
 */
public static int armorMatching(L2ArmorType virtual, L2ArmorType equiped, int matchId , int noMatchId)
{
	if(virtual.ordinal() == equiped.ordinal())
		return matchId;

	if(armorMapping[virtual.ordinal()][equiped.ordinal()] == true)
		return matchId;

	return noMatchId;
}

  • 2 weeks later...
  • 4 weeks later...
  • 1 year later...
Posted (edited)

Sorry for Necro, but can someone update this?
I cannot apply patch to UserInfo and CharInfo.
The following part codes not fit:

Index: java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java
===================================================================
--- java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java   (revision 5563)
+++ java/com/l2jserver/gameserver/network/serverpackets/CharInfo.java   (working copy)
@@ -19,6 +19,7 @@
 import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;
 import com.l2jserver.gameserver.model.actor.L2Decoy;
 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.VisualArmors;
 import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
 import com.l2jserver.gameserver.model.effects.AbnormalEffect;
 import com.l2jserver.gameserver.model.itemcontainer.Inventory;
@@ -196,15 +197,15 @@
                       
                        writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_UNDER));
                        writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_HEAD));
+
+                       writeD(_activeChar.getVisualArmor(VisualArmors.RHand, false) != null ? _activeChar.getVisualArmor(VisualArmors.RHand, false).getItemId() : 0x00);
+                       writeD(_activeChar.getVisualArmor(VisualArmors.LHand, false) != null ? _activeChar.getVisualArmor(VisualArmors.LHand, false).getItemId() : 0x00);
                       
-                       writeD(_airShipHelm == 0 ? _inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_RHAND) : _airShipHelm);
-                       writeD(_airShipHelm == 0 ? _inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_LHAND) : 0);
-                      
-                       writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_GLOVES));
-                       writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_CHEST));
-                       writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_LEGS));
-                       writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_FEET));
-                       writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_CLOAK));
+                       writeD(_activeChar.getVisualArmor(VisualArmors.Gloves, false) != null ? _activeChar.getVisualArmor(VisualArmors.Gloves, false).getItemId() : 0x00);
+                       writeD(_activeChar.getVisualArmor(VisualArmors.Armor, false) != null ? _activeChar.getVisualArmor(VisualArmors.Armor, false).getItemId() : 0x00);
+                       writeD(_activeChar.getVisualArmor(VisualArmors.Legs, false) != null ? _activeChar.getVisualArmor(VisualArmors.Legs, false).getItemId() : 0x00);
+                       writeD(_activeChar.getVisualArmor(VisualArmors.Feet, false) != null ? _activeChar.getVisualArmor(VisualArmors.Feet, false).getItemId() : 0x00);
+                       writeD(_activeChar.getVisualArmor(VisualArmors.Cloak, false) != null ? _activeChar.getVisualArmor(VisualArmors.Cloak, false).getItemId() : 0x00);
                        writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_RHAND));
                        writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_HAIR));
                        writeD(_inv.getPaperdollItemDisplayId(Inventory.PAPERDOLL_HAIR2));
Index: java/com/l2jserver/gameserver/network/serverpackets/UserInfo.java
===================================================================
--- java/com/l2jserver/gameserver/network/serverpackets/UserInfo.java   (revision 5563)
+++ java/com/l2jserver/gameserver/network/serverpackets/UserInfo.java   (working copy)
@@ -21,6 +21,7 @@
 import com.l2jserver.gameserver.instancemanager.TerritoryWarManager;
 import com.l2jserver.gameserver.model.Elementals;
 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.VisualArmors;
 import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
 import com.l2jserver.gameserver.model.effects.AbnormalEffect;
 import com.l2jserver.gameserver.model.itemcontainer.Inventory;
@@ -143,15 +144,15 @@
                writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_LFINGER));
                writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_HEAD));
               
-               writeD(_airShipHelm == 0 ? _activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_RHAND) : 0);
-               writeD(_airShipHelm == 0 ? _activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_LHAND) : 0);
+               writeD(_activeChar.getVisualArmor(VisualArmors.RHand, false) != null ? _activeChar.getVisualArmor(VisualArmors.RHand, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.LHand, false) != null ? _activeChar.getVisualArmor(VisualArmors.LHand, false).getItemId() : 0x00);
               
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_GLOVES));
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_CHEST));
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_LEGS));
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_FEET));
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_CLOAK));
-               writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_RHAND));
+               writeD(_activeChar.getVisualArmor(VisualArmors.Gloves, false) != null ? _activeChar.getVisualArmor(VisualArmors.Gloves, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.Armor, false) != null ? _activeChar.getVisualArmor(VisualArmors.Armor, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.Legs, false) != null ? _activeChar.getVisualArmor(VisualArmors.Legs, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.Feet, false) != null ? _activeChar.getVisualArmor(VisualArmors.Feet, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.Cloak, false) != null ? _activeChar.getVisualArmor(VisualArmors.Cloak, false).getItemId() : 0x00);
+               writeD(_activeChar.getVisualArmor(VisualArmors.RHand, false) != null ? _activeChar.getVisualArmor(VisualArmors.RHand, false).getItemId() : 0x00);
                writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_HAIR));
                writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_HAIR2));
                writeD(_activeChar.getInventory().getPaperdollItemDisplayId(Inventory.PAPERDOLL_RBRACELET)); 

It seems those two files are very different from what they were back when this was posted.

Edited by AntV
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Nice server, bro — 0 online and no crash. 🙂 You keep bragging that it’s online and has people, but in reality there’s nobody there. 😄
    • Wooowww!! Thank you so much bruv!! Really useful!! Thank you for smart solution, work and sharing!!
    • Generate your own. There are tools. 
    • Server Athena x45 C4 is running online since 11 January 2026 without wipe.
    • L2SPIRIT OF LORENA x3 INTERLUDE Discord: Discord SPIRIT OF LORENA < WEBSITE: L2 Spirit of Lorena x3 Interlude WEBSITE: L2-LORENA Network x30 x1200 x5000 PvP GRAND OPENING – 12 JUNE 2026 19:00 UTC+2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LONG TERM PROJECT NO WIPE CLASSIC INTERLUDE OLD SCHOOL COMMUNITY REAL PROGRESSION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ WHY L2SPIRIT OF LORENA? Are you tired of servers that die after a few weeks? L2Spirit of LORENA was created for players who miss the true Interlude feeling: Clan Wars Castle Sieges Epic Bosses Party Farming Real Economy Long Term Progression No shortcuts. No instant endgame. No seasonal wipes. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SERVER INFORMATION 🛡 Chronicle: Interlude Type: Classic Low Rate Server: Long Term International Community ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ RATES EXP/SP x3 Adena x3 Drop x3 Spoil x3 Raid Boss x3 Seal Stones x3 Quest x3 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ DYNAMIC EXP SYSTEM 1-20 = x3.0 20-40 = x2.7 40-52 = x2.4 52-61 = x2.1 61-70 = x1.8 70-76 = x1.5 76-77 = x1.2 77-78 = x1.1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FEATURES Auto Learn Skills Auto Farm Available 2 Windows Maximum Retail Olympiad Epic Bosses Daily Events Stable Dedicated Server Active Administration ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ WHAT MAKES US DIFFERENT? No Wipe Policy Stable Economy Competitive Olympiad Clan Focused Gameplay Retail Feeling Friendly Community ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ THE JOURNEY MATTERS Every level. Every raid. Every item. Every victory. This is the Interlude experience you remember. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SERVER STATUS TOP L2JBRASIL:Top L2JBrasil de Servidores de Lineage2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OPENING DAY 12 June 2026 19:00 UTC+2 Prepare your clan. Prepare for war. The adventure begins. SEE YOU IN SPIRIT OF LORENA!
  • 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..