Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-22-2007, 05:34 AM
Darkonig
Hill Giant
 
Join Date: Dec 2006
Posts: 102
Default Fix: Item Stacking

There are some items that show stackable in their pictures and in the database that simply do not stack properly in game. I traced this back to an incorrect implementation of the IsStackable method and here is the diff for the fix which replaces the method body that guesses if it is stackable and just returns whether the database record claims it is stackable.

Code:
cvs diff -- Item.cpp (in directory M:\cvswork\EQEmuCVS\Source\common\)
Index: Item.cpp
===================================================================
RCS file: /cvsroot/eqemulator/EQEmuCVS/Source/common/Item.cpp,v
retrieving revision 1.23
diff -r1.23 Item.cpp
183,202c183
< 	//This function may not be right, but I think these are the itemtypes
< 	//that can be stacked
< 	bool result=false;
< 	if (m_item) {
< 		switch (m_item->ItemType) {
< 			case ItemTypeFood:
< 			case ItemTypeDrink:
< 			case ItemTypeBandage:
< 			case ItemTypeThrowingv2:
< 			case ItemTypeArrow:
< 			case ItemTypeFishingBait:
< 			case ItemTypeStackable:
< 			case ItemTypeAlcohol:
< 			case ItemTypeAugmentSolvent:
< 			case ItemTypeAugmentDistill:
< 				result=true;
< 		}
< 	}
< 
< 	return result;
---
> 	return m_item->Stackable;
Reply With Quote
 


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 10:08 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3