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)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2005, 03:12 PM
arigo
Fire Beetle
 
Join Date: May 2005
Posts: 20
Default

I don't understand why we have to prove anything about ourselves to gain acess to the board. It's not as if there are any rewards to being a dev to begin with. I want access to the board for information that it might have. Maybe I'll do something useful, and maybe I won't. What do you have to lose?
Reply With Quote
  #2  
Old 07-03-2005, 07:11 PM
ffchung
Fire Beetle
 
Join Date: May 2005
Location: HK
Posts: 3
Default Code Update

That is code in eqemu
commom\item.cpp

I have optimize the code. And I think there was a bug that BERSERKER always return false.

I am not sure what
Function : ItemCommonInst::IsEquipable


Code:
Code:
bool ItemCommonInst::IsEquipable(int16 race, int16 class_) const
{
	if (!m_item)
		return false;

	if (m_item->Slots == 0) {
		return false;
	}
	
	uint32 classes_ = m_item->Common.Classes;
	uint32 races_ = m_item->Common.Races;

	// ************************************
	// ffchung : 
	// I dont know what it realy want to
	// As I see it want to convent the the race value
	// but why only use when PacketCollector 
	// else race_ only will keep at zero . 
	// then it will never return true
	// so I am not to use it at this time.
	// but keep the code here for later use.
	// ************************************

             int32 race_ = 0;
	#ifndef PACKETCOLLECTOR
	race_ = GetArrayRace(race);
	#endif
          	
	// ************************************

	retrun ( ((1<<(class_-1)) & classes_) && ((1<<(race-1)) & races_) )
}

Last edited by ffchung; 07-04-2005 at 03:16 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:21 AM.


 

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