Download
(2 Kb)
Download
Updated: 10/09/22 04:53 PM
Pictures
File Info
Compatibility:
Lost Depths (8.1.5)
Updated:10/09/22 04:53 PM
Created:10/05/22 09:37 PM
Monthly downloads:62
Total downloads:2,725
Favorites:10
MD5:
Extra Chat Menu - Trade with HideGroup, Visit house, Send mail, Teleport and more
Version: 0.3
by: quickc [More]
Features:

Right click on a players name in chat and it will allow you to:

Invite to Trade (*Requires you to be near them in-game)
Visit their Primary Residence
Send in-game Mail
Copy their name
Travel to Player (*Requires you to be Friends or in a group with them)

All options can be toggled in settings

Originally created to trade with players while using HideGroup addon but not required

Dependencies:
LibCustomMenu
LibAddonMenu
0.3:
Added Localization for everything except copy name
Added Settings menu
Added Copy Name
Added Travel to Player

0.1:
Release
Optional Files (0)


Post A Reply Comment Options
Unread 09/17/23, 10:19 PM  
QuantumPie
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 21
Uploads: 2
Hey! Any chance you could include porting to guild-members on right-click? I was able to implement it this way:

Lua Code:
  1. if savedVars.ECMJumpTo then
  2.             if IsPlayerInGroup(playerName) then
  3.                   AddCustomMenuItem(GetString(SI_SOCIAL_MENU_JUMP_TO_PLAYER), function() JumpToGroupMember(playerName) end)
  4.             elseif IsFriend(playerName) then
  5.                   AddCustomMenuItem(GetString(SI_SOCIAL_MENU_JUMP_TO_PLAYER), function() JumpToFriend(playerName) end)
  6.             else
  7.                   for i=1,5 do
  8.                         if GetGuildMemberIndexFromDisplayName(GetGuildId(i), playerName) then
  9.                               AddCustomMenuItem(GetString(SI_SOCIAL_MENU_JUMP_TO_PLAYER), function() JumpToGuildMember(playerName) end)
  10.                         end
  11.                   end
  12.             end
  13.       end
  14. end
Report comment to moderator  
Reply With Quote
Unread 10/07/22, 04:52 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Originally Posted by quickc
Originally Posted by Baertram
Is it okay for you if I copy your code to my local addon (or remove the port to house entry in yours locally) cuz I do not use the port to house feature and want the menu to be as short as possible.
Im not sure what addon you are talking about, but yes you can use it
It's just a local one of myself, was never released I just wanted to make sure I can simply copy your code, even if I'm not going to release it I'm asking for permission. Thanks!
Last edited by Baertram : 10/07/22 at 04:53 AM.
Report comment to moderator  
Reply With Quote
Unread 10/06/22, 05:18 PM  
quickc
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 14
Uploads: 1
Originally Posted by Baertram
Is it okay for you if I copy your code to my local addon (or remove the port to house entry in yours locally) cuz I do not use the port to house feature and want the menu to be as short as possible.
Im not sure what addon you are talking about, but yes you can use it

Next update i will add options to toggle each entry and any requests anyone has

I will also add the localization constants, thanks Baertram
Report comment to moderator  
Reply With Quote
Unread 10/06/22, 04:32 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4912
File comments: 5990
Uploads: 78
Hey there, thanks for adding the trade menu.
Had created myself a small addont o add the mail to context menu but never thought about adding trade too, that's great it works!

Is it okay for you if I copy your code to my local addon (or remove the port to house entry in yours locally) cuz I do not use the port to house feature and want the menu to be as short as possible.
Maybe your addon could even be improved for the trade context menu entry by adding:

Lua Code:
  1. function ECM.PlayerContextMenu(playerName, rawName)
  2.       --Dunno if IsIgnored works with the playername or if you need the display name for that!
  3.       if TRADE_WINDOW:IsIdle() and not IsIgnored(playerName) then
  4.         AddCustomMenuItem(GetString(SI_PLAYER_TO_PLAYER_INVITE_TRADE), function()  TradeInviteByName(playerName)  end)
  5.       end

GetString(SI_PLAYER_TO_PLAYER_INVITE_TRADE) provides the localized text for "Trade" so you should use the string constants of the game (check them e.g. with all addons disabled except merTorchbug updated, type /tbug and activate the Strings tab so you can search and find them, instead of hardcoding texts into your addon. Will automatically localize it for other languages that way!


Same for Visit House and Send mail, I bet there exists SI constants too, which you also can find here:
https://raw.githubusercontent.com/es...tedstrings.lua

SI_SOCIAL_MENU_SEND_MAIL
SI_SOCIAL_MENU_VISIT_HOUSE
Last edited by Baertram : 10/06/22 at 06:02 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: