|
|
@ -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 |
|
|
|
--------------------------------------------------------------------------------------------------- |
|
|
|
--------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|