Jump to content

[WTS]Dupe items exploit fix


Recommended Posts

Source of exploit: http://maxcheaters.com/forum/index.php?topic=205271.0

 

This is the exploit, so after some waste of time with tests i managed to fix this exploit on my local server.Tested of course, and i provide you free test in one of my local servers.Also this exploit is not fixed in many interlude servers, it works in many servers . For example l2vitality.So, i decided to sell this fix, of course affordable prize.Dont forget, i provide free test.

 

Contact info:versusa@hotmail.gr   ----Pm me here with your msn because when someone adds me at msn does not appears me the window, or pm me here.

Payment info:Only 5 € via paypal, or 10 paysafe[i prefer paypal and its better for you]

 

 

Link to comment
Share on other sites

Ok gyes, here is one fix for dupe items exploit.Yes, i mean this known bug that is working at many c6 servers.I know there are many ways to fix this exploit, so if anyone of you has fixed this shit with another code, don't complain .

-----------------------------------------------------------------------------------------------------------------------------------------

Go at your source clientpackets and open Action.java .

### Eclipse Workspace Patch 1.0
#P CLEAR GS TEST
Index: java/net/sf/l2j/gameserver/clientpackets/Action.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/Action.java	(revision 4642)
+++ java/net/sf/l2j/gameserver/clientpackets/Action.java	(working copy)
@@ -22,6 +22,7 @@

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.model.L2Character;
+import net.sf.l2j.gameserver.model.L2ItemInstance;
import net.sf.l2j.gameserver.model.L2Object;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
@@ -56,7 +57,8 @@
		_originZ   = readD();
		_actionId  = readC();   // Action identifier : 0-Simple click, 1-Shift click
	}
-
+     
+	@SuppressWarnings("unused")
	@Override
	protected void runImpl()
	{
@@ -86,11 +88,29 @@
		}

		// Check if the target is valid, if the player haven't a shop or isn't the requester of a transaction (ex : FriendInvite, JoinAlly, JoinParty...)
-		if (activeChar.getPrivateStoreType()==0 && activeChar.getActiveRequester()==null)
+		if (activeChar.getActiveTradeList() != null && ! ( obj == activeChar ))
		{
			switch (_actionId)
			{
				case 0:
+					if(obj instanceof L2ItemInstance)
+					{
+						L2ItemInstance action = (L2ItemInstance)obj;
+						
+						if(action != null)
+						{
+							for(L2ItemInstance actionitem : activeChar.getInventory().getAvailableItems(false))
+							{
+								if(actionitem.getObjectId() != 0 && actionitem == null)
+								{
+									getClient().sendPacket(new ActionFailed());
+									return;
+								}
+							}
+						}
+				
+					}
+					else
					obj.onAction(activeChar);
					break;
				case 1:

 

Open your phx, login try the exploit oO , doesnot work. I Would please to no one hide it for less posts.

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.



×
×
  • Create New...