Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
- fixed the fix 
-- updated the wrong update
  • Loading branch information
Sicprofundus committed Jul 18, 2023
1 parent 57b231d commit a657df3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions guildclicky/init.lua
Expand Up @@ -15,6 +15,8 @@ local ground = mq.TLO.Ground
local guildclickymsg = '\ao[\agGuildClicky\ao]\ag::\aw '
local guildclickyhelp = 'Please \ay\"/guildclicky \ag(or /gc)\ay help\"\aw for a list of available clickable guild portals.'
local bValidateComplete = false
-- GUI Control variables
-- TODO: create option to allow always displayed in guild hall
local bDisplayUI = false
Expand Down Expand Up @@ -158,6 +160,7 @@ local function sortvalidatedportals()
end
end
table.sort(buttonLabels)
bValidateComplete = true
end
local function drawGuildClickyUI()
Expand Down Expand Up @@ -318,22 +321,19 @@ local function insideguildhall()
return guildhallzonesbyID[mq.TLO.Zone.ID()] == true
end
local bSetupComplete = false
local function setup()
mq.bind('/guildclicky', bind_guildclicky)
mq.bind('/gc', bind_guildclicky)
printMsg('\aoby \agSic')
printMsg('This .lua script allows you to use guildhall clickies to port you places.')
printMsg('You can \ay\"/gc ui\"\ax to show the clickable ui buttons')
printMsg(guildclickyhelp)
sortvalidatedportals()
end
local function main()
while true do
if insideguildhall() and not bSetupComplete then
setup()
if insideguildhall() and not bValidateComplete then
sortvalidatedportals()
end
if bDisplayUI and not insideguildhall() then
Expand Down

0 comments on commit a657df3

Please sign in to comment.