
Originally Posted by
Trumpy
After deleting that updates folder, Gearswap started goin nuts even on mules with no gearswaps. So i just unloaded it and went to git hub and dowloaded every file and it seems to be workin alright. Funny even though the addon.xml file gets downloaded it still wont show new official addons up to the ones i already have previously. stupid XP and its issues.
OK Now back to the issue dlsmd, after deleting updates folder and having it download the new stuffs, i still get that error. Did you try it on your game if it works (are you playing currently)?
i does not really mater right now because the key items list is missing the mounts key items(i put in an error to windower)
how ever this code works but only for Chocobo for the above reason
Code:
_addon.name = 'MountUp'
_addon.version = '1.00'
_addon.author = 'Whoever (Shiva)'
_addon.commands = {'mu','mountup'}
require 'luau'
mountarray = T{} -- mount table
function random_mount() --randomly selects mount
local select_mount = 0
while select_mount < 1 do
select_mount = math.ceil(math.random(0,#mountarray))
end
return mountarray[select_mount]
end
function build_mount_table()--builds mount list
mountarray:clear()
local key_items = windower.ffxi.get_key_items()
for _, v in ipairs(key_items) do
if v == 3072 then
mountarray:append("Chocobo")
elseif v == 3073 then
mountarray:append("Raptor")
elseif v == 3074 then
mountarray:append("Tiger")
elseif v == 3075 then
mountarray:append("Crab")
elseif v == 3076 then
mountarray:append("Red crab")
end
end
end
function UseMount() --main function
build_mount_table()
if #mountarray >= 1 then --varifies you have at lest one mount
windower.send_command('input /mount "'..random_mount()..'"')
end
end
windower.register_event('addon command', function(command)
if command == "mount" or command == "m" then
UseMount()
end
end)