Thread: My Evil Way Of Anti-Dupe

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1 My Evil Way Of Anti-Dupe 
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Description: This is an evil way of fixing duping on your server, when it comes to rares. You can change the ids, or simply add more if you want other items not to be duped.

    Difficulty: 1/10 - Just a copy & paste. 2/10 If you decide to add or change ids.

    Assumed Knowledge: Open A File, Search , And Paste.

    Tested Server: My own ( VIDEO BELOW )

    Files/Classes Modified: Client.java


    VIDEO: [Only registered and activated users can see links. ]


    Procedure



    Step 1: Alright. Start off by opening client.java and search for

    Code:
    void process
    or you might have

    Code:
     boolean process


    Step 2: Now, after the bracket, add this tiny bit of code:

    Code:
    if((playerHasItemAmount(1039, 10)==true) || (playerHasItemAmount(1041, 10)==true) || (playerHasItemAmount(1043, 10)==true) || (playerHasItemAmount(1045, 10)==true) || (playerHasItemAmount(1047, 10)==true) || (playerHasItemAmount(1049, 10)==true) || (playerHasItemAmount(1051, 10)==true) || (playerHasItemAmount(1054, 10)==true) || (playerHasItemAmount(1056, 10)==true) || (playerHasItemAmount(1058, 10)==true))
    {
    removeAllItems();
    sendMessage("You Were Detected By Renegades Anti-Dupe, So Long Sucker!");
    }

    Now what this does, is that every 500ms, it checks the persons items so if he has 10 or more of these items above, it will delete every item in his inventory. Evil, but smart.



    Step 3: Well I'm sure some of you might want to have over 10 of the items while being a staff member. To fix this, we put this code instead:

    Code:
    if((playerRights < 1) && (playerHasItemAmount(1039, 10)==true) || (playerHasItemAmount(1041, 10)==true) || (playerHasItemAmount(1043, 10)==true) || (playerHasItemAmount(1045, 10)==true) || (playerHasItemAmount(1047, 10)==true) || (playerHasItemAmount(1049, 10)==true) || (playerHasItemAmount(1051, 10)==true) || (playerHasItemAmount(1054, 10)==true) || (playerHasItemAmount(1056, 10)==true) || (playerHasItemAmount(1058, 10)==true))
    {
    removeAllItems();
    sendMessage("You Were Detected By Renegades Anti-Dupe, So Long Sucker!");
    }

    Now that makes it so that moderator, admins & every other kind of staff member can have more than 10 party hats, santas or what so ever.


    4. You can also change the ids, just take like 1056 and change it to 4152 for whips for exampel.



    5. Make sure you have this method

    Code:
    	public void removeAllItems() {
    		for (int i = 0; i < playerItems.length; i++) {
    			playerItems[i] = 0;
    		}
    		for (int i = 0; i < playerItemsN.length; i++) {
    			playerItemsN[i] = 0;
    		}
    		resetItems(3214);
    	}



    Credits: Me ( Renegade / WheatiesSEX ). Notice: I am Renegade`- on RuneLocus, don't say I leeched, thank you very much.
     

  2. #2  
    Rukin1


    Rukin1's Avatar
    Join Date
    Apr 2007
    Age
    28
    Posts
    5,003
    Thanks given
    228
    Thanks received
    229
    Discord
    View profile
    Rep Power
    4179
    I kno you! thanks for this though
    Spoiler for large sig:


     

  3. #3  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Yay more stuff to process amg!!11



     

  4. #4  
    Joshz
    Guest
    I dont get the vid, but im going to add thanks.
     

  5. #5  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Quote Originally Posted by Joshz View Post
    I dont get the vid, but im going to add thanks.

    Lol yea, sorry for that. What I did in the vid was putting out some items and then using :ickup 1039 10 and so on to get the phats, so you'd see what it does. It deletes every item in your inventory.
     

  6. #6  
    Registered Member
    Join Date
    Jan 2007
    Posts
    329
    Thanks given
    0
    Thanks received
    0
    Rep Power
    60
    You suck at coding, this will not work.
     

  7. #7  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Quote Originally Posted by Highscapee View Post
    You suck at coding, this will not work.

    How about you look at the video, and I can proove you wrong ?
     

  8. #8  
    Registered Member xvfy's Avatar
    Join Date
    Jan 2008
    Age
    27
    Posts
    286
    Thanks given
    0
    Thanks received
    0
    Rep Power
    16
    this nice, i won't use as i have my own way that stops duping, but nice
     

  9. #9  
    Registered Member
    Join Date
    Feb 2008
    Posts
    141
    Thanks given
    0
    Thanks received
    0
    Rep Power
    21
    roflmao, this fails.... people get 10 phats at staking, then oh crap all my stuff's been deleted because someone added the epic fail tutorial so now i spend ages getting it again =]
     

  10. #10  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    26
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Quote Originally Posted by ultama View Post
    roflmao, this fails.... people get 10 phats at staking, then oh crap all my stuff's been deleted because someone added the epic fail tutorial so now i spend ages getting it again =]
    If you win like 3 yellow and 7 green, you won't loose a ****.
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •