Browse Source

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.
master
Tornac 4 years ago
parent
commit
781b6fb4e6
  1. 10
      pupatt.lua

10
pupatt.lua

@ -25,7 +25,7 @@
_addon.author = 'tornac'; _addon.author = 'tornac';
_addon.name = 'pupatt'; _addon.name = 'pupatt';
_addon.version = '1.05'; _addon.version = '1.07';
--------------------------------- ---------------------------------
--DO NOT EDIT BELOW THIS LINE --DO NOT EDIT BELOW THIS LINE
@ -37,7 +37,7 @@ require 'logging'
require 'timer' require 'timer'
-------------------------------------------------------------- --------------------------------------------------------------
-- Create a table for holding the current profile to be written -- Default settings.
-------------------------------------------------------------- --------------------------------------------------------------
objDelay = 0.65; -- The delay to prevent spamming packets. 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} 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() ashita.register_event('load', function()
@ -294,7 +294,7 @@ end;
--------------------------------------------------------------- ---------------------------------------------------------------
function attFromMemory() function attFromMemory()
if (currentAttachments == nil) then if (currentAttachments[1] == nil) then
local pointer1 = ashita.memory.findpattern('FFXiMain.dll', 0, 'C1E1032BC8B0018D????????????B9????????F3A55F5E5B', 10, 0); local pointer1 = ashita.memory.findpattern('FFXiMain.dll', 0, 'C1E1032BC8B0018D????????????B9????????F3A55F5E5B', 10, 0);
if (pointer1 == 0) then if (pointer1 == 0) then
err('Failed to locate current attachments, please cycle a attachment to continue.'); err('Failed to locate current attachments, please cycle a attachment to continue.');
@ -313,7 +313,7 @@ function attFromMemory()
end; end;
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
-- func: save_pupattProfile -- func: save_profiles
-- desc: saves current pup attachment profiles to a file -- desc: saves current pup attachment profiles to a file
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------

Loading…
Cancel
Save