Fixed: Owner of guild house not able to teleport using JumpToSpecificHouse*
Flightkick [12-30-20 - 20:29]
Fixed: Owner of guild house not able to teleport using JumpToSpecificHouse*
Apparently ZOS likes complexity and offloads the burden to check to the API user.
*Needs verification
diff --git a/Outkasted.lua b/Outkasted.lua
index 47266c0..c8b52b6 100644
--- a/Outkasted.lua
+++ b/Outkasted.lua
@@ -1,14 +1,20 @@
Outkasted = Outkasted or {}
Outkasted.name = "Outkasted"
-Outkasted.version = "1.0"
+Outkasted.version = "1.1"
function Outkasted.TeleportToGuildHall()
- JumpToSpecificHouse("@Selegnar", 47)
+ local guildhall = { owner = "@Selegnar", houseId = 47 }
+ -- Apparently JumpToSpecificHouse on the player's own house is not allowed. Something something cohesion...
+ if guildhall.owner == GetDisplayName() then
+ RequestJumpToHouse(guildhall.houseId)
+ else
+ JumpToSpecificHouse(guildhall.owner, guildhall.houseId)
+ end
end
function Outkasted.OnAddOnLoaded(_, addonName)
if addonName ~= Outkasted.name then return end
-
+
Outkasted.initMenu()
ZO_CreateStringId("SI_BINDING_NAME_TP_OUTKASTED_GUILD_HALL", "Teleport to Outkasted guild house.")
diff --git a/Outkasted.txt b/Outkasted.txt
index e2971ca..1b838d2 100644
--- a/Outkasted.txt
+++ b/Outkasted.txt
@@ -1,6 +1,6 @@
## Title: Outkasted
## Author: Flightkick
-## Version: 1.0
+## Version: 1.1
## Description: Outkasted Guild Add-On
## APIVersion: 100033
## DependsOn: LibAddonMenu-2.0