View Single Post
02/08/15, 04:56 AM   #35
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Randactyl View Post
The "Travel to Player" and "Invite to Group" menu items are missing from the guild roster context menu. I can't test, because ZO_KeyboardGuildRosterManager is local, but I believe the issue is located in the function ZO_KeyboardGuildRosterManager:GuildRosterRow_OnMouseUp in the file guildroster_keyboard.lua.

The variable playerAlliance is used to check that the player and the target are in the same alliance, but playerAlliance is not declared within the scope of ZO_KeyboardGuildRosterManager:GuildRosterRow_OnMouseUp.

Ha, you're right. There is a typo in code.

EsoUI\Ingame\Guild\Keyboard\GuildRoster_Keyboard.lua, lines 232-237:
Lua Code:
  1. if(dataIndex == playerIndex) then
  2.     ZO_AddLeaveGuildMenuItem(guildId)
  3. else
  4.     if(data.hasCharacter and data.online) then
  5.         AddMenuItem(GetString(SI_SOCIAL_LIST_SEND_MESSAGE), function() StartChatInput("", CHAT_CHANNEL_WHISPER, data.displayName) end)
  6.         if(data.alliance == playerAlliance) then --here should be self.playerAlliance instead of just playerAlliance
  7.             AddMenuItem(GetString(SI_SOCIAL_MENU_INVITE), function()
  Reply With Quote