From 781b6fb4e67f7d093324f6e60715b546f8354da2 Mon Sep 17 00:00:00 2001 From: Tornac Date: Fri, 15 May 2020 06:34:29 -0700 Subject: [PATCH] Fixed an issue with the addon not grabbing the attachment from the memory in startup. I have looked it over tonight and that was the only issue i was having. --- pupatt.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pupatt.lua b/pupatt.lua index 72b359f..2743d84 100644 --- a/pupatt.lua +++ b/pupatt.lua @@ -25,7 +25,7 @@ _addon.author = 'tornac'; _addon.name = 'pupatt'; -_addon.version = '1.05'; +_addon.version = '1.07'; --------------------------------- --DO NOT EDIT BELOW THIS LINE @@ -37,7 +37,7 @@ require 'logging' require 'timer' -------------------------------------------------------------- --- Create a table for holding the current profile to be written +-- Default settings. -------------------------------------------------------------- objDelay = 0.65; -- The delay to prevent spamming packets. @@ -58,7 +58,7 @@ petlessZones = {50,235,234,224,284,233,70,257,251,14,242,250,226,245, 26,71,244,239,238,241,256,257} --------------------------------------------------------------- ---try to load file when addon is loaded +--try to load file when addon is loaded. --------------------------------------------------------------- ashita.register_event('load', function() @@ -294,7 +294,7 @@ end; --------------------------------------------------------------- function attFromMemory() - if (currentAttachments == nil) then + if (currentAttachments[1] == nil) then local pointer1 = ashita.memory.findpattern('FFXiMain.dll', 0, 'C1E1032BC8B0018D????????????B9????????F3A55F5E5B', 10, 0); if (pointer1 == 0) then err('Failed to locate current attachments, please cycle a attachment to continue.'); @@ -313,7 +313,7 @@ function attFromMemory() end; --------------------------------------------------------------------------------------------------- --- func: save_pupattProfile +-- func: save_profiles -- desc: saves current pup attachment profiles to a file ---------------------------------------------------------------------------------------------------