Oh, yeah..looks like the Binding.xml expects a variable to generate the string, instead of writing the text directly into it.
CraftingHouse.lua
Lua Code:
-- *** CraftingHouse ***
CraftingHouse = {}
CraftingHouse.name = "CraftingHouse"
------------------------
function CraftingHouse.Port()
d("Porting to the crafting house.")
JumpToSpecificHouse("@lIIIlIIIl", 47)
end
function CraftingHouse.OnAddOnLoaded(event, addonName)
if addonName == CraftingHouse.name then
SLASH_COMMANDS["/crafting"] = CraftingHouse.Port
EVENT_MANAGER:UnregisterForEvent(CraftingHouse.name, EVENT_ADD_ON_LOADED)
end
end
ZO_CreateStringId("SI_BINDING_NAME_CRAFTINGHOUSE_PORT", "Travel to Crafting House")
EVENT_MANAGER:RegisterForEvent(CraftingHouse.name, EVENT_ADD_ON_LOADED, CraftingHouse.OnAddOnLoaded)
Bindings.xml
Xml Code:
<Bindings>
<Layer name="SI_KEYBINDINGS_CATEGORY_GENERAL">
<Category name="PrimeRibeye's AddOn">
<Action name="CRAFTINGHOUSE_PORT">
<Down>CraftingHouse.Port()</Down>
</Action>
</Category>
</Layer>
</Bindings>
CraftingHouse.txt
Code:
## Title: | CraftingHouse |r
## Description: Use "/crafting" to port to the crafting house
## Author: |PrimeRibeye|r
## Version: 2.7
## APIVersion: 101034 101035
## SavedVariables:
## DependsOn:
##AddOnVersion: 2
##IsLibrary: false
CraftingHouse.lua
Bindings.xml
# This Addon is not created by, affiliated with, or sponsored by
# ZeniMax Media Inc. or its affiliates
# The Elder Scrolls (c) and related logos are registered trademarks
# or trademarks of ZeniMax Media Inc. in the United States and/or
# other countries. All rights reserved