Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2009, 07:49 PM
cybernine186
Sarnak
 
Join Date: Feb 2008
Posts: 87
Default Item Duplication with looting corpse to fast

When I was the Lead GM of the VZTZ server I found how people was duplicating items. I reported it on the forums a while back but no one ever found a fix for it. Most servers don't care but those who wish to be legit maybe do.

How to duplicate the issue
  • Put a bag in your 8th inventory slot(lower right slot)
  • Put basically any item in that bag in the 8th inventory slot
  • die & leave a corpse with a full set of gear on it
  • Right click very fast on each item to loot it
  • If you do it to fast the zone will crash otherwise you will notice the item in the 8th inventory , 8th slot in the bag will appear on your inventory
  • Now if it is a lore item and you try and loot the 8th bag from your corpse 1 of the items will delete because it is a lore item
  • You can delete the item in your inventory or give it to someone else and loot you corpse and find your item in the 8th bag, 8th slot will still be there.

How to fix the issue
This is a patch for the latest version of the eqemu from SVN.
(Tortoise patch)
Code:
Index: PlayerCorpse.cpp
===================================================================
--- PlayerCorpse.cpp	(revision 315)
+++ PlayerCorpse.cpp	(working copy)
@@ -880,6 +880,12 @@
 		item = database.GetItem(item_data->item_id);
 	}
 	
+	// Voidd: Prevent Item Duplication When Looting Corpse
+	if (((item_data->equipSlot >= 251) && (item_data->equipSlot <= 330)) && ((charid == client->CharacterID()) && (IsPlayerCorpse()))) {
+		client->Message(13, "Anti-Item Duplicate Attempt");
+		return ;
+	}
+	
 	if (item != 0)
 	{
 		if(item_data)
You can replace or take out the message to the client. This patch doesn't keep the zone from crashing if you loot the corpse to fast by right clicking alot but it at least keeps people from duplicating items using corpses.

Enjoy!
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:26 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3