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

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2009, 07:39 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I don't recall seeing anywhere that items are factored into faction at all. Here is where bonuses are calculated for factions, but it currently only seems to add spell bonuses:
Code:
// EverHood - Faction Mods for Alliance type spells
void Mob::AddFactionBonus(uint32 pFactionID,sint32 bonus) {
    map <uint32, sint32> :: const_iterator faction_bonus;
	typedef std::pair <uint32, sint32> NewFactionBonus;

	faction_bonus = faction_bonuses.find(pFactionID);
	if(faction_bonus == faction_bonuses.end()){
		faction_bonuses.insert(NewFactionBonus(pFactionID,bonus));
	}else{
		if(faction_bonus->second<bonus){
			faction_bonuses.erase(pFactionID);
			faction_bonuses.insert(NewFactionBonus(pFactionID,bonus));
		}
	}
}

sint32 Mob::GetFactionBonus(uint32 pFactionID) {
    map <uint32, sint32> :: const_iterator faction_bonus;
	faction_bonus = faction_bonuses.find(pFactionID);
	if(faction_bonus != faction_bonuses.end()){
			return (*faction_bonus).second;
	}
	return 0;
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 09-15-2009, 11:51 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

for testing reference, this is one item with faction I am aware of, that worked on LIVE:

http://everquest.allakhazam.com/db/item.html?item=7106
Reply With Quote
  #3  
Old 09-15-2009, 12:15 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

And another.
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 02:43 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