Thread Rating:
  • 13 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buy House Assister
#32
Can anyone actually confirm a code that purchases a free company? Or verify that this code works?



local delay = 1200 --Delay between purchase attempts, 1000 is 1 second
local buytype = 1 --0 is Private Individual, 1 is Free Company, 2 is Relocation...
local PlacardID = 0

if BuyHouseVar == nil then
    BuyHouseVar = true
    BuyHouseStep = 0
    BuyHouseLast = 0
    BuyHousePushButton = 24
    if GetGameRegion() == 1 then BuyHousePushButton = 25 end
else
    BuyHouseVar = not BuyHouseVar
end

function BuyHouseFunction()
    d("BuyHouseStep: "..tostring(BuyHouseStep))
    if BuyHouseVar and TimeSince(BuyHouseLast) > delay then
            PlacardID = 0
            local el = EntityList("nearest,contentid=2002736")
            if table.valid(el) then
                    for k,v in pairs(el) do
                            PlacardID = v.id
                    end
            end

            if BuyHouseStep == 0 then
                    if IsControlOpen("HousingSignBoard") then
                            BuyHouseStep = 1
                    else
                            Player:SetTarget(PlacardID)
                            Player:Interact(PlacardID)
                    end
            end
            if BuyHouseStep == 1 then
                    UseControlAction("HousingSignBoard","PurchaseLand")
                    if IsControlOpen("SelectYesno") then
                            BuyHouseStep = 3
                    elseif IsControlOpen("SelectString") and not IsControlOpen("HousingSignBoard") then
                            BuyHouseStep = 2
                    elseif IsControlOpen("HousingSignBoard") then
                            local ctrl = GetControl("HousingSignBoard")
                            if ctrl:GetRawData()[1].value.A == 1 then
                                    ctrl:PushButton(BuyHousePushButton,2)
                            end
                    end
            end
            if BuyHouseStep == 2 then
                    if IsControlOpen("SelectYesno") then
                            BuyHouseStep = 3
                    elseif IsControlOpen("SelectString") then
                            GetControl("SelectString"):Action("SelectIndex",buytype)
                    elseif IsControlOpen("HousingSignBoard") then
                            UseControlAction("SelectYesno","Yes")
                            BuyHouseStep = 1
                    end
            end
            if BuyHouseStep == 3 then
                    if IsControlOpen("SelectYesno") then
                            UseControlAction("SelectYesno","Yes")
                    elseif Player:GetTarget() == nil then
                            BuyHouseStep = 0
                            BuyHouseLast = Now()    
                    end
            end
    end
    if Player:GetTarget() == nil then
            Player:SetTarget(PlacardID)
    end
end
RegisterEventHandler("Gameloop.Update", BuyHouseFunction)
Reply
 


Messages In This Thread
Buy House Assister - by Kali - 02-20-2018, 08:13 PM
RE: Buy House Assister - by alfy16 - 02-20-2018, 08:15 PM
RE: Buy House Assister - by Ash-Brighter - 02-24-2018, 08:28 AM
RE: Buy House Assister - by Kali - 03-17-2018, 02:57 AM
RE: Buy House Assister - by Gseeker - 04-04-2018, 09:16 AM
RE: Buy House Assister - by NSix - 04-20-2018, 01:45 PM
RE: Buy House Assister - by Rurouni - 05-25-2018, 03:31 PM
RE: Buy House Assister - by NSix - 08-04-2018, 08:00 PM
RE: Buy House Assister - by super4uwak - 09-09-2018, 08:09 AM
RE: Buy House Assister - by Firewing26 - 01-20-2019, 09:10 PM
RE: Buy House Assister - by frekeyande - 04-03-2019, 09:37 AM
RE: Buy House Assister - by sasmariozeld - 04-05-2019, 11:00 PM
RE: Buy House Assister - by nil - 04-25-2019, 04:07 PM
RE: Buy House Assister - by FunkedUp - 04-25-2019, 07:50 PM
RE: Buy House Assister - by nil - 04-25-2019, 11:33 PM
RE: Buy House Assister - by nil - 04-30-2019, 04:23 PM
RE: Buy House Assister - by liouliou - 05-01-2019, 02:56 PM
RE: Buy House Assister - by FunkedUp - 05-01-2019, 04:07 PM
RE: Buy House Assister - by bender69 - 05-04-2019, 06:10 AM
RE: Buy House Assister - by xaviorleggens - 05-07-2019, 05:29 AM
RE: Buy House Assister - by bender69 - 05-08-2019, 03:24 PM
RE: Buy House Assister - by shiner1976 - 05-12-2019, 04:55 AM
RE: Buy House Assister - by costadelsoule - 05-25-2019, 01:55 PM
RE: Buy House Assister - by qwerbob - 05-16-2019, 09:21 PM
RE: Buy House Assister - by Shadow_Hunter1977 - 05-23-2019, 09:55 PM
RE: Buy House Assister - by sizuka - 05-24-2019, 02:07 AM
RE: Buy House Assister - by taffyapple - 05-29-2019, 09:08 PM
RE: Buy House Assister - by taffyapple - 05-29-2019, 09:10 PM
RE: Buy House Assister - by abornwalrus - 06-04-2019, 07:09 AM
RE: Buy House Assister - by qwerbob - 06-04-2019, 11:05 AM
RE: Buy House Assister - by abornwalrus - 06-04-2019, 01:14 PM
RE: Buy House Assister - by abornwalrus - 06-04-2019, 08:31 PM
RE: Buy House Assister - by Iandude - 06-07-2019, 07:53 PM
RE: Buy House Assister - by jaged74 - 06-25-2019, 05:51 PM
RE: Buy House Assister - by shioka - 07-27-2019, 03:51 PM
RE: Buy House Assister - by bambooraven - 08-15-2019, 12:12 PM
RE: Buy House Assister - by modena - 09-30-2019, 04:57 PM
RE: Buy House Assister - by super4uwak - 09-30-2019, 06:04 PM
RE: Buy House Assister - by modena - 09-30-2019, 07:11 PM
RE: Buy House Assister - by rsilva712 - 10-07-2019, 03:45 PM
RE: Buy House Assister - by botle - 10-09-2019, 10:52 PM
RE: Buy House Assister - by elijahman - 04-05-2020, 02:23 AM
RE: Buy House Assister - by th3c4t - 04-12-2020, 04:25 PM
RE: Buy House Assister - by captainmorgan - 05-16-2020, 12:55 AM
RE: Buy House Assister - by Angeliwar - 02-08-2021, 04:41 PM
RE: Buy House Assister - by Steve123 - 05-17-2020, 12:18 AM
RE: Buy House Assister - by Steve123 - 05-17-2020, 02:41 AM
RE: Buy House Assister - by Angeliwar - 02-08-2021, 04:44 PM
RE: Buy House Assister - by GregTheWang - 06-03-2021, 05:38 PM
RE: Buy House Assister - by misopng - 06-03-2020, 09:29 PM
RE: Buy House Assister - by veronwltan - 09-21-2020, 02:41 AM
RE: Buy House Assister - by Briory - 01-01-2022, 10:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products