Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Jul 11, 2024
2 parents fe18778 + 2bde161 commit f8f5ae0
Show file tree
Hide file tree
Showing 6 changed files with 495 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ function visland_stop_moving()
yield("/visland stop")
yield("/vnavmesh stop")
yield("/wait 3")
--added becuase simpletweaks is slow to update :(
yield("/character")
yield("/wait 1")
yield("/pcall Character true 12")
yield("/wait 1")
yield("/pcall RecommendEquip true 0")
yield("/wait 1")
end


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
Author: UcanPatates
**********************
* Version | 1.0.8 *
**********************
************************
* Version | 1.0.8.1 *
************************
-> 1.0.8 : Update for DT changed the /click talk to /click Talk_Click.
-> 1.0.7 : Added Option to resend subs.
Expand Down Expand Up @@ -112,7 +112,7 @@
function setSNDPropertyIfNotSet(propertyName)
if GetSNDProperty(propertyName) == false then
SetSNDProperty(propertyName, "true")
LogInfo("[SetSNDPropertys] " .. propertyName .. " set to True")
LogInfo("[SetSNDPropertys] " .. propertyName .. " set to true")
end
end

Expand All @@ -131,19 +131,19 @@
yield("/target " .. Name)
yield("/wait 0.1")
elseif IsAddonVisible("SelectIconString") then
yield("/pcall SelectIconString true 1")
yield("/callback SelectIconString true 1")
elseif IsAddonVisible("SelectYesno") then
yield("/pcall SelectYesno true 0")
yield("/callback SelectYesno true 0")
yield("/wait 0.1")
elseif IsAddonVisible("Repair") then
yield("/pcall Repair true 0")
yield("/callback Repair true 0")
else
yield("/interact")
end
yield("/wait 0.1")
end
while IsAddonVisible("Repair") do
yield("/pcall Repair true -1")
yield("/callback Repair true -1")
yield("/wait 0.1")
end
LogInfo("[RepairNpc]Got Repaired by " .. Name .. " .")
Expand All @@ -161,7 +161,7 @@
if IsAddonVisible("Talk") then
yield("/click Talk_Click")
elseif IsAddonVisible("SelectString") then
yield("/pcall SelectString true 0")
yield("/callback SelectString true 0")
elseif GetTargetName() ~= Name then
yield("/target " .. Name)
else
Expand All @@ -178,22 +178,22 @@
yield("/generalaction repair")
yield("/wait 0.5")
end
yield("/pcall Repair true 0")
yield("/callback Repair true 0")
yield("/wait 0.1")
if GetNodeText("_TextError", 1) == "You do not have the dark matter required to repair that item." and
IsAddonVisible("_TextError") then
SelfRepair = false
LogInfo("[Repair] Set to False not enough dark matter")
end
if IsAddonVisible("SelectYesno") then
yield("/pcall SelectYesno true 0")
yield("/callback SelectYesno true 0")
end
while GetCharacterCondition(39) do
yield("/wait 1")
end
yield("/wait 1")
if IsAddonVisible("Repair") then
yield("/pcall Repair true -1")
yield("/callback Repair true -1")
end
yield("/wait 2")
end
Expand All @@ -212,7 +212,7 @@
yield("/wait 1")
else
if IsAddonVisible("SelectYesno") then
yield("/pcall SelectYesno true 0")
yield("/callback SelectYesno true 0")
else
yield("/wait 0.1")
yield("/interact")
Expand Down Expand Up @@ -261,14 +261,14 @@
end
if FirstTime then
SetDFUnrestricted(true)
yield("/pcall ContentsFinder true 1 6")
yield("/callback ContentsFinder true 1 6")
yield("/wait 0.1")
if GetNodeText("ContentsFinder", 14) == "Alexander - The Burden of the Father" then
else
yield("/pcall ContentsFinder True 12 1")
yield("/callback ContentsFinder true 12 1")
for i = 1, 501 do
if IsAddonReady("ContentsFinder") then
yield("/pcall ContentsFinder True 3 "..i)
yield("/callback ContentsFinder true 3 "..i)
yield("/wait 0.1")
if GetNodeText("ContentsFinder", 14) == "Alexander - The Burden of the Father" then
FoundTheDuty = true
Expand All @@ -285,15 +285,15 @@
end
end
if GetNodeText("ContentsFinder", 14) == "Alexander - The Burden of the Father" then
yield("/pcall ContentsFinder True 12 0")
yield("/callback ContentsFinder true 12 0")
while WhereAmI == GetZoneID() do
if IsAddonVisible("ContentsFinderConfirm") then
yield("/pcall ContentsFinderConfirm True 8")
yield("/callback ContentsFinderConfirm true 8")
end
yield("/wait 1")
end
else
yield("/pcall ContentsFinder True 12 1")
yield("/callback ContentsFinder true 12 1")
yield("Select the correct Duty and start the script again.")
yield("/snd stop")
end
Expand Down Expand Up @@ -340,19 +340,19 @@
repeat
yield("/wait 0.1")
if IsAddonVisible("SelectIconString") then
yield("/pcall SelectIconString true -1")
yield("/callback SelectIconString true -1")
end
if IsAddonVisible("SelectString") then
yield("/pcall SelectString true -1")
yield("/callback SelectString true -1")
end
if IsAddonVisible("ShopExchangeItem") then
yield("/pcall ShopExchangeItem True -1")
yield("/callback ShopExchangeItem true -1")
end
if IsAddonVisible("RetainerList") then
yield("/pcall RetainerList True -1")
yield("/callback RetainerList true -1")
end
if IsAddonVisible("InventoryRetainer") then
yield("/pcall InventoryRetainer True -1")
yield("/callback InventoryRetainer true -1")
end
until IsPlayerAvailable()
end
Expand Down Expand Up @@ -390,7 +390,7 @@
if GetTargetName() ~= "Entrance" then
yield("/target Entrance")
elseif IsAddonVisible("SelectYesno") then
yield("/pcall SelectYesno true 0")
yield("/callback SelectYesno true 0")
elseif GetDistanceToTarget() > 4 then
local X = GetTargetRawXPos()
local Y = GetTargetRawYPos()
Expand All @@ -416,7 +416,7 @@
local Z = GetTargetRawZPos()
WalkTo(X,Y,Z,4)
elseif IsAddonReady("SelectString") then
yield("/pcall SelectString true 0")
yield("/callback SelectString true 0")
else
yield("/interact")
end
Expand Down
105 changes: 105 additions & 0 deletions Community Scripts/Gathering/lv9Fishinggear_McVaxius.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
--config.
--you need navmesh, pandora, teleporter, lifestream, somethingeeddoing, textadvance, yesalready
--and yesalready. setup yesalready to auto accept any purchases from npcs ;o

function visland_stop_moving()
yield("/equipguud")
yield("/equiprecommended")
yield("/character")
yield("/pcall Character true 15")
yield("/wait 0.5")
yield("/pcall SelectYesno true 0")
yield("/character")
yield("/pcall Character true 15")
yield("/pcall SelectYesno true 0")
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 safely - script proceeding to next bit")
yield("/visland stop")
yield("/vnavmesh stop")
yield("/wait 3")
end
--get to the first vendor
yield("/vnavmesh moveto -154.89814758301 18.200000762939 23.502319335938")
visland_stop_moving()
yield("/target Iron Thunder")
yield("/wait 2")
yield("/interact")
yield("/wait 2")
yield("/pcall SelectIconString true 2 <wait.2>")
yield("/pcall SelectString true 0 <wait.2>")
yield("/pcall Shop true 0 0 1 <wait.1.0>")
yield("/pcall Shop true 0 2 1 <wait.1.0>")
yield("/pcall Shop true 0 4 1 <wait.1.0>")
yield("/pcall Shop true 0 6 1 <wait.1.0>")
yield("/pcall Shop true 0 7 1 <wait.1.0>")
yield("/pcall Shop true -1 <wait.1.0>")
yield("/send ESCAPE")
yield("/wait 0.5")
yield("/send ESCAPE")
yield("/wait 0.5")
visland_stop_moving()

--get to second vendor
yield("/vnavmesh moveto -246.67446899414 16.199998855591 41.268531799316")
visland_stop_moving()
yield("/target Syneyhil")
yield("/wait 2")
yield("/interact")
yield("/wait 2")
yield("/pcall SelectIconString true 1 <wait.2>")
yield("/pcall SelectString true 0 <wait.2>")
yield("/pcall Shop true 0 5 1 <wait.1.0>")
yield("/pcall Shop true -1 <wait.1.0>")
visland_stop_moving()

--go unlock fishing aetheryte
yield("/vnavmesh moveto -334.74258422852 11.99923324585 54.69458770752")
yield("/target Aethernet Shard")
yield("/wait 2")
yield("/interact")
yield("/wait 6")
visland_stop_moving()

--go talk to roe @ ocean fishing docks
yield("/vnavmesh moveto -411.98840332031 4.0 75.463768005371")
visland_stop_moving()
yield("/target Foerzagyl")
yield("/wait 2")
yield("/interact")
yield("/wait 3")
visland_stop_moving()

--auto equip and bait setup
yield("/ac bait")
yield("/wait 1")
yield("/pcall Bait true 29717 false")
yield("/wait 1")
yield("/ac bait")
yield("/wait 1")
yield("/character")
yield("/wait 1")
yield("/pcall Character true 12")
yield("/wait 1")
yield("/pcall RecommendEquip true 0")
yield("/wait 1")

--go straight to costa del sol or quarrymill?
yield("/tp quarrymill")
yield("/wait 10")
visland_stop_moving()
yield("/vnavmesh moveto 184.9930267334 7.2395286560059 -35.677642822266")
visland_stop_moving()
yield("/ac cast")
Loading

0 comments on commit f8f5ae0

Please sign in to comment.