TeamId GetTeamId() const { if (m_team == ALLIANCE) return TEAM_ALLIANCE; else if (m_team == HORDE) return TEAM_HORDE; else if (m_team == NEUTRAL) return TEAM_NEUTRAL;}
TeamId GetTeamId() const { return m_team == ALLIANCE ? TEAM_ALLIANCE : TEAM_HORDE;
Would it be possible to just recode the stuff so we can have teams defined from DBC or MySQL and no need to hack around in code every time. This would also be a good goal for all the rest like races or classes or whatever.Like a modding core. And perhaps Trinity will take back the patches and merg in main core.
I don't understand that either. One of the latest revisions on trinity core hard codes the talent tabs directly into the core. Why would you do that? Every time Blizz moves talents around, you would have to then patch the code. Ah well, we do what we must I guess.
Will try to talk again to some devs and see theirs points Lets see what we can do .
The idea was to make together modding related changes on an own core fork and then send the patches to trinity devs.
Thanks StoneHarry, that fixed my problem. unfortunatly i still must have done something wrong with all the other variables and functions i needed to edit and while it compiles and runs, it still doesnt have the desired effect im aiming for.Also yes i am aware i need to modify client files aswell, i managed to (using arcemu, not trinity) simulate a pseudo-third faction by editing the Faction, FactionTemplate and FactionGroup DBCs by creating a third faction in FactionGroup.DBC and then adding a custom entry in Faction.DBC based off the [Player, Human] entry ID and then add bitmasks that suit this third entry into Faction.DBC and FactionTemplate.DBC.But the problem lies in the fact that it behaves just like an alliance character when it comes to the chat, party and who list, so ill have to do a bit more work.Also on an unrelated note, ive been messing around with the addition of a third useable resource (ie mana) based off mana and while i can make the changes to the core easily and even edit PlayerFrames.lua and .xml to 'show' what/were the bar should be, im having trouble making the text show and acknowledge the number of that resource.Is there anyway i can get the client to communicate with the server to retrieve this quantity? i believe that mana is retieved through the API event UNIT_MAXMANA in Playerframes, but in the case of a third resource i would need to create my own ie. UNIT_RESOURCE3, is there a way to do such a thing?I am almost certain there is an easy way to have this third resource shown, but im a bit dumb when it comes to scripting, any ideas?PS: Sorry for my 4 day late reply, i have been busy with uni work.PPS: Also sorry for the long posts, im not used to posting online.