Thread: [PI] Fixing another Client Exploit - Wear Item Alche Glitch

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 [PI] Fixing another Client Exploit - Wear Item Alche Glitch 
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    30
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Discord
    View profile
    Rep Power
    117
    .::The Exploit::.
    So it came to my attention that in many PI sources, players can have a client send a false Low/High Alche packet to the server, and still receive the coins without actually having the item.
    And in another case, players can right click the item they wish to wear, use the clients quick keys to switch to the magic tab(while the item menu is still up), wear the item and quickly alche it at the same time. This would then let the person wear AND alche the item .

    Both the wearItem and Magic on Item methods don't check to see if you actually have the item.

    .::The Fix::.


    In your ItemAssistant.java
    Search for:
    Code:
    	public boolean wearItem(int wearID, int slot) {
    add this right under it:
    Code:
    		if (!c.getItems().playerHasItem(wearID, 1, slot)) {
    			//add a method here for logging cheaters(If you want)
    			return false;
    		}
    in your PlayerAssistant.java search for:
    Code:
    	public void magicOnItems(int slot, int itemId, int spellId) {
    and under that add:
    Code:
    		if (!c.getItems().playerHasItem(itemId, 1, slot)) {
    			//add a method here for logging cheaters(If you want)
    			return;
    		}
    It's simple, but here to help.

    Credit to [Only registered and activated users can see links. ] for telling me that the exploit existed.
    potatoes.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Banned
    Join Date
    Sep 2010
    Posts
    609
    Thanks given
    5
    Thanks received
    15
    Rep Power
    0
    Good work
    Reply With Quote  
     

  4. #3  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,383
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    Good job fixing that, thanks

    no external links without affiliate
    Reply With Quote  
     

  5. #4  
    Registered Member
    Jeffrey's Avatar
    Join Date
    Jul 2010
    Posts
    1,223
    Thanks given
    46
    Thanks received
    114
    Rep Power
    528
    Nice find.

    Has this been tested to work though?
    Reply With Quote  
     

  6. #5  
    Banned

    Join Date
    Sep 2010
    Age
    26
    Posts
    568
    Thanks given
    147
    Thanks received
    201
    Rep Power
    0
    thanks
    Reply With Quote  
     

  7. #6  
    Registered Member PvpAllDay's Avatar
    Join Date
    Oct 2010
    Posts
    188
    Thanks given
    5
    Thanks received
    10
    Rep Power
    40
    Quote Originally Posted by Jeff View Post
    Nice find.

    Has this been tested to work though?
    Someone in the help section found it.
    OT: Nice work, repped.
    Reply With Quote  
     

  8. #7  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    30
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Discord
    View profile
    Rep Power
    117
    Quote Originally Posted by Jeff View Post
    Nice find.

    Has this been tested to work though?
    Yeah this worked on my source as well.
    pk flavor posted it in the help section, so i tested it on my own source.
    It worked. So i fixed it.
    potatoes.
    Reply With Quote  
     

  9. #8  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    It's not really an exploit, it just doesn't check if the player has the item. You could apply this to all item packets which will stop all dupes/backdoors.
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
    Reply With Quote  
     

  10. #9  
    Super Donator


    Join Date
    Sep 2008
    Age
    27
    Posts
    1,897
    Thanks given
    677
    Thanks received
    776
    Rep Power
    456
    Remove this topic it was already posted [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. #10  
    Donator

    Robgob69's Avatar
    Join Date
    Oct 2010
    Age
    30
    Posts
    749
    Thanks given
    71
    Thanks received
    139
    Discord
    View profile
    Rep Power
    117
    Quote Originally Posted by Liberty View Post
    Remove this topic it was already posted [Only registered and activated users can see links. ]
    Funny, in that topic, nowhere is it telling you how to stop the Magic-On-Items dupe.
    Mine does. This has to do with fixing the Item wearing and alching glitch.
    AND mine was posted before his. So it can stay/
    potatoes.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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]Error when trying to wear item
    By zivkovic in forum Help
    Replies: 2
    Last Post: 12-22-2010, 10:05 PM
  2. Wear Item
    By Deviants in forum Help
    Replies: 12
    Last Post: 02-16-2009, 06:06 AM
  3. Replies: 20
    Last Post: 06-06-2008, 12:04 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
  •