Jump to content
Sign in to follow this  
Dextrell

InsanityX Dupe Patch

Recommended Posts

Ok first of all this has been released before im just putting it out there for those who are using insanityx even if gabbe said there are no dupes there still is...

anyways lets get started

First Look For
[CODE]Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());[/CODE]

This is what tells itemhandler.java hey buddy so if the player dropped an item lets gets the itemid the x coordinate the y coordinate

Next look for

[CODE]c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);[/CODE]

This says ok so lets get the item id and lets delete the item from the player slot aka inventory

Now under that add this

[CODE]c.SaveGame();[/CODE]
What this does is it saves the character file everytime an item is dropped, this may cause more memory usage when having a large amount of players on the server


I hope this helped any inexperienced people from this community patching this dupe.

^_^

Share this post


Link to post
Share on other sites
More efficient way would to have a boolean to say whether (if true) to delete an item from the players inventory or (false) not to.

Share this post


Link to post
Share on other sites
if would help if you actually said what file to edit, 3rd place i found this same leeched guide it doesnt help shit

Share this post


Link to post
Share on other sites
Sign in to follow this  

×