Skip to content

Commit

Permalink
Merge pull request #88 from McVaxius/master3
Browse files Browse the repository at this point in the history
the bagman
  • Loading branch information
Jaksuhn committed Apr 7, 2024
2 parents dba69a1 + 4b5bd80 commit 7080fd7
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Final_GC_Cleaning()
end
end

--added 5 second wait here because sometimes they get stuck. altho its been biological life form so far....
--added 5 second wait here because sometimes they get stuck.
yield("/wait 5")
yield("/tp Estate Hall")
yield("/wait 1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ function CharacterSafeWait()
yield("/echo 15 second wait for char swap")
yield("/wait 15")
yield("/waitaddon NamePlate <maxwait.600> <wait.5>")

end

function visland_stop_moving()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
--[[
Have you ever wanted your alts that have been making gil for you on other accounts, to deliver that gil TO you?
well this script (will eventually) rotate through your alts, and visit a server and or place to deliver gil.
requires plugins
Lifestream
Teleporter
Pandora -> autofill max until kawaii implements the thing for dropbox
Dropbox -> autoconfirm
Visland
Vnavmesh
Simpletweaks -> enable targeting fix
YesAlready -> /Enter .*/
Optional:
Autoretainer
]]

fat_tony = "Firstname Lastname" --what is the name of the destination player who will receive the gil
tonys_turf = "Maduin" --what server is tony on
tonys_spot = "Pavolis Meats" --where we tping to aka aetheryte name
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 = 1 --0 = specific aetheryte name, 1 first estate in list outside, 2 first estate in list inside
bagmans_take = 2000000 -- how much gil remaining should the bagma(e)n shave off the top for themselves?

--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
tony_x = 42069420
tony_y = 42069420
tony_z = 42069420

--[[
firstname, lastname, meeting locationtype, returnhome 1 = yes 0 = no, 0 = fc entrance 1 = nearby bell
]]

local franchise_owners = {
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0},
{"Firstname Lastname@Server", 1, 0}
}

loadfiyel = os.getenv("appdata").."\\XIVLauncher\\pluginConfigs\\SomethingNeedDoing\\_functions.lua"
functionsToLoad = loadfile(loadfiyel)
functionsToLoad()
DidWeLoadcorrectly()

--the boss wants that monthly gil payment, have your bagman ready with the gil.
--If he has to come pick it up himself its gonna get messy

yield("/ays multi d")

local function approach_tony()
local specific_tony = 0
if tony_x ~= 42069420 and tony_y ~= 42069420 and tony_z ~= 42069420 then
specific_tony = 1
end
if specific_tony == 0 then
PathfindAndMoveTo(GetObjectRawXPos(fat_tony),GetObjectRawYPos(fat_tony),GetObjectRawZPos(fat_tony), false)
end
if specific_tony == 1 then
PathfindAndMoveTo(tony_x,tony_y,tony_z, false)
end
end

local function approach_entrance()
PathfindAndMoveTo(GetObjectRawXPos("Entrance"),GetObjectRawYPos("Entrance"),GetObjectRawZPos("Entrance"), false)
end

local function shake_hands()
if GetGil() == 0 then
yield("what are you stupid? you better run before "..fat_tony.." realizes you tricked them")
end
if GetGil() > 0 then
thebag = GetGil() - bagmans_take
if thebag < 0 then
thebag = GetGil()
end
yield("/target "..fat_tony)
yield("/wait 1")
--*/dropbox trade gil thebag
--*some kind of loop to check gil amount until it reaches the desired remainder
--hack way to transfer gil for now
while GetGil() > bagmans_take do
yield("/echo here you go "..fat_tony..", another full bag, with respect")
yield("/trade")
yield("/wait 0.5")
yield("/pcall Trade true 2")
yield("/wait 0.5")
--yield("/pcall InputNumeric true 100000 <wait.1>") --this is just in case we want to specify/calculate the amount
yield("/pcall Trade true 0")
yield("/wait 5")
end
end
end

