Jump to content

Dressme Command + Vch In Bypass


Recommended Posts

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 1 month later...

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

 

Link to comment
Share on other sites

  • 6 months later...

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;
}

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 1 year later...

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
Link to comment
Share on other sites

  • 3 months later...

Is this code fully updated and redesigned to the GoD structure ?

What else? Updated to the head rev maybe..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Hello if anyone is looking for interlude server with free bot, no P2W and uniques features I can recommend freshly opened https://l2romans.com/features/, great server for chilling and having fun with friends casually. Everyone is welcomed
    • So excited to announce 3x Telegram Premium (6 months)   Join our official TG and participate to win!   Asocks.com - trusted proxy service providing mobile and residential proxies with a single price of $3 per 1GB   A huge locations pool and high speed will help complete all tasks    
    • Well, sorry not sorry for resurrecting old topic, but I believe it's ultimately stupid to implement license checks like Vilmis did 🙂   private static String url = "jdbc:mysql://185.80.128.233/" + getData("Zm9ydW1fZGI="); private static String username = getData("bXJjb3B5cmlnaHQ="); private static String password = getData("Y29weXJpZ2h0XzEyMw=="); con = GlobalDB.getInstance().getConnection(); PreparedStatement statement; statement = con.prepareStatement("SELECT field_6 from core_pfields_content WHERE member_id = ?"); statement.setInt(1, Config.FORUM_USER_ID); ResultSet rset = statement.executeQuery();   This awesome way of coding things leaves us with base64-encoded credentials and DB exposed and accessible globally 😉 Btw he checks his licensing data from some plugin generated table his forum uses. Vilmis took action and ensured that mrcopyright user would have only needed accesses and rights for this operation. But he forgot to ensure that his INFORMATION_SCHEMA database would not be exposed and readable... That leads us to fully readable server variables like version used (10.1.26-MariaDB-0+deb9u1 - pretty ancient DB and OS, I'd assume). From here you can go south and do some kinky stuff, if you want and have knowledge for that. But who cares, right?   Ooh, table core_pfields_content field_6 is IP address which is checked by FORUM_USER_ID. Yep, you can query all IP addresses there (124 of them right now) and also do whatever you want with them! 🙂  The most fun part? Files source has been shared what, more than 2 years ago?  Vilmis still uses very same credentials and never changed it after sources exposure - who cares. Although, "sources" may be way too strong word here. If anyone still use paid Orion versions, I'd suggest packing your shit and leaving immediately, or at least fix this incompetent fool caused problems. It's obvious Vilmis don't care or maybe doesn't even know from the first place how to solve this problem (hint hint - tiny PHP Rest API microservice which would do absolutely the same but without exposing sensitive data?). By doing that, he exposes his infrastructure and YOUR data, and he does that for more than 2 years now 🙂 Developer of century!    
    • rename the l2.bin into l2.exe
  • Topics

×
×
  • Create New...