Skip to content

Commit

Permalink
Merge pull request #183 from McVaxius/master3
Browse files Browse the repository at this point in the history
some minor qol update
  • Loading branch information
Jaksuhn authored Jul 29, 2024
2 parents 9c00e07 + 821d143 commit 4701a95
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ local function shake_hands()
get_to_the_choppa = 0
horrible_counter_method = 0
--get_to_the_choppa = 1 -- alternate exit var
while GetGil() > bagmans_take or get_to_the_choppa == 0 do
-- while GetGil() > bagmans_take or get_to_the_choppa == 0 do
thebag = GetGil() - bagmans_take
if thebag < 0 then
thebag = GetGil()
Expand All @@ -203,7 +203,10 @@ local function shake_hands()
--yield("/echo our return mode will be "..franchise_owners[1][2])

--pcall way to transfer gil only. we can't pcall other methods
while GetGil() > bagmans_take or get_to_the_choppa == 0 do
while get_to_the_choppa == 0 do
if (GetGil() < (bagmans_take + 1)) and (tony_type == 0 or tony_type == 2) then
get_to_the_choppa = 1
end
yield("/target "..fat_tony)
yield("/echo here you go "..fat_tony..", another full bag, with respect")
if bagman_type == 0 then
Expand Down Expand Up @@ -289,12 +292,11 @@ local function shake_hands()
get_to_the_choppa = 1
yield("/echo DEBUG moving towards exiting bagman type 2....")
end -- get out
end

end
end
end
yield("/wait 1")
end
yield("/wait 1")
--end
if bagman_type > 0 then
--get_to_the_choppa = 1 --so the loop exits
yield("/wait 4")
Expand Down Expand Up @@ -360,56 +362,56 @@ for i=1,#franchise_owners do
yield("/wait 5")
end

--allright time for a road trip. tony needs that bag
road_trip = 1 --we took a road trip
--now we must head to the place we are meeting this filthy animal
--first we have to find his neighbourhood, this uber driver better not complain
--are we on the right server already?
yield("/li "..tonys_turf)
yield("/wait 2")
yield("/pcall SelectYesno true 0")
yield("/wait 2")
CharacterSafeWait()
yield("/echo Processing Tony "..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")
if tony_zoneID ~= GetZoneID() then --we are teleporting to Tony's spot
yield("/tp "..tonys_spot)
yield("/wait 2")
yield("/pcall SelectYesno true 0")
ZoneTransition()
--allright time for a road trip. let get that bag to Tony
road_trip = 0
yield("GetGil() -> "..GetGil())
yield("bagmans_take -> "..bagmans_take)
--if GetGil() > bagmans_take then
road_trip = 1 --we took a road trip
--now we must head to fat_tony
--first we have to find his neighbourhood, this uber driver 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")
if tony_zoneID ~= GetZoneID() then --we are teleporting to Tony's spot
yield("/tp "..tonys_spot)
ZoneTransition()
end
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
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
geel = GetGil() --get the initial geel value

--ok this filthy animal 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")
yield("/wait 5")
approach_tony()
visland_stop_moving()
end
approach_tony()
visland_stop_moving()
end
shake_hands() -- its a business doing pleasure with you tony as always
shake_hands() -- its a business doing pleasure with you tony as always
--end
if road_trip == 1 then --we need to get home
--time to go home.. maybe?
if franchise_owners[i][2] == 0 then
Expand All @@ -422,13 +424,13 @@ for i=1,#franchise_owners do
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("/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
yield("/hold W <wait.1.0>")
yield("/release W")
yield("/target Entrance <wait.1>")
Expand All @@ -447,13 +449,11 @@ for i=1,#franchise_owners do
end
--limsa bell
if franchise_owners[i][3] == 2 then
yield("/echo returning to limsa bell")
return_to_limsa_bell()
end
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!
--boss please i just collected the stuff be nice
yield("/ays multi e")
yield("/ays multi e")
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ for i=1,#franchise_owners do
--first we have to find his neighbourhood, this uber driver better not complain
--are we on the right server already?
yield("/li "..tonys_turf)
yield("/wait 15")
yield("/wait 2")
yield("/pcall SelectYesno true 0")
yield("/wait 2")
CharacterSafeWait()
yield("/echo Processing Tony "..i.."/"..#franchise_owners)

Expand All @@ -141,7 +143,7 @@ for i=1,#franchise_owners do
if tony_zoneID ~= GetZoneID() then --we are teleporting to Tony's spot
yield("/tp "..tonys_spot)
yield("/wait 2")
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("/pcall SelectYesno true 0")
ZoneTransition()
end
end
Expand All @@ -166,7 +168,7 @@ for i=1,#franchise_owners do
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("/pcall SelectYesno true 0")
yield("/wait 5")
end
approach_tony()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ fartingGoat = 1
function turnin()
hehehe = 1
yield("/echo Quest list -> "..GetNodeText("_ToDoList", 8, 13))

--check first two quests to see if they are the turnin ones. we can finally ignore blue menu now
while hehehe == 1 do
hehehe = 0
floob = GetNodeText("_ToDoList", 8, 13)
if floob == "A Recipe for Disaster" or floob == "Just Call Me Late for Dinner" or floob == "Kitchen Nightmares No More" then
hehehe = 1
end
floob = GetNodeText("_ToDoList", 9, 13)
if floob == "A Recipe for Disaster" or floob == "Just Call Me Late for Dinner" or floob == "Kitchen Nightmares No More" then
hehehe = 1
end
floob = GetNodeText("_ToDoList", 8, 13)
yield("/target F'abodji")
yield("/wait 0.5")
Expand Down

0 comments on commit 4701a95

Please sign in to comment.