for i=1,#franchise_owners do
yield("/echo Loading bagman to deliver protection payments Fat Tony -> "..fat_tony..". Bagman -> "..franchise_owners[i][1])
yield("/echo Processing Bagman "..i.."/"..#franchise_owners)
yield("/ays relog " ..franchise_owners[i][1])
yield("/wait 2")
CharacterSafeWait()
yield("/echo Processing Bagman "..i.."/"..#franchise_owners)

--now we must head to fat_tony
--first we have to find his neighbourhood, this uber drive better not complain
--are we on the right server already?
yield("/li "..tonys_turf)
yield("/wait 15")
CharacterSafeWait()
yield("/echo Processing Bagman "..i.."/"..#franchise_owners)

--now we have to walk or teleport?!!?!? to fat tony, where is he waiting this time?
if tony_type == 0 then
yield("/echo "..fat_tony.." is meeting us in the alleyways.. watch your back")
yield("/tp \"tonys_spot\"")
ZoneTransition()
end
if tony_type > 0 then
yield("/echo "..fat_tony.." is meeting us at the estate, we will approach with respect")
yield("/estatelist "..fat_tony)
yield("/wait 0.5")
--very interesting discovery
--1= personal, 0 = fc, 2 = apartment
yield("/pcall TeleportHousingFriend true "..tonys_house)
ZoneTransition()
end

--ok tony is nearby. let's approach this guy, weapons sheathed, we are just doing business
if tony_type == 0 then
approach_tony()
visland_stop_moving()
end
if tony_type == 1 then
approach_entrance()
visland_stop_moving()
if tony_type == 2 then
yield("/interact")
yield("/pcall SelectYesNo true 0") --this doesnt work. just use yesalready. putting it here for later in case someone else sorts it out i can update.
yield("/wait 5")
end
approach_tony()
visland_stop_moving()
end
shake_hands() -- its a business doing pleasure with you tony as always
--time to go home.. maybe?
if franchise_owners[i][2] == 0 then
yield("/echo wait why can't i leave "..fat_tony.."?")
end
if franchise_owners[i][2] == 1 then
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")
yield("/tp Estate Hall")
yield("/wait 1")
--yield("/waitaddon Nowloading <maxwait.15>")
yield("/wait 15")
yield("/waitaddon NamePlate <maxwait.600><wait.5>")
--normal small house shenanigans
if franchise_owners[i][3] == 0 then
yield("/hold W <wait.1.0>")
yield("/release W")
yield("/target Entrance <wait.1>")
yield("/lockon on")
yield("/automove on <wait.2.5>")
yield("/automove off <wait.1.5>")
yield("/hold Q <wait.2.0>")
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
end
end

--what you thought your job was done you ugly mug? get back to work you gotta pay up that gil again next month!
yield("/ays multi e")
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ local function searchNearestWP()
local searchPCT = 5
if dutyloaded == 1 and GetCharacterCondition(26) == false and GetCharacterCondition(34) == true then
--everything is normal reset the counter
if (math.abs(((WPsearchX - GetPlayerRawXPos())/WPsearchX)) * 100) > searchPCT or (math.abs(((WPsearchY - GetPlayerRawXPos())/WPsearchY)) * 100) > searchPCT or (math.abs(((WPsearchZ - GetPlayerRawXPos())/WPsearchZ)) * 100) > searchPCT then
if ((math.abs(((WPsearchX - GetPlayerRawXPos())/WPsearchX)) * 100) > searchPCT or (math.abs(((WPsearchY - GetPlayerRawXPos())/WPsearchY)) * 100) > searchPCT or (math.abs(((WPsearchZ - GetPlayerRawXPos())/WPsearchZ)) * 100) > searchPCT) and WPsearchcounter > 0 then
WPsearchcounter = 0
WPsearchX = GetPlayerRawXPos()
WPsearchY = GetPlayerRawYPos()
Expand Down
26 changes: 19 additions & 7 deletions Community Scripts/Misc/frenrider_McVaxius.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
--script to kind of autofollow specific person in party when not in a duty by riding their vehicule
--meant to use when your ahh botting treasure maps :~D

--requirements :
--croizats SND - disable SND targeting in config
--simpletweaks with targeting fix enabled
--[[
*requirements:
croizats SND - disable SND targeting in config
simpletweaks with targeting fix enabled
*optional:
bring some gysahl greens
]]

fren = "Frend Name" --can be partial as long as its unique
weirdvar = 1
Expand All @@ -13,7 +18,6 @@ weirdvar = 1
yield("/target "..fren)
yield("/wait 0.5")
--yield("/mk cross <t>")
--yield("/item Gysahl Greens")
local partycardinality = 2

for i=2,8 do
Expand All @@ -30,18 +34,26 @@ while weirdvar == 1 do
--check if chocobro is up or not! we can't do it yet
if GetCharacterCondition(26) == false then --not in combat
if GetCharacterCondition(4) == false then --not mounted
if GetBuddyTimeRemaining() < 900 and GetItemCount(4868) > 0 then
yield("/visland stop")
yield("/vnavmesh stop")
yield("/item Gysahl Greens")
yield("/wait 2")
end
--yield("/target <cross>")
yield("/target "..fren)
yield("/wait 0.5")
PathfindAndMoveTo(GetObjectRawXPos(fren), GetObjectRawYPos(fren),GetObjectRawZPos(fren), false)
PathfindAndMoveTo(GetObjectRawXPos(fren),GetObjectRawYPos(fren),GetObjectRawZPos(fren), false)
--yield("/lockon on")
--yield("/automove on")

--[[yield("/ridepillion <"..mker.."> 1")
yield("/ridepillion <"..mker.."> 2")
yield("/ridepillion <"..mker.."> 3")]]
for i=1,7 do
yield("/ridepillion <"..partycardinality.."> "..i)
if IsPartyMemberMounted(partycardinality) == true then
for i=1,7 do
yield("/ridepillion <"..partycardinality.."> "..i)
end
end
end
end
Expand Down
27 changes: 5 additions & 22 deletions Community Scripts/Treasure Hunt/simpleFireupMapandGO.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,12 @@ Boss Mod -> :D
Lazyloot -> optional for "/fulf pass" or whatever you want to do with it
YesAlready -> the first time you decipher a map just add it to your yesalready
pseudocode
-> start
pop map
are we in same area already? if not tp to flag
flyto <flag>
pop dig
path to chest and pop it
functions:
public unsafe float GetFlagXCoord() => AgentMap.Instance()->FlagMapMarker.XFloat;
public unsafe float GetFlagYCoord() => AgentMap.Instance()->FlagMapMarker.YFloat;
public unsafe float GetFlagZone() => AgentMap.Instance()->FlagMapMarker.TerritoryId;
How it works.
it will just open any map you might have
grab the flag and get TO the flag
]]

--[[
maptypes
Level 80 Ostensibly Special Timeworn Map 33328
Level 90 Ostensibly Special Timeworn Map ??
]]

maptype = 33328

function distance(x1, y1, x2, y2)
local dx = x2 - x1
local dy = y2 - y1
Expand Down Expand Up @@ -66,8 +50,7 @@ function ZoneTransition()
end

--begin!
--yield("/item "..maptype)
--yield("/item Ostensibly Special Timeworn Map") --this doesnt actually work for some reason. it doesnt give an error though
--Generic map opener. it will just open whatever appears at top of this list
yield("/gaction decipher")
yield("/wait 1")
yield("/pcall SelectIconString true 0")
Expand All @@ -78,7 +61,7 @@ yield("target zone -> "..GetFlagZone())
if GetZoneID() ~= GetFlagZone() then
--we need to get there!
yield("/p <flag>")
ZoneTransition()
--ZoneTransition() --dont want auto teleport. sometimes it picks an aetheryte i dont agree with
end

--either we TPed there or we were there already.
Expand Down

0 comments on commit 7080fd7

Please sign in to comment.