View Single Post
08/05/21, 02:20 PM   #6
TrelliumTB
Join Date: Feb 2021
Posts: 3
Just an update on this.

The following code did not fix the issue. It was called, as expected. It returned true, as it should. But it did not suppress or cancel the prompt popup.
Code:
ZO_PreHook(PLAYER_TO_PLAYER, "AddPromptToIncomingQueue", function(interactType, characterName, displayName, targetLabel, acceptCallback, declineCallback, deferDecisionCallback)
     if interactType == INTERACT_TYPE_TRAVEL_TO_LEADER then return true end
    --return true will exit here adn NOT call the original code after that
    end)
I tried variations of it, with no success at all. Is there something with declineCallback that can be used? I couldn't figure that out.

I also tried the suggestion to use:
Code:
/script PLAYER_TO_PLAYER.control:UnregisterForEvent(EVENT_GROUP_MEMBER_JOINED)
That did work in suppressing any further popups. I think it will work for me, but as you said, it may have side effects on other addons or the game itself. I have tested it with the FasterTravel addon and so far have had no issues.
I assume that I just won't have the option to teleport to the leader from now on, and that is fine.

Anyway, thanks again for the help. I never would have gotten to this on my own.
  Reply With Quote