From f50194bae6f13dab779c12ba8e68ab51c317d428 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:28:46 -0400 Subject: [PATCH 01/78] forgot faerie bass forgot faerie bass --- .../Costa Del Sol and Quarrymill Leves/tradeALLfish_McVaxius.lua | 1 + .../tradeHALFfish_McVaxius.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeALLfish_McVaxius.lua b/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeALLfish_McVaxius.lua index e778a23f..47f77420 100644 --- a/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeALLfish_McVaxius.lua +++ b/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeALLfish_McVaxius.lua @@ -9,6 +9,7 @@ DropboxSetItemQuantity(4894,false,999999) DropboxSetItemQuantity(4895,false,999999) DropboxSetItemQuantity(4892,false,999999) --quarrymill fish +DropboxSetItemQuantity(4943,false,999999) DropboxSetItemQuantity(4945,false,999999) DropboxSetItemQuantity(4967,false,999999) DropboxSetItemQuantity(4964,false,999999) diff --git a/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeHALFfish_McVaxius.lua b/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeHALFfish_McVaxius.lua index 0f8c652c..20fbe7aa 100644 --- a/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeHALFfish_McVaxius.lua +++ b/Community Scripts/Quests And Levelling/Costa Del Sol and Quarrymill Leves/tradeHALFfish_McVaxius.lua @@ -9,6 +9,7 @@ DropboxSetItemQuantity(4894,false,GetItemCount(4894)/2) DropboxSetItemQuantity(4895,false,GetItemCount(4895)/2) DropboxSetItemQuantity(4892,false,GetItemCount(4892)/2) --quarrymill fish +DropboxSetItemQuantity(4943,false,GetItemCount(4945)/2) DropboxSetItemQuantity(4945,false,GetItemCount(4945)/2) DropboxSetItemQuantity(4967,false,GetItemCount(4967)/2) DropboxSetItemQuantity(4964,false,GetItemCount(4964)/2) From 1c86036dbed36391f26c45d038a6dfd6cc7879db Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 30 Jul 2024 06:19:13 -0400 Subject: [PATCH 02/78] documentation update documentation update --- Community Scripts/Misc/frenrider_McVaxius.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index e4cc2718..82d7cc91 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -10,16 +10,18 @@ visland *optional: bring some gysahl greens +bring some food and configure it properly discardhelper lazyloot plugin (if your doing anything other than fates) VBM/BMR (bmr has slash commands for following) -RS/RSR (is RS still being updated?) +RSR (is RS still being updated?) ***Few annoying problems that still exist ---*dont follow during combat unless non caster. will require bmr contemplation ---*how do we change instances #s maybe custom chat commands? lifestream /li # works. now to add nodetext scanning for group. also have to use target and lockon until lim fixes /li x without los ---*it still doesnt follow in some weird cases ---*it doesnt startup lazyloot unless you run it twice??? do we need a longer delay on that part ? +*dont follow during combat unless non caster. will require bmr contemplation - seems bmr has contemplated it with distance command will consider adding new setting for this :~D +*how do we change instances #s maybe custom chat commands? lifestream /li # works. now to add nodetext scanning for group. also have to use target and lockon until lim fixes /li x without los + this is insanely buggy and perhaps crashy.. nodetext scanning too fast will break things +*it still doesnt follow in some weird cases +*lazyloot is a toggle not on or off so you have to turn it on yourself ]] --***************************************************************** @@ -143,7 +145,7 @@ fool_flier = ini_check("fool_flier", "Beast with 3 backs") --if you have fly you fulftype = ini_check("fulftype", "unchanged") -- If you have lazyloot installed AND enabled (has to be done manually as it only has a toggle atm) can setup how loot is handled. Leave on "unchanged" if you don't want it to set your loot settings. Other settings include need, greed, pass cling = ini_check("cling", 1) -- Distance to cling to fren when > bistance force_gyasahl = ini_check("force_gyasahl", false) -- force gysahl green usage . maybe cause problems in towns with follow -clingtype = ini_check("clingtype", 0) -- Clingtype, 0 = navmesh, 1 = visland, 2 = bmr, 3 = automaton autofollow, 4 = vanilla game follow +clingtype = ini_check("clingtype", 0) -- Clingtype, 0 = navmesh, 1 = visland, 2 = bmr follow leader, 3 = automaton autofollow, 4 = vanilla game follow clingtypeduty = ini_check("clingtypeduty", 2) -- do we need a diff clingtype in duties? use same numbering as above maxbistance = ini_check("maxbistance", 50) -- Max distance from fren that we will actually chase them, so that we dont get zone hopping situations ;p limitpct = ini_check("limitpct", -1) -- What percentage of life on target should we use LB at. It will automatically use LB3 if that's the cap or it will use LB2 if that's the cap, -1 disables it @@ -160,6 +162,8 @@ formation = ini_check("formation", false) -- Follow in formation? If false, 3 2 7 4 6 ]] +--this next setting is a dud for now until i figure out how to do it +--seems like we will need to use puppetmaster.... ill carefully test this https://github.com/Aspher0/PuppetMaster_Fork binstance = ini_check("binstance", "let us travel to instance") --[[ group instance change prefix, it will take " x" where x is the instance number as an argument, so you can setup qolbar keys with lines like this presumable after changing instances, followers will /cl their chat windows exmample qolbar for telling group to go instance 2 From eb26e37310a90cd19b4258031ad0b6eb0e8923ec Mon Sep 17 00:00:00 2001 From: UcanPatates <56081921+UcanPatatess@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:40:26 +0300 Subject: [PATCH 03/78] Update Diadem Navmesh V2.lua --- Community Scripts/Gathering/Diadem Navmesh V2.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Community Scripts/Gathering/Diadem Navmesh V2.lua b/Community Scripts/Gathering/Diadem Navmesh V2.lua index 7b72afe9..e892ed22 100644 --- a/Community Scripts/Gathering/Diadem Navmesh V2.lua +++ b/Community Scripts/Gathering/Diadem Navmesh V2.lua @@ -5,10 +5,11 @@ ******************* ************************* - * Version -> 0.0.1.20 * + * Version -> 0.0.1.21 * ************************* Version Notes: + 0.0.1.21 -> Update for snd version click changes. 0.0.1.20 -> Update for DT changed the /click talk to /click Talk_Click. 0.0.1.19.2 -> More Pandora settings added to count for user error if you have Auto-interact with Gathering Nodes and Auto-Mount after Gathering they are disabled now. 0.0.1.19.1 -> Now you don't need to configure plugin options i got you ;D @@ -835,7 +836,7 @@ if IsInZone(886) then elseif GetCharacterCondition(32, false) then yield("/interact") end - if IsAddonVisible("Talk") then yield("/click Talk_Click") end + if IsAddonVisible("Talk") then yield("/click Talk Click") end if IsAddonVisible("SelectString") then yield("/pcall SelectString true 0") end if IsAddonVisible("SelectYesno") then yield("/pcall SelectYesno true 0") end yield("/wait 0.5") From 63543454771d1c49cb722e2d72303cc43c6b0bae Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 31 Jul 2024 08:58:58 -0400 Subject: [PATCH 04/78] fishing script needed a bit more bunga in the unga fishing script needed a bit more bunga in the unga --- .../RobustGCturnin/_functions.lua | 14 ++++ ...eluxeOceanFishingCharSwapping_MxVaxius.lua | 70 ++----------------- 2 files changed, 21 insertions(+), 63 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index dae50fb9..bb0f9449 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -6,6 +6,20 @@ function ungabunga() yield("/wait 3") end +function ungabungabunga() + tobungaorunga = 0 + while tobungaorunga == 0 do + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/wait 3") + if IsPlayerAvailable() == true then + tobungaorunga = 1 + end + end +end + function generateRandomLetter(cappy) local uppercase = math.random(65, 90) -- ASCII codes for uppercase letters local lowercase = math.random(97, 122) -- ASCII codes for lowercase letters diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 7ed6f091..82d6c32d 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -68,57 +68,10 @@ pre fishing condition 1 33 34 while looking at leave menu, 35 is off _> this is what we use ]]-- -function ZoneTransition() - iswehehe = IsPlayerAvailable() - iswoah = 0 - repeat - yield("/wait 0.5") - yield("/echo Are we ready? -> "..iswoah.."/20") - iswehehe = IsPlayerAvailable() - iswoah = iswoah + 1 - if iswoah == 20 then - iswehehe = false - end - until not iswehehe - iswoah = 0 - repeat - yield("/wait 0.5") - yield("/echo Are we ready? (backup check)-> "..iswoah.."/20") - iswehehe = IsPlayerAvailable() - iswoah = iswoah + 1 - if iswoah == 20 then - iswehehe = true - end - until iswehehe -end - -function return_to_limsa_bell() - yield("/tp Limsa Lominsa") - ZoneTransition() - yield("/wait 2") - PathfindAndMoveTo(-125.440284729, 18.0, 21.004405975342, false) - visland_stop_moving() --added so we don't accidentally end before we get to the inn person -end - -function visland_stop_moving() - yield("/wait 3") - muuv = 1 - muuvX = GetPlayerRawXPos() - muuvY = GetPlayerRawYPos() - muuvZ = GetPlayerRawZPos() - while muuv == 1 do - yield("/wait 1") - if muuvX == GetPlayerRawXPos() and muuvY == GetPlayerRawYPos() and muuvZ == GetPlayerRawZPos() then - muuv = 0 - end - muuvX = GetPlayerRawXPos() - muuvY = GetPlayerRawYPos() - muuvZ = GetPlayerRawZPos() - end - yield("/echo movement stopped - time for GC turn ins or whatever") - yield("/visland stop") - yield("/wait 3") -end +loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +functionsToLoad = loadfile(loadfiyel) +functionsToLoad() +DidWeLoadcorrectly() -- random number function function getRandomNumber(min, max) @@ -203,11 +156,7 @@ function fishing() yield("/wait 1") yield("/pcall Repair true 1") yield("/wait 1") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/wait 3") + ungabunga() end --dryskthota @@ -221,10 +170,7 @@ function fishing() yield("/target Dryskthota") yield("/pinteract ") yield("/wait 1") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/send ESCAPE ") + ungabunga() yield("/wait 10") fishqtest = GetCharacterCondition(91) toolong = toolong + 1 @@ -379,9 +325,7 @@ while true do if GetCharacterCondition(32)==false then --yield("/ays multi") yield("/ays multi d") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/send ESCAPE ") + ungabungabunga() -- we really really try hard to be safe here yield("/waitaddon _ActionBar ") fishing() --drop a log file entry on the charname + Level From f5cc622e97bf573dcfe7fe726ac5ab65a9eb0aaa Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 31 Jul 2024 09:01:54 -0400 Subject: [PATCH 05/78] _functions.lua will keep growing into an unholy beast. _functions.lua will keep growing into an unholy beast. please look forward to it --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 82d6c32d..fbf9dd22 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -45,10 +45,14 @@ Yesalready configs "Bothers" [x] Contents Finder Confirm (auto confirm queueing) +Required script: +https://github.com/Jaksuhn/SomethingNeedDoing/blob/master/Community%20Scripts/AutoRetainer%20Companions/RobustGCturnin/_functions.lua + +place into %AppData%\XIVLauncher\pluginConfigs\SomethingNeedDoing\ --------- ---TODO --------- ---add in a (self generating) tracking file that checks levels of chars. if they are under 90 (for now, 100 in DT) they will be considered. and lowest level one will be selected +--add in a (self generating) tracking file that checks levels of chars. if they are under 100 in DT they will be considered. and lowest level one will be selected ------------------------------------------------ ------------------------------------------------ From 3e72424d66af70c760ddb5c4037c6d0a3ccd9cbe Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:59:32 -0400 Subject: [PATCH 06/78] alot of fiddling has occured alot of fiddling has occured --- .../RobustGCturnin/_functions.lua | 6 ++++++ .../DeluxeOceanFishingCharSwapping_MxVaxius.lua | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index bb0f9449..29b82d16 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,3 +1,9 @@ +function become_feesher() + yield("/equipjob fsh") + yield("/equipitem 2571") --weathered fishing rod + yield("/equipitem 35393") --weathered fishing rod +end + function ungabunga() yield("/send ESCAPE ") yield("/send ESCAPE ") diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index fbf9dd22..9cdf051f 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -128,7 +128,7 @@ function fishing() yield("/target Aetheryte ") yield("/target Aetheryte ") - yield("/equipjob fsh") + become_feesher() yield("/lockon on") yield("/automove on") yield("/send D") @@ -142,7 +142,7 @@ function fishing() yield("/wait 10") yield("/ac sprint") - yield("/equipjob fsh") + become_feesher() --repair catte if we are at 99% durability or lower and have at least 5000 gil while NeedsRepair(99) and GetItemCount(1) > 4999 do @@ -242,8 +242,8 @@ function fishing() end yield("/wait 1") end - yield("/wait 30") + ungabungabunga() --if we are tp to limsa bell if which_one[feesh_c][2] == 2 then return_to_limsa_bell() @@ -266,7 +266,8 @@ function fishing() --options 1 and 2 are fc estate entrance or fc state bell so thats only time we will tp to fc estate if which_one[feesh_c][2] == 0 or which_one[feesh_c][2] == 1 then - yield("/tp Estate Hall (Free Company)") + --yield("/tp Estate Hall (Free Company)") + yield("/li fc") yield("/wait 1") --yield("/waitaddon Nowloading ") yield("/wait 15") From f80ad5f6e2bb0a075d99b1e8be82a977d583f847 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:39:29 -0400 Subject: [PATCH 07/78] it worked it worked --- .../RobustGCturnin/_functions.lua | 11 ++++++++++- .../DeluxeOceanFishingCharSwapping_MxVaxius.lua | 10 ++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 29b82d16..d4aaec35 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,7 +1,16 @@ function become_feesher() yield("/equipjob fsh") + yield("/wait 0.5") + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") yield("/equipitem 2571") --weathered fishing rod - yield("/equipitem 35393") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") end function ungabunga() diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 9cdf051f..8c9a1a35 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -223,8 +223,10 @@ function fishing() yield("/wait 5") end if GetCharacterCondition(43)==false then - yield("/ac cast") - yield("/wait 1") + if GetZoneID() ~= 132 then + yield("/ac cast") + yield("/wait 1") + end end --try to exit the completion window faster if IsAddonVisible("IKDResult") then @@ -242,8 +244,11 @@ function fishing() end yield("/wait 1") end + visland_stop_moving() yield("/wait 30") ungabungabunga() + yield("/waitaddon NamePlate ") + --if we are tp to limsa bell if which_one[feesh_c][2] == 2 then return_to_limsa_bell() @@ -267,6 +272,7 @@ function fishing() --options 1 and 2 are fc estate entrance or fc state bell so thats only time we will tp to fc estate if which_one[feesh_c][2] == 0 or which_one[feesh_c][2] == 1 then --yield("/tp Estate Hall (Free Company)") + yield("/waitaddon NamePlate ") yield("/li fc") yield("/wait 1") --yield("/waitaddon Nowloading ") From b67b6f025b57655012c4b2c3c1071a52053cc269 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:31:46 -0400 Subject: [PATCH 08/78] ok things seem stable now ok things seem stable now --- .../RobustGCturnin/_functions.lua | 18 ++++++++++++++++++ ...DeluxeOceanFishingCharSwapping_MxVaxius.lua | 3 +++ 2 files changed, 21 insertions(+) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index d4aaec35..fc581891 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,4 +1,22 @@ function become_feesher() + --check if we can become fisher + --get to second vendor + if GetItemCount(35393) == 0 and GetItemCount(2571) == 0 then + visland_stop_moving() + yield("/vnavmesh moveto -246.67446899414 16.199998855591 41.268531799316") + visland_stop_moving() + yield("/echo No rod so we buy one and equip it!") + yield("/target Syneyhil") + yield("/wait 2") + yield("/interact") + yield("/wait 2") + yield("/pcall SelectIconString true 1 ") + yield("/pcall SelectString true 0 ") + yield("/pcall Shop true 0 4 1 ") + yield("/pcall Shop true -1 ") + visland_stop_moving() + ungabunga() + end yield("/equipjob fsh") yield("/wait 0.5") yield("/equipitem 2571") --weathered fishing rod diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 8c9a1a35..0982c0ef 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -128,6 +128,7 @@ function fishing() yield("/target Aetheryte ") yield("/target Aetheryte ") + --[[ become_feesher() yield("/lockon on") yield("/automove on") @@ -140,9 +141,11 @@ function fishing() yield("/pcall TelepotTown false 11 3u ") -- Arcanists' Guild yield("/pcall TelepotTown false 11 3u ") yield("/wait 10") + ]] yield("/ac sprint") become_feesher() + --if all good then we move on to next part automagically --repair catte if we are at 99% durability or lower and have at least 5000 gil while NeedsRepair(99) and GetItemCount(1) > 4999 do From 85d37e2c4e12fb168ca6cf18de37da56e3d241d2 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 06:52:43 -0400 Subject: [PATCH 09/78] 18 is fisher 18 is fisher --- .../RobustGCturnin/_functions.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index fc581891..7fe3f659 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,7 +1,12 @@ function become_feesher() + yield("/equipjob fsh") + yield("/wait 0.5") + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") --check if we can become fisher - --get to second vendor - if GetItemCount(35393) == 0 and GetItemCount(2571) == 0 then + if GetItemCount(35393) == 0 and GetItemCount(2571) == 0 and GetClassJobId() ~= 18 then visland_stop_moving() yield("/vnavmesh moveto -246.67446899414 16.199998855591 41.268531799316") visland_stop_moving() From 58660892d46129e7d3828e8cb18314ebc729425f Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 06:53:38 -0400 Subject: [PATCH 10/78] only fsh if we can only fsh if we can --- .../RobustGCturnin/_functions.lua | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 7fe3f659..0aa4c493 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,10 +1,10 @@ function become_feesher() - yield("/equipjob fsh") - yield("/wait 0.5") yield("/equipitem 2571") --weathered fishing rod yield("/wait 0.5") yield("/equipitem 35393") --integral fishing rod yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") --check if we can become fisher if GetItemCount(35393) == 0 and GetItemCount(2571) == 0 and GetClassJobId() ~= 18 then visland_stop_moving() @@ -21,19 +21,19 @@ function become_feesher() yield("/pcall Shop true -1 ") visland_stop_moving() ungabunga() + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") end - yield("/equipjob fsh") - yield("/wait 0.5") - yield("/equipitem 2571") --weathered fishing rod - yield("/wait 0.5") - yield("/equipitem 35393") --integral fishing rod - yield("/wait 0.5") - yield("/equipjob fsh") - yield("/wait 0.5") - yield("/equipitem 2571") --weathered fishing rod - yield("/wait 0.5") - yield("/equipitem 35393") --integral fishing rod - yield("/wait 0.5") end function ungabunga() From b871f07803a7e68849e2456e49caec443cc5734d Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:08:37 -0400 Subject: [PATCH 11/78] bagman can be greedy bagman can be greedy --- .../RobustGCturnin/bagman_mcvaxius.lua | 14 ++++++++++++-- .../RobustGCturnin/fat_tony_McVaxius.lua | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua index f234b6ed..ed3f7504 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua @@ -56,7 +56,7 @@ tony_zoneID = 132 --this is the zone id for where the aetheryte is, if its anyth tonys_house = 0 --0 fc 1 personal 2 apartment. don't judge. tony doesnt trust your bagman to come to the big house tony_type = 0 --0 = specific aetheryte name, 1 first estate in list outside, 2 first estate in list inside bagmans_take = 1000000 -- how much gil remaining should the bagma(e)n shave off the top for themselves? -bagman_type = 0 --0 = pcalls (gil only, a bit sloppy too with no multi tony support), 1 = dropbox with table config, 2 = dropbox but all salvage and all but bagmans take of gil +bagman_type = 0 --0 = pcalls (gil only, a bit sloppy too with no multi tony support), 1 = dropbox with table config, 2 = dropbox but all salvage and all but bagmans take of gil, 3 = table config w bagman cut tonyception = 0 --0 = dont be fancy, 1 = we have multiple fat tonies in the table and therefore we need to give 1 gil at the end of the trade so tony will leave and the next tony can come --[[ @@ -238,13 +238,23 @@ local function shake_hands() yield("/focustarget ") yield("/wait 0.5") --are_we_there_yet_jimmy() --setup exit conditions - if bagman_type == 1 then + if bagman_type == 1 or bagman_type == 3 then for i=1, #filled_bags do yield("/echo attempting to add stuff to the bag....") DropboxSetItemQuantity(filled_bags[i][1],false,filled_bags[i][2]) DropboxSetItemQuantity(filled_bags[i][1],true,filled_bags[i][2]) yield("/wait 0.5") end + if bagman_type == 3 then + snaccman = GetGil() - bagmans_take + if snaccman < 0 then + snaccman = 0 + end + if snaccman > 0 then + DropboxSetItemQuantity(1,false,snaccman) + end + end + end horrible_counter_method = horrible_counter_method + 1 yield("/echo DEBUG bagman type 1 processing....") if horrible_counter_method > 1 then diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua index 14effc97..2ebca9e4 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua @@ -39,7 +39,7 @@ tony firstname, lastname, meeting locationtype, returnhome 1 = yes 0 = no, 0 = f local franchise_owners = { {"Firstname Lastname@Server", 1, 2}, --return to limsa -{"Firstname Lastname@Server", 1, 0}, --return to fc entrance +{"Firstname Lastname@Server", 0, 0}, --dont return home because next line a diff bagman is giving me stuff ! {"Firstname Lastname@Server", 1, 0}, --return to fc entrance {"Firstname Lastname@Server", 1, 0}, --return to fc entrance {"Firstname Lastname@Server", 1, 0} --return to fc entrance From c6e1e84ec40e8038105c99e84abf3f52d8a1176a Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:10:22 -0400 Subject: [PATCH 12/78] greedy but cleaner greedy but cleaner the boss doesn't like duplicated code --- .../RobustGCturnin/bagman_mcvaxius.lua | 32 ++++--------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua index ed3f7504..0b8cef3a 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua @@ -245,16 +245,6 @@ local function shake_hands() DropboxSetItemQuantity(filled_bags[i][1],true,filled_bags[i][2]) yield("/wait 0.5") end - if bagman_type == 3 then - snaccman = GetGil() - bagmans_take - if snaccman < 0 then - snaccman = 0 - end - if snaccman > 0 then - DropboxSetItemQuantity(1,false,snaccman) - end - end - end horrible_counter_method = horrible_counter_method + 1 yield("/echo DEBUG bagman type 1 processing....") if horrible_counter_method > 1 then @@ -262,17 +252,18 @@ local function shake_hands() yield("/echo DEBUG moving towards exiting bagman type 1....") end -- get out end - if bagman_type == 2 then + if bagman_type == 2 or bagman_type == 3 then snaccman = GetGil() - bagmans_take if snaccman < 0 then snaccman = 0 end - yield("/dropbox") - yield("/wait 0.5") if snaccman > 0 then - --yield("/dbq 1:"..snaccman) -- we can't rob tony.. yet DropboxSetItemQuantity(1,false,snaccman) - end + end + end + if bagman_type == 2 then + yield("/dropbox") + yield("/wait 0.5") DropboxSetItemQuantity(22500,false,999999) DropboxSetItemQuantity(22501,false,999999) DropboxSetItemQuantity(22502,false,999999) @@ -281,16 +272,7 @@ local function shake_hands() DropboxSetItemQuantity(22505,false,999999) DropboxSetItemQuantity(22506,false,999999) DropboxSetItemQuantity(22507,false,999999) - --[[ - yield("/dbq 22500:*") -- 22500 Salvaged - yield("/dbq 22501:*") -- 22501 Salvaged - yield("/dbq 22502:*") -- 22502 Salvaged - yield("/dbq 22503:*") -- 22503 Salvaged - yield("/dbq 22504:*") -- 22504 Salvaged - yield("/dbq 22505:*") -- 22505 Salvaged - yield("/dbq 22506:*") -- 22506 Salvaged - yield("/dbq 22507:*") -- 22507 Salvaged - ]] + if GetItemCount(22500) == 0 and GetItemCount(22501) == 0 and GetItemCount(22502) == 0 and GetItemCount(22503) == 0 and GetItemCount(22504) == 0 and GetItemCount(22505) == 0 and GetItemCount(22506) == 0 and GetItemCount(22507) == 0 then if GetGil() == snaccman then get_to_the_choppa = 1 From 50d1ec80f634dda45beeb90993f210c4b4a50c7c Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:11:42 -0400 Subject: [PATCH 13/78] i swear tony, its not light i swear tony, its not light --- .../AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua index 0b8cef3a..e235fc59 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua @@ -259,6 +259,7 @@ local function shake_hands() end if snaccman > 0 then DropboxSetItemQuantity(1,false,snaccman) + yield("/echo here you go, all ... of...the...gil!") end end if bagman_type == 2 then From bc5d78b5e467707d2e23f18fb114041b5c8daec7 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:17:38 -0400 Subject: [PATCH 14/78] textual satisfaction textual satisfaction --- Community Scripts/Misc/frenrider_McVaxius.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 82d7cc91..4be4dd8b 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -2,6 +2,15 @@ --meant to use when your ahh botting treasure maps or fates with alts, but playing main char manually :~D --[[ +*repos sorted by length of string. +https://plugins.carvel.li +https://love.puni.sh/ment.json +https://puni.sh/api/repository/veyn +https://puni.sh/api/repository/croizat +https://puni.sh/api/repository/taurenkey +https://raw.githubusercontent.com/SubZero0/Dalamud.SkipCutscene/dist/repo.json +https://raw.githubusercontent.com/FFXIV-CombatReborn/CombatRebornRepo/main/pluginmaster.json + *requirements: croizats SND - disable SND targeting in config simpletweaks with targeting fix enabled @@ -12,8 +21,9 @@ visland bring some gysahl greens bring some food and configure it properly discardhelper +cutscene skipper (MSQ roullette cutscenes) lazyloot plugin (if your doing anything other than fates) -VBM/BMR (bmr has slash commands for following) +VBM/BMR (bmr has slash commands for following and more modules) RSR (is RS still being updated?) ***Few annoying problems that still exist @@ -164,7 +174,8 @@ formation = ini_check("formation", false) -- Follow in formation? If false, ]] --this next setting is a dud for now until i figure out how to do it --seems like we will need to use puppetmaster.... ill carefully test this https://github.com/Aspher0/PuppetMaster_Fork -binstance = ini_check("binstance", "let us travel to instance") --[[ group instance change prefix, it will take " x" where x is the instance number as an argument, so you can setup qolbar keys with lines like this presumable +--binstance = ini_check("binstance", "let us travel to instance") + --[[ group instance change prefix, it will take " x" where x is the instance number as an argument, so you can setup qolbar keys with lines like this presumable after changing instances, followers will /cl their chat windows exmample qolbar for telling group to go instance 2 /mount From 8f312cdab18feecbd6dcfaaf724477e8a5af2254 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 12:39:10 -0400 Subject: [PATCH 15/78] clearing up some documentation clearing up some documentation --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 0982c0ef..e14b686f 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -27,7 +27,7 @@ firstname last name@server (obvious), ? Required plogons vnavmesh visland -Autohook -> just setup a autocast thing. and get your versatile lure selected as bait :P the 10 free ones will take you to 90 +Autohook -> just setup a autocast thing. and get your versatile lure selected as bait :P the 10 free ones will take you to 100 autoretainer -> you need to NOT use "wait in lobby" in autoretainer, also turn multi on before starting the script or it wont get turned on until after the first ocean fishign happens. liza's discard helper (make your own fish list) something need doing (to run this script) From 3c55cb908db10fe446c1a27a3880c8dd9d3d5080 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 12:41:17 -0400 Subject: [PATCH 16/78] text text --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index e14b686f..bcb430b8 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -17,8 +17,8 @@ local which_one = { --[[ the above table works like this: -firstname last name@server (obvious), ? -? = 0 or 1, +firstname last name@server, ? +? = 0, 1, 2, 3 0 means teleport to fc estate and try to get into FC entrance. 1 means teleport to fc estate and use a nearby retainer bell (navmesh) 2 means teleport to limsa and go to the nearby bell From dab053e407f24e727222eac996a7f718bc0bb600 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 12:42:21 -0400 Subject: [PATCH 17/78] im texting you right now im texting you right now --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index bcb430b8..e363b125 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -1,6 +1,6 @@ --log path - change this to a valid path. foreward slashes are actually backslashes, don't use backslashes unless you know how to escape them properly. local folderPath = "F:/FF14/!gil/" --- first char cardinality and variable declaration +-- first char cardinality and variable declaration . useful for resuming at a later point in the list if you have to break the script for some reason such as reloading game or.. playing it haha local feesh_c = 1 --define the fisherpeople here From fe3db989edc59316e90358c6c255baa823d0f1c5 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:04:34 -0400 Subject: [PATCH 18/78] it wastes alot of time if arc not available it wastes alot of time if arc not available andit can get stuck even with ungabunga testing --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index e363b125..87b58def 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -124,11 +124,11 @@ function fishing() yield("/tp Limsa Lominsa Lower Decks ") yield("/waitaddon _ActionBar ") + --[[ yield("/target Aetheryte ") yield("/target Aetheryte ") yield("/target Aetheryte ") - --[[ become_feesher() yield("/lockon on") yield("/automove on") From 4476a330639f0b48868323c97a29523c8eeb26ac Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:57:54 -0400 Subject: [PATCH 19/78] why did i not do this before why did i not do this before --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 87b58def..d5ffce61 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -354,7 +354,7 @@ while true do --file:write("Hello, this is some text written to a file using Lua!\n") currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - file:write(formattedTime.." - "..feesh_char.." - Fisher Lv - "..GetLevel().."\n") + file:write(formattedTime.." - ".."["..feesh_c.."]feesh_char.." - Fisher Lv - "..GetLevel().."\n") --file:write("Writing to files in Lua is straightforward.\n") -- Close the file handle file:close() From 43010af8d5c069f23808c85e90fd975e80f97d21 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 13:59:12 -0400 Subject: [PATCH 20/78] oups oups --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index d5ffce61..793733a7 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -354,7 +354,7 @@ while true do --file:write("Hello, this is some text written to a file using Lua!\n") currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - file:write(formattedTime.." - ".."["..feesh_c.."]feesh_char.." - Fisher Lv - "..GetLevel().."\n") + file:write(formattedTime.." - ".."["..feesh_c.."]"..feesh_char.." - Fisher Lv - "..GetLevel().."\n") --file:write("Writing to files in Lua is straightforward.\n") -- Close the file handle file:close() From 8c46ebc74ae0033dc18fec5a81a83aad10423ec6 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:44:32 -0400 Subject: [PATCH 21/78] added versatile lure buying, equipping and also some sanity check added versatile lure buying, equipping and also some sanity check on stopping movement so it doesnt run off to who knows where immediately after ocean fishing ends. --- ...eluxeOceanFishingCharSwapping_MxVaxius.lua | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 793733a7..87a67f3d 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -147,8 +147,8 @@ function fishing() become_feesher() --if all good then we move on to next part automagically - --repair catte if we are at 99% durability or lower and have at least 5000 gil - while NeedsRepair(99) and GetItemCount(1) > 4999 do + --repair catte if we are at 50% durability or lower and have at least 5000 gil + while NeedsRepair(50) and GetItemCount(1) > 4999 do PathfindAndMoveTo(-397.46423339844,3.0999958515167,78.562309265137,false) visland_stop_moving() yield("/target Merchant & Mender") @@ -165,7 +165,26 @@ function fishing() yield("/wait 1") ungabunga() end - + yield("/bait Versatile Lure") + + --check if we have less than 3 versatile lures and more than 20000 gil if not we buy 20 of them! + while GetItemCount(29717) < 3 and GetItemCount(1) > 20000 do + PathfindAndMoveTo(-397.46423339844,3.0999958515167,78.562309265137,false) + visland_stop_moving() + yield("/target Merchant & Mender") + yield("/wait 1") + yield("/lockon on") + yield("/wait 1") + yield("/pinteract") + yield("/wait 1") + yield("/callback SelectIconString true 0") + yield("/wait 1") + yield("/callback Shop true 0 3 20") + ungabunga() + end + + yield("/bait Versatile Lure") + --dryskthota PathfindAndMoveTo(-409.42459106445,3.9999997615814,74.483444213867,false) visland_stop_moving() @@ -186,6 +205,8 @@ function fishing() end end + yield("/bait Versatile Lure") + --get current area yield("/echo Current area"..GetZoneID()) zown = GetZoneID() @@ -218,9 +239,14 @@ function fishing() yield("/visland moveto 7.451 6.750 "..randomNum) --keep checking for that original area - once it is back. turn /ays multi back on --also spam fishing - + omadamkhoneh = 0 --counter to stop trying to move to edge since it will do bad stuff outside of instance after while (zown ~= fzown) do + omadamkhoneh = omadamkhoneh + 1 fzown = GetZoneID() + if omadamkhoneh > 100 then + visland_stop_moving() + omadamkhoneh = -200 --we dont want this to trigger again + end if GetCharacterCondition(43)==false then yield("/discardall") yield("/wait 5") From 9da1a06cf42ec92ec6a97220b9289b884a94fb90 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Thu, 1 Aug 2024 16:44:50 -0700 Subject: [PATCH 22/78] AutoCollectables_SingleRun: handle Revisit procs --- Community Scripts/Gathering/AutoCollectables_SingleRun.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/AutoCollectables_SingleRun.lua b/Community Scripts/Gathering/AutoCollectables_SingleRun.lua index ee6c6e9c..7b3347cc 100644 --- a/Community Scripts/Gathering/AutoCollectables_SingleRun.lua +++ b/Community Scripts/Gathering/AutoCollectables_SingleRun.lua @@ -124,6 +124,8 @@ function collect_all() if (current_coll() == 0) then return end while((actions_left() > 0) and IsAddonReady("GatheringMasterpiece")) do + if actions_left() == max_actions() and current_coll() == 0 then return end + gain_more_action() Id_Print("Actions left: "..actions_left()) @@ -305,6 +307,7 @@ function ephemeral() end function main() + ::REVISIT:: while(not IsAddonReady("GatheringMasterpiece")) do Id_Print("Waiting for node...") yield("/wait "..interval_rate) @@ -332,6 +335,8 @@ function main() ephemeral() end + if actions_left() == max_actions() and current_coll() == 0 then goto REVISIT end + Id_Print("Done gathering!") yield("/wait "..time_to_wait_after_gather) end @@ -342,4 +347,4 @@ repeat main() nodes_went = nodes_went + 1 until not ignore_nodes_went and nodes_went >= nodes_went_threshold -Id_Print("----------Stopping AutoCollectables----------") \ No newline at end of file +Id_Print("----------Stopping AutoCollectables----------") From a7da6b7ef379fa8ab099e2c5998a26f7fda9b6f9 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 2 Aug 2024 06:50:07 -0400 Subject: [PATCH 23/78] needed a tiny bit more delay needed a tiny bit more delay --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 87a67f3d..94d848ec 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -178,8 +178,11 @@ function fishing() yield("/pinteract") yield("/wait 1") yield("/callback SelectIconString true 0") + yield("/wait 3") + yield("/callback Shop true 0 3 10") + yield("/wait 1") + yield("/callback Shop true 0 3 10") yield("/wait 1") - yield("/callback Shop true 0 3 20") ungabunga() end From b4c51a7c0b14fd62975f318d57403a73ba21ac27 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:08:58 -0400 Subject: [PATCH 24/78] bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga bunga --- .../AutoRetainer Companions/RobustGCturnin/_functions.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 0aa4c493..655f5026 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -48,8 +48,11 @@ function ungabungabunga() tobungaorunga = 0 while tobungaorunga == 0 do yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") yield("/send ESCAPE ") yield("/wait 3") if IsPlayerAvailable() == true then @@ -372,6 +375,11 @@ function job_short(which_cj) end function try_to_buy_fuel(restock_amt) + --[[ for later + yield("/freecompanycmd") + yield("/wait 1") + fcPoints = string.gsub(GetNodeText("FreeCompany", 15),"",""):gsub(",", "") + --]] --enter house yield("/wait 0.5") yield("/interact") From e3f8e7c4b2bd58266f176475c1f79a9a3ff52c65 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:21:55 -0400 Subject: [PATCH 25/78] added auto equip xp item option added auto equip xp item option --- Community Scripts/Misc/frenrider_McVaxius.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 4be4dd8b..2756c22b 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -32,6 +32,13 @@ RSR (is RS still being updated?) this is insanely buggy and perhaps crashy.. nodetext scanning too fast will break things *it still doesnt follow in some weird cases *lazyloot is a toggle not on or off so you have to turn it on yourself + +*we can't get synced level (yet) I managed to isolate the part with nodetext but its using weird special characters i dont know how to convert to real numbers +text = GetNodeText("_Exp", 3) +number = string.match(text, "%u%u%u%s*(.-)%s*EXP") +yield("/echo "..number) + +reason is i wanted to smartly auto equip xp gear based on your current synced level.... :( ]] --***************************************************************** @@ -39,6 +46,7 @@ RSR (is RS still being updated?) --***************************************************************** -- Purpose: to have default .ini values and version control on configs -- Personal ini file +-- if you want to use my ini file serializer just copy form start of inizer to end of inizer and look at how i implemented settings and go nuts :~D filename_prefix = "frenrider_" -- Script name open_on_next_load = 0 -- Set this to 1 if you want the next time the script loads, to open the explorer folder with all of the .ini files @@ -161,6 +169,7 @@ maxbistance = ini_check("maxbistance", 50) -- Max distance from fren that w limitpct = ini_check("limitpct", -1) -- What percentage of life on target should we use LB at. It will automatically use LB3 if that's the cap or it will use LB2 if that's the cap, -1 disables it rotationtype = ini_check("rotationtype", "Auto") -- What RSR type shall we use? Auto or Manual are common ones to pick. if you choose "none" it won't change existing setting. bossmodAI = ini_check("bossmodAI", "on") -- do we want bossmodAI to be "on" or "off" +xpitem = ini_check("xpitem", 0) -- xp item - attemp to equip whenever possible azyma_earring = 41081 btw, if this value is 0 it won't do anything feedme = ini_check("feedme", 4650) -- eatfood, in this case itemID 4650 which is "Boiled Egg", use simpletweaks to show item IDs it won't try to eat if you have 0 of said food item feedmeitem = ini_check("feedmeitem", "Boiled Egg") -- eatfood, in this case the item name. for now this is how we'll do it. it isn't pretty but it will work.. for now.. --feedmeitem = ini_check("feedmeitem", "Baked Eggplant")-- eatfood, in this case the item name add a at the end if you want it to be hq. for now this is how we'll do it. it isn't pretty but it will work.. for now.. @@ -376,6 +385,8 @@ ClearTarget() yield("/bmrai follow slot1") yield("/echo Beginning fren rider main loop") +xp_item_equip = 0 --counter + while weirdvar == 1 do --catch if character is ready before doing anything if IsPlayerAvailable() then @@ -393,7 +404,11 @@ while weirdvar == 1 do yield("/ac dismount") yield("/wait 0.5") end - + xp_item_equip = xp_item_equip + 1 + if xp_item_equip > ((1/timefriction)*10) and xp_item > 0 then -- every 10 time seconds try to equip xp item(s) + yield("/equipitem "..xpitem) + xp_item_equip = 0 + end --Food check! statoos = GetStatusTimeRemaining(48) ---yield("/echo "..statoos) From e5ee80f8c156a4231b9481b5eb9bcb586f828464 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:22:06 -0400 Subject: [PATCH 26/78] improved cases of instant fishing queueing improved cases of instant fishing queueing --- .../DeluxeOceanFishingCharSwapping_MxVaxius.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 94d848ec..22420fe0 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -188,6 +188,11 @@ function fishing() yield("/bait Versatile Lure") + + yield("/echo Current area"..GetZoneID()) + zown = GetZoneID() + fzown = GetZoneID() + --dryskthota PathfindAndMoveTo(-409.42459106445,3.9999997615814,74.483444213867,false) visland_stop_moving() @@ -203,6 +208,9 @@ function fishing() yield("/wait 10") fishqtest = GetCharacterCondition(91) toolong = toolong + 1 + if GetCharacterCondition(34) == true then --sometimes we queue instantly. dont wanna get stuck! + fishqtest = true + end if toolong > 30 then fishqtest = true end @@ -211,9 +219,6 @@ function fishing() yield("/bait Versatile Lure") --get current area - yield("/echo Current area"..GetZoneID()) - zown = GetZoneID() - fzown = GetZoneID() --check if area has changed every 5 seconds. while (zown == fzown) and (toolong < 30) do fzown = GetZoneID() From 82f105a9aba3b847b962b37f0468bb40ad173ae6 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 4 Aug 2024 01:25:32 -0400 Subject: [PATCH 27/78] improved it and removed the snd error spam from it improved it and removed the snd error spam from it --- Community Scripts/Misc/frenrider_McVaxius.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 2756c22b..a7ab60ed 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -39,6 +39,10 @@ number = string.match(text, "%u%u%u%s*(.-)%s*EXP") yield("/echo "..number) reason is i wanted to smartly auto equip xp gear based on your current synced level.... :( + +I will do it a bit later once i uhh. make a lookup table for this trash here: +0123456789 + ]] --***************************************************************** @@ -405,7 +409,7 @@ while weirdvar == 1 do yield("/wait 0.5") end xp_item_equip = xp_item_equip + 1 - if xp_item_equip > ((1/timefriction)*10) and xp_item > 0 then -- every 10 time seconds try to equip xp item(s) + if xp_item_equip > ((1/timefriction)) * 5 and xpitem > 0 and GetItemCountInContainer(xpitem,1000) ~= 1 then -- every 5 seconds try to equip xp item(s) if they aren't already equipped yield("/equipitem "..xpitem) xp_item_equip = 0 end From 904a90221e20315bec2e6078b770ffc76b246976 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 4 Aug 2024 02:14:43 -0400 Subject: [PATCH 28/78] needs to be tested needs to be tested if it works then yay... we wil have puppetmaster instructions ;\ --- Community Scripts/Misc/frenrider_McVaxius.lua | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index a7ab60ed..1ea1bb3d 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -185,8 +185,22 @@ formation = ini_check("formation", false) -- Follow in formation? If false, 3 2 7 4 6 ]] ---this next setting is a dud for now until i figure out how to do it ---seems like we will need to use puppetmaster.... ill carefully test this https://github.com/Aspher0/PuppetMaster_Fork +--[[ +this next setting is a dud for now until i figure out how to do it +seems like we will need to use puppetmaster.... +repo +https://github.com/Aspher0/PuppetMaster_Fork +pluginmaster +https://raw.githubusercontent.com/Aspher0/PuppetMaster_Fork/main/PuppetMaster.json + +you can go to "Default settings" + +Default Trigger (use regex) (in this case "weeehehe") +(?i)\b(?:weeehehe)\s+(?:\((.*?)\)|(\w+)) +Replacement +/li $1$2 + +--]] --binstance = ini_check("binstance", "let us travel to instance") --[[ group instance change prefix, it will take " x" where x is the instance number as an argument, so you can setup qolbar keys with lines like this presumable after changing instances, followers will /cl their chat windows From e212f2e236f6bf32f1fb4c0ecfc2e457a2589e77 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:04:25 -0400 Subject: [PATCH 29/78] smal edgecase fixes to functions and frenrider smal edgecase fixes to functions and frenrider --- .../RobustGCturnin/_functions.lua | 25 ++++++++++--------- Community Scripts/Misc/frenrider_McVaxius.lua | 2 ++ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 655f5026..e7ce8c48 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -21,19 +21,20 @@ function become_feesher() yield("/pcall Shop true -1 ") visland_stop_moving() ungabunga() - yield("/equipitem 2571") --weathered fishing rod - yield("/wait 0.5") - yield("/equipitem 35393") --integral fishing rod - yield("/wait 0.5") - yield("/equipjob fsh") - yield("/wait 0.5") - yield("/equipitem 2571") --weathered fishing rod - yield("/wait 0.5") - yield("/equipitem 35393") --integral fishing rod - yield("/wait 0.5") - yield("/equipjob fsh") - yield("/wait 0.5") end + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") + ungabunga() + yield("/equipitem 2571") --weathered fishing rod + yield("/wait 0.5") + yield("/equipitem 35393") --integral fishing rod + yield("/wait 0.5") + yield("/equipjob fsh") + yield("/wait 0.5") end function ungabunga() diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 1ea1bb3d..62610df8 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -327,6 +327,8 @@ function clingmove(nemm) --not bmr if zclingtype > 2 or zclingtype < 2 then yield("/bmrai follow "..GetCharacterName()) + yield("/bmrai followoutofcombat on") + yield("/bmrai maxdistancetarget 2.6") end --bmr if zclingtype == 2 then From 92759e75aaba106ba1945a5db35a65fb47e06aff Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 5 Aug 2024 02:57:07 -0400 Subject: [PATCH 30/78] more edgecases more edgecases --- Community Scripts/Misc/frenrider_McVaxius.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 62610df8..8b3f60cb 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -335,10 +335,12 @@ function clingmove(nemm) bistance = distance(GetPlayerRawXPos(), GetPlayerRawYPos(), GetPlayerRawZPos(), GetObjectRawXPos(nemm),GetObjectRawYPos(nemm),GetObjectRawZPos(nemm)) if bistance < maxbistance then yield("/bmrai followtarget on") --* verify this is correct later when we can load dalamud + yield("/bmrai followoutofcombat on") yield("/bmrai follow "..nemm) --* verify this is correct later when we can load dalamud end if bistance > maxbistance then --follow ourselves if fren too far away or it will do weird shit yield("/bmrai followtarget on") --* verify this is correct later when we can load dalamud + yield("/bmrai followoutofcombat on") yield("/bmrai follow "..GetCharacterName()) --* verify this is correct later when we can load dalamud yield("/echo too far! stop following!") end From 365b0d550c58135fd7cfa07f4163b0834be65589 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:14:37 -0400 Subject: [PATCH 31/78] trying to stop from getting caught in main menu when unga bunga bunga ing trying to stop from getting caught in main menu when unga bunga bunga ing --- .../RobustGCturnin/_functions.lua | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index e7ce8c48..4685cd8e 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -46,18 +46,24 @@ function ungabunga() end function ungabungabunga() - tobungaorunga = 0 - while tobungaorunga == 0 do - yield("/send ESCAPE ") - yield("/pcall SelectYesno true 0") - yield("/send ESCAPE ") - yield("/pcall SelectYesno true 0") - yield("/send ESCAPE ") - yield("/pcall SelectYesno true 0") - yield("/send ESCAPE ") - yield("/wait 3") - if IsPlayerAvailable() == true then - tobungaorunga = 1 + --don't bunga bunga if we are not ingame.. it breaks logging in + while GetCharacterCondition(1) == false then + ("/wait 5") --wait 5 seconds to see if char condition 1 comes back. + end + if GetCharacterCondition(1) == true then + tobungaorunga = 0 + while tobungaorunga == 0 do + yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") + yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") + yield("/send ESCAPE ") + yield("/pcall SelectYesno true 0") + yield("/send ESCAPE ") + yield("/wait 3") + if IsPlayerAvailable() == true then + tobungaorunga = 1 + end end end end From 646c5e299479dcc2d0e50dbeb6bb66567b1a6da3 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:46:30 -0400 Subject: [PATCH 32/78] not working correctly oops hehe not working correctly oops hehe --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 0732eb6e..cdeb6103 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -385,7 +385,7 @@ GetPlayerGC(), 1 = Maelstrom, 2 = Adder?, 3 = ImmortalFlames GetFCGrandCompany(), text instead of enum of above ]] if process_emblem == 1 or process_tags > 0 then - for i=1, #chars_EMBLEM do + for i=rcuck_count, #chars_EMBLEM do yield("/echo "..chars_EMBLEM[i][1]) yield("/ays relog " ..chars_EMBLEM[i][1]) yield("/echo 15 second wait") From 43a38e7197ad695c38174f7ba0dcd7ba2853c505 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 5 Aug 2024 22:46:55 -0400 Subject: [PATCH 33/78] dont get stuck in char select / title screen dont get stuck in char select / title screen --- .../AutoRetainer Companions/RobustGCturnin/_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 4685cd8e..8cbde495 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -47,8 +47,8 @@ end function ungabungabunga() --don't bunga bunga if we are not ingame.. it breaks logging in - while GetCharacterCondition(1) == false then - ("/wait 5") --wait 5 seconds to see if char condition 1 comes back. + while GetCharacterCondition(1) == false do + yield("/wait 5") --wait 5 seconds to see if char condition 1 comes back. end if GetCharacterCondition(1) == true then tobungaorunga = 0 From 585890b11986b70898a44ad932d6fe6482a7d264 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:31:29 -0400 Subject: [PATCH 34/78] i hope this works it will be sweet to clean up some more items just lingering i hope this works it will be sweet to clean up some more items just lingering --- .../RobustGCTurnIn_McVaxius.lua | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index cdeb6103..b53dd415 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -60,6 +60,7 @@ auto_eqweep = 0 --0=no, 1=yes + job change. Basically this will check to see config_sell = 0 --0=dont do anything,1=change char setting to not give dialog for non tradeables etc selling to npc, 2=reset setting back to yes check for non tradeables etc selling to npc. usecase for 1 and 2 are one time things for a cleaning run so that they can subsequently handle selling or not selling. this feature will be stripped out once limiana updaptes AR nnl = 1 --leave the novicenetwork movementtype = 0 --0 = vnavmesh, 1 = visland. many things wont work with visland mode. its there as emergency for cleaning only. +open_coffers = 0 --0=no,1=yes. do we try to open coffers before doing a turnin round. (will iterate through the list of items). ---------------------- --Refueling Configs -- ---------------------- @@ -73,6 +74,23 @@ buy_fc_buffs = 1 --0=no,1=yes. do we refresh the buffs on this run? turnin process_players = 1 --0=no,1=yes. do we run the actual GC turnins? turning this on will run the chars from chars_fn to go do seal turnins and process whatever deliveroo rules you setup process_emblem = 0 --0=no,1=yes. do we randomize the emblem on this run? turning this on will process the chars from chars_EMBLEM and go randomize their FC emblems. btw rank 7 FC gets additional crest unlocks. remember this has to be the FC leader process_tags = 0 --0=no, 1=full randomize, 2=lowercase only, 3=uppercase only, 4=randomly full upper OR lowercase, 5=pick from emblem configuration list. remember this has to be the FC leader +-------------------- +----Coffer Table---- +-------------------- +koffers = { +{38467,"Gladiator's Plundered Arms (Lv. 15)"}, +{38469,"Gladiator's Doctore Arms (Lv. 20)"}, +{38470,"Gladiator's Frostbite Arms (Lv. 24)"}, +{38471,"Gladiator's Inquisitor Arms (Lv. 28)"}, +{44107,"Black Mage's Verdant Arms (Lv. 47)"}, +{38475,"Paladin's Ancient Arms (Lv. 41)"}, +{38474,"Paladin's Crier Arms (Lv. 38)"}, +{38476,"Paladin's Dzemael Arms (Lv. 44)"}, +{38473,"Paladin's Flametongue Arms (Lv. 35)"}, +{38472,"Paladin's Longstop Arms (Lv. 32)"}, +{38477,"Paladin's Templar Arms (Lv. 47)"} +} + --[[ ------------------------ --SCRIPT REQUIREMENTS -- @@ -545,6 +563,15 @@ if process_players == 1 then yield("/wait 2") CharacterSafeWait() yield("/echo Processing Retainer Abuser "..i.."/"..#chars_fn) + --before we dump gear lets check if we are opening coffers + if open_coffers == 1 then + for i=1,#koffers do + if GetItemCount(koffers[i][1]) > 0 then + yield("/item "..koffers[i][2]) + yield("/wait 4") + end + end + end --before we dump gear lets check to see if we are on the right job or if we care about it. if config_sell == 1 then yield("/maincommand Item Settings") From 379432fbe95970a8277d131f2a8bc480debc7628 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:00:15 -0400 Subject: [PATCH 35/78] bagman type 4 is ready for testing bagman type 4 is ready for testing --- .../RobustGCturnin/bagman_mcvaxius.lua | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua index e235fc59..e0bc5fb1 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua @@ -56,8 +56,18 @@ tony_zoneID = 132 --this is the zone id for where the aetheryte is, if its anyth tonys_house = 0 --0 fc 1 personal 2 apartment. don't judge. tony doesnt trust your bagman to come to the big house tony_type = 0 --0 = specific aetheryte name, 1 first estate in list outside, 2 first estate in list inside bagmans_take = 1000000 -- how much gil remaining should the bagma(e)n shave off the top for themselves? -bagman_type = 0 --0 = pcalls (gil only, a bit sloppy too with no multi tony support), 1 = dropbox with table config, 2 = dropbox but all salvage and all but bagmans take of gil, 3 = table config w bagman cut tonyception = 0 --0 = dont be fancy, 1 = we have multiple fat tonies in the table and therefore we need to give 1 gil at the end of the trade so tony will leave and the next tony can come +bagman_type = 0 --[[ +0 = pcalls (gil only, a bit sloppy too with no multi tony support), +1 = dropbox with table config, +2 = dropbox but all salvage and all but bagmans take of gil, +3 = table config w bagman cut, +4 = items are in the table itself instead of the item table. normal way is +firstname lastname@server, x, x, tony name +now will be +firstname lastname@server, x, x, tony name, itemID, quantity +in this case it won't use the table at all +--]] --[[ if all of these are not 42069420, then we will try to go there at the very end of the process otherwise we will go directly to fat tony himself @@ -173,6 +183,7 @@ end get_to_the_choppa = 0 -- alternate exit var horrible_counter_method = 0 +windex = 1 --bagman index local function shake_hands() get_to_the_choppa = 0 @@ -262,6 +273,17 @@ local function shake_hands() yield("/echo here you go, all ... of...the...gil!") end end + if bagman_type == 4 then + yield("/echo attempting to add stuff to the bag....") + DropboxSetItemQuantity(franchise_owners[windex][5],false,franchise_owners[windex][6]) + yield("/wait 0.5") + horrible_counter_method = horrible_counter_method + 1 + yield("/echo DEBUG bagman type 4 processing....") + if horrible_counter_method > 1 then + get_to_the_choppa = 1 + yield("/echo DEBUG moving towards exiting bagman type 4....") + end -- get out + end if bagman_type == 2 then yield("/dropbox") yield("/wait 0.5") @@ -332,6 +354,7 @@ end for i=1,#franchise_owners do --update tony's name fat_tony = franchise_owners[i][4] + windex = i yield("/echo Loading bagman to deliver protection payments Fat Tony -> "..fat_tony..". Bagman -> "..franchise_owners[i][1]) yield("/echo Processing Bagman "..i.."/"..#franchise_owners) From 3a0c6e871788364b4f8856ae30dfee9a10af5874 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:49:24 -0400 Subject: [PATCH 36/78] wrong spot wrong spot --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index b53dd415..3df9e77d 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -403,7 +403,7 @@ GetPlayerGC(), 1 = Maelstrom, 2 = Adder?, 3 = ImmortalFlames GetFCGrandCompany(), text instead of enum of above ]] if process_emblem == 1 or process_tags > 0 then - for i=rcuck_count, #chars_EMBLEM do + for i=1, #chars_EMBLEM do yield("/echo "..chars_EMBLEM[i][1]) yield("/ays relog " ..chars_EMBLEM[i][1]) yield("/echo 15 second wait") @@ -555,7 +555,7 @@ end --gc turn in if process_players == 1 then - for i=1, #chars_fn do + for i=rcuck_count, #chars_fn do yield("/echo Loading Characters for GC TURNIN -> "..chars_fn[i][1]) yield("/echo Processing Retainer Abuser "..i.."/"..#chars_fn) yield("/ays relog " ..chars_fn[i][1]) From e8025790c299be7d01aa4a86d810a09235acd4b4 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:53:48 -0400 Subject: [PATCH 37/78] small little index/formatting fix small little index/formatting fix --- .../Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 22420fe0..8d53594e 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -388,7 +388,9 @@ while true do --file:write("Hello, this is some text written to a file using Lua!\n") currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - file:write(formattedTime.." - ".."["..feesh_c.."]"..feesh_char.." - Fisher Lv - "..GetLevel().."\n") + feesh_c = feesh_c - 1 + file:write(formattedTime.." - ".."["..feesh_c.."] - "..feesh_char.." - Fisher Lv - "..GetLevel().."\n") + feesh_c = feesh_c + 1 --file:write("Writing to files in Lua is straightforward.\n") -- Close the file handle file:close() From 7c3369e6f1eb678859c40eef0be0be196e2a2465 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:25:42 -0400 Subject: [PATCH 38/78] its always something its always something without this the subsequent /li etc does not work --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 3df9e77d..442be2f4 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -571,6 +571,7 @@ if process_players == 1 then yield("/wait 4") end end + yield("/wait 4") end --before we dump gear lets check to see if we are on the right job or if we care about it. if config_sell == 1 then From 60144b7dd8c631a89ff98542df18381ac681c226 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 08:19:50 -0400 Subject: [PATCH 39/78] turned this back on - if it works leaving it on turned this back on - if it works leaving it on probably will update other scripts to default logs to here since people can't read --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 442be2f4..9aed63f0 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -326,7 +326,6 @@ function Final_GC_Cleaning() SetAddersGCRank(GCrenk) SetMaelstromGCRank(GCrenk) ]] - --[[ --output a log of the GC ranks and your current job level to a log file stored in the SND folder local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" local file = io.open(folderPath .. "GCrankLog.txt", "a") @@ -334,14 +333,13 @@ function Final_GC_Cleaning() -- Write text to the file currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - file:write(formattedTime.." - "..chars_fn[rcuck_count][1].." - Job Lv - "..GetLevel().." - GC Rank - "..GCrenk.."\n") + file:write(formattedTime.." - "..chars_fn[rcuck_count][1].." - Adders - "..GetAddersGCRank().." - Maelstrom - "..GetMaelstromGCRank().." - Flames - "..GetFlamesGCRank().."\n") -- Close the file handle file:close() yield("/echo Text has been written to '" .. folderPath .. "GCrankLog.txt'") else yield("/echo Error: Unable to open file for writing") end - ]] end --limsa aetheryte From 0bb51a251baacc108947188d2864c3304b2dad1a Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:59:41 -0400 Subject: [PATCH 40/78] textual optimization textual optimization --- .../RobustGCturnin/ROBUSTmekRetaynurs_McVaxius.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/ROBUSTmekRetaynurs_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/ROBUSTmekRetaynurs_McVaxius.lua index ed431cb5..ccc62cd7 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/ROBUSTmekRetaynurs_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/ROBUSTmekRetaynurs_McVaxius.lua @@ -163,8 +163,8 @@ function mekkitnaow() yield("/pcall _CharaMakeProgress true -13 -1") yield("/pcall _CharaMakeProgress true 0 0 0 Hyur 1") yield("/pcall _CharaMakeProgress true -16 1") - --this is where it fails. it does not click the checkbox to continue. we stop for now ;p - yield("/pcall _CharaMakeFeature false 100") -- confirm to next step + + yield("/pcall _CharaMakeFeature false 100") -- confirm every step at once apparently haha end function nemmitnaow() From fa27494f9ebd1b693f7755bf6cd31851f17c4c4d Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:59:59 -0400 Subject: [PATCH 41/78] seems to work ill babysit it in a bit seems to work ill babysit it in a bit --- .../RobustGCTurnIn_McVaxius.lua | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 9aed63f0..527de826 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -268,7 +268,6 @@ function Final_GC_Cleaning() yield("/send ESCAPE ") yield("/send ESCAPE ") yield("/wait 3") - --[[ GCrenk = GetFlamesGCRank() if GetMaelstromGCRank() > GCrenk then GCrenk = GetMaelstromGCRank() @@ -278,8 +277,10 @@ function Final_GC_Cleaning() end SetFlamesGCRank(9) SetAddersGCRank(9) - SetMaelstromGCRank(9)]] - if GCrenk < 4 then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D + SetMaelstromGCRank(9) + GCcheck = 4 + if chars_fn[rcuck_count][4] == 1 then GCcheck = 10 end --if we are using delivery hack + if GCrenk < GCcheck then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D --try to promote yield("/wait 1") yield("/target Personnel Officer") @@ -300,7 +301,11 @@ function Final_GC_Cleaning() end yield("/wait 2") end - if GCrenk < 7 and GCrenk > 4 then --if we are above 4 and below 7 we can go up to 7 + GCcheck = 7 + GCcheck2 = 4 + if chars_fn[rcuck_count][4] == 1 then GCcheck = 10 end --if we are using delivery hack + if chars_fn[rcuck_count][4] == 1 then GCcheck2 = 0 end --if we are using delivery hack + if GCrenk < GCcheck and GCrenk > GCcheck2 then --if we are above 4 and below 7 we can go up to 7 --try to promote yield("/wait 1") yield("/target Personnel Officer") @@ -327,15 +332,23 @@ function Final_GC_Cleaning() SetMaelstromGCRank(GCrenk) ]] --output a log of the GC ranks and your current job level to a log file stored in the SND folder + --yield("/echo Log output debug line 1") local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" + --yield("/echo Log output debug line 2") local file = io.open(folderPath .. "GCrankLog.txt", "a") + --yield("/echo Log output debug line 3") if file then -- Write text to the file + --yield("/echo Log output debug line 4") currentTime = os.date("*t") + --yield("/echo Log output debug line 5") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) + --yield("/echo Log output debug line 6") file:write(formattedTime.." - "..chars_fn[rcuck_count][1].." - Adders - "..GetAddersGCRank().." - Maelstrom - "..GetMaelstromGCRank().." - Flames - "..GetFlamesGCRank().."\n") -- Close the file handle + --yield("/echo Log output debug line 7") file:close() + --yield("/echo Log output debug line 8") yield("/echo Text has been written to '" .. folderPath .. "GCrankLog.txt'") else yield("/echo Error: Unable to open file for writing") From 243fcf8d55c1fdb5d8d795aa0f86f705d30a6f54 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:10:27 -0400 Subject: [PATCH 42/78] another attempt another attempt --- .../RobustGCTurnIn_McVaxius.lua | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 527de826..30a9101b 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -209,7 +209,8 @@ function Final_GC_Cleaning() --expert delivery hack. meant for printing venture tokens on early chars if chars_fn[rcuck_count][4] == 1 then - --[[ + PauseYesAlready() + yield("/wait 2") GCrenk = GetFlamesGCRank() if GetMaelstromGCRank() > GCrenk then GCrenk = GetMaelstromGCRank() @@ -220,7 +221,6 @@ function Final_GC_Cleaning() SetFlamesGCRank(9) SetAddersGCRank(9) SetMaelstromGCRank(9) - ]] dellycount = 0 yield("/echo Expert Delivery hack enabled") yield("/wait 1") @@ -237,11 +237,11 @@ function Final_GC_Cleaning() end benture = GetItemCount(21072) end - --[[ SetFlamesGCRank(GCrenk) SetAddersGCRank(GCrenk) SetMaelstromGCRank(GCrenk) - ]] + RestoreYesAlready() + yield("/wait 2") end --try to turn in supply mission items and rankup before leaving if its set for that char @@ -278,9 +278,7 @@ function Final_GC_Cleaning() SetFlamesGCRank(9) SetAddersGCRank(9) SetMaelstromGCRank(9) - GCcheck = 4 - if chars_fn[rcuck_count][4] == 1 then GCcheck = 10 end --if we are using delivery hack - if GCrenk < GCcheck then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D + if GCrenk < 4 then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D --try to promote yield("/wait 1") yield("/target Personnel Officer") @@ -301,11 +299,7 @@ function Final_GC_Cleaning() end yield("/wait 2") end - GCcheck = 7 - GCcheck2 = 4 - if chars_fn[rcuck_count][4] == 1 then GCcheck = 10 end --if we are using delivery hack - if chars_fn[rcuck_count][4] == 1 then GCcheck2 = 0 end --if we are using delivery hack - if GCrenk < GCcheck and GCrenk > GCcheck2 then --if we are above 4 and below 7 we can go up to 7 + if GCrenk < 7 and GCrenk > 4 then --if we are above 4 and below 7 we can go up to 7 --try to promote yield("/wait 1") yield("/target Personnel Officer") @@ -326,11 +320,10 @@ function Final_GC_Cleaning() end yield("/wait 2") end - --[[ SetFlamesGCRank(GCrenk) SetAddersGCRank(GCrenk) SetMaelstromGCRank(GCrenk) - ]] + --output a log of the GC ranks and your current job level to a log file stored in the SND folder --yield("/echo Log output debug line 1") local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" From 8605953a68ca71bdccf60b8625f25040f051994a Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:18:39 -0400 Subject: [PATCH 43/78] floop floop --- .../RobustGCTurnIn_McVaxius.lua | 49 +++++-------------- 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 30a9101b..6fe67926 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -218,6 +218,8 @@ function Final_GC_Cleaning() if GetAddersGCRank() > GCrenk then GCrenk = GetAddersGCRank() end + SealCap = 9000 + if GCrenk > 4 then SealCap = 19000 end SetFlamesGCRank(9) SetAddersGCRank(9) SetMaelstromGCRank(9) @@ -227,7 +229,13 @@ function Final_GC_Cleaning() benture = GetItemCount(21072) while dellycount < 12 do --max of 12 loops yield("/deliveroo enable") - yield("/wait 15") + yield("/wait 6") + --20 = storm, 21 = serpent, 22 = flame + maxcheck = 0 + while (GetItemCount(20) + GetItemCount(21) + GetItemCount(22)) < SealCap and maxcheck < 15 do + yield("/wait 1") + maxcheck = maxcheck + 1 + end yield("/deliveroo disable") yield("/wait 2") ungabunga() --get out of menus haha @@ -268,38 +276,9 @@ function Final_GC_Cleaning() yield("/send ESCAPE ") yield("/send ESCAPE ") yield("/wait 3") - GCrenk = GetFlamesGCRank() - if GetMaelstromGCRank() > GCrenk then - GCrenk = GetMaelstromGCRank() - end - if GetAddersGCRank() > GCrenk then - GCrenk = GetAddersGCRank() - end - SetFlamesGCRank(9) - SetAddersGCRank(9) - SetMaelstromGCRank(9) - if GCrenk < 4 then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D - --try to promote - yield("/wait 1") - yield("/target Personnel Officer") - yield("/wait 1") - yield("/send NUMPAD0") - yield("/wait 1") - yield("/send NUMPAD2") - yield("/wait 0.5") - yield("/send NUMPAD0") - yield("/wait 0.5") - yield("/send NUMPAD0") - yield("/send ESCAPE ") - yield("/send ESCAPE ") - yield("/wait 3") - --wait for char condition 1 - while GetCharacterCondition(32) == true and GetCharacterCondition(35) == true do - yield("/wait 1") - end - yield("/wait 2") - end - if GCrenk < 7 and GCrenk > 4 then --if we are above 4 and below 7 we can go up to 7 + + floop = 0 + if floop < 3 then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D --try to promote yield("/wait 1") yield("/target Personnel Officer") @@ -319,10 +298,8 @@ function Final_GC_Cleaning() yield("/wait 1") end yield("/wait 2") + floop = floop + 1 end - SetFlamesGCRank(GCrenk) - SetAddersGCRank(GCrenk) - SetMaelstromGCRank(GCrenk) --output a log of the GC ranks and your current job level to a log file stored in the SND folder --yield("/echo Log output debug line 1") From b1388b9b6db827456b04a026bc30e2fd3b0ae83a Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:51:13 -0400 Subject: [PATCH 44/78] FLOOP FLOOP --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 6fe67926..c715d135 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -278,18 +278,19 @@ function Final_GC_Cleaning() yield("/wait 3") floop = 0 - if floop < 3 then --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D + while floop < 3 do --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D --try to promote yield("/wait 1") yield("/target Personnel Officer") yield("/wait 1") - yield("/send NUMPAD0") + yield("/interact") + yield("/wait 2") + yield("/pcall SelectString true 1") + yield("/wait 3") + yield("/pcall GrandCompanyRankUp true 0") yield("/wait 1") - yield("/send NUMPAD2") - yield("/wait 0.5") - yield("/send NUMPAD0") - yield("/wait 0.5") - yield("/send NUMPAD0") + yield("/send ESCAPE ") + yield("/send ESCAPE ") yield("/send ESCAPE ") yield("/send ESCAPE ") yield("/wait 3") From c60896cef925458b8e6d5e75b3804a4f2685223f Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:36:56 -0400 Subject: [PATCH 45/78] textual articulation textual articulation --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index c715d135..9d5b2345 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -35,7 +35,7 @@ name, returntype, rankupGC, Expert Hack returntype = 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home for the last 2, expert bypass from automaton is needed as setting the gc rank with SND seems to not limit you to the max you should normally have... process_gc_rank = 0 --0=no,1=yes. do we try to rank up the GC and maybe do a supply delivery turnin? -expert_hack = 0 --0=no,1=yes. it will try in 15 second cycles. to do deliveries then turn them off and let it try to buy venture coins . up to 5 times. or when there is no increase in venture coins +expert_hack = 0 --0=no,1=yes. it will try in 15 second cycles. to do deliveries then turn them off and let it try to buy venture coins . up to 12 times. or when there is no increase in venture coins ]] local chars_fn = { {"First Last@Server", 0, 0, 0}, From 3167d327b72f26b3e14c6f39b5c61e54db08a4e8 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:22:50 -0400 Subject: [PATCH 46/78] might as well include all the relevant sealcaps might as well include all the relevant sealcaps --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 9d5b2345..7d08eedd 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -218,8 +218,16 @@ function Final_GC_Cleaning() if GetAddersGCRank() > GCrenk then GCrenk = GetAddersGCRank() end - SealCap = 9000 - if GCrenk > 4 then SealCap = 19000 end + SealCap = 9000 + if GCrenk == 2 then SealCap = 14000 end + if GCrenk == 3 then SealCap = 19000 end + if GCrenk == 4 then SealCap = 24000 end + if GCrenk == 5 then SealCap = 29000 end + if GCrenk == 6 then SealCap = 34000 end + if GCrenk == 7 then SealCap = 39000 end + if GCrenk == 8 then SealCap = 44000 end + if GCrenk == 9 then SealCap = 49000 end + yield("/echo Seal Cap is -> "..SealCap) SetFlamesGCRank(9) SetAddersGCRank(9) SetMaelstromGCRank(9) From 3c0272ef735b519fd4acb48da0db95b45c3442b6 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:27:12 -0400 Subject: [PATCH 47/78] text text --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 7d08eedd..1039eed9 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -222,11 +222,11 @@ function Final_GC_Cleaning() if GCrenk == 2 then SealCap = 14000 end if GCrenk == 3 then SealCap = 19000 end if GCrenk == 4 then SealCap = 24000 end - if GCrenk == 5 then SealCap = 29000 end + if GCrenk == 5 then SealCap = 29000 end --requires R1 Hunting Log done if GCrenk == 6 then SealCap = 34000 end if GCrenk == 7 then SealCap = 39000 end - if GCrenk == 8 then SealCap = 44000 end - if GCrenk == 9 then SealCap = 49000 end + if GCrenk == 8 then SealCap = 44000 end --requires R1 Hunting Log done + Aurum Vale + if GCrenk == 9 then SealCap = 49000 end --requires Dzemael Darkhold yield("/echo Seal Cap is -> "..SealCap) SetFlamesGCRank(9) SetAddersGCRank(9) From d4df7865e94d75f38c5967cfef304d65d2aec51b Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:00:02 -0400 Subject: [PATCH 48/78] textual updates textual updates --- .../RobustGCTurnIn_McVaxius.lua | 38 ++- .../RobustGCturnin/_functions.lua | 14 +- .../RobustGCturnin/bagman_mcvaxius.lua | 3 - .../RobustGCturnin/fat_tony_McVaxius.lua | 2 +- .../RobustGCturnin/mekRetaynurs_McVaxius.lua | 4 +- .../arbitraryduty_McVaxius.lua | 6 + ...eluxeOceanFishingCharSwapping_MxVaxius.lua | 8 +- .../Misc/JSON_pull_example_McVaxius.lua | 4 +- .../Misc/Ping_Server_Example_McVaxius.lua | 2 + Community Scripts/Misc/frenrider_McVaxius.lua | 5 + .../AstropeAcquisitionv_McVaxius.lua | 318 ++++++++++++++++++ .../AstropeConfig.ini | 11 + 12 files changed, 391 insertions(+), 24 deletions(-) create mode 100644 Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeAcquisitionv_McVaxius.lua create mode 100644 Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeConfig.ini diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 1039eed9..c4f84686 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -33,18 +33,18 @@ The last var is whether this char will attempt GC supply turnins and attempt ran this will take up to 15-20 seconds so dont enable it for every character unless you really need it (supply missions for leveling jobs basically) name, returntype, rankupGC, Expert Hack returntype = 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home -for the last 2, expert bypass from automaton is needed as setting the gc rank with SND seems to not limit you to the max you should normally have... -process_gc_rank = 0 --0=no,1=yes. do we try to rank up the GC and maybe do a supply delivery turnin? +process_gc_rank = 0 --0=no,1=yes. do we try to rank up the GC and maybe do a supply delivery turnin? expert_hack = 0 --0=no,1=yes. it will try in 15 second cycles. to do deliveries then turn them off and let it try to buy venture coins . up to 12 times. or when there is no increase in venture coins +clean_inventory = 0 --0=no, >0 check inventory slots free and try to clean out inventory . leave it at 0 if you dont know how to use it. and don't ask me for help on punish or i will block you. the answer is in _functions.lua ]] local chars_fn = { - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0}, - {"First Last@Server", 0, 0, 0} + {"First Last@Server", 0, 0, 0, 0}, + {"First Last@Server", 0, 0, 0, 50}, --clean inventory when under 50 slots free + {"First Last@Server", 0, 0, 0, 0}, + {"First Last@Server", 0, 0, 0, 0}, + {"First Last@Server", 0, 0, 0, 0}, + {"First Last@Server", 0, 0, 0, 0}, + {"First Last@Server", 0, 0, 0, 0} } ------------------------- @@ -313,21 +313,14 @@ function Final_GC_Cleaning() --output a log of the GC ranks and your current job level to a log file stored in the SND folder --yield("/echo Log output debug line 1") local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" - --yield("/echo Log output debug line 2") local file = io.open(folderPath .. "GCrankLog.txt", "a") - --yield("/echo Log output debug line 3") if file then -- Write text to the file - --yield("/echo Log output debug line 4") currentTime = os.date("*t") - --yield("/echo Log output debug line 5") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - --yield("/echo Log output debug line 6") file:write(formattedTime.." - "..chars_fn[rcuck_count][1].." - Adders - "..GetAddersGCRank().." - Maelstrom - "..GetMaelstromGCRank().." - Flames - "..GetFlamesGCRank().."\n") -- Close the file handle - --yield("/echo Log output debug line 7") file:close() - --yield("/echo Log output debug line 8") yield("/echo Text has been written to '" .. folderPath .. "GCrankLog.txt'") else yield("/echo Error: Unable to open file for writing") @@ -601,8 +594,21 @@ if process_players == 1 then rcuck_count = i yield("/wait 2") Final_GC_Cleaning() + workshop_entered = 0 if restock_fuel > 0 and GetItemCount(10373) > 0 and GetItemCount(10155) <= restock_fuel then + enter_workshop() try_to_buy_fuel(restock_amt) + workshop_entered = 1 + end + if chars_fn[rcuck_count][5] == 1 then + if workshop_entered == 0 then + enter_workshop() + clean_inventory() + end + if workshop_entered == 1 then + ungabunga() + clean_inventory() + end end end end diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 8cbde495..a6fac1cc 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -381,7 +381,7 @@ function job_short(which_cj) return shortjob end -function try_to_buy_fuel(restock_amt) +function enter_workshop() --[[ for later yield("/freecompanycmd") yield("/wait 1") @@ -401,7 +401,19 @@ function try_to_buy_fuel(restock_amt) yield("/wait 1") yield("/pcall SelectString true 0") yield("/wait 5") +end + +function clean_inventory() + --oh yeah you'll need this. and asking about it on punish will result in right click -> block. + --https://raw.githubusercontent.com/ffxivcode/DalamudPlugins/main/repo.json + --*start cleaning??? need slash command + --*loop every 5 seconds and check if we have the right char condition to resume whatever we were doing. + ungabunga() +end + +function try_to_buy_fuel(restock_amt) --target mammet + yield("/wait 5") yield("/target mammet") yield("/wait 0.5") yield("/lockon") diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua index e0bc5fb1..6dc5a6f5 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/bagman_mcvaxius.lua @@ -41,9 +41,6 @@ which you can copy paste en masse, just remove the last comma from last row for bagman its similar ="{"""&F2&"@"&P2&""""&", 0, 0,"&""""&R2&""""&"}," - - -New Variable is R which is Tonyname without the @ server ]] --Start because nobody read the instructions at the top <3 diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua index 2ebca9e4..df414f3c 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/fat_tony_McVaxius.lua @@ -2,7 +2,7 @@ Fat Tony script This is a pair script for the bagman script. basically it will load x chars go to location to wait for deliveries. when it receives a 1 gil trade, it knows its time to switch to next char. -it won't do anything really different than bagman. +Otherwise it won't do anything really different than bagman. ]] --[[ diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/mekRetaynurs_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/mekRetaynurs_McVaxius.lua index 08d2e9f0..8cabb9d3 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/mekRetaynurs_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/mekRetaynurs_McVaxius.lua @@ -1,14 +1,16 @@ --[[ mek retaynurs -What does it do? +-------What does it do?------------- assuming you have all the plogons and did the yesalready configs. it will magically buy 2 lv1 fishing rods, make 2 retainers with a name API for the names. do the retainer venture unlock quest and then run back to the vocate to finish and be ready for you to 1 click and add weapons. +--------------------- config. you need navmesh, pandora, teleporter, lifestream, somethingeeddoing, textadvance, yesalready, simpletweaks, rotation solver reborn and yesalready. setup yesalready to auto accept any purchases from npcs ;o also assumes limsa start and quests. +please have aleport teleport unlocked you lazy bum tested pretty hard :~D it is 6 minutes run time from start to finish diff --git a/Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_McVaxius.lua b/Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_McVaxius.lua index 6cb7ddf9..722ccd76 100644 --- a/Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_McVaxius.lua +++ b/Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_McVaxius.lua @@ -3,6 +3,12 @@ Author: McVaxius ]] +--dont use this script its hot garbage and autoduty exists. im only updating it for personal use so just a reminder +--dont use this script its hot garbage and autoduty exists. im only updating it for personal use so just a reminder +--dont use this script its hot garbage and autoduty exists. im only updating it for personal use so just a reminder +--dont use this script its hot garbage and autoduty exists. im only updating it for personal use so just a reminder +--dont use this script its hot garbage and autoduty exists. im only updating it for personal use so just a reminder + --if you see --* --this is a todo for some logic ill add sooner or later diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 8d53594e..98cd552b 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -1,5 +1,11 @@ +--please read this stuff its not hard the default config will die if you just copy paste so your gonna have to pass the test of reading. and uncommenting one of the two paths or modifying them + --log path - change this to a valid path. foreward slashes are actually backslashes, don't use backslashes unless you know how to escape them properly. -local folderPath = "F:/FF14/!gil/" + +--UNCOMMENT ONE OF THESE TWO and or modify to your hearts content +--local folderPath = "F:/FF14/!gil/" +--local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" + -- first char cardinality and variable declaration . useful for resuming at a later point in the list if you have to break the script for some reason such as reloading game or.. playing it haha local feesh_c = 1 diff --git a/Community Scripts/Misc/JSON_pull_example_McVaxius.lua b/Community Scripts/Misc/JSON_pull_example_McVaxius.lua index 4705ea4d..ea1078f8 100644 --- a/Community Scripts/Misc/JSON_pull_example_McVaxius.lua +++ b/Community Scripts/Misc/JSON_pull_example_McVaxius.lua @@ -1,4 +1,6 @@ --- Function to extract first and last names from JSON string +-- Function to extract first and last names from JSON string using a free WEB API. usecase is generating names +-- Mekretayners uses it for retainer names :~debug.debug + local function extractNames(jsonString) local first_name = jsonString:match('"first"%s*:%s*"([^"]+)"') local last_name = jsonString:match('"last"%s*:%s*"([^"]+)"') diff --git a/Community Scripts/Misc/Ping_Server_Example_McVaxius.lua b/Community Scripts/Misc/Ping_Server_Example_McVaxius.lua index 6c9369b4..6e96972c 100644 --- a/Community Scripts/Misc/Ping_Server_Example_McVaxius.lua +++ b/Community Scripts/Misc/Ping_Server_Example_McVaxius.lua @@ -1,3 +1,5 @@ +--this script illustrates a creative use for regex and command line interaction from the OS + function ping(host) local pingCommand = string.format("ping %s", host) os.execute(pingCommand.." > ping_output.txt") diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 8b3f60cb..5315c8e5 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -28,9 +28,12 @@ RSR (is RS still being updated?) ***Few annoying problems that still exist *dont follow during combat unless non caster. will require bmr contemplation - seems bmr has contemplated it with distance command will consider adding new setting for this :~D + *how do we change instances #s maybe custom chat commands? lifestream /li # works. now to add nodetext scanning for group. also have to use target and lockon until lim fixes /li x without los this is insanely buggy and perhaps crashy.. nodetext scanning too fast will break things + *it still doesnt follow in some weird cases + *lazyloot is a toggle not on or off so you have to turn it on yourself *we can't get synced level (yet) I managed to isolate the part with nodetext but its using weird special characters i dont know how to convert to real numbers @@ -43,6 +46,8 @@ reason is i wanted to smartly auto equip xp gear based on your current synced le I will do it a bit later once i uhh. make a lookup table for this trash here: 0123456789  + +*some people have incorrect auto interaction settings in pandora.. next time im playing actively ill add a new config option for that to set or not set the interaction settings. ]] --***************************************************************** diff --git a/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeAcquisitionv_McVaxius.lua b/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeAcquisitionv_McVaxius.lua new file mode 100644 index 00000000..f5d6cf0c --- /dev/null +++ b/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeAcquisitionv_McVaxius.lua @@ -0,0 +1,318 @@ +yield("/cl") +--add instructions +--which plugins +--etc +--SimpleTweaks -> Hide Guildhest Objective Popup +-- +--.ini file name sure no spaces between ?,? +--last 3 rows have to have same roles just change the folder path and master there . you can insert as many rows of slaves as you like. but you need at least 1 slave + +--Automaton +--auto leave when duty done +--auto target Bockman + +--DISCLAIMER - wrote this back in january then never tested it. it probably doesn't work and i dont care about astrope anymore so please go ahead and mess around with it + +local filename = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AstropeConfig.ini" +local repeat_guildhest = 100 +local repeated_guildhest = 0 +local are_we_master = 0 --off by default +local nameofmaster = "nobodyatall" +local mynem = "asdf" +local ourindex = 1 --where in the table did we appear??!? +local masterindex = 1 --where is the master +local readytoqueue = 0 --defaulting to 0 as we have new logic. master only queues if a slave is queueing not when they are waiting. slave only queues if master is in waiting +local astrope = {} -- Initialize an empty table +local writestatusroot = "c:\tempwrite" +local readstatusroot = "c:\tempread" +local tablechanged = 0 --by default the table hasn't been changed + +--beeg inn +-- Function to load variables from a file +function loadVariablesFromFile(filename) + local file = io.open(filename, "r") + if file then + for line in file:lines() do + -- Remove single-line comments (lines starting with --) before processing + line = line:gsub("%s*%-%-.*", "") + -- Extract variable name and value + local variable, value = line:match("(%S+)%s*=%s*(.+)") + if variable and value then + -- Convert the value to the appropriate type (number or string) + value = tonumber(value) or value + _G[variable] = value -- Set the global variable with the extracted name and value + end + end + io.close(file) + else + yield("/echo Error: Unable to open variable file " .. filename) + end +end + +function load_table_from_file(file_path) + local file = io.open(file_path, "r") -- Open the file in read mode + if file then + astrope = {} -- Initialize an empty table + for line in file:lines() do -- Iterate over each line in the file + if line ~= "" then -- Skip empty lines + local row = {} -- Initialize an empty table for each row + for value in line:gmatch("[^,]+") do -- Split the line by comma + table.insert(row, value) -- Insert each value into the row table + --yield("/echo value "..value) + end + table.insert(astrope, row) -- Insert the row into the main table + end + end + file:close() -- Close the file + return astrope -- Return the loaded table + else + yield("/echo Error: Unable to open table file '" .. file_path .. "'") + return nil + end +end + +-- Specify the path to your text file +-- forward slashes are actually backslashes. +--also be sure to update the folder name as per your preference +--just remember it will strip spaces and apostrophes on status files so Bob Your'uncle would be AstropeStatusBobYouruncle.status +--tempchar = tempchar:match("%s*(.-)%s*") --remove spaces at start and end only +--tempchar = tempchar:gsub("%s", "") --remove all spaces +--tempchar = tempchar:gsub("'", "") --remove all apostrophes +--local numElements = #astrope --this will give us number of elements in the table in case we want it for something + +-- Call the function to load variables from the file +yield("/echo First load of data") +--loadVariablesFromFile(filename) +load_table_from_file(filename) +yield("/echo Data Loaded") + +local function hackjobdashboard() + if tablechanged == 1 then -- so that we aren't spam refreshing when the table isn't changed yet + --hackjob dashboard lets go + yield("/cl") + yield("/echo ****************Dashboard************** rows -> "..#astrope) + for i = 1, #astrope do + local name = astrope[i][1] + local role = astrope[i][2] + local status = astrope[i][3] + yield("/echo Row " .. i .. ": Name - " .. name .. ", Role - " .. role .. ", Status - " .. status) + if GetCharacterName() == name then + if role == "master" then + are_we_master = 1 + nameofmaster = name + nameofmaster = nameofmaster:gsub("%s", "") --remove all spaces + nameofmaster = nameofmaster:gsub("'", "") --remove all apostrophes + end + ourindex = i + mynem = name + mynem = mynem:gsub("%s", "") --remove all spaces + mynem = mynem:gsub("'", "") --remove all apostrophes + end + if role == "master" then + masterindex = i + end + if role == "writestatusroot" then + yield("/echo writestatusroot found") + writestatusroot = name + end + if role == "readstatusroot" then + yield("/echo readstatusroot found") + readstatusroot = name + end + --yield("/echo Number of Chars:"..numElements) + end + yield("/echo ourindex:"..ourindex) + yield("/echo nameofmaster:"..nameofmaster) + yield("/echo are_we_master:"..are_we_master) + yield("/echo readstatusroot:"..readstatusroot) --where we are reading statuses from in case its not the same place where we are writing since we are only going to update our own status + yield("/echo writestatusroot:"..writestatusroot)--where we are writing statuses to in case its not the same as where we read them from + --end of hackjob dashboard + tablechanged = 0 + end +end + +--cleanup the variables a bit. maybe well lowercase them later too hehe. +--char_snake = char_snake:match("^%s*(.-)%s*$"):gsub('"', '') +--enemy_snake = enemy_snake:match("^%s*(.-)%s*$"):gsub('"', '') + +--begin main loop + +local function write_astrope_status(astropestatus) + -- Open the file in write mode, overwriting existing content but ONLY if we have changed the value. + -- this will reduce file i/o + if astrope[ourindex][3] != astropestatus then + tablechanged = 1 --for the dashboard + local file, error_message = io.open(writestatusroot .. mynem .. ".astrope", "w") + if file then + -- Write new content to the file + file:write(astropestatus) + -- Close the file + file:close() + else + -- Failed to open the file + yield("/echo Failed to open the write status file: " .. (error_message or "Unknown error")) + end + end + -- Update the status in the astrope table + astrope[ourindex][3] = astropestatus -- Self status +end + +local function grabstatuses() + --now for this fun stuff. remember to ignore the last 3 in the array + --so now we need to iterate through the array again + funnyname = "asdfasdf asdfsadf" + rolemod = 2 --init rolemod, 2 for slaves, since they will need to check master status + if are_we_master == 1 then + rolemod = 3 + end + for i = 1, (#astrope - rolemod) do + funnyname = astrope[i][1] --grab the name + funnyname = funnyname:gsub("%s", "") --remove all spaces + funnyname = funnyname:gsub("'", "") --remove all apostrophes + -- Open the file in read mode + local file, error_message = io.open(readstatusroot .. funnyname .. ".astrope", "r") + if file then + -- Read content from the file + local content = file:read("*all") + -- Close the file + file:close() + -- Return the content + --return content + if content == "duty" and i ~= ourindex then + readytoqueue = 0 + end + if i == masterindex then + astrope[masterindex][3] = content + end + else + -- Failed to open the file + yield("/echo Failed to open the read status file: " .. (error_message or "Unknown error")) + --return nil + end + end +end + +yield("/echo Begin Main Loop") +hackjobdashboard() + +while repeated_guildhest < repeat_guildhest do + --char conditions + --34 duty + --91 queueing + --yield("/pcall ContentsFinder true 12 0") is the same for both queuein and cancelling queue . facepalm + + readytoqueue = 1 --always be ready unless pulling data from statuses indicates otherwise + + hackjobdashboard() --display the status + yield("/wait 1") --debug change to 1 second later once its working well + + --grab file statuses for each char if any are not waiting/queuing then we are going to set readytoqueue = 0 + grabstatuses() + + --master loop + if are_we_master == 1 then + --we slid into the wrong duty - leave and lockout! + if GetZoneID() ~= 43 and GetCharacterCondition(34) then --not under armor AND in duty + write_astrope_status("locked") + LeaveDuty() + yield("/wait 1") + end + + --open a new loop and check for timeout timer until its at 0 then resume main loop????????? + --output remaining timer to screen???????? + if GetPenaltyRemainingInMinutes() > 0 then + yield("/echo We are in time out!" + yield("/wait 5") + write_astrope_status("locked") + while GetPenaltyRemainingInMinutes() > 0 do + yield("/echo We have been naughty - "..GetPenaltyRemainingInMinutes().." minutes remaining!" + yield("/wait 60") + end + yield("/wait 5") + yield("/echo We are out of time out!" + end + + --master checks slaves if any of them are in queue state, then we queue write_astrope_status("queueing"). otherwise master waits write_astrope_status("waiting") + --this is already done by the getstatus + + if readytoqueue == 1 and GetCharacterCondition(34) == false and GetCharacterCondition(91) == false then + yield("/dutyfinder") + yield("/wait 1") + yield("/pcall ContentsFinder true 12 0") + yield("/wait 2") + write_astrope_status("queue") + end + end + + --slave loop + if are_we_master == 0 then + --if master is in duty or in locked mode and we aren't then stop queing and go into wait mode + if (astrope[masterindex][3] == "duty" or astrope[masterindex][3] == "locked") and GetCharacterCondition(34) == false and GetCharacterCondition(91) == true then + --cancel queue if we are queued and need to cancel + yield("/dutyfinder") + yield("/wait 1") + yield("/pcall ContentsFinder true 12 0") + yield("/wait 2") + write_astrope_status("waiting") + end + + --if master is in wait mode, we can queue, dont care about other states + --also check if we aren't in duty at the moment + --note to self. we may want to check ready to queue here in case we want to only do full sync + --if (astrope[masterindex][3] == "waiting" or astrope[masterindex][3] == "queue") and GetCharacterCondition(34) == false and GetCharacterCondition(91) == false and readytoqueue == 1 then + if (astrope[masterindex][3] == "waiting" or astrope[masterindex][3] == "queue") and GetCharacterCondition(34) == false and GetCharacterCondition(91) == false then + yield("/dutyfinder") + yield("/wait 1") + yield("/pcall ContentsFinder true 12 0") + yield("/wait 2") + write_astrope_status("queue") + end + + --if master reaches done state then /pcraft stop + if astrope[masterindex][3] == "done" and GetCharacterCondition(34) == false then + yield("/echo We finished! I guess") + yield("/wait 15") + --maybe throw multi back on here and a /li + --yield("/li") + yield("/wait 20") + --yield("/ays multi") + yield("/pcraft stop") + end + end + + --shared check at the end so we aren't double writing status in single pass + --if we are inside + if GetZoneID() == 43 and GetCharacterCondition(34) then + yield("/rotation Manual") + write_astrope_status("duty") + --autofollow bockman with configuration in automaton?.. add notes at the start instructions at start for this. + end + --if we are outside + if GetZoneID() ~= 43 and GetCharacterCondition(34) == false and GetCharacterCondition(91) == false then + yield("/rotation Cancel") + write_astrope_status("waiting") + end + + --check if we changed areas and do what needs to be done + we_are_in = GetZoneID() --where are we? + if type(we_are_in) ~= "number" then + we_are_in = we_were_in --its an invalid type so lets just default it and wait 10 seconds + yield("/echo invalid type for area waiting 10 seconds") + yield("/wait 10") + end + if we_are_in ~= we_were_in then + yield("/wait 1") + if GetCharacterCondition(34) == true then + yield("/rotation Manual") + repeated_guildhest = repeated_guildhest + 1 + end + yield("/echo guildhest has begun!") + we_were_in = we_are_in --record this as we are in this area now + end + hackjobdashboard() +end +---------------------------------------------- +if are_we_master == 1 then + write_astrope_status("done") +end +---------------------------------------------- \ No newline at end of file diff --git a/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeConfig.ini b/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeConfig.ini new file mode 100644 index 00000000..f762077d --- /dev/null +++ b/Community Scripts/Quests And Levelling/Commendations and Astrope/AstropeConfig.ini @@ -0,0 +1,11 @@ +Firstname1 Lastname,slave,waiting +Firstname2 Lastname,slave,waiting +Firstname3 Lastname,slave,waiting +Firstname4 Lastname,slave,waiting +Firstname5 Lastname,slave,waiting +Firstname6 Lastname,slave,waiting +Firstname7 Lastname,slave,waiting +Firstname8 Lastname,slave,waiting +Firstname9 Lastname,master,waiting +z:/SomethingNeedDoing/,readstatusroot,waiting +z:/SomethingNeedWriting/,writestatusroot,waiting \ No newline at end of file From e56410c338b8e21d4d6f038a0187235eb807a535 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:32:55 -0400 Subject: [PATCH 49/78] . . --- .../RobustGCTurnIn_McVaxius.lua | 40 +++++++++++-------- ...eluxeOceanFishingCharSwapping_MxVaxius.lua | 2 +- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index c4f84686..65b1b8a3 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -71,7 +71,7 @@ restock_amt = 66666 --n>0 minimum amount of total fuel to reach, when restocki -------------------- process_fc_buffs = 1 --0=no,1=yes. do we bother with fc buffs? turning this on will run the chars from chars_FCBUFF to turn on FC buffs buy_fc_buffs = 1 --0=no,1=yes. do we refresh the buffs on this run? turning this on will run the chars from chars_FCBUFF to buy FC buffs and it will attempt to buy "Seal Sweetener II" 15 times -process_players = 1 --0=no,1=yes. do we run the actual GC turnins? turning this on will run the chars from chars_fn to go do seal turnins and process whatever deliveroo rules you setup +process_players = 1 --0=no,1=yes+cleaning. do we run the actual GC turnins? turning this on will run the chars from chars_fn to go do seal turnins and process whatever deliveroo rules you setup, 2=cleaning only process_emblem = 0 --0=no,1=yes. do we randomize the emblem on this run? turning this on will process the chars from chars_EMBLEM and go randomize their FC emblems. btw rank 7 FC gets additional crest unlocks. remember this has to be the FC leader process_tags = 0 --0=no, 1=full randomize, 2=lowercase only, 3=uppercase only, 4=randomly full upper OR lowercase, 5=pick from emblem configuration list. remember this has to be the FC leader -------------------- @@ -537,7 +537,7 @@ if process_fc_buffs == 1 then end --gc turn in -if process_players == 1 then +if process_players > 0 then for i=rcuck_count, #chars_fn do yield("/echo Loading Characters for GC TURNIN -> "..chars_fn[i][1]) yield("/echo Processing Retainer Abuser "..i.."/"..#chars_fn) @@ -580,27 +580,35 @@ if process_players == 1 then yield("/wait 3") end end - TeleportToGCTown() - ZoneTransition() - yield("/echo Walk to GC attempt 1") - yield("/wait 2") - WalkToGC() - yield("/echo Walk to GC attempt 2") - yield("/wait 2") - WalkToGC() - yield("/echo Walk to GC attempt 3?") - yield("/wait 2") - WalkToGC() rcuck_count = i - yield("/wait 2") - Final_GC_Cleaning() + weclean = 0 + if chars_fn[rcuck_count][5] > 0 then + if GetInventoryFreeSlotCount() < chars_fn[rcuck_count][5] then + weclean = 1 --we are under thresshold. we gonna clean this char! + end + end + if process_players == 1 then + TeleportToGCTown() + ZoneTransition() + yield("/echo Walk to GC attempt 1") + yield("/wait 2") + WalkToGC() + yield("/echo Walk to GC attempt 2") + yield("/wait 2") + WalkToGC() + yield("/echo Walk to GC attempt 3?") + yield("/wait 2") + WalkToGC() + yield("/wait 2") + Final_GC_Cleaning() + end workshop_entered = 0 if restock_fuel > 0 and GetItemCount(10373) > 0 and GetItemCount(10155) <= restock_fuel then enter_workshop() try_to_buy_fuel(restock_amt) workshop_entered = 1 end - if chars_fn[rcuck_count][5] == 1 then + if weclean == 1 then if workshop_entered == 0 then enter_workshop() clean_inventory() diff --git a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua index 98cd552b..0bc16785 100644 --- a/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua +++ b/Community Scripts/Gathering/DeluxeOceanFishingCharSwapping_MxVaxius.lua @@ -1,4 +1,4 @@ ---please read this stuff its not hard the default config will die if you just copy paste so your gonna have to pass the test of reading. and uncommenting one of the two paths or modifying them +--Please read this stuff its not hard the default config will die if you just copy paste so your gonna have to pass the test of reading. and uncommenting one of the two paths or modifying them --log path - change this to a valid path. foreward slashes are actually backslashes, don't use backslashes unless you know how to escape them properly. From d9ac0309f501705e0d5c42981fea0e178f47de30 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 22:36:54 -0400 Subject: [PATCH 50/78] text text --- .../RobustGCturnin/RobustGCTurnIn_McVaxius.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua index 65b1b8a3..a7b93016 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/RobustGCTurnIn_McVaxius.lua @@ -609,14 +609,12 @@ if process_players > 0 then workshop_entered = 1 end if weclean == 1 then - if workshop_entered == 0 then + --only if we are parked outside of fc house + if workshop_entered == 0 and chars_fn[rcuck_count][2] == 0 then enter_workshop() - clean_inventory() - end - if workshop_entered == 1 then - ungabunga() - clean_inventory() end + ungabunga() + clean_inventory() --default behaviour. it will just work if we are near a bell end end end From 39d96d66286421e9e388e7acbf635556a6f98952 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sat, 10 Aug 2024 23:47:56 -0400 Subject: [PATCH 51/78] praetorium update tested and working --- Community Scripts/Misc/frenrider_McVaxius.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 5315c8e5..0148cec8 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -452,6 +452,14 @@ while weirdvar == 1 do --yield("/bmrai follow "..fren) --we will use clingmove not bmrai follow as it breaks pathing from that point onwards clingmove(fren) + --allright im getting sick of pratorium. its time to do something. + if type(GetZoneID()) == "number" and GetZoneID() == 1044 and GetCharacterCondition(4) then --Praetorium + --if string.len(GetTargetName()) == 0 then + TargetClosestEnemy() + --end + yield("/send KEY_2") + yield("/wait 0.5") + end end if GetCharacterCondition(34) == false then --not in duty --SAFETY CHECKS DONE, can do whatever you want now with characterconditions etc From 9db7d144cc837c7a7ffe47d07f65365426be64bc Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 09:38:46 -0400 Subject: [PATCH 52/78] ok just tightened up the folders and moved my stuff into where it makes more sense. ok just tightened up the folders and moved my stuff into where it makes more sense. --- .../Ideas}/8manRaidTurnins_McVaxius.lua | 0 .../Ideas}/arbitraryduty_ideas.lua | 0 .../Misc/{dailytasks => Ideas}/dailytasks_McVaxius.lua | 5 +++++ .../RefreshFCPoints_no_lua_McVaxius.lua} | 0 .../{ => Misc}/Required Visland Presets/Visland_McVaxius.txt | 0 ...cVaxius.lua => updateFCpoints_wCharSwapping_McVaxius.lua} | 0 ...eFireupMapandGO.lua => simpleFireupMapandGO_McVaxius.lua} | 4 ++++ 7 files changed, 9 insertions(+) rename Community Scripts/{AutoRetainer Companions/RobustGCturnin => Misc/Ideas}/8manRaidTurnins_McVaxius.lua (100%) rename Community Scripts/{Dungeons/arbitrary duty solver => Misc/Ideas}/arbitraryduty_ideas.lua (100%) rename Community Scripts/Misc/{dailytasks => Ideas}/dailytasks_McVaxius.lua (93%) rename Community Scripts/{Allagan Tools Companions/RefreshFCPoints_McVaxius.lua => Misc/RefreshFCPoints_no_lua_McVaxius.lua} (100%) rename Community Scripts/{ => Misc}/Required Visland Presets/Visland_McVaxius.txt (100%) rename Community Scripts/Misc/{updateFCpoints_McVaxius.lua => updateFCpoints_wCharSwapping_McVaxius.lua} (100%) rename Community Scripts/Treasure Hunt/{simpleFireupMapandGO.lua => simpleFireupMapandGO_McVaxius.lua} (96%) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/8manRaidTurnins_McVaxius.lua b/Community Scripts/Misc/Ideas/8manRaidTurnins_McVaxius.lua similarity index 100% rename from Community Scripts/AutoRetainer Companions/RobustGCturnin/8manRaidTurnins_McVaxius.lua rename to Community Scripts/Misc/Ideas/8manRaidTurnins_McVaxius.lua diff --git a/Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_ideas.lua b/Community Scripts/Misc/Ideas/arbitraryduty_ideas.lua similarity index 100% rename from Community Scripts/Dungeons/arbitrary duty solver/arbitraryduty_ideas.lua rename to Community Scripts/Misc/Ideas/arbitraryduty_ideas.lua diff --git a/Community Scripts/Misc/dailytasks/dailytasks_McVaxius.lua b/Community Scripts/Misc/Ideas/dailytasks_McVaxius.lua similarity index 93% rename from Community Scripts/Misc/dailytasks/dailytasks_McVaxius.lua rename to Community Scripts/Misc/Ideas/dailytasks_McVaxius.lua index 3ab0af78..513182ab 100644 --- a/Community Scripts/Misc/dailytasks/dailytasks_McVaxius.lua +++ b/Community Scripts/Misc/Ideas/dailytasks_McVaxius.lua @@ -1,4 +1,7 @@ --[[ +2024-08-10 +small update. SND can now run scripts after AR so we can do this even easier than ever. + What is this ? A vague idea for now.... of a kind of manager script that does various things based on certain rules, continually so you can just fire and forget it. *you fire up the script and hope it doesnt fail and sit there idle somewhere with a LUA error :( @@ -18,7 +21,9 @@ Stuff I think is possible now I'm not sure if its possible or needs some slash commands? ************************************************************ *run TT for x hours a day or x matches a day at a specific time y on a specific char + *confirmed possible *attempts to buys 5 stack of fuel @ any FC that is below x value. checks every 12 hours + *confirmed possible **************************************************************************************************** Stuff that would be nice but technically annoying to do since we need more stuff for it to "happen" diff --git a/Community Scripts/Allagan Tools Companions/RefreshFCPoints_McVaxius.lua b/Community Scripts/Misc/RefreshFCPoints_no_lua_McVaxius.lua similarity index 100% rename from Community Scripts/Allagan Tools Companions/RefreshFCPoints_McVaxius.lua rename to Community Scripts/Misc/RefreshFCPoints_no_lua_McVaxius.lua diff --git a/Community Scripts/Required Visland Presets/Visland_McVaxius.txt b/Community Scripts/Misc/Required Visland Presets/Visland_McVaxius.txt similarity index 100% rename from Community Scripts/Required Visland Presets/Visland_McVaxius.txt rename to Community Scripts/Misc/Required Visland Presets/Visland_McVaxius.txt diff --git a/Community Scripts/Misc/updateFCpoints_McVaxius.lua b/Community Scripts/Misc/updateFCpoints_wCharSwapping_McVaxius.lua similarity index 100% rename from Community Scripts/Misc/updateFCpoints_McVaxius.lua rename to Community Scripts/Misc/updateFCpoints_wCharSwapping_McVaxius.lua diff --git a/Community Scripts/Treasure Hunt/simpleFireupMapandGO.lua b/Community Scripts/Treasure Hunt/simpleFireupMapandGO_McVaxius.lua similarity index 96% rename from Community Scripts/Treasure Hunt/simpleFireupMapandGO.lua rename to Community Scripts/Treasure Hunt/simpleFireupMapandGO_McVaxius.lua index 3f19818e..22450821 100644 --- a/Community Scripts/Treasure Hunt/simpleFireupMapandGO.lua +++ b/Community Scripts/Treasure Hunt/simpleFireupMapandGO_McVaxius.lua @@ -1,4 +1,8 @@ --[[ +Does this still work? +--* +flagging this as for followup. since i wanna run maps soon + script to fire up a map and go to it requires From 138c2fb9d37eb9e9723896bb35d71d63f9684b09 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:36:46 -0400 Subject: [PATCH 53/78] silver chocobo feathers are worth alot of gc seals silver chocobo feathers are worth alot of gc seals --- ...andSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua new file mode 100644 index 00000000..08d9edad --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua @@ -0,0 +1,103 @@ +--get to GC desk (Your GC desk) +--usual scripts and stuff needed. + +--return location, 0 fc, 2 = limsa bell etc +local franchise_owners = { +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0}, +{"Firstname Lastname@Server", 0} +} + +loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +functionsToLoad = loadfile(loadfiyel) +functionsToLoad() +DidWeLoadcorrectly() + +for i=1,#franchise_owners do + if GetCharacterName(true) ~= franchise_owners[i][1] then + yield("/ays relog " ..franchise_owners[i][1]) + yield("/wait 2") + CharacterSafeWait() + end + if GetItemCount(12995) > 0 then + yield("/tp limsa") + CharacterSafeWait() + yield("/li aft") + CharacterSafeWait() + visland_stop_moving() + how_many = 1 + bloop = GetItemCount(12995) + if bloop == 5 then how_many = 1 end + if bloop == 10 then how_many = 2 end + if bloop == 15 then how_many = 3 end + if bloop == 20 then how_many = 4 end + yield("/echo buying "..how_many.." thingies") + yield("/vnav moveto 4.8244118690491 44.5 154.6026763916") + visland_stop_moving() + yield("/target Calamity Salvager") + yield("/wait 2") + yield("/interact") + yield("/wait 2") + yield("/pcall SelectIconString true 6") + yield("/wait 3") + yield("/pcall SelectString true 6") + yield("/wait 3") + yield("/pcall ShopExchangeItem true 0 0 1 3u") + yield("/wait 3") + if how_many > 1 then + yield("/pcall ShopExchangeItem true 0 21 1 3u") + yield("/wait 3") + end + if how_many > 2 then + yield("/pcall ShopExchangeItem true 0 22 1 3u") + yield("/wait 3") + end + if how_many > 3 then + yield("/pcall ShopExchangeItem true 0 23 1 3u") + yield("/wait 3") + end + ungabunga() + end + --return home after getting the goodies + yield("/li") + yield("/echo See ya "..fat_tony..", a pleasure.") + yield("/wait 5") + CharacterSafeWait() + --added 5 second wait here because sometimes they get stuck. + yield("/wait 5") + if franchise_owners[i][3] == 0 then + yield("/tp Estate Hall") + yield("/wait 1") + --yield("/waitaddon Nowloading ") + yield("/wait 15") + yield("/waitaddon NamePlate ") + --normal small house shenanigans + yield("/hold W ") + yield("/release W") + yield("/target Entrance ") + yield("/lockon on") + yield("/automove on ") + yield("/automove off ") + yield("/hold Q ") + yield("/release Q") + end + --retainer bell nearby shenanigans + if franchise_owners[i][3] == 1 then + yield("/target \"Summoning Bell\"") + yield("/wait 2") + PathfindAndMoveTo(GetObjectRawXPos("Summoning Bell"), GetObjectRawYPos("Summoning Bell"), GetObjectRawZPos("Summoning Bell"), false) + visland_stop_moving() --added so we don't accidentally end before we get to the bell + end + --limsa bell + if franchise_owners[i][3] == 2 then + yield("/echo returning to limsa bell") + return_to_limsa_bell() + end + end +end \ No newline at end of file From ab36ec1a6a2bccdccc5ebef5c2474c8cf3a07f52 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:39:08 -0400 Subject: [PATCH 54/78] oops oops --- .../cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua index 08d9edad..ccb10af4 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua @@ -63,7 +63,6 @@ for i=1,#franchise_owners do yield("/wait 3") end ungabunga() - end --return home after getting the goodies yield("/li") yield("/echo See ya "..fat_tony..", a pleasure.") From f7fd5499f4e53b7b10a287ad21039af78019e54e Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:39:30 -0400 Subject: [PATCH 55/78] just a start doesn't work yet give me some time to game it out a bit more just a start doesn't work yet give me some time to game it out a bit more --- .../AutoMaintenance/AADMconfig_McVaxius.lua | 10 +++ .../AfterARDoneManager_McVaxius.lua | 81 +++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua new file mode 100644 index 00000000..6dfef26e --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua @@ -0,0 +1,10 @@ +AADM_processors = { +{"Firstname Lastname@Server", 10, 100, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, +{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"} +} \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua new file mode 100644 index 00000000..642e8a58 --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -0,0 +1,81 @@ +--[[ +After AR Done Manager +What does it do? + +configure AR to run a script after AR is done and it have it run THIS script. +This script will, aftre AR is done, do various things based on a set of rules you will configure in a separate file (AADMconfig_McVaxius.lua) + +It could be ocean fishing, triple triad, inventory cleaning, going for a jog around the housing ward, delivering something to specific person, crafting. or whatever! + +Requirements : SND +and maybe more - let's see where we go with it + +{"Firstname Lastname@Server", 0}, + +order of configs +from first ?, to last starting cardinality of 1 + +1 = full char name with @server, it is case sensitive and spelling sensitive please have a spreadsheet for this stuff folks +2 = return location for any operations that require teleporting and returning. standard locations from robust turnin apply. 0 = fc, 1 = near fc but bell, etc ill document later --* +3 = chance to clean inventory (check _functions.lua for details) - don't ask about this in the punish disc i wont respond and at best ill just block you. you can ask in liza disc if you want +4 = number of minutes of TT to run from 0 to whatever +5 = TT location to run, 1=arena roe, 2=manservant +6 = magitek repair kits to print (it will require you to have a npc in your house with g6dm vendor available. preferrably easily pathable from entrance) +7 = fuel restock safety stock - amount of fuel where we buy some more fuel to refill the coffers. it will check inventory slots free etc to make sure you can do it. maybe output to an "empire log" file if there is an issue +8 = fuel restock refuel amount - how much actual fuel to buy up to +9 = cuff a curr bonkings expressed in a amount of MGP to acquire each time from 0 to whatever +10 = FC buff 1 to refresh if its down +11 = FC buff 2 to refresh if its down +12 = fisher level. if its >0 and <100 (for now unless level cap changes) it will assume you want this char to go ocean fishing. it will iterate through the list at certain time of day and do ocean fishing on the lowest level char, and it will also update the table and output it +--]] + + +loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +functionsToLoad = loadfile(loadfiyel) +AADM_processors = { +{"Firstname Lastname@Server", 0, 10, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II", 100}, --your main char for example, 1 hour of manservant every refresh, 15 magitek repair kits every refresh, restock fuel to 6666 at 666 fuel remaining. +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 32}, --this char will be picked next for ocean fishing +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92} +} +loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" +functionsToLoad = loadfile(loadfiyel2) + +function getRandomNumber(min, max) + return math.random(min,max) +end + +ungabungabunga() --get out of anything safely. + +hoo_arr_weeeeee = 1 -- who are we + +for i=1,#AADM_processors do + if GetCharacterName(true) == AADM_processors[i][1] then + hoo_arr_weeeeee = i + end +end + +--begin to do stuff +------------------------------------ + +if AADM_processors[hoo_arr_weeeeee][2] > 0 then + if getRandomNumber(0,99) < AADM_processors[hoo_arr_weeeeee][2] then + clean_inventory() + ungabungabunga() + --*gc cleaning + end +end + + +------------------------------------ +--stop beginning to do stuff + ungabungabunga() +end + From ff1db7c4c3f6f2f200e26f33077990801a273b35 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:42:27 -0400 Subject: [PATCH 56/78] who the hell is fat tony who the hell is fat tony --- .../cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua index ccb10af4..eb574c08 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua @@ -65,7 +65,6 @@ for i=1,#franchise_owners do ungabunga() --return home after getting the goodies yield("/li") - yield("/echo See ya "..fat_tony..", a pleasure.") yield("/wait 5") CharacterSafeWait() --added 5 second wait here because sometimes they get stuck. From 9f7ca4de4d955c79e58cdd3f7d34f499a9965c73 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Sun, 11 Aug 2024 16:46:19 -0400 Subject: [PATCH 57/78] there we are there we are --- .../cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua index eb574c08..66fc0506 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/cycleCharsandSPENDSILVERCHOCOBOFEATHERS_McVaxius.lua @@ -69,7 +69,7 @@ for i=1,#franchise_owners do CharacterSafeWait() --added 5 second wait here because sometimes they get stuck. yield("/wait 5") - if franchise_owners[i][3] == 0 then + if franchise_owners[i][2] == 0 then yield("/tp Estate Hall") yield("/wait 1") --yield("/waitaddon Nowloading ") @@ -86,14 +86,14 @@ for i=1,#franchise_owners do yield("/release Q") end --retainer bell nearby shenanigans - if franchise_owners[i][3] == 1 then + if franchise_owners[i][2] == 1 then yield("/target \"Summoning Bell\"") yield("/wait 2") PathfindAndMoveTo(GetObjectRawXPos("Summoning Bell"), GetObjectRawYPos("Summoning Bell"), GetObjectRawZPos("Summoning Bell"), false) visland_stop_moving() --added so we don't accidentally end before we get to the bell end --limsa bell - if franchise_owners[i][3] == 2 then + if franchise_owners[i][2] == 2 then yield("/echo returning to limsa bell") return_to_limsa_bell() end From 39e2c80c405b343562213010bcb05d9eb7076ddd Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 01:05:09 -0400 Subject: [PATCH 58/78] still wip still wip --- .../AutoMaintenance/AADM_fishing.lua | 204 ++++++++++++++++++ .../AfterARDoneManager_McVaxius.lua | 77 ++++++- 2 files changed, 276 insertions(+), 5 deletions(-) create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua new file mode 100644 index 00000000..75e54958 --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua @@ -0,0 +1,204 @@ +function fishing() + yield("/echo Load -> "..AADM_processors[1]) + + --now we have to keep trying until we are on the right character.... just in case we are not. + while AADM_processors[lowestID][1] ~= GetCharacterName(true) do + yield("/ays relog " ..AADM_processors[lowestID][1]) + yield("/wait 3") + + yield("/waitaddon _ActionBar ") + end + + --ok we made it to the right character. let us continue. + + -- Teleport to Lisma + yield("/tp Limsa Lominsa Lower Decks ") + yield("/waitaddon _ActionBar ") + + yield("/ac sprint") + become_feesher() + --if all good then we move on to next part automagically + + --repair catte if we are at 50% durability or lower and have at least 5000 gil + while NeedsRepair(50) and GetItemCount(1) > 4999 do + PathfindAndMoveTo(-397.46423339844,3.0999958515167,78.562309265137,false) + visland_stop_moving() + yield("/target Merchant & Mender") + yield("/wait 1") + yield("/lockon on") + yield("/wait 1") + yield("/pinteract") + yield("/wait 1") + yield("/pcall SelectIconString true 1") + yield("/wait 1") + yield("/pcall Repair true 0") + yield("/wait 1") + yield("/pcall Repair true 1") + yield("/wait 1") + ungabunga() + end + yield("/bait Versatile Lure") + + --check if we have less than 3 versatile lures and more than 20000 gil if not we buy 20 of them! + while GetItemCount(29717) < 3 and GetItemCount(1) > 20000 do + PathfindAndMoveTo(-397.46423339844,3.0999958515167,78.562309265137,false) + visland_stop_moving() + yield("/target Merchant & Mender") + yield("/wait 1") + yield("/lockon on") + yield("/wait 1") + yield("/pinteract") + yield("/wait 1") + yield("/callback SelectIconString true 0") + yield("/wait 3") + yield("/callback Shop true 0 3 10") + yield("/wait 1") + yield("/callback Shop true 0 3 10") + yield("/wait 1") + ungabunga() + end + + yield("/bait Versatile Lure") + + yield("/echo Current area"..GetZoneID()) + zown = GetZoneID() + fzown = GetZoneID() + + --dryskthota + PathfindAndMoveTo(-409.42459106445,3.9999997615814,74.483444213867,false) + visland_stop_moving() + yield("/wait 1") + fishqtest = false + toolong = 0 + fishqtest = GetCharacterCondition(91) + while (type(fishqtest) == "boolean" and fishqtest == false) do + yield("/target Dryskthota") + yield("/pinteract ") + yield("/wait 1") + ungabunga() + yield("/wait 10") + fishqtest = GetCharacterCondition(91) + toolong = toolong + 1 + if GetCharacterCondition(34) == true then --sometimes we queue instantly. dont wanna get stuck! + fishqtest = true + end + if toolong > 30 then + fishqtest = true + end + end + + yield("/bait Versatile Lure") + + --get current area + --check if area has changed every 5 seconds. + while (zown == fzown) and (toolong < 30) do + fzown = GetZoneID() + yield("/wait 5") + end + --if so then wait for 30 seconds then start heading to the visland location + yield("") + + local randomNum = getRandomNumber(113,4043) + randomNum = (randomNum * -1) / 1000 + yield("/visland moveto 7.451 6.750 "..randomNum) + + --keep checking for that original area - once it is back. turn /ays multi back on + --also spam fishing + omadamkhoneh = 0 --counter to stop trying to move to edge since it will do bad stuff outside of instance after + while (zown ~= fzown) do + omadamkhoneh = omadamkhoneh + 1 + fzown = GetZoneID() + if omadamkhoneh > 100 then + visland_stop_moving() + omadamkhoneh = -200 --we dont want this to trigger again + end + if GetCharacterCondition(43)==false then + yield("/discardall") + yield("/wait 5") + end + if GetCharacterCondition(43)==false then + if GetZoneID() ~= 132 then + yield("/ac cast") + yield("/wait 1") + end + end + --try to exit the completion window faster + if IsAddonVisible("IKDResult") then + yield("/wait 15") + yield("/pcall IKDResult false 0") + end + if GetCharacterCondition(33)==true then + if GetCharacterCondition(34)==true then + if GetCharacterCondition(35)==false then + --LEAVE MENU!!!!!!!! + yield("/send NUMPAD0 ") + yield("/send NUMPAD0 ") + end + end + end + yield("/wait 1") + end + visland_stop_moving() + yield("/wait 30") + ungabungabunga() + yield("/waitaddon NamePlate ") + + --if we are tp to limsa bell + if AADM_processors[lowestID][2] == 2 then + return_to_limsa_bell() + yield("/wait 8") + end + + --if we are tp to inn. we will go to gridania yo + if AADM_processors[lowestID][2] == 3 then + yield("/tp New Gridania") + ZoneTransition() + yield("/wait 2") + PathfindAndMoveTo(48.969123840332, -1.5844612121582, 57.311756134033, false) + visland_stop_moving() --added so we don't accidentally end before we get to the inn person + yield("/visland exectemponce H4sIAAAAAAAACu3WS4/TMBAA4L9S+RxGfo0fuaEFpBUqLLtIXUAcDPVSS01cEgeEqv53nDSlWxAHUI65eWxnNPlkjb0nr1zlSUm+NGHt6uAWO9ek4LaLFBehrklBVu7HLoY6taT8sCc3sQ0pxJqUe3JPSmnAKsu4LMg7Uj5hgEZKxXhB3pMSNQjGNKpDDmPtr5+Rkom8duvWocv5GNCCLOM3X/k6kTIHNy5tHkK9JmVqOl+Q6zr5xn1Oq5A2r/vv6eXcWH0us93E76eVXF/O/uC27aMUQ9GsIM+rmPwpVfLVOHw67BiDN51v0+Pxnf86BMv4aZy+S3F3Fev1qJFnXobt9ip245/cxi75y/JWLqRzXX30IjaXOfrJt6Hyy7yPHoo/vFGBEGj1kZuCNohIe/7srQwgo8hm7qm4FQObDzQ/cUtpKcU+ztwawQqrZ+3JtCVIjsIctTkwTRH1YG0E5GNOJc7ak2nz3D14Bj9yK1BaS4sDt0VApZWdtSdr3AwYNxbHVmKASmWVPnIzKkFwTs3fvMV8Uf6jt8TcrM3wEjl7SzNyCxDa6rmZTHa8uQWRH4LmzP3rYDPUcr4kp5PWoASXVv0uzYAzIebH339Kfzz8BLifXG8MDQAA") + visland_stop_moving() --added so we don't accidentally end before we get to the inn person + yield("/target Antoinaut") + yield("/wait 0.5") + yield("/interact") + end + + --options 1 and 2 are fc estate entrance or fc state bell so thats only time we will tp to fc estate + if AADM_processors[lowestID][2] == 0 or AADM_processors[lowestID][2] == 1 then + --yield("/tp Estate Hall (Free Company)") + yield("/waitaddon NamePlate ") + yield("/li fc") + yield("/wait 1") + --yield("/waitaddon Nowloading ") + yield("/wait 15") + yield("/waitaddon NamePlate ") + end + + --normal small house shenanigans + if AADM_processors[lowestID][2] == 0 then + yield("/hold W ") + yield("/release W") + yield("/target Entrance ") + yield("/lockon on") + yield("/automove on ") + yield("/interact") + yield("/automove off ") + yield("/hold Q ") + yield("/interact") + yield("/release Q") + yield("/interact") + yield("/hold Q ") + yield("/interact") + yield("/release Q") + yield("/interact") + yield("/wait 1") + end + + --retainer bell nearby shenanigans + if AADM_processors[lowestID][2] == 1 then + yield("/target \"Summoning Bell\"") + yield("/wait 2") + PathfindAndMoveTo(GetObjectRawXPos("Summoning Bell"), GetObjectRawYPos("Summoning Bell"), GetObjectRawZPos("Summoning Bell"), false) + visland_stop_moving() --added so we don't accidentally end before we get to the bell + end +end --of fishing() diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index 642e8a58..2f544f42 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -30,6 +30,10 @@ from first ?, to last starting cardinality of 1 --]] +--some actual vars +force_fishing = 0 --set to 1 if you want the default indexed char to fish whenever possible +gc_cleaning_safetystock = 50 -- how many inventory units before we do a cleaning + loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" functionsToLoad = loadfile(loadfiyel) AADM_processors = { @@ -65,15 +69,78 @@ end --begin to do stuff ------------------------------------ -if AADM_processors[hoo_arr_weeeeee][2] > 0 then - if getRandomNumber(0,99) < AADM_processors[hoo_arr_weeeeee][2] then - clean_inventory() - ungabungabunga() - --*gc cleaning +--fishing - always check first since it takes some time sometimes to get it going +--dont do anything else if we are fishing. just return home and resume AR after +--secret variable +wheeequeheeheheheheheehhhee = 0 +--The next 2 lines of code copied from https://raw.githubusercontent.com/plottingCreeper/FFXIV-scripts-and-macros/main/SND/FishingRaid.lua +--line 319 to line 320 +--thanks botting creeper! +if os.date("!*t").hour%2==0 and os.date("!*t").min<15 then + if os.date("!*t").min>=1 then + wheeequeheeheheheheheehhhee = 1 + end +end + +--determine who is the lowest level fisher of them all. +--set this to the cardinality you want to force fishing on if thats what you want to do. +lowestID = 1 +for i=1,#AADM_processors do + if AADM_processors[i][12] > 0 and AADM_processors[i][12] < AADM_processors[lowestID][12] then + lowestID = i end end +--if the lowest guy is max level we aren't fishing yo +if AADM_processors[lowestID] == 100 and force_fishing == 0 then + wheeequeheeheheheheheehhhee = 0 + yield("/echo Lowest char is max level so we arent fishing") +end +--its fishinging time +if wheeequeheeheheheheheehhhee == 1 then + if GetCharacterCondition(31)==false then + if GetCharacterCondition(32)==false then + ungabungabunga() -- we really really try hard to be safe here + + --*load fishing functions + + yield("/waitaddon _ActionBar ") + fishing() + --drop a log file entry on the charname + Level + -- Open a file in write mode within the specified folder + local file = io.open(folderPath .. "FeeshLevels.txt", "a") + + if file then + -- Write text to the file + currentTime = os.date("*t") + formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) + file:write(formattedTime.." - ".."["..lowestID.."] - "..feesh_char.." - Fisher Lv - "..GetLevel().."\n") + -- Close the file handle + file:close() + yield("/echo Text has been written to '" .. folderPath .. "FeeshLevels.txt'") + else + yield("/echo Error: Unable to open file for writing") + end + end + end +end + +if wheeequeheeheheheheheehhhee == 0 then +-----start of processing things when there is no fishing + --inventory cleaning + if AADM_processors[hoo_arr_weeeeee][3] > 0 then + if getRandomNumber(0,99) < AADM_processors[hoo_arr_weeeeee][3] then + clean_inventory() + ungabungabunga() + --*if [3] was 100, we set it back down to 10 becuase 100 means a onetime guaranteed cleaning. sometimes we want to do this for whatever reason. + end + end + --* if inventory < whatever then we do gc cleaning + --*gc cleaning if inventory is under ?? units free even after the "cleaning" + +-----end of processing things when there is no fishing +end ------------------------------------ --stop beginning to do stuff ungabungabunga() From 3273867187d154183fefa49431bb97ebbfec1829 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:24:28 -0400 Subject: [PATCH 59/78] getting closer getting closer --- .../AfterARDoneManager_McVaxius.lua | 38 ++++++++++++------- .../RobustGCturnin/_functions.lua | 34 +++++++++++++++++ 2 files changed, 58 insertions(+), 14 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index 2f544f42..2114edf6 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -3,7 +3,7 @@ After AR Done Manager What does it do? configure AR to run a script after AR is done and it have it run THIS script. -This script will, aftre AR is done, do various things based on a set of rules you will configure in a separate file (AADMconfig_McVaxius.lua) +This script will, after AR is done, do various things based on a set of rules you will configure in a separate file (AADMconfig_McVaxius.lua) It could be ocean fishing, triple triad, inventory cleaning, going for a jog around the housing ward, delivering something to specific person, crafting. or whatever! @@ -27,27 +27,30 @@ from first ?, to last starting cardinality of 1 10 = FC buff 1 to refresh if its down 11 = FC buff 2 to refresh if its down 12 = fisher level. if its >0 and <100 (for now unless level cap changes) it will assume you want this char to go ocean fishing. it will iterate through the list at certain time of day and do ocean fishing on the lowest level char, and it will also update the table and output it +13 = personal house visit, every 100 times AR is checked it will visit the personal house of the char in question. resetting back to 1 once it visits and enters. set it to 0 to not visit a personal house --]] --some actual vars force_fishing = 0 --set to 1 if you want the default indexed char to fish whenever possible gc_cleaning_safetystock = 50 -- how many inventory units before we do a cleaning +folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" +--local folderPath = "F:/FF14/!gil/" loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" functionsToLoad = loadfile(loadfiyel) AADM_processors = { -{"Firstname Lastname@Server", 0, 10, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II", 100}, --your main char for example, 1 hour of manservant every refresh, 15 magitek repair kits every refresh, restock fuel to 6666 at 666 fuel remaining. -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 32}, --this char will be picked next for ocean fishing -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92} +{"Firstname Lastname@Server", 0, 10, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II", 100, 1}, --your main char for example, 1 hour of manservant every refresh, 15 magitek repair kits every refresh, restock fuel to 6666 at 666 fuel remaining. +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 32, 0}, --this char will be picked next for ocean fishing +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, +{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0} } loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" functionsToLoad = loadfile(loadfiyel2) @@ -103,7 +106,8 @@ if wheeequeheeheheheheheehhhee == 1 then if GetCharacterCondition(32)==false then ungabungabunga() -- we really really try hard to be safe here - --*load fishing functions + loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADM_fishing.lua" + functionsToLoad = loadfile(loadfiyel2) yield("/waitaddon _ActionBar ") fishing() @@ -115,13 +119,15 @@ if wheeequeheeheheheheheehhhee == 1 then -- Write text to the file currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - file:write(formattedTime.." - ".."["..lowestID.."] - "..feesh_char.." - Fisher Lv - "..GetLevel().."\n") + AADM_processors[lowestID][12] = GetLevel() + file:write(formattedTime.." - ".."["..lowestID.."] - "..AADM_processors[lowestID][1].." - Fisher Lv - "..AADM_processors[lowestID][12].."\n") -- Close the file handle file:close() yield("/echo Text has been written to '" .. folderPath .. "FeeshLevels.txt'") else yield("/echo Error: Unable to open file for writing") end + tablebunga("AADMconfig_McVaxius.lua","AADM_processors") end end end @@ -134,6 +140,10 @@ if wheeequeheeheheheheheehhhee == 0 then clean_inventory() ungabungabunga() --*if [3] was 100, we set it back down to 10 becuase 100 means a onetime guaranteed cleaning. sometimes we want to do this for whatever reason. + if AADM_processors[hoo_arr_weeeeee][3] == 100 then + AADM_processors[hoo_arr_weeeeee][3] = 10 + tablebunga("AADMconfig_McVaxius.lua","AADM_processors") + end end end --* if inventory < whatever then we do gc cleaning diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index a6fac1cc..7dcc7b5e 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -408,7 +408,12 @@ function clean_inventory() --https://raw.githubusercontent.com/ffxivcode/DalamudPlugins/main/repo.json --*start cleaning??? need slash command --*loop every 5 seconds and check if we have the right char condition to resume whatever we were doing. + --/automarket start|stop ungabunga() + yield("/automarket start") + CharacterSafeWait() + ungabunga() + yield("/automarket stop") end function try_to_buy_fuel(restock_amt) @@ -445,4 +450,33 @@ function try_to_buy_fuel(restock_amt) end yield("/echo We now have "..GetItemCount(10155).." Ceruelum Fuel Tanks") ungabunga() +end + +-- Function to serialize a table +function serializeTable(val, name, depth) + local serializedTable = string.rep(" ", depth) .. name .. " = {\n" + for i, v in ipairs(val) do + serializedTable = serializedTable .. string.rep(" ", depth + 2) .. "{" + for j, field in ipairs(v) do + if type(field) == "string" then + serializedTable = serializedTable .. string.format("%q", field) + else + serializedTable = serializedTable .. tostring(field) + end + if j < #v then + serializedTable = serializedTable .. ", " + end + end + serializedTable = serializedTable .. "},\n" + end + serializedTable = serializedTable .. string.rep(" ", depth) .. "}\n" + return serializedTable +end + +--write table data to file +function tablebunga(vun, twooo) + file = io.open(vun, "w") + file:write(twooo.." = ") + file:write(serializeTable(AADM_processors, twooo, 0)) + file:close() end \ No newline at end of file From e55fc17da4b4d1b85f0d6ced829f00c41a1c2e2b Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:46:45 -0400 Subject: [PATCH 60/78] now we have defaults! now we have defaults! --- .../AfterARDoneManager_McVaxius.lua | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index 2114edf6..a3d60c8c 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -52,6 +52,9 @@ AADM_processors = { {"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, {"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0} } +AADM_defaults={ +{"Firstname Lastname@Server", 0, 100, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 0, 0} +} loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" functionsToLoad = loadfile(loadfiyel2) @@ -61,7 +64,7 @@ end ungabungabunga() --get out of anything safely. -hoo_arr_weeeeee = 1 -- who are we +hoo_arr_weeeeee = -1 -- who are we for i=1,#AADM_processors do if GetCharacterName(true) == AADM_processors[i][1] then @@ -69,6 +72,23 @@ for i=1,#AADM_processors do end end +if hoo_arr_weeeeee == -1 then + --we have a new char to add to the table! + AADM_processors[#AADM_processors+1] = GetCharacterName(true) + end +end + +--check if any table data is missing and put in a default value +for i=1,#AADM_processors do + for j=1,#AADM_defaults[1] do + if AADM_processors[i][j] == nil then + AADM_processors[i][j] = AADM_defaults[1][j] + end + end +end + +--write the table just in case we crash or whatevre +tablebunga("AADMconfig_McVaxius.lua","AADM_processors") --begin to do stuff ------------------------------------ From 79d0f1963ee78db9ea64cadbb141c5cf26312e41 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:14:04 -0400 Subject: [PATCH 61/78] we doing 3D tables now we doing 3D tables now --- .../AfterARDoneManager_McVaxius.lua | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index a3d60c8c..35d3a17b 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -12,11 +12,12 @@ and maybe more - let's see where we go with it {"Firstname Lastname@Server", 0}, -order of configs -from first ?, to last starting cardinality of 1 - +configs +1D = table Cardinality +2D= 1 = full char name with @server, it is case sensitive and spelling sensitive please have a spreadsheet for this stuff folks 2 = return location for any operations that require teleporting and returning. standard locations from robust turnin apply. 0 = fc, 1 = near fc but bell, etc ill document later --* +3D= 3 = chance to clean inventory (check _functions.lua for details) - don't ask about this in the punish disc i wont respond and at best ill just block you. you can ask in liza disc if you want 4 = number of minutes of TT to run from 0 to whatever 5 = TT location to run, 1=arena roe, 2=manservant @@ -39,21 +40,21 @@ folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedD loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" functionsToLoad = loadfile(loadfiyel) -AADM_processors = { -{"Firstname Lastname@Server", 0, 10, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II", 100, 1}, --your main char for example, 1 hour of manservant every refresh, 15 magitek repair kits every refresh, restock fuel to 6666 at 666 fuel remaining. -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 32, 0}, --this char will be picked next for ocean fishing -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0}, -{"Firstname Lastname@Server", 0, 10, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 92, 0} -} -AADM_defaults={ -{"Firstname Lastname@Server", 0, 100, 0, 0, 0, 0, 0, 0, "nothing", "nothing", 0, 0} +AADM_processors = {} --initialize variable + +--3D Table +AADM_defaults= +{ + { "Firstname Lastname@Server", 0 --name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home + {"Fishing", 0}, --level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists + {"Cleaning", 100, 0, 0, 0}, --chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. + {"Fuel", 0, 0}, --fuel safety stock trigger, fuel to buy up to + {"TT", 0, 0}, --minutes of TT, npc to play 1= roe 2= manservant + {"Cuffed", 0}, --minutes of cufffacur to run . assumes in front of an "entrance" + {"MRK", 0}, --number of magitek repair kits to quick synth after each AR check + {"FCB", "nothing", "nothing"}, --refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) + {"PHV", 0, 100} --0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it + } } loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" functionsToLoad = loadfile(loadfiyel2) @@ -64,7 +65,7 @@ end ungabungabunga() --get out of anything safely. -hoo_arr_weeeeee = -1 -- who are we +hoo_arr_weeeeee = -1 -- who are we default to -1 for figuring out if new char or not for i=1,#AADM_processors do if GetCharacterName(true) == AADM_processors[i][1] then @@ -159,7 +160,7 @@ if wheeequeheeheheheheheehhhee == 0 then if getRandomNumber(0,99) < AADM_processors[hoo_arr_weeeeee][3] then clean_inventory() ungabungabunga() - --*if [3] was 100, we set it back down to 10 becuase 100 means a onetime guaranteed cleaning. sometimes we want to do this for whatever reason. + --if [3] was 100, we set it back down to 10 becuase 100 means a onetime guaranteed cleaning. sometimes we want to do this for whatever reason perhaps after loading bunch of chars with items for gc seals? if AADM_processors[hoo_arr_weeeeee][3] == 100 then AADM_processors[hoo_arr_weeeeee][3] = 10 tablebunga("AADMconfig_McVaxius.lua","AADM_processors") From f75dd915caa2bc734303cada224af586818979ba Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:22:32 -0400 Subject: [PATCH 62/78] made a little guide for myself made a little guide for myself --- .../AfterARDoneManager_McVaxius.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index 35d3a17b..edf2d965 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -45,15 +45,16 @@ AADM_processors = {} --initialize variable --3D Table AADM_defaults= { - { "Firstname Lastname@Server", 0 --name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home - {"Fishing", 0}, --level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists - {"Cleaning", 100, 0, 0, 0}, --chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. - {"Fuel", 0, 0}, --fuel safety stock trigger, fuel to buy up to - {"TT", 0, 0}, --minutes of TT, npc to play 1= roe 2= manservant - {"Cuffed", 0}, --minutes of cufffacur to run . assumes in front of an "entrance" - {"MRK", 0}, --number of magitek repair kits to quick synth after each AR check - {"FCB", "nothing", "nothing"}, --refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) - {"PHV", 0, 100} --0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it + { "Firstname Lastname@Server", 0 ------{}[i][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home + {"FISH", 0}, ---{}[i][3][1..2]--level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists + {"CLEAN", 100, 0, 0, 0}, ---{}[i][4][1..5]--chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. + {"FUEL", 0, 0}, ---{}[i][5][1..3]--fuel safety stock trigger, fuel to buy up to + {"TT", 0, 0}, ---{}[i][6][1..3]--minutes of TT, npc to play 1= roe 2= manservant + {"CUFF", 0}, ---{}[i][7][1..2]--minutes of cufffacur to run . assumes in front of an "entrance" + {"MRK", 0}, ---{}[i][8][1..2]--number of magitek repair kits to quick synth after each AR check + {"FCB", "nothing", "nothing"}, ---{}[i][9][1..3]--refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) + {"PHV", 0, 100}, --{}[i][10][1..3]--0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it + {"DUTY", "Teaspoon Dropping Closet", -5, 0} --{}[i][11][1..4]--name of duty, number of times to run (negative values for one time run - set to 0 after), normal 0 unsynced 1 } } loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" From f1ebdbf2a6f71301c5e9516c9ac2d39005869b82 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:28:03 -0400 Subject: [PATCH 63/78] AADM almost ready for testing AADM almost ready for testing or is it? --- .../AfterARDoneManager_McVaxius.lua | 10 +- .../RobustGCturnin/_functions.lua | 96 ++++++++++++++++++- 2 files changed, 101 insertions(+), 5 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua index edf2d965..717e69ce 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua @@ -40,9 +40,10 @@ folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedD loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" functionsToLoad = loadfile(loadfiyel) +functionsToLoad() AADM_processors = {} --initialize variable ---3D Table +--3D Table {}[i][j][k] AADM_defaults= { { "Firstname Lastname@Server", 0 ------{}[i][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home @@ -82,9 +83,10 @@ end --check if any table data is missing and put in a default value for i=1,#AADM_processors do - for j=1,#AADM_defaults[1] do - if AADM_processors[i][j] == nil then - AADM_processors[i][j] = AADM_defaults[1][j] + for j=3,#AADM_defaults[1] do + for k=1,#AADM_defaults[1][j] + if AADM_processors[i][j][k] == nil then + AADM_processors[i][j][k] = AADM_defaults[1][j][k] end end end diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 7dcc7b5e..ed5fc3c3 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -1,3 +1,97 @@ + +--***************************************************************** +--************************* START INIZER ************************** +--***************************************************************** +-- Purpose: to have default .ini values and version control on configs +-- Personal ini file +-- if you want to use my ini file serializer just copy form start of inizer to end of inizer and look at how i implemented settings and go nuts :~D + +-- Function to open a folder in Explorer +function openFolderInExplorer(folderPath) + if folderPath then + folderPath = '"' .. folderPath .. '"' + os.execute('explorer ' .. folderPath) + else + yield("/echo Error: Folder path not provided.") + end +end + +function serialize(value) + if type(value) == "boolean" then + return tostring(value) + elseif type(value) == "number" then + return tostring(value) + else -- Default to string + return '"' .. tostring(value) .. '"' + end +end + +function deserialize(value) + if value == "true" then + return true + elseif value == "false" then + return false + elseif tonumber(value) then + return tonumber(value) + else + return value:gsub('^"(.*)"$', "%1") + end +end + +function read_ini_file() + local variables = {} + local file = io.open(filename, "r") + if not file then + return variables + end + + for line in file:lines() do + local name, val = line:match("([^=]+)=(.*)") + if name and val then + variables[name] = deserialize(val) + end + end + file:close() + return variables +end + +function write_ini_file(variables) + local file = io.open(filename, "w") + if not file then + yield("/echo Error: Unable to open file for writing: " .. filename) + return + end + + for name, value in pairs(variables) do + file:write(name .. "=" .. serialize(value) .. "\n") + end + file:close() +end + +function ini_check(varname, varvalue) + local variables = read_ini_file() + + if variables["version"] and tonumber(variables["version"]) ~= vershun then + yield("/echo Version mismatch. Recreating file.") + variables = {version = vershun} + end + + if variables[varname] == nil then + variables[varname] = varvalue + yield("/echo Initialized " .. varname .. " -> " .. tostring(varvalue)) + else + yield("/echo Loaded " .. varname .. " -> " .. tostring(variables[varname])) + end + + write_ini_file(variables) + return variables[varname] +end + +--***************************************************************** +--************************** END INIZER *************************** +--***************************************************************** + + function become_feesher() yield("/equipitem 2571") --weathered fishing rod yield("/wait 0.5") @@ -479,4 +573,4 @@ function tablebunga(vun, twooo) file:write(twooo.." = ") file:write(serializeTable(AADM_processors, twooo, 0)) file:close() -end \ No newline at end of file +end From 2de7285b51b7d97512f7d474322178e3fea98413 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:28:15 -0400 Subject: [PATCH 64/78] frenrider cleanup frenrider cleanup --- Community Scripts/Misc/frenrider_McVaxius.lua | 107 +++--------------- 1 file changed, 16 insertions(+), 91 deletions(-) diff --git a/Community Scripts/Misc/frenrider_McVaxius.lua b/Community Scripts/Misc/frenrider_McVaxius.lua index 0148cec8..a1cb69c6 100644 --- a/Community Scripts/Misc/frenrider_McVaxius.lua +++ b/Community Scripts/Misc/frenrider_McVaxius.lua @@ -11,11 +11,16 @@ https://puni.sh/api/repository/taurenkey https://raw.githubusercontent.com/SubZero0/Dalamud.SkipCutscene/dist/repo.json https://raw.githubusercontent.com/FFXIV-CombatReborn/CombatRebornRepo/main/pluginmaster.json +*recommendation: +delete all the comments before the vars once you get it working properly + *requirements: croizats SND - disable SND targeting in config simpletweaks with targeting fix enabled vnavmesh visland +_functions.lua into your SND folder in %AppData%\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions +you can find it here https://raw.githubusercontent.com/Jaksuhn/SomethingNeedDoing/master/Community%20Scripts/AutoRetainer%20Companions/RobustGCturnin/_functions.lua *optional: bring some gysahl greens @@ -24,7 +29,7 @@ discardhelper cutscene skipper (MSQ roullette cutscenes) lazyloot plugin (if your doing anything other than fates) VBM/BMR (bmr has slash commands for following and more modules) -RSR (is RS still being updated?) +RSR ***Few annoying problems that still exist *dont follow during combat unless non caster. will require bmr contemplation - seems bmr has contemplated it with distance command will consider adding new setting for this :~D @@ -56,98 +61,12 @@ I will do it a bit later once i uhh. make a lookup table for this trash here: -- Purpose: to have default .ini values and version control on configs -- Personal ini file -- if you want to use my ini file serializer just copy form start of inizer to end of inizer and look at how i implemented settings and go nuts :~D -filename_prefix = "frenrider_" -- Script name -open_on_next_load = 0 -- Set this to 1 if you want the next time the script loads, to open the explorer folder with all of the .ini files - --- Function to open a folder in Explorer -function openFolderInExplorer(folderPath) - if folderPath then - folderPath = '"' .. folderPath .. '"' - os.execute('explorer ' .. folderPath) - else - yield("/echo Error: Folder path not provided.") - end -end - tempchar = GetCharacterName() tempchar = tempchar:gsub("%s", "") -- Remove all spaces tempchar = tempchar:gsub("'", "") -- Remove all apostrophes -local filename = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\"..filename_prefix..tempchar..".ini" - -if open_on_next_load == 1 then - openFolderInExplorer(os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\") -end - -function serialize(value) - if type(value) == "boolean" then - return tostring(value) - elseif type(value) == "number" then - return tostring(value) - else -- Default to string - return '"' .. tostring(value) .. '"' - end -end - -function deserialize(value) - if value == "true" then - return true - elseif value == "false" then - return false - elseif tonumber(value) then - return tonumber(value) - else - return value:gsub('^"(.*)"$', "%1") - end -end - -function read_ini_file() - local variables = {} - local file = io.open(filename, "r") - if not file then - return variables - end - - for line in file:lines() do - local name, val = line:match("([^=]+)=(.*)") - if name and val then - variables[name] = deserialize(val) - end - end - file:close() - return variables -end - -function write_ini_file(variables) - local file = io.open(filename, "w") - if not file then - yield("/echo Error: Unable to open file for writing: " .. filename) - return - end - - for name, value in pairs(variables) do - file:write(name .. "=" .. serialize(value) .. "\n") - end - file:close() -end - -function ini_check(varname, varvalue) - local variables = read_ini_file() - - if variables["version"] and tonumber(variables["version"]) ~= vershun then - yield("/echo Version mismatch. Recreating file.") - variables = {version = vershun} - end - - if variables[varname] == nil then - variables[varname] = varvalue - yield("/echo Initialized " .. varname .. " -> " .. tostring(varvalue)) - else - yield("/echo Loaded " .. varname .. " -> " .. tostring(variables[varname])) - end - - write_ini_file(variables) - return variables[varname] -end +filename_prefix = "frenrider_" -- Script name +filename = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\"..filename_prefix..tempchar..".ini" +open_on_next_load = 0 -- Set this to 1 if you want the next time the script loads, to open the explorer folder with all of the .ini files -- Ensure the version is always written to the file -- VERSION VAR -- @@ -160,6 +79,10 @@ ini_check("version", vershun) -- VERSION VAR -- -- VERSION VAR -- -- VERSION VAR -- +loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +functionsToLoad = loadfile(loadfiyel) +functionsToLoad() +ini_check("version", vershun) --***************************************************************** --************************** END INIZER *************************** @@ -217,7 +140,9 @@ exmample qolbar for telling group to go instance 2 -- mker = "cross" -- In case you want the other shapes. Valid shapes are triangle square circle attack1-8 bind1-3 ignore1-2 -----------CONFIGURATION END----------- - +if open_on_next_load == 1 then + openFolderInExplorer(os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\") +end ---------------- --INIT SECTION-- ---------------- From 73b6aeb45b1552065d5d7a79372a8e87a2c75a45 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:49:42 -0400 Subject: [PATCH 65/78] oh my oh my --- .../AutoMaintenance/AADMconfig_McVaxius.lua | 10 - .../AfterARDoneManager_McVaxius.lua | 182 --------------- .../{AADM_fishing.lua => FUTA_fishing.lua} | 0 .../AutoMaintenance/FUTAconfig_McVaxius.lua | 2 + .../FulllyUnifiedTaskAutomation_McVaxius.lua | 208 ++++++++++++++++++ .../RobustGCturnin/_functions.lua | 107 +++++++-- 6 files changed, 294 insertions(+), 215 deletions(-) delete mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua delete mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua rename Community Scripts/AutoRetainer Companions/AutoMaintenance/{AADM_fishing.lua => FUTA_fishing.lua} (100%) create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua deleted file mode 100644 index 6dfef26e..00000000 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADMconfig_McVaxius.lua +++ /dev/null @@ -1,10 +0,0 @@ -AADM_processors = { -{"Firstname Lastname@Server", 10, 100, 2, 60, 20, 666, 6666, 50, "Helping Hand II", "Make it Rain II"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"}, -{"Firstname Lastname@Server", 10, 0, 0, 0, 0, 0, 0, 0, "nothing", "nothing"} -} \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua deleted file mode 100644 index 717e69ce..00000000 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua +++ /dev/null @@ -1,182 +0,0 @@ ---[[ -After AR Done Manager -What does it do? - -configure AR to run a script after AR is done and it have it run THIS script. -This script will, after AR is done, do various things based on a set of rules you will configure in a separate file (AADMconfig_McVaxius.lua) - -It could be ocean fishing, triple triad, inventory cleaning, going for a jog around the housing ward, delivering something to specific person, crafting. or whatever! - -Requirements : SND -and maybe more - let's see where we go with it - -{"Firstname Lastname@Server", 0}, - -configs -1D = table Cardinality -2D= -1 = full char name with @server, it is case sensitive and spelling sensitive please have a spreadsheet for this stuff folks -2 = return location for any operations that require teleporting and returning. standard locations from robust turnin apply. 0 = fc, 1 = near fc but bell, etc ill document later --* -3D= -3 = chance to clean inventory (check _functions.lua for details) - don't ask about this in the punish disc i wont respond and at best ill just block you. you can ask in liza disc if you want -4 = number of minutes of TT to run from 0 to whatever -5 = TT location to run, 1=arena roe, 2=manservant -6 = magitek repair kits to print (it will require you to have a npc in your house with g6dm vendor available. preferrably easily pathable from entrance) -7 = fuel restock safety stock - amount of fuel where we buy some more fuel to refill the coffers. it will check inventory slots free etc to make sure you can do it. maybe output to an "empire log" file if there is an issue -8 = fuel restock refuel amount - how much actual fuel to buy up to -9 = cuff a curr bonkings expressed in a amount of MGP to acquire each time from 0 to whatever -10 = FC buff 1 to refresh if its down -11 = FC buff 2 to refresh if its down -12 = fisher level. if its >0 and <100 (for now unless level cap changes) it will assume you want this char to go ocean fishing. it will iterate through the list at certain time of day and do ocean fishing on the lowest level char, and it will also update the table and output it -13 = personal house visit, every 100 times AR is checked it will visit the personal house of the char in question. resetting back to 1 once it visits and enters. set it to 0 to not visit a personal house ---]] - - ---some actual vars -force_fishing = 0 --set to 1 if you want the default indexed char to fish whenever possible -gc_cleaning_safetystock = 50 -- how many inventory units before we do a cleaning -folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" ---local folderPath = "F:/FF14/!gil/" - -loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" -functionsToLoad = loadfile(loadfiyel) -functionsToLoad() -AADM_processors = {} --initialize variable - ---3D Table {}[i][j][k] -AADM_defaults= -{ - { "Firstname Lastname@Server", 0 ------{}[i][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home - {"FISH", 0}, ---{}[i][3][1..2]--level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists - {"CLEAN", 100, 0, 0, 0}, ---{}[i][4][1..5]--chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. - {"FUEL", 0, 0}, ---{}[i][5][1..3]--fuel safety stock trigger, fuel to buy up to - {"TT", 0, 0}, ---{}[i][6][1..3]--minutes of TT, npc to play 1= roe 2= manservant - {"CUFF", 0}, ---{}[i][7][1..2]--minutes of cufffacur to run . assumes in front of an "entrance" - {"MRK", 0}, ---{}[i][8][1..2]--number of magitek repair kits to quick synth after each AR check - {"FCB", "nothing", "nothing"}, ---{}[i][9][1..3]--refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) - {"PHV", 0, 100}, --{}[i][10][1..3]--0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it - {"DUTY", "Teaspoon Dropping Closet", -5, 0} --{}[i][11][1..4]--name of duty, number of times to run (negative values for one time run - set to 0 after), normal 0 unsynced 1 - } -} -loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADMconfig_McVaxius.lua" -functionsToLoad = loadfile(loadfiyel2) - -function getRandomNumber(min, max) - return math.random(min,max) -end - -ungabungabunga() --get out of anything safely. - -hoo_arr_weeeeee = -1 -- who are we default to -1 for figuring out if new char or not - -for i=1,#AADM_processors do - if GetCharacterName(true) == AADM_processors[i][1] then - hoo_arr_weeeeee = i - end -end - -if hoo_arr_weeeeee == -1 then - --we have a new char to add to the table! - AADM_processors[#AADM_processors+1] = GetCharacterName(true) - end -end - ---check if any table data is missing and put in a default value -for i=1,#AADM_processors do - for j=3,#AADM_defaults[1] do - for k=1,#AADM_defaults[1][j] - if AADM_processors[i][j][k] == nil then - AADM_processors[i][j][k] = AADM_defaults[1][j][k] - end - end -end - ---write the table just in case we crash or whatevre -tablebunga("AADMconfig_McVaxius.lua","AADM_processors") ---begin to do stuff ------------------------------------- - ---fishing - always check first since it takes some time sometimes to get it going ---dont do anything else if we are fishing. just return home and resume AR after ---secret variable -wheeequeheeheheheheheehhhee = 0 ---The next 2 lines of code copied from https://raw.githubusercontent.com/plottingCreeper/FFXIV-scripts-and-macros/main/SND/FishingRaid.lua ---line 319 to line 320 ---thanks botting creeper! -if os.date("!*t").hour%2==0 and os.date("!*t").min<15 then - if os.date("!*t").min>=1 then - wheeequeheeheheheheheehhhee = 1 - end -end - ---determine who is the lowest level fisher of them all. ---set this to the cardinality you want to force fishing on if thats what you want to do. -lowestID = 1 -for i=1,#AADM_processors do - if AADM_processors[i][12] > 0 and AADM_processors[i][12] < AADM_processors[lowestID][12] then - lowestID = i - end -end - ---if the lowest guy is max level we aren't fishing yo -if AADM_processors[lowestID] == 100 and force_fishing == 0 then - wheeequeheeheheheheheehhhee = 0 - yield("/echo Lowest char is max level so we arent fishing") -end - ---its fishinging time -if wheeequeheeheheheheheehhhee == 1 then - if GetCharacterCondition(31)==false then - if GetCharacterCondition(32)==false then - ungabungabunga() -- we really really try hard to be safe here - - loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\AADM_fishing.lua" - functionsToLoad = loadfile(loadfiyel2) - - yield("/waitaddon _ActionBar ") - fishing() - --drop a log file entry on the charname + Level - -- Open a file in write mode within the specified folder - local file = io.open(folderPath .. "FeeshLevels.txt", "a") - - if file then - -- Write text to the file - currentTime = os.date("*t") - formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - AADM_processors[lowestID][12] = GetLevel() - file:write(formattedTime.." - ".."["..lowestID.."] - "..AADM_processors[lowestID][1].." - Fisher Lv - "..AADM_processors[lowestID][12].."\n") - -- Close the file handle - file:close() - yield("/echo Text has been written to '" .. folderPath .. "FeeshLevels.txt'") - else - yield("/echo Error: Unable to open file for writing") - end - tablebunga("AADMconfig_McVaxius.lua","AADM_processors") - end - end -end - -if wheeequeheeheheheheheehhhee == 0 then ------start of processing things when there is no fishing - --inventory cleaning - if AADM_processors[hoo_arr_weeeeee][3] > 0 then - if getRandomNumber(0,99) < AADM_processors[hoo_arr_weeeeee][3] then - clean_inventory() - ungabungabunga() - --if [3] was 100, we set it back down to 10 becuase 100 means a onetime guaranteed cleaning. sometimes we want to do this for whatever reason perhaps after loading bunch of chars with items for gc seals? - if AADM_processors[hoo_arr_weeeeee][3] == 100 then - AADM_processors[hoo_arr_weeeeee][3] = 10 - tablebunga("AADMconfig_McVaxius.lua","AADM_processors") - end - end - end - --* if inventory < whatever then we do gc cleaning - --*gc cleaning if inventory is under ?? units free even after the "cleaning" - ------end of processing things when there is no fishing -end ------------------------------------- ---stop beginning to do stuff - ungabungabunga() -end - diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua similarity index 100% rename from Community Scripts/AutoRetainer Companions/AutoMaintenance/AADM_fishing.lua rename to Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua new file mode 100644 index 00000000..867ec8df --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua @@ -0,0 +1,2 @@ +FUTA_processors = { +} \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua new file mode 100644 index 00000000..48505344 --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -0,0 +1,208 @@ +-- Some actual vars +force_fishing = 0 -- Set to 1 if you want the default indexed char to fish whenever possible +gc_cleaning_safetystock = 50 -- How many inventory units before we do a cleaning +folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" + +loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +functionsToLoad = loadfile(loadfiyel) +functionsToLoad() + +FUTA_processors = {} -- Initialize variable + +-- 3D Table {}[i][j][k] +FUTA_defaults = { + { + {"Firstname Lastname@Server", 0}, -- {}[i][1..2] -- Name@server and return type + {"FISH", 0}, -- {}[i][2][1..2] -- Level + {"CLEAN", 100, 0, 0, 0}, -- {}[i][3][1..5] -- Chance to do random cleaning + {"FUEL", 0, 0}, -- {}[i][4][1..3] -- Fuel safety stock trigger + {"TT", 0, 0}, -- {}[i][5][1..3] -- Minutes of TT, NPC to play + {"CUFF", 0}, -- {}[i][6][1..2] -- Minutes of Cuff a Cur + {"MRK", 0}, -- {}[i][7][1..2] -- Number of Magitek Repair Kits + {"FCB", "nothing", "nothing"}, -- {}[i][8][1..3] -- Refresh FC buffs + {"PHV", 0, 100}, -- {}[i][9][1..3] -- Personal house visit + {"DUTY", "Teaspoon Dropping Closet", -5, 0} -- {}[i][10][1..4] -- Duty details + } +} + +-- Define the file path where serialized data is stored +fullPath = os.getenv("appdata") .. "\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\FUTAconfig_McVaxius.lua" + +-- Read and deserialize the data +serializedData = readSerializedData(fullPath) +deserializedTable = {} +if serializedData then + deserializedTable = deserializeTable(serializedData) + -- Assign the deserialized table to FUTA_processors + FUTA_processors = deserializedTable + + -- Check the deserialized table + yield("/echo Deserialized table:") + --printTable(FUTA_processors) +else + yield("/echo Error: Serialized data is nil.") +end + +--loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfi----gs\\SomethingNeedDoing\\FUTAconfig_McVaxius.lua" +--functionsToLoad2 = loadfile(loadfiyel2) +--functionsToLoad2() + +function getRandomNumber(min, max) + return math.random(min, max) +end + +ungabungabunga() -- Get out of anything safely. + +hoo_arr_weeeeee = -1 -- Who are we? Default to -1 for figuring out if new char or not + +for i = 1, #FUTA_processors do + if GetCharacterName(true) == FUTA_processors[i][1][1] then + hoo_arr_weeeeee = i + end +end + +if hoo_arr_weeeeee == -1 then + -- We have a new char to add to the table! + FUTA_processors[#FUTA_processors + 1] = {} + -- Initialize all levels with defaults + for j = 1, #FUTA_defaults[1] do + FUTA_processors[#FUTA_processors][j] = {} + + for k = 1, #FUTA_defaults[1][j] do + FUTA_processors[#FUTA_processors][j][k] = FUTA_defaults[1][j][k] + end + end + + -- Assign the character name + FUTA_processors[#FUTA_processors][1][1] = GetCharacterName(true) +end + +-- Check if any table data is missing and put in a default value +for i = 1, #FUTA_processors do + yield("/echo Type of FUTA_processors["..i.."]:" .. type(FUTA_processors[i])) + for j = 2, #FUTA_defaults[1] do + yield("/echo Type of FUTA_processors["..i.."]["..j.."]:" .. type(FUTA_processors[i][j])) + for k = 1, #FUTA_defaults[1][j] do + yield("/echo Type of FUTA_processors["..i.."]["..j.."]["..k.."]:" .. type(FUTA_processors[i][j][k])) + if FUTA_processors[i][j][k] == nil then + FUTA_processors[i][j][k] = FUTA_defaults[1][j][k] + end + end + end +end + + + +--[[ +-- Function to recursively print table contents +function printTable(t, indent) + indent = indent or "" + if type(t) ~= "table" then + yield("/echo " .. indent .. tostring(t)) + return + end + + for k, v in pairs(t) do + local key = tostring(k) + if type(v) == "table" then + yield("/echo " .. indent .. key .. " =>") + printTable(v, indent .. " ") -- Recursive call with increased indent + else + yield("/echo " .. indent .. key .. " => " .. tostring(v)) + end + end +end + +-- Debug: Output the contents of FUTA_processors +if #FUTA_processors == 0 then + yield("/echo FUTA_processors is empty!") +else + yield("/echo FUTA_processors contents:") + for i = 1, #FUTA_processors do + yield("/echo Entry " .. i .. ":") + printTable(FUTA_processors[i], " ") + end +end +--]] + +-- After tablebunga() call +tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) +yield("/echo tablebunga() completed successfully") + +-- Begin to do stuff +wheeequeheeheheheheheehhhee = 0 -- Secret variable +yield("/echo Debug: Beginning to do stuff") + +if os.date("!*t").hour % 2 == 0 and os.date("!*t").min < 15 then + if os.date("!*t").min >= 1 then + wheeequeheeheheheheheehhhee = 1 + end +end +yield("/echo Debug: Time check completed") + +-- Determine who is the lowest level fisher of them all. +lowestID = 1 +for i = 1, #FUTA_processors do + if FUTA_processors[i][2][2] > 0 and FUTA_processors[i][2][2] < FUTA_processors[lowestID][2][2] then + lowestID = i + end +end +yield("/echo Debug: Lowest ID determined as " .. lowestID) + +-- If the lowest guy is max level, we aren't fishing +if FUTA_processors[lowestID][2][2] == 100 and force_fishing == 0 then + wheeequeheeheheheheheehhhee = 0 + yield("/echo Lowest char is max level so we aren't fishing") +end + +-- It's fishing time +if wheeequeheeheheheheheehhhee == 1 then + if GetCharacterCondition(31) == false then + if GetCharacterCondition(32) == false then + ungabungabunga() -- We really try hard to be safe here + yield("/echo Debug: Preparing for fishing") + + loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\FUTA_fishing.lua" + functionsToLoad = loadfile(loadfiyel2) + + yield("/waitaddon _ActionBar ") + fishing() + yield("/echo Debug: Fishing completed") + + -- Drop a log file entry on the charname + Level + local file = io.open(folderPath .. "FeeshLevels.txt", "a") + if file then + currentTime = os.date("*t") + formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) + FUTA_processors[lowestID][3][2] = GetLevel() + file:write(formattedTime.." - ".."["..lowestID.."] - "..FUTA_processors[lowestID][3][1].." - Fisher Lv - "..FUTA_processors[lowestID][3][2].."\n") + file:close() + yield("/echo Text has been written to '" .. folderPath .. "FeeshLevels.txt'") + else + yield("/echo Error: Unable to open file for writing") + end + tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) + yield("/echo Debug: Log file entry completed") + end + end +else + -- Start of processing things when there is no fishing + if FUTA_processors[hoo_arr_weeeeee][3][2] > 0 then + if getRandomNumber(0, 99) < FUTA_processors[hoo_arr_weeeeee][3][2] then + yield("/echo Debug: Inventory cleaning adjustment started") + clean_inventory() + ungabungabunga() + -- If [3] was 100, we set it back down to 10 because 100 means a one-time guaranteed cleaning + if FUTA_processors[hoo_arr_weeeeee][3][2] == 100 then + FUTA_processors[hoo_arr_weeeeee][3][2] = 10 + tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) + yield("/echo Debug: Inventory cleaning adjustment completed") + end + end + --*check inventory size and do gcturnin shit + end +end + +-- Stop beginning to do stuff +ungabungabunga() +yield("/echo Debug: Finished all processing") \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index ed5fc3c3..f2a53eba 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -546,31 +546,92 @@ function try_to_buy_fuel(restock_amt) ungabunga() end --- Function to serialize a table -function serializeTable(val, name, depth) - local serializedTable = string.rep(" ", depth) .. name .. " = {\n" - for i, v in ipairs(val) do - serializedTable = serializedTable .. string.rep(" ", depth + 2) .. "{" - for j, field in ipairs(v) do - if type(field) == "string" then - serializedTable = serializedTable .. string.format("%q", field) - else - serializedTable = serializedTable .. tostring(field) - end - if j < #v then - serializedTable = serializedTable .. ", " - end + +function serializeTable(t, indent) + indent = indent or "" + local result = "{\n" + local innerIndent = indent .. " " + + for k, v in pairs(t) do + result = result .. innerIndent + if type(k) == "number" then + result = result .. "[" .. k .. "] = " + else + result = result .. "[" .. tostring(k) .. "] = " + end + + if type(v) == "table" then + result = result .. serializeTable(v, innerIndent) + elseif type(v) == "string" then + result = result .. "\"" .. v .. "\"" + else + result = result .. tostring(v) + end + + result = result .. ",\n" + end + + result = result .. indent:sub(1, -3) .. "}" -- Remove last comma and add closing brace + return result +end + + +-- Function to deserialize a table +function deserializeTable(str) + local func = load("return " .. str) + return func() +end + +function readSerializedData(filePath) + local file, err = io.open(filePath, "r") + if not file then + yield("/echo Error opening file for reading: " .. err) + return nil + end + local data = file:read("*all") + file:close() + return data +end + +-- Function to print table contents +function printTable(t, indent) + indent = indent or "" + if type(t) ~= "table" then + yield("/echo " .. indent .. tostring(t)) + return + end + + for k, v in pairs(t) do + local key = tostring(k) + if type(v) == "table" then + yield("/echo " .. indent .. key .. " =>") + printTable(v, indent .. " ") -- Recursive call with increased indent + else + yield("/echo " .. indent .. key .. " => " .. tostring(v)) end - serializedTable = serializedTable .. "},\n" end - serializedTable = serializedTable .. string.rep(" ", depth) .. "}\n" - return serializedTable end ---write table data to file -function tablebunga(vun, twooo) - file = io.open(vun, "w") - file:write(twooo.." = ") - file:write(serializeTable(AADM_processors, twooo, 0)) - file:close() +function tablebunga(filename, tablename, path) + local fullPath = path .. filename + yield("/echo Debug: Full file path = " .. fullPath) + + local file, err = io.open(fullPath, "w") + if not file then + yield("/echo Error opening file for writing: " .. err) + return + end + + local tableToSerialize = _G[tablename] + yield("/echo Debug: Table to serialize = " .. tostring(tableToSerialize)) + + if type(tableToSerialize) == "table" then + local serializedData = serializeTable(tableToSerialize) + yield("/echo Debug: Serialized data:\n" .. serializedData) + file:write(serializedData) + file:close() + yield("/echo Successfully wrote table to " .. fullPath) + else + yield("/echo Error: Table '" .. tablename .. "' not found or is not a table.") + end end From 337cc38d8b52f7408e9a4f45237060c25b0e9576 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:50:33 -0400 Subject: [PATCH 66/78] this needs to exist and be empty this needs to exist and be empty im too stupid to intialize this thing properly --- .../AutoMaintenance/FUTAconfig_McVaxius.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua index 867ec8df..e69de29b 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTAconfig_McVaxius.lua @@ -1,2 +0,0 @@ -FUTA_processors = { -} \ No newline at end of file From 8a31a89243b425f328012651789988ddafb3d610 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 19:56:32 -0400 Subject: [PATCH 67/78] removed alot of debug spam removed alot of debug spam --- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 8 ++++---- .../AutoRetainer Companions/RobustGCturnin/_functions.lua | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index 48505344..197ec1e3 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -37,7 +37,7 @@ if serializedData then FUTA_processors = deserializedTable -- Check the deserialized table - yield("/echo Deserialized table:") + --yield("/echo Deserialized table:") --printTable(FUTA_processors) else yield("/echo Error: Serialized data is nil.") @@ -79,11 +79,11 @@ end -- Check if any table data is missing and put in a default value for i = 1, #FUTA_processors do - yield("/echo Type of FUTA_processors["..i.."]:" .. type(FUTA_processors[i])) + --yield("/echo Type of FUTA_processors["..i.."]:" .. type(FUTA_processors[i])) for j = 2, #FUTA_defaults[1] do - yield("/echo Type of FUTA_processors["..i.."]["..j.."]:" .. type(FUTA_processors[i][j])) + --yield("/echo Type of FUTA_processors["..i.."]["..j.."]:" .. type(FUTA_processors[i][j])) for k = 1, #FUTA_defaults[1][j] do - yield("/echo Type of FUTA_processors["..i.."]["..j.."]["..k.."]:" .. type(FUTA_processors[i][j][k])) + --yield("/echo Type of FUTA_processors["..i.."]["..j.."]["..k.."]:" .. type(FUTA_processors[i][j][k])) if FUTA_processors[i][j][k] == nil then FUTA_processors[i][j][k] = FUTA_defaults[1][j][k] end diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index f2a53eba..0851cdef 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -623,11 +623,11 @@ function tablebunga(filename, tablename, path) end local tableToSerialize = _G[tablename] - yield("/echo Debug: Table to serialize = " .. tostring(tableToSerialize)) + --yield("/echo Debug: Table to serialize = " .. tostring(tableToSerialize)) if type(tableToSerialize) == "table" then local serializedData = serializeTable(tableToSerialize) - yield("/echo Debug: Serialized data:\n" .. serializedData) + --yield("/echo Debug: Serialized data:\n" .. serializedData) file:write(serializedData) file:close() yield("/echo Successfully wrote table to " .. fullPath) From a881d903e18e8868646c4abc318b9ae5ebe71bca Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:06:29 -0400 Subject: [PATCH 68/78] i think FUTA is ready i think FUTA is ready --- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index 197ec1e3..e5e523b4 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -75,6 +75,7 @@ if hoo_arr_weeeeee == -1 then -- Assign the character name FUTA_processors[#FUTA_processors][1][1] = GetCharacterName(true) + hoo_arr_weeeeee = #FUTA_processors --we added it, lets cardinality it end -- Check if any table data is missing and put in a default value @@ -155,6 +156,11 @@ if FUTA_processors[lowestID][2][2] == 100 and force_fishing == 0 then yield("/echo Lowest char is max level so we aren't fishing") end +if FUTA_processors[lowestID][2][2] == 0 and force_fishing == 0 then + wheeequeheeheheheheheehhhee = 0 + yield("/echo Lowest char has fishing disabled so we aren't fishing") +end + -- It's fishing time if wheeequeheeheheheheheehhhee == 1 then if GetCharacterCondition(31) == false then From d12bd2184738af488c805dafed14d3c64ea5f369 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 20:15:27 -0400 Subject: [PATCH 69/78] new faster bunga with ZUNGA new faster bunga with ZUNGA --- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 34 +++++++++++++++---- .../RobustGCturnin/_functions.lua | 9 +++++ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index e5e523b4..b102d3b8 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -1,4 +1,16 @@ --- Some actual vars +--[[ +Fully Unified Task Automation (F.U.T.A.) + +What does it do? + +configure AR to run a script after AR is done and it have it run THIS script. +This script will, after AR is done, do various things based on a set of rules you will configure in a separate file (FUTAconfig_McVaxius.lua) + +It could be ocean fishing, triple triad, inventory cleaning, going for a jog around the housing ward, delivering something to specific person, crafting. or whatever! + +Requirements : SND +and maybe more - let's see where we go with it +--]] force_fishing = 0 -- Set to 1 if you want the default indexed char to fish whenever possible gc_cleaning_safetystock = 50 -- How many inventory units before we do a cleaning folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" @@ -51,7 +63,7 @@ function getRandomNumber(min, max) return math.random(min, max) end -ungabungabunga() -- Get out of anything safely. +zungazunga() -- Get out of anything quickly hoo_arr_weeeeee = -1 -- Who are we? Default to -1 for figuring out if new char or not @@ -134,6 +146,12 @@ yield("/echo tablebunga() completed successfully") wheeequeheeheheheheheehhhee = 0 -- Secret variable yield("/echo Debug: Beginning to do stuff") + +--------------------------------------------------------------------------------- +------------------------------FISHING START------------------------------------- +--------------------------------------------------------------------------------- +--fishing - always check first since it takes some time sometimes to get it going +--dont do anything else if we are fishing. just return home and resume AR after if os.date("!*t").hour % 2 == 0 and os.date("!*t").min < 15 then if os.date("!*t").min >= 1 then wheeequeheeheheheheheehhhee = 1 @@ -180,8 +198,8 @@ if wheeequeheeheheheheheehhhee == 1 then if file then currentTime = os.date("*t") formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) - FUTA_processors[lowestID][3][2] = GetLevel() - file:write(formattedTime.." - ".."["..lowestID.."] - "..FUTA_processors[lowestID][3][1].." - Fisher Lv - "..FUTA_processors[lowestID][3][2].."\n") + FUTA_processors[lowestID][2][2] = GetLevel() + file:write(formattedTime.." - ".."["..lowestID.."] - "..FUTA_processors[lowestID][1][1].." - Fisher Lv - "..FUTA_processors[lowestID][2][2].."\n") file:close() yield("/echo Text has been written to '" .. folderPath .. "FeeshLevels.txt'") else @@ -192,12 +210,16 @@ if wheeequeheeheheheheheehhhee == 1 then end end else +--------------------------------------------------------------------------------- +------------------------------FISHING END---------------------------------------- +--------------------------------------------------------------------------------- + -- Start of processing things when there is no fishing if FUTA_processors[hoo_arr_weeeeee][3][2] > 0 then if getRandomNumber(0, 99) < FUTA_processors[hoo_arr_weeeeee][3][2] then yield("/echo Debug: Inventory cleaning adjustment started") clean_inventory() - ungabungabunga() + zungazunga() -- If [3] was 100, we set it back down to 10 because 100 means a one-time guaranteed cleaning if FUTA_processors[hoo_arr_weeeeee][3][2] == 100 then FUTA_processors[hoo_arr_weeeeee][3][2] = 10 @@ -210,5 +232,5 @@ else end -- Stop beginning to do stuff -ungabungabunga() +zungazunga() yield("/echo Debug: Finished all processing") \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 0851cdef..31e66a35 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -139,6 +139,15 @@ function ungabunga() yield("/wait 3") end +function zungazunga() + yield("/send ESCAPE") + yield("/wait 0.5") + yield("/send ESCAPE") + yield("/wait 0.5") + yield("/send ESCAPE") + yield("/wait 0.5") +end + function ungabungabunga() --don't bunga bunga if we are not ingame.. it breaks logging in while GetCharacterCondition(1) == false do From a17d798abd182d1006ffc3968e7f33b70f083c85 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:00:46 -0400 Subject: [PATCH 70/78] this should solve not getting cleaning started before trying to exit AR script this should solve not getting cleaning started before trying to exit AR script --- .../RobustGCturnin/_functions.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 31e66a35..fea14bdc 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -512,10 +512,23 @@ function clean_inventory() --*start cleaning??? need slash command --*loop every 5 seconds and check if we have the right char condition to resume whatever we were doing. --/automarket start|stop - ungabunga() + zungazunga() yield("/automarket start") + yield("/wait 5") + exit_cleaning = 0 + while GetCharacterCondition(50) == false or exit_cleaning < 20 do + yield("/wait 1") + exit_cleaning = exit_cleaning + 1 + yield("/echo Waiting for repricer to start -> "..exit_cleaning.."/20") + end + exit_cleaning = 0 + while GetCharacterCondition(50) == true do + yield("/wait 5") + exit_cleaning = exit_cleaning + 1 + yield("/echo Waiting for repricer to end -> "..exit_cleaning*5.." seconds duration so far") + end CharacterSafeWait() - ungabunga() + zungazunga() yield("/automarket stop") end From ef379e58bc6244a0b0584e545d5e21f2075afffb Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:12:39 -0400 Subject: [PATCH 71/78] found it found it --- .../AutoRetainer Companions/RobustGCturnin/_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index fea14bdc..8729dbff 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -523,9 +523,9 @@ function clean_inventory() end exit_cleaning = 0 while GetCharacterCondition(50) == true do - yield("/wait 5") + yield("/wait 1") exit_cleaning = exit_cleaning + 1 - yield("/echo Waiting for repricer to end -> "..exit_cleaning*5.." seconds duration so far") + yield("/echo Waiting for repricer to end -> "..exit_cleaning.." seconds duration so far") end CharacterSafeWait() zungazunga() From f790a45651cbd5063da2e863260a9b99f656083c Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:15:51 -0400 Subject: [PATCH 72/78] perfect perfect --- .../AutoRetainer Companions/RobustGCturnin/_functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index 8729dbff..dbce9b50 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -516,7 +516,7 @@ function clean_inventory() yield("/automarket start") yield("/wait 5") exit_cleaning = 0 - while GetCharacterCondition(50) == false or exit_cleaning < 20 do + while GetCharacterCondition(50) == false and exit_cleaning < 20 do yield("/wait 1") exit_cleaning = exit_cleaning + 1 yield("/echo Waiting for repricer to start -> "..exit_cleaning.."/20") From a3c9ebba1dfe9be7035a8ea5e5a8acd7c0a834e6 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 00:10:09 -0400 Subject: [PATCH 73/78] allright i guess we have fishing now. it works btw allright i guess we have fishing now. it works btw --- .../AutoMaintenance/FUTA_fishing.lua | 16 +++---- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 47 +++++++++++++------ 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua index 75e54958..128e02ed 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua @@ -1,9 +1,9 @@ function fishing() - yield("/echo Load -> "..AADM_processors[1]) + yield("/echo Load -> "..FUTA_processors[lowestID][1][1]) --now we have to keep trying until we are on the right character.... just in case we are not. - while AADM_processors[lowestID][1] ~= GetCharacterName(true) do - yield("/ays relog " ..AADM_processors[lowestID][1]) + while FUTA_processors[lowestID][1][1] ~= GetCharacterName(true) do + yield("/ays relog " ..FUTA_processors[lowestID][1][1]) yield("/wait 3") yield("/waitaddon _ActionBar ") @@ -144,13 +144,13 @@ function fishing() yield("/waitaddon NamePlate ") --if we are tp to limsa bell - if AADM_processors[lowestID][2] == 2 then + if FUTA_processors[lowestID][1][2] == 2 then return_to_limsa_bell() yield("/wait 8") end --if we are tp to inn. we will go to gridania yo - if AADM_processors[lowestID][2] == 3 then + if FUTA_processors[lowestID][1][2] == 3 then yield("/tp New Gridania") ZoneTransition() yield("/wait 2") @@ -164,7 +164,7 @@ function fishing() end --options 1 and 2 are fc estate entrance or fc state bell so thats only time we will tp to fc estate - if AADM_processors[lowestID][2] == 0 or AADM_processors[lowestID][2] == 1 then + if FUTA_processors[lowestID][1][2] == 0 or FUTA_processors[lowestID][1][2] == 1 then --yield("/tp Estate Hall (Free Company)") yield("/waitaddon NamePlate ") yield("/li fc") @@ -175,7 +175,7 @@ function fishing() end --normal small house shenanigans - if AADM_processors[lowestID][2] == 0 then + if FUTA_processors[lowestID][1][2] == 0 then yield("/hold W ") yield("/release W") yield("/target Entrance ") @@ -195,7 +195,7 @@ function fishing() end --retainer bell nearby shenanigans - if AADM_processors[lowestID][2] == 1 then + if FUTA_processors[lowestID][1][2] == 1 then yield("/target \"Summoning Bell\"") yield("/wait 2") PathfindAndMoveTo(GetObjectRawXPos("Summoning Bell"), GetObjectRawYPos("Summoning Bell"), GetObjectRawZPos("Summoning Bell"), false) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index b102d3b8..c7098c0e 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -11,11 +11,13 @@ It could be ocean fishing, triple triad, inventory cleaning, going for a jog aro Requirements : SND and maybe more - let's see where we go with it --]] +FUTA_config_file = "FUTAconfig_McVaxius.lua" force_fishing = 0 -- Set to 1 if you want the default indexed char to fish whenever possible gc_cleaning_safetystock = 50 -- How many inventory units before we do a cleaning folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" +fullPath = os.getenv("appdata") .. "\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" .. FUTA_config_file functionsToLoad = loadfile(loadfiyel) functionsToLoad() @@ -37,9 +39,6 @@ FUTA_defaults = { } } --- Define the file path where serialized data is stored -fullPath = os.getenv("appdata") .. "\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\FUTAconfig_McVaxius.lua" - -- Read and deserialize the data serializedData = readSerializedData(fullPath) deserializedTable = {} @@ -79,7 +78,6 @@ if hoo_arr_weeeeee == -1 then -- Initialize all levels with defaults for j = 1, #FUTA_defaults[1] do FUTA_processors[#FUTA_processors][j] = {} - for k = 1, #FUTA_defaults[1][j] do FUTA_processors[#FUTA_processors][j][k] = FUTA_defaults[1][j][k] end @@ -139,7 +137,7 @@ end --]] -- After tablebunga() call -tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) +tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo tablebunga() completed successfully") -- Begin to do stuff @@ -150,6 +148,22 @@ yield("/echo Debug: Beginning to do stuff") --------------------------------------------------------------------------------- ------------------------------FISHING START------------------------------------- --------------------------------------------------------------------------------- +if FUTA_processors[hoo_arr_weeeeee][2][2] == 0 then + --we dont have a fishing level setup + yield("/echo Let's see if fishing is even a thing on this char and update the database") + yield("/wait 0.5") + if tonumber(GetLevel(17)) > 0 then + FUTA_processors[hoo_arr_weeeeee][2][2] = tonumber(GetLevel(17)) + tablebunga(FUTA_config_file, "FUTA_processors", folderPath) + yield("/echo tablebunga() completed successfully w new fishing data") + end + if tonumber(GetLevel(17)) == 0 then + FUTA_processors[hoo_arr_weeeeee][2][2] = -1 --fishing is disabled don't check it again + tablebunga(FUTA_config_file, "FUTA_processors", folderPath) + yield("/echo this char is not a fisher") + end +end + --fishing - always check first since it takes some time sometimes to get it going --dont do anything else if we are fishing. just return home and resume AR after if os.date("!*t").hour % 2 == 0 and os.date("!*t").min < 15 then @@ -161,6 +175,13 @@ yield("/echo Debug: Time check completed") -- Determine who is the lowest level fisher of them all. lowestID = 1 +--first get a non 0 value +for i = 1, #FUTA_processors do + if FUTA_processors[i][2][2] > 0 then + lowestID = i + end +end +--now look for a smaller one for i = 1, #FUTA_processors do if FUTA_processors[i][2][2] > 0 and FUTA_processors[i][2][2] < FUTA_processors[lowestID][2][2] then lowestID = i @@ -169,14 +190,9 @@ end yield("/echo Debug: Lowest ID determined as " .. lowestID) -- If the lowest guy is max level, we aren't fishing -if FUTA_processors[lowestID][2][2] == 100 and force_fishing == 0 then - wheeequeheeheheheheheehhhee = 0 - yield("/echo Lowest char is max level so we aren't fishing") -end - -if FUTA_processors[lowestID][2][2] == 0 and force_fishing == 0 then +if FUTA_processors[lowestID][2][2] == 100 and force_fishing == 0 or FUTA_processors[lowestID][2][2] == -1 then wheeequeheeheheheheheehhhee = 0 - yield("/echo Lowest char has fishing disabled so we aren't fishing") + yield("/echo Lowest char is max level or no chars have fishing so we aren't fishing") end -- It's fishing time @@ -188,7 +204,8 @@ if wheeequeheeheheheheheehhhee == 1 then loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\FUTA_fishing.lua" functionsToLoad = loadfile(loadfiyel2) - + functionsToLoad() + yield("/waitaddon _ActionBar ") fishing() yield("/echo Debug: Fishing completed") @@ -205,7 +222,7 @@ if wheeequeheeheheheheheehhhee == 1 then else yield("/echo Error: Unable to open file for writing") end - tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) + tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo Debug: Log file entry completed") end end @@ -223,7 +240,7 @@ else -- If [3] was 100, we set it back down to 10 because 100 means a one-time guaranteed cleaning if FUTA_processors[hoo_arr_weeeeee][3][2] == 100 then FUTA_processors[hoo_arr_weeeeee][3][2] = 10 - tablebunga("FUTAconfig_McVaxius.lua", "FUTA_processors", folderPath) + tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo Debug: Inventory cleaning adjustment completed") end end From e4c41537be70030a3bd90655eaa7d7a6514729aa Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 00:20:06 -0400 Subject: [PATCH 74/78] its documentationing time its documentationing time --- .../AutoMaintenance/AfterARDoneManager_McVaxius.lua | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/AfterARDoneManager_McVaxius.lua new file mode 100644 index 00000000..e69de29b From 6cb2038d6aa4c2c36c4fb44cafc26c1dda6c65f7 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 01:19:16 -0400 Subject: [PATCH 75/78] absolutely solid absolutely solid --- .../AutoMaintenance/FUTA_fishing.lua | 3 +- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 38 +++++++++++++------ 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua index 128e02ed..2788f6d0 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_fishing.lua @@ -102,7 +102,6 @@ function fishing() randomNum = (randomNum * -1) / 1000 yield("/visland moveto 7.451 6.750 "..randomNum) - --keep checking for that original area - once it is back. turn /ays multi back on --also spam fishing omadamkhoneh = 0 --counter to stop trying to move to edge since it will do bad stuff outside of instance after while (zown ~= fzown) do @@ -201,4 +200,4 @@ function fishing() PathfindAndMoveTo(GetObjectRawXPos("Summoning Bell"), GetObjectRawYPos("Summoning Bell"), GetObjectRawZPos("Summoning Bell"), false) visland_stop_moving() --added so we don't accidentally end before we get to the bell end -end --of fishing() +end --of fishing() \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index c7098c0e..5b3afc8d 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -15,27 +15,33 @@ FUTA_config_file = "FUTAconfig_McVaxius.lua" force_fishing = 0 -- Set to 1 if you want the default indexed char to fish whenever possible gc_cleaning_safetystock = 50 -- How many inventory units before we do a cleaning folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" - loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua" fullPath = os.getenv("appdata") .. "\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" .. FUTA_config_file functionsToLoad = loadfile(loadfiyel) functionsToLoad() -FUTA_processors = {} -- Initialize variable +------------------------------------------ +--Config and change back after done!------ +------------------------------------------ +re_organize_return_locations = 0 -- only set this one time and run the script so it can clean up the return locations, 0 magitek fuel = limsa bell, +fuel = fc entrance +------------------------------------------ +------------------------------------------ +------------------------------------------ +FUTA_processors = {} -- Initialize variable -- 3D Table {}[i][j][k] FUTA_defaults = { { - {"Firstname Lastname@Server", 0}, -- {}[i][1..2] -- Name@server and return type - {"FISH", 0}, -- {}[i][2][1..2] -- Level - {"CLEAN", 100, 0, 0, 0}, -- {}[i][3][1..5] -- Chance to do random cleaning - {"FUEL", 0, 0}, -- {}[i][4][1..3] -- Fuel safety stock trigger - {"TT", 0, 0}, -- {}[i][5][1..3] -- Minutes of TT, NPC to play - {"CUFF", 0}, -- {}[i][6][1..2] -- Minutes of Cuff a Cur - {"MRK", 0}, -- {}[i][7][1..2] -- Number of Magitek Repair Kits - {"FCB", "nothing", "nothing"}, -- {}[i][8][1..3] -- Refresh FC buffs - {"PHV", 0, 100}, -- {}[i][9][1..3] -- Personal house visit - {"DUTY", "Teaspoon Dropping Closet", -5, 0} -- {}[i][10][1..4] -- Duty details + {"Firstname Lastname@Server", 0}, ------{}[i][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home + {"FISH", 0}, ---{}[i][3][1..2]--level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists + {"CLEAN", 100, 0, 0, 0}, ---{}[i][4][1..5]--chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. + {"FUEL", 0, 0}, ---{}[i][5][1..3]--fuel safety stock trigger, fuel to buy up to + {"TT", 0, 0}, ---{}[i][6][1..3]--minutes of TT, npc to play 1= roe 2= manservant + {"CUFF", 0}, ---{}[i][7][1..2]--minutes of cufffacur to run . assumes in front of an "entrance" + {"MRK", 0}, ---{}[i][8][1..2]--number of magitek repair kits to quick synth after each AR check + {"FCB", "nothing", "nothing"}, ---{}[i][9][1..3]--refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) + {"PHV", 0, 100}, --{}[i][10][1..3]--0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it + {"DUTY", "Teaspoon Dropping Closet", -5, 0} --{}[i][11][1..4]--name of duty, number of times to run (negative values for one time run - set to 0 after), normal 0 unsynced 1 } } @@ -136,6 +142,13 @@ else end --]] +--one-off-hackeries +if re_organize_return_locations == 1 then + if GetItemCount(10155) > 0 then + FUTA_processors[hoo_arr_weeeeee][1][2] = 0 --configure for return to fc house if we have repair kits + end +end + -- After tablebunga() call tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo tablebunga() completed successfully") @@ -250,4 +263,5 @@ end -- Stop beginning to do stuff zungazunga() +--yield("/ays multi e") --turn AR back on if we were testing out the script yield("/echo Debug: Finished all processing") \ No newline at end of file From b8d452987af62d246c0d506f22c7665762deb6be Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 05:44:54 -0400 Subject: [PATCH 76/78] it can work but i disabled it for now it can work but i disabled it for now we cant log to right char ;\ --- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 48 ++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index 5b3afc8d..9a086a63 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -10,6 +10,15 @@ It could be ocean fishing, triple triad, inventory cleaning, going for a jog aro Requirements : SND and maybe more - let's see where we go with it + + +Problems/annoyances +ocean fishing. we cant ays relog ... hmmm +hacky time +install AHK +install wintitle plugin + + --]] FUTA_config_file = "FUTAconfig_McVaxius.lua" force_fishing = 0 -- Set to 1 if you want the default indexed char to fish whenever possible @@ -28,6 +37,9 @@ re_organize_return_locations = 0 -- only set this one time and run the script so ------------------------------------------ ------------------------------------------ +yield("/wintitle Final Fantasy XIV") +yield("/wait 5") +yield("/waitaddon _ActionBar ") FUTA_processors = {} -- Initialize variable -- 3D Table {}[i][j][k] FUTA_defaults = { @@ -70,6 +82,7 @@ end zungazunga() -- Get out of anything quickly + hoo_arr_weeeeee = -1 -- Who are we? Default to -1 for figuring out if new char or not for i = 1, #FUTA_processors do @@ -208,6 +221,7 @@ if FUTA_processors[lowestID][2][2] == 100 and force_fishing == 0 or FUTA_process yield("/echo Lowest char is max level or no chars have fishing so we aren't fishing") end +wheeequeheeheheheheheehhhee = 0 --meh we cant do this safely -- It's fishing time if wheeequeheeheheheheheehhhee == 1 then if GetCharacterCondition(31) == false then @@ -220,6 +234,34 @@ if wheeequeheeheheheheheehhhee == 1 then functionsToLoad() yield("/waitaddon _ActionBar ") + + if FUTA_processors[lowestID][1][1] ~= GetCharacterName(true) then + --if we are on wrong char. we gotta kill AR And let AHK fire up the right char in a sec ;o + yield("/echo Hacky whacky") + yield("/ays multi d") + yield("/wait 3") + --do sheet + yield("/echo Hacky AHK shit") + -- make a ahk file from scratch + local file = io.open(folderPath .. "not_a_key_logger.ahk", "w") + file:write("WinActivate, Flantasy\n") + file:write("Sleep, 5000\n") + --file:write("Send, {ENTER}/ays relog "..string.match(FUTA_processors[lowestID][1][1], "([^@]+)").." {ENTER}\n") + file:write("Send, {ENTER}/ays relog "..FUTA_processors[lowestID][1][1].." {ENTER}\n") + file:write("Sleep, 45000\n") + file:write("Send, {ENTER}/pcraft run FUTA {ENTER}\n") + file:close() + -- Call a batch file using its full path + --os.execute("cmd /c start \"\" \ "..os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\not_a_key_logger.ahk") + os.execute('cmd /c start "" "' .. os.getenv("appdata") .. '\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\not_a_key_logger.ahk"') + yield("/wintitle Flantasy") + --end the script here + yield("/pcraft stop") --os.execute(os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\not_a_key_logger.ahk") + yield("/wintitle Flantasy") + --end the script here + yield("/pcraft stop") + end + fishing() yield("/echo Debug: Fishing completed") @@ -251,7 +293,7 @@ else clean_inventory() zungazunga() -- If [3] was 100, we set it back down to 10 because 100 means a one-time guaranteed cleaning - if FUTA_processors[hoo_arr_weeeeee][3][2] == 100 then + if FUTA_processors[hoo_arr_weeeeee][3][2] > 99 then FUTA_processors[hoo_arr_weeeeee][3][2] = 10 tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo Debug: Inventory cleaning adjustment completed") @@ -263,5 +305,7 @@ end -- Stop beginning to do stuff zungazunga() ---yield("/ays multi e") --turn AR back on if we were testing out the script +if wheeequeheeheheheheheehhhee == 1 then + yield("/ays multi e") --if we had to toggle AR +end yield("/echo Debug: Finished all processing") \ No newline at end of file From 747a18d300c709fcedef256f3ae07784d2fa6068 Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:52:23 -0400 Subject: [PATCH 77/78] FUTA has robust gc turnin now FUTA has robust gc turnin now logging if red onion is detected logging when you do a return to a personal home --- .../AutoMaintenance/FUTA_GC.lua | 362 ++++++++++++++++++ .../FulllyUnifiedTaskAutomation_McVaxius.lua | 67 +++- .../RobustGCturnin/_functions.lua | 58 ++- 3 files changed, 471 insertions(+), 16 deletions(-) create mode 100644 Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_GC.lua diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_GC.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_GC.lua new file mode 100644 index 00000000..81ecaf02 --- /dev/null +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FUTA_GC.lua @@ -0,0 +1,362 @@ +--[[ +names of chars to do turnins +The last var is whether this char will attempt GC supply turnins and attempt rank promotions. +this will take up to 15-20 seconds so dont enable it for every character unless you really need it (supply missions for leveling jobs basically) +process_gc_rank = 0 --0=no,1=yes. do we try to rank up the GC and maybe do a supply delivery turnin? +expert_hack = 0 --0=no,1=yes. it will try in 15 second cycles. to do deliveries then turn them off and let it try to buy venture coins . up to 12 times. or when there is no increase in venture coins +clean_inventory = 0 --0=no, >0 check inventory slots free and try to clean out inventory . leave it at 0 if you dont know how to use it. and don't ask me for help on punish or i will block you. the answer is in _functions.lua +]] +--------------------------------- +--FUTA_GC SCRIPT CONFIGURATION -- +--------------------------------- +--Please read these, you could use this script to go randomize fc emblems for example instead of doing the full script +---------------------- +--Behaviour Configs -- +---------------------- +gachi_jumpy = 0 --0=no jump, 1=yes jump. jump or not. sometimes navmesh goes through the shortcut in uldah and sometimes gets stuck getting to bells in housing districts +auto_eqweep = 0 --0=no, 1=yes + job change. Basically this will check to see if your on a DOH or DOL, if you are then it will scan your DOW/DOM and switch you to the highest level one you have, auto equip and save gearset. niche feature i like for myself . off by default +config_sell = 0 --0=dont do anything,1=change char setting to not give dialog for non tradeables etc selling to npc, 2=reset setting back to yes check for non tradeables etc selling to npc. usecase for 1 and 2 are one time things for a cleaning run so that they can subsequently handle selling or not selling. this feature will be stripped out once limiana updaptes AR +nnl = 1 --leave the novicenetwork +movementtype = 0 --0 = vnavmesh, 1 = visland. many things wont work with visland mode. its there as emergency for cleaning only. +open_coffers = 0 --0=no,1=yes. do we try to open coffers before doing a turnin round. (will iterate through the list of items). +---------------------- +--Refueling Configs -- +---------------------- +restock_fuel = 1111 --0=don't do anything, n>0 -> if we have less ceruleum fuel than this amount on a character that has repair materials, restock up to at least the restock_amt value on next line +restock_amt = 6666 --n>0 minimum amount of total fuel to reach, when restocking +-------------------- +--Process Configs -- +-------------------- +process_players = 1 --0=no,1=yes+cleaning. do we run the actual GC turnins? turning this on will run the chars from chars_fn to go do seal turnins and process whatever deliveroo rules you setup, 2=cleaning only +-------------------- +----Coffer Table---- +-------------------- +koffers = { +{38467,"Gladiator's Plundered Arms (Lv. 15)"}, +{38469,"Gladiator's Doctore Arms (Lv. 20)"}, +{38470,"Gladiator's Frostbite Arms (Lv. 24)"}, +{38471,"Gladiator's Inquisitor Arms (Lv. 28)"}, +{44107,"Black Mage's Verdant Arms (Lv. 47)"}, +{38475,"Paladin's Ancient Arms (Lv. 41)"}, +{38474,"Paladin's Crier Arms (Lv. 38)"}, +{38476,"Paladin's Dzemael Arms (Lv. 44)"}, +{38473,"Paladin's Flametongue Arms (Lv. 35)"}, +{38472,"Paladin's Longstop Arms (Lv. 32)"}, +{38477,"Paladin's Templar Arms (Lv. 47)"} +} + +--[[ +------------------------ +--SCRIPT REQUIREMENTS -- +------------------------ +Required Plogons: +Autoretainer +YesAlready +TextAdvance +Deliveroo +Visland +Vnavmesh +Simpletweaks +Something Need Doing (Croizat version) +----------------- +-SUPER IMPORTANT- +----------------- +Make sure _functions.lua exist in the snd folder. which should look something like this path %AppData%\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\ +get _functions.lua from same place as this script came from + +------------------------- +--PLUGIN CONFIGURATIONS-- +------------------------- +FFXIV itself -> make sure all login notifications are off. like help, achievements etc. this is unfortunately super annoying. you may need to login/out a few times to ensure no weird popups are appearing. +Simpletweaks -> Setup autoequip command, "/equipguud" or just use the default "/equiprecommended" +Simpletweaks -> Setup equipjob command, "/equipjob" +Simpletweaks -> targeting fix on +SND -> Turn off SND targeting +YesAlready -> Lists -> Edit company crest design. +YesAlready -> Lists -> Retire to an inn room. +YesAlready -> Lists -> Move to the company workshop +YesAlready -> Lists -> Change free company allegiance. +YesAlready -> YesNo -> /Pay the 15,000-gil fee to switch your company's allegiance to the.*/ +YesAlready -> YesNo -> /Execute.*/ +YesAlready -> YesNo -> /of ceruleum for.*/ +YesAlready -> YesNo -> /Enter the estate.*/ +YesAlready -> YesNo -> Save changes to crest design? + +Optional: +YesAlready -> YesNo -> /Purchase the action .*/ +(if you add above. remove the wait 2 and the line for yesno pcall for buying buffs) + +--some ideas for next version +--https://discord.com/channels/1001823907193552978/1196163718216679514/1215227696607531078 +--stop repeating code for returning home.. introduces danger of errors popping up + +--FC TAG Randomizer?!?! +--FC Tag re-writer?!?! +]] + +--debug new stuff +--yield("FC Tag hehehe -> "..generateFiveDigitText(process_tags)) +--yield("/pcraft stop") + +-- Specify the path to your text file +--[[ + --some vestigial junk i may remove if not needed once i update script properly + tempchar = GetCharacterName() + tempchar = tempchar:match("%s*(.-)%s*") --remove spaces at start and end only + tempchar = tempchar:gsub("%s", "") --remove all spaces + tempchar = tempchar:gsub("'", "") --remove all apostrophes +]] + +function Final_GC_Cleaning() + --turn around in case we aren't facing the correct way + --this attempts to target serpent or flame personnel or even storm. assuming you have a separate line in a hotkey for each type. + --the purpose of this section is to get your char to face the npcs and orient the camera properly. otherwise the rest of the script might die + + visland_stop_moving() --just in case we want to auto equip rq before dumping gear + --deliveroo i choose you + yield("/deliveroo enable") + yield("/wait 1") + + --loop until deliveroo done if we aren't using the hack. + if FUTA_processors[hoo_arr_weeeeee][3][4] == 0 then + dellyroo = true + dellyroo = DeliverooIsTurnInRunning() + dellycount = 0 + while dellyroo do + yield("/wait 5") + dellyroo = DeliverooIsTurnInRunning() + dellycount = dellycount + 1 + yield("/echo Processing Retainer Abuser") + if dellycount > 100 then + --this will solve getting stuck on deliveroo doing nothing while its enabled + yield("/deliveroo disable") + yield("/wait 2") + ungabunga() + yield("/deliveroo enable") + yield("/wait 3") + dellycount = 0 + end + end + end + + --added 5 second wait here because sometimes they get stuck. + yield("/wait 5") + + if nnl == 1 then + yield("/novicenetworkleave") + end + + --expert delivery hack. meant for printing venture tokens on early chars + if FUTA_processors[hoo_arr_weeeeee][3][4] == 1 then + PauseYesAlready() + yield("/wait 2") + GCrenk = GetFlamesGCRank() + if GetMaelstromGCRank() > GCrenk then + GCrenk = GetMaelstromGCRank() + end + if GetAddersGCRank() > GCrenk then + GCrenk = GetAddersGCRank() + end + SealCap = 9000 + if GCrenk == 2 then SealCap = 14000 end + if GCrenk == 3 then SealCap = 19000 end + if GCrenk == 4 then SealCap = 24000 end + if GCrenk == 5 then SealCap = 29000 end --requires R1 Hunting Log done + if GCrenk == 6 then SealCap = 34000 end + if GCrenk == 7 then SealCap = 39000 end + if GCrenk == 8 then SealCap = 44000 end --requires R1 Hunting Log done + Aurum Vale + if GCrenk == 9 then SealCap = 49000 end --requires Dzemael Darkhold + yield("/echo Seal Cap is -> "..SealCap) + SetFlamesGCRank(9) + SetAddersGCRank(9) + SetMaelstromGCRank(9) + dellycount = 0 + yield("/echo Expert Delivery hack enabled") + yield("/wait 1") + benture = GetItemCount(21072) + while dellycount < 12 do --max of 12 loops + yield("/deliveroo enable") + yield("/wait 6") + --20 = storm, 21 = serpent, 22 = flame + maxcheck = 0 + while (GetItemCount(20) + GetItemCount(21) + GetItemCount(22)) < SealCap and maxcheck < 15 do + yield("/wait 1") + maxcheck = maxcheck + 1 + end + yield("/deliveroo disable") + yield("/wait 2") + ungabunga() --get out of menus haha + dellycount = dellycount + 1 + if benture == GetItemCount(21072) then --nothing changed since last time we did the round. maybe we ned to exit but increase the cardinality just in case + dellycount = dellycount + 5 + end + benture = GetItemCount(21072) + end + SetFlamesGCRank(GCrenk) + SetAddersGCRank(GCrenk) + SetMaelstromGCRank(GCrenk) + RestoreYesAlready() + yield("/wait 2") + end + + --try to turn in supply mission items and rankup before leaving if its set for that char + if FUTA_processors[hoo_arr_weeeeee][3][3] == 1 then + yield("/echo movement stopped - time for GC turn ins") + --yield("") + --yield("/waitaddon SelectString ") + yield("/visland stop") + yield("/wait 1") + yield("/target Personnel Officer") + yield("/wait 1") + yield("/send NUMPAD0") + yield("/pcall SelectString true 0 ") + yield("/send NUMPAD0") + yield("/wait 1") + yield("/send NUMPAD0") + yield("/wait 1") + yield("/pcall GrandCompanySupplyList true 0 1 2") + yield("/wait 1") + yield("/send NUMPAD0") + yield("/wait 1") + yield("/send NUMPAD0") + yield("/wait 1") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/wait 3") + + floop = 0 + while floop < 3 do --we can go up to 4 safely if we are below it. if you put in the effort to finish GC log 1, go pop rank 5 :~D + --try to promote + yield("/wait 1") + yield("/target Personnel Officer") + yield("/wait 1") + yield("/interact") + yield("/wait 2") + yield("/pcall SelectString true 1") + yield("/wait 3") + yield("/pcall GrandCompanyRankUp true 0") + yield("/wait 1") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/send ESCAPE ") + yield("/wait 3") + --wait for char condition 1 + while GetCharacterCondition(32) == true and GetCharacterCondition(35) == true do + yield("/wait 1") + end + yield("/wait 2") + floop = floop + 1 + end + + --output a log of the GC ranks and your current job level to a log file stored in the SND folder + --yield("/echo Log output debug line 1") + local folderPath = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\" + local file = io.open(folderPath .. "GCrankLog.txt", "a") + if file then + -- Write text to the file + currentTime = os.date("*t") + formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) + file:write(formattedTime.." - "..FUTA_processors[hoo_arr_weeeeee][1][1].." - Adders - "..GetAddersGCRank().." - Maelstrom - "..GetMaelstromGCRank().." - Flames - "..GetFlamesGCRank().."\n") + -- Close the file handle + file:close() + yield("/echo Text has been written to '" .. folderPath .. "GCrankLog.txt'") + else + yield("/echo Error: Unable to open file for writing") + end + end + + FUTA_return() + +--[[ dumping out this part. opening venture coffers is kind of annoying waste of time. maybe we make it optional later -->TODO<-- + --Code for opening venture coffers + yield("/wait 3") + yield("/echo Number of Venture Coffers to open: "..GetItemCount(32161)) + VCnum = GetItemCount(32161) + while (VCnum > 0) do + --this is no longer reliable + --yield("/item Venture Coffer") + yield("/send X") + yield("/wait 6") + VCnum = GetItemCount(32161) + yield("/echo Number of Venture Coffers left: "..GetItemCount(32161)) + end + ---]] + + --Code for opening FC menu so allagan tools can pull the FC points + yield("/freecompanycmd") + yield("/wait 3") +end + +--gc turn in +function FUTA_robust_gc() + yield("/wait 2") + --CharacterSafeWait() --we dont neeed to wait we are on the char already + yield("/echo Processing Retainer Abuser") + --before we dump gear lets check if we are opening coffers + if open_coffers == 1 then + for i=1,#koffers do + if GetItemCount(koffers[i][1]) > 0 then + yield("/item "..koffers[i][2]) + yield("/wait 4") + end + end + yield("/wait 4") + end + --before we dump gear lets check to see if we are on the right job or if we care about it. + if config_sell == 1 then + yield("/maincommand Item Settings") + yield("/wait 0.5") + yield("/pcall ConfigCharaItem true 18 288 0 u0") + yield("/pcall ConfigCharaItem true 0") + yield("/wait 0.5") + yield("/pcall ConfigCharacter true 1") + end + if config_sell == 2 then + yield("/maincommand Item Settings") + yield("/wait 0.5") + yield("/pcall ConfigCharaItem true 18 288 1 u0") + yield("/pcall ConfigCharaItem true 0") + yield("/wait 0.5") + yield("/pcall ConfigCharacter true 1") + end + if auto_eqweep == 1 then + if are_we_dol() then + yield("/equipjob "..job_short(which_cj())) + yield("/echo Switching to "..job_short(which_cj())) + yield("/wait 3") + end + end + weclean = 0 + if process_players == 1 then + TeleportToGCTown() + ZoneTransition() + yield("/echo Walk to GC attempt 1") + yield("/wait 2") + WalkToGC() + yield("/echo Walk to GC attempt 2") + yield("/wait 2") + WalkToGC() + yield("/echo Walk to GC attempt 3?") + yield("/wait 2") + WalkToGC() + yield("/wait 2") + Final_GC_Cleaning() + end + workshop_entered = 0 + if restock_fuel > 0 and GetItemCount(10373) > 0 and GetItemCount(10155) <= restock_fuel then + enter_workshop() + try_to_buy_fuel(restock_amt) + workshop_entered = 1 + end + if weclean == 1 then + --only if we are parked outside of fc house + if workshop_entered == 0 and FUTA_processors[hoo_arr_weeeeee][1][2] == 0 then + enter_workshop() + end + ungabunga() + clean_inventory() --default behaviour. it will just work if we are near a bell + end +end +--last one out turn off the lights +--yield("/ays multi e") \ No newline at end of file diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index 9a086a63..e5e7748b 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -38,22 +38,22 @@ re_organize_return_locations = 0 -- only set this one time and run the script so ------------------------------------------ yield("/wintitle Final Fantasy XIV") -yield("/wait 5") -yield("/waitaddon _ActionBar ") +--yield("/wait 5") +--yield("/waitaddon _ActionBar ") FUTA_processors = {} -- Initialize variable -- 3D Table {}[i][j][k] FUTA_defaults = { { - {"Firstname Lastname@Server", 0}, ------{}[i][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home - {"FISH", 0}, ---{}[i][3][1..2]--level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists - {"CLEAN", 100, 0, 0, 0}, ---{}[i][4][1..5]--chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. - {"FUEL", 0, 0}, ---{}[i][5][1..3]--fuel safety stock trigger, fuel to buy up to - {"TT", 0, 0}, ---{}[i][6][1..3]--minutes of TT, npc to play 1= roe 2= manservant - {"CUFF", 0}, ---{}[i][7][1..2]--minutes of cufffacur to run . assumes in front of an "entrance" - {"MRK", 0}, ---{}[i][8][1..2]--number of magitek repair kits to quick synth after each AR check - {"FCB", "nothing", "nothing"}, ---{}[i][9][1..3]--refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) - {"PHV", 0, 100}, --{}[i][10][1..3]--0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it - {"DUTY", "Teaspoon Dropping Closet", -5, 0} --{}[i][11][1..4]--name of duty, number of times to run (negative values for one time run - set to 0 after), normal 0 unsynced 1 + {"Firstname Lastname@Server", 0}, ---{}[i][1][1..2]--name@server and return type 0 return home to fc entrance, 1 return home to a bell, 2 don't return home, 3 is gridania inn, 4 limsa bell near aetheryte, 5 personal estate entrance, 6 bell near personal home + {"FISH", 0}, ---{}[i][2][1..2]--level, 0 = doont do anything, 100 = dont do anything, 101 = automatically pick this char everytime, minimum = pick this char if no 101 exists + {"CLEAN", 100, 0, 0, 50}, ---{}[i][3][1..5]--chance to do random cleaning/100 if 100 it will be changed to 10 after 1 run, process_gc_rank = 0=no,1=yes. expert_hack = 0=no,1=yes. clean_inventory = 0=no, >0 check inventory slots free and try to clean out inventory. + {"FUEL", 0, 0}, ---{}[i][4][1..3]--fuel safety stock trigger, fuel to buy up to + {"TT", 0, 0}, ---{}[i][5][1..3]--minutes of TT, npc to play 1= roe 2= manservant + {"CUFF", 0}, ---{}[i][6][1..2]--minutes of cufffacur to run . assumes in front of an "entrance" + {"MRK", 0}, ---{}[i][7][1..2]--number of magitek repair kits to quick synth after each AR check + {"FCB", "nothing", "nothing"}, ---{}[i][8][1..3]--refresh FC buffs if they have 1 or less hours remaining on them. (remove and re-assign) + {"PHV", 0, 100}, ---{}[i][9][1..3]--0 = no personal house 1 = has a personal house, personal house visit counter, once it reaches {}[][][2] it will reset to 1 after a visit, each ar completion will +1 it + {"DUTY", "Teaspoon Dropping Closet", -5, 0} --{}[i][10][1..4]--name of duty, number of times to run (negative values for one time run - set to 0 after), normal 0 unsynced 1 } } @@ -170,6 +170,8 @@ yield("/echo tablebunga() completed successfully") wheeequeheeheheheheheehhhee = 0 -- Secret variable yield("/echo Debug: Beginning to do stuff") +--check for red onion helm +check_ro_helm() --------------------------------------------------------------------------------- ------------------------------FISHING START------------------------------------- @@ -281,11 +283,14 @@ if wheeequeheeheheheheheehhhee == 1 then yield("/echo Debug: Log file entry completed") end end -else +end --------------------------------------------------------------------------------- ------------------------------FISHING END---------------------------------------- --------------------------------------------------------------------------------- - +if wheeequeheeheheheheheehhhee == 0 then + ---------------------------- + --CLEAN-- + ---------------------------- -- Start of processing things when there is no fishing if FUTA_processors[hoo_arr_weeeeee][3][2] > 0 then if getRandomNumber(0, 99) < FUTA_processors[hoo_arr_weeeeee][3][2] then @@ -293,14 +298,46 @@ else clean_inventory() zungazunga() -- If [3] was 100, we set it back down to 10 because 100 means a one-time guaranteed cleaning + yield("/echo rolling dice to see if we do a repricing !") if FUTA_processors[hoo_arr_weeeeee][3][2] > 99 then FUTA_processors[hoo_arr_weeeeee][3][2] = 10 tablebunga(FUTA_config_file, "FUTA_processors", folderPath) yield("/echo Debug: Inventory cleaning adjustment completed") end end - --*check inventory size and do gcturnin shit end + ---------------------------- + --CLEAN2 Electric boogaloo-- + ---------------------------- + --check inventory size and do gcturnin shit + yield("/echo Do we need to clear inventory?") + if GetInventoryFreeSlotCount() < FUTA_processors[hoo_arr_weeeeee][3][5] and FUTA_processors[hoo_arr_weeeeee][3][5] > 0 then + yield("/echo Yes we need to clean inventory and turnin GC stuff! 1/5 debug") + loadfiyel2 = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\FUTA_GC.lua" + yield("/echo Yes we need to clean inventory and turnin GC stuff! 2/5 debug") + functionsToLoad = loadfile(loadfiyel2) + yield("/echo Yes we need to clean inventory and turnin GC stuff! 3/5 debug") + functionsToLoad() + yield("/echo Yes we need to clean inventory and turnin GC stuff! 4/5 debug") + FUTA_robust_gc() + yield("/echo Yes we need to clean inventory and turnin GC stuff! 5/5 debug") + end + ---------------------------- + --PHV Personal House Visit-- + ---------------------------- + if FUTA_processors[hoo_arr_weeeeee][9][2] > 0 then + FUTA_processors[hoo_arr_weeeeee][9][2] = 1 + FUTA_processors[hoo_arr_weeeeee][9][2] + if FUTA_processors[hoo_arr_weeeeee][9][2] > FUTA_processors[hoo_arr_weeeeee][9][3] then + FUTA_processors[hoo_arr_weeeeee][9][2] = 1 + yield("/li home") + CharacterSafeWait() + return_fc_entrance() --does the same thing just enters target + CharacterSafeWait() + loggabunga("FUTA_", " - Home Visit Executed by -> "..FUTA_processors[lowestID][1][1]) + zungazunga() + FUTA_return() --return to configured location + end + end end -- Stop beginning to do stuff diff --git a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua index dbce9b50..b42c0136 100644 --- a/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua +++ b/Community Scripts/AutoRetainer Companions/RobustGCturnin/_functions.lua @@ -522,13 +522,16 @@ function clean_inventory() yield("/echo Waiting for repricer to start -> "..exit_cleaning.."/20") end exit_cleaning = 0 - while GetCharacterCondition(50) == true do + while GetCharacterCondition(50) == true and exit_cleaning < 300 do yield("/wait 1") exit_cleaning = exit_cleaning + 1 yield("/echo Waiting for repricer to end -> "..exit_cleaning.." seconds duration so far") end CharacterSafeWait() zungazunga() + if exit_cleaning > 250 then + ungabungabunga() + end yield("/automarket stop") end @@ -657,3 +660,56 @@ function tablebunga(filename, tablename, path) yield("/echo Error: Table '" .. tablename .. "' not found or is not a table.") end end + +function FUTA_return() + --limsa aetheryte + if FUTA_processors[hoo_arr_weeeeee][1][2] == 4 then + return_to_limsa_bell() + yield("/wait 8") + end + + --if we are tp to inn. we will go to gridania yo + if FUTA_processors[hoo_arr_weeeeee][1][2] == 3 then + return_to_inn() + yield("/wait 8") + end + + --options 1 and 2 are fc estate entrance or fc state bell so thats only time we will tp to fc estate + if FUTA_processors[hoo_arr_weeeeee][1][2] == 0 or FUTA_processors[hoo_arr_weeeeee][1][2] == 1 then + return_to_fc() + end + + --option 5 or 6 personal home and bell near personal home + if FUTA_processors[hoo_arr_weeeeee][1][2] == 5 or FUTA_processors[hoo_arr_weeeeee][1][2] == 6 then + return_to_lair() + end + + --normal small house shenanigans + if FUTA_processors[hoo_arr_weeeeee][1][2] == 0 or FUTA_processors[hoo_arr_weeeeee][1][2] == 5 then + return_fc_entrance() + end + + --retainer bell nearby shenanigans + if FUTA_processors[hoo_arr_weeeeee][1][2] == 1 or FUTA_processors[hoo_arr_weeeeee][1][2] == 6 then + return_fc_near_bell() + end + +end + +function loggabunga(filename, texty) + local file = io.open(folderPath .. filename .. "_log.txt", "a") + if file then + currentTime = os.date("*t") + formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", currentTime.year, currentTime.month, currentTime.day, currentTime.hour, currentTime.min, currentTime.sec) + file:write(formattedTime..texty.."\n") + file:close() + end +end + +function check_ro_helm() + --check for red onion helms and report in to a log file if there is one + if GetItemCount(2820) > 0 then + yield("/echo RED ONION HELM DETECTED") + loggabunga("FUTA_"," - Red Onion Helm detected on -> "..FUTA_processors[hoo_arr_weeeeee][1][1]) + end +end \ No newline at end of file From d0db598a3649f6d352a44d321fdeff7574511eae Mon Sep 17 00:00:00 2001 From: davoodinator <135515620+McVaxius@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:25:32 -0400 Subject: [PATCH 78/78] documentation documentation --- .../FulllyUnifiedTaskAutomation_McVaxius.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua index e5e7748b..a89ef04b 100644 --- a/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua +++ b/Community Scripts/AutoRetainer Companions/AutoMaintenance/FulllyUnifiedTaskAutomation_McVaxius.lua @@ -12,12 +12,16 @@ Requirements : SND and maybe more - let's see where we go with it -Problems/annoyances -ocean fishing. we cant ays relog ... hmmm -hacky time -install AHK -install wintitle plugin - +What is working? + Geting Fisher Levels and determining who is the lowest level fisher + Outputting to log file if Red Onion Helm Detected + Repricing items in retainers first time 100%, 10% chance after that unless you configure it differently. + Doing GC Turnins when configured inventory slots free is below a certain amount + Visiting personal houses when we reach specified number of retainer cleanings + +What is almost working + Ocean fishing would work if i could bypass the post AR lock on ays relog. thats coming soon. purposefully locked it out for + now but if your smart you can install AHK And wintitle plugin and comment out one line of code and try it. its mesmsy and i dont recommend it --]] FUTA_config_file = "FUTAconfig_McVaxius.lua"