1
Serverside Modding / Re: [QUESTION] Trinity C++ Mod for third faction and C++ syn
« on: March 25, 2013, 01:16:45 pm »
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.
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.