Crossfaction Roleplay addons

Esidien

Gold Supporter
MoP Premium
8
2022
2
Hello fellow EmuCoach WoW community members,

I have been using the MyRolePlay (MRP) addon extensively in my roleplaying experiences within the World of Warcraft. However, I have noticed that in the EmuCoaches repack of Mists of Pandaria, there seems to be an issue with cross faction functionality.

Currently, if I target someone from the opposing faction, I am unable to view their full roleplay profile using MRP. This issue also seems to extend to the Total RP (TRP) addon as well. I have tested this on both Alliance and Horde characters and the issue persists.

I would like to suggest that the EmuCoach team look into this issue and see if it is possible to fix the cross faction functionality of MRP and TRP. It would greatly enhance the roleplaying experience for players who enjoy interacting with others from different factions.

Furthermore, I am curious if there is already a solution to this issue that I am unaware of. If anyone in the community has found a way to make MRP or TRP work cross faction within the EmuCoach repack, please share your knowledge.

Thank you for your time and I look forward to hearing from the community on this matter.
 

Esidien

Gold Supporter
MoP Premium
8
2022
2
MyRolePlay for Mists of Pandaria can be found here:


I actually had ChatGPT fix the issue for me. Here's the answer from chatGPT when I gave it the .lua code of the UI_Target.lua file from the MRP addon for Mists of Pandaria:


The code you provided from "UI_Target.lua" is indeed responsible for showing or hiding the button based on the targeted player. The logic for showing the button is as follows:

  1. If the player targets themselves, the button is shown.
  2. If the player targets another player and they are friendly, the button will be shown only if the targeted player has a roleplay profile supported by the MyRolePlay addon.
The code doesn't explicitly check for faction, but the "UnitIsFriend()" function checks whether the target is friendly, which implies they belong to the same faction. To make the button visible regardless of faction, you can remove the "UnitIsFriend()" check.

Here's the modified "UI_Target.lua" code that should show the button when targeting any player, regardless of their faction:
function mrp:TargetChanged() if not mrpSaved.Options.Enabled or not mrpSaved.Options.ShowButton then MyRolePlayButton:Hide() return end if UnitIsUnit( "player", "target" ) then MyRolePlayButton:Show() elseif UnitIsPlayer( "target" ) then if msp.char[ mrp:UnitNameWithRealm( "target" ) ].supported then MyRolePlayButton:Show() else MyRolePlayButton:Hide() end else MyRolePlayButton:Hide() end end

I have removed the "and UnitIsFriend( "player", "target" )" condition from the "elseif" statement. With this change, the button should be visible when targeting any player with a supported roleplay profile, regardless of their faction.

I have uploaded the .lua file itself if you just want to replace it instead of having to edit its code:

Place the lua file in ..\World of Warcraft - Mists of Pandaria - 5.4.8\Interface\AddOns\MyRolePlay and replace the old version, that's it.
 
Last edited:
Top