EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   Faction items not working (https://www.eqemulator.org/forums/showthread.php?t=28433)

ChaosSlayerZ 06-03-2009 03:28 AM

Faction items not working
 
I would like to report that I have tested faction giving items - and they do not appear to work.

I have made a custom faction item which was supose to increase my faction by +1k faction points - but it had no effect on the npc on said faction

ChaosSlayerZ 09-14-2009 06:54 PM

bump!
any insights from the devs on this one?

Rogean 09-15-2009 12:42 AM

fix it and submit the code!

Otherwise will have to wait until someone has a chance to look at it, which is purely up to any individual that wants to or has the time do.

ChaosSlayerZ 09-15-2009 01:34 AM

well I was just trying to get to some sort of confirmation that this is indeed a recognized bug and not something I simply screwed up to understand =P

As long as devs are aware of this- no rush =)

trevius 09-15-2009 07:39 AM

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;
}


ChaosSlayerZ 09-15-2009 11:51 AM

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

So_1337 09-15-2009 12:15 PM

And another.


All times are GMT -4. The time now is 09:19 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.