View Single Post
06/17/23, 07:24 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
FISHING_MANAGER does not exist any longer since NECROM.
It was replaced by: INTERACTIVE_WHEEL_MANAGER

And instead of using that directly you shoud meanwhile use the library https://www.esoui.com/downloads/info...onFilters.html to filter/react on interactions.

If this does not support wayshrines yet it maybe can be added there or you check for the "action" string (should be something like "teleport" hopefully to detect it).


LPCI_SEATS is by chance a translated language string constant for the game API function GetString(LPCI_SEATS).
Here is an explanation:
https://wiki.esoui.com/How_to_add_localization_support

Somewhere in the language tarnslations files, de.lua, en.lua, etc. of the addon LongPressToInteract (folder "lang") you will fond those defined and pointing to the action string like "Sit down" or "Hinsetzen" (German) then.
As actions are strings and thus translation is needed your addon needs to have the strings for "Use wayshrine" in all client languages.
You can get them by changing the client language ingame (does only change the strings at the UI, no audi or video!):

/script SetCVar("language.2", "en")

Replace "en" with other ISO codes for the supported client languages:

"de"
"es"
"en"
"fr"
"ru"
"zh"

And then move your crosshair above a wayshrine to see the text in that client language and note it down.


If all wents bad the wayshrines action string will be just "Use" (in any language at least) and you are not able to properly detect it or differ from other "Use" actions.
You will need to use the API function GetInteractionInfo() or similar to return more info about the interaction below your crosshair (ESO names that "reticle") to check for a wayshrine type returned or similar)!!!


local interactionType = GetInteractionType()
if interactionType == INTERACTION_WHATEVER A WAYSHRINE RETURNS AND IF THIS IS ONLY RETURNED FOR A WAYSHRINE then

I think there was one interaction type INTERACTION_FAST_TRAVEL

So check if the library linked above supports that already somehow.

Last edited by Baertram : 06/17/23 at 07:35 AM.
  Reply With Quote