Thread: [PI] Fixing most trade dupes [PI]

Results 1 to 9 of 9
  1. #1 [PI] Fixing most trade dupes [PI] 
    Registered Member fl3x's Avatar
    Join Date
    Aug 2010
    Posts
    168
    Thanks given
    52
    Thanks received
    45
    Rep Power
    0
    Purpose: Fix trade dupes on PI base
    Difficulty: 2/10
    Assumed Knowledge: C&P and how to read
    Classes Modified: TradeAndDuel
    Tested On(if it applies): Project Insanity (My source )

    Links to already made tuts:
    Fixing alch dupe: [Only registered and activated users can see links. ]
    Fixing store dupe (cheat engine involved): [Only registered and activated users can see links. ]

    Dupe #1: Stack-able Item Dupe
    How it works: Taking two of any stackable items (morgians javs, ect) , placing one in bank, equipping the other. Then once the one is equipped you withdraw the other so one is in inv and one is equipped. Next you would put on a weapon to remove the jav from your hand. It will result in two stacks in your inventory. Trade someone and offer x then submit 2 javs from the stack that was removed from equip. Rinse and repeat for unlimited javs.

    Fix: Simple, make sure if they offer something, they actually have that quantity of it.

    Find :
    Code:
    		o.tradeConfirmed = false;
    Below it add:
    Code:
    if(amount > c.playerItemsN[fromSlot])
    			return false;
    Dupe #1 fixed
    __________________________________________________ ________

    Dupe #2: Cheat Engine trade dupe

    How it works: [Only registered and activated users can see links. ] (it is illustrated in that video, the two different ways it can be done, but is already fixed so you dont actually see items being duplicated)

    Fix:

    Above the last code snippet, add

    Code:
    		if (itemID != 995 & c.playerItems[fromSlot] == 996){
    			return false;
    		}
    Dupe #2 fixed.
    ______________________

    You can add this in there around the snippets and it will display the ids and quantities of items as read by the client and server for admins (helps for fixing dupes and understanding them).

    Code:
    if (c.playerRights >= 2)
    			c.sendMessage("id:"+itemID+"/"+c.playerItems[fromSlot]+", itemamt: "+amount+"/"+c.playerItemsN[fromSlot]);
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member kiefer's Avatar
    Join Date
    Dec 2010
    Posts
    210
    Thanks given
    1
    Thanks received
    4
    Rep Power
    0
    theres like 4 different o.tradeConfirmed = false; in tradeandduel.java do i just put it under the first one?
    Reply With Quote  
     

  4. #3  
    | The Original |
    Matt's Avatar
    Join Date
    Jul 2009
    Age
    27
    Posts
    534
    Thanks given
    129
    Thanks received
    87
    Rep Power
    33
    THANK YOU. Been looking for a thread with some fixes
    Reply With Quote  
     

  5. #4  
    Member
    Join Date
    Oct 2008
    Posts
    190
    Thanks given
    15
    Thanks received
    5
    Rep Power
    0
    [AD]gravedug[/AD]
    Reply With Quote  
     

  6. #5  
    Banned Hellobuddyhowareyou's Avatar
    Join Date
    Mar 2011
    Posts
    738
    Thanks given
    27
    Thanks received
    20
    Rep Power
    0
    yea there are 4 o.tradeConfirmed = false;
    Reply With Quote  
     

  7. #6  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    1,885
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    thanks for this added tyvm
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  8. #7  
    Registered Member fl3x's Avatar
    Join Date
    Aug 2010
    Posts
    168
    Thanks given
    52
    Thanks received
    45
    Rep Power
    0
    Quote Originally Posted by Lenin View Post
    thanks for this added tyvm
    Your welcome.
    Reply With Quote  
     

  9. #8  
    Registered Member Glenn's Avatar
    Join Date
    May 2011
    Age
    25
    Posts
    333
    Thanks given
    3
    Thanks received
    18
    Rep Power
    0
    Thanks! I've been looking for this.
    Reply With Quote  
     

  10. #9  
    Registered Member fl3x's Avatar
    Join Date
    Aug 2010
    Posts
    168
    Thanks given
    52
    Thanks received
    45
    Rep Power
    0
    Quote Originally Posted by Hydrolyza View Post
    Thanks! I've been looking for this.
    Again; Your welcome, sir. Glad I could give a little back to this community.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Fixing Rollback Item Dupes
    By Roboyto in forum Snippets
    Replies: 16
    Last Post: 03-15-2013, 10:04 PM
  2. [PI] Fixing all item packets dupes
    By Dexter Morgan in forum Snippets
    Replies: 28
    Last Post: 02-17-2012, 08:28 PM
  3. Replies: 26
    Last Post: 02-05-2011, 08:47 PM
  4. Fixing up your z508 item command (dupes etc.)
    By Cubsmiles in forum Configuration
    Replies: 7
    Last Post: 10-02-2009, 01:37 AM
  5. Fixing dupes o.O Need ways
    By Aftee in forum RS2 Server
    Replies: 7
    Last Post: 07-18-2008, 10:23 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •