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:
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:
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.
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.
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 =]
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 ****.