Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

XenoBot 100% afk skrypt tutorial


Petoss

Rekomendowane odpowiedzi

Opublikowano

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

-------- REFILL SETTINGS --------
local MinMana = 100 --- How many mana potions until you leave the hunt.
local MaxMana = 1200 --- How many mana potions you begin the hunt with.

local MinHealth = 20 --- How many health potions until you leave the hunt.
local MaxHealth = 150  --- How many health potions you begin the hunt with.

--------- HUNT SETTINGS ---------
local GoldBP = 8860 --- Item ID of your gold backpack.
local MinCap = 150 --- Leaves spawn when character reaches this cap.
local LogoutStamina = true --- Do you want to logout at 16 hours? (Inside the depot)

Targeting.Start()
Looter.Start()

---------------------------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function SelectLabel(labelName)

    if  labelName == 'ResetBPs' then
        Container.GetByName(BrocadeBP):Close()
        wait(500, 600)
        Container.GetFirst():OpenChildren(BrocadeBP)
        Container.GetByName(GoldBP):Close()
        wait(500, 600)
Container.GetFirst():OpenChildren(GoldBP)

        elseif (labelName == "Deposit") then
        Walker.Stop()
        Self.ReachDepot()
        Self.DepositItems({3030, 2}, {3370, 2}, {3369, 2}, {3436, 2}, {3392, 2}, {3079, 2})    
                
        elseif labelName == 'Bank' then
        Self.SayToNpc({'hi', 'deposit all', 'yes', 'withdraw' .. math.ceil((50*(MaxManas-Self.ItemCount(268)))/1000)*1000, 'balance'})
        Walker.Start()
        
        elseif (labelName == "potions") then
        Walker.Stop()
        if (Self.ItemCount(268) < MaxMana) or (Self.ItemCount(7643) < MaxHealth) then
            Self.SayToNpc({"hi", "flasks", "yes", "yes", "yes", "yes", "yes", "yes", "trade"}, 65)
            wait(2000)
            if (Self.ItemCount(268) < MaxMana) then
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
                BuyItems(268, MaxMana)
                wait(500)
            if (Self.ItemCount(7643) < MaxHealth) then
                BuyItems(7643, MaxHealth)
                wait(500)
        end
        wait(200, 500)
    end        
        Walker.Start()    
        
        elseif (labelName == "CheckStuff") then
        Walker.ConditionalGoto((Self.ItemCount(7643) < MaxHealth), "Bank", "ToHunt")
        
        end
    end
end
----------------------- Functions ----------------------
 
Self.ReachDepot = function (tries)
local tries = tries or 3
Walker.Stop()
local DepotIDs = {3497, 3498, 3499, 3500}
local DepotPos = {}
for i = 1, #DepotIDs do
local dps = Map.GetUseItems(DepotIDs)
for j = 1, #dps do
table.insert(DepotPos, dps[j])
end
end
 
local function gotoDepot()
local pos = Self.Position()
print("Ilosc znalezionych Depo: " .. tostring(#DepotPos))
for i = 1, #DepotPos do
location = DepotPos
Self.UseItemFromGround(location.x, location.y, location.z)
wait(1000, 2000)
if Self.DistanceFromPosition(pos.x, pos.y, pos.z) >= 1 then
wait(5000, 6000)
if Self.DistanceFromPosition(location.x, location.y, location.z) == 1 then
Walker.Start()
return true
end
else
print("To depo jest zajete, szukam dalej.")
end
end
return false
end
 
repeat
reachedDP = gotoDepot()
if reachedDP then
return true
end
tries = tries - 1
sleep(100)
print("Nie udalo sie dotrzec do depo... " .. tries .. " szukam dalej.")
until tries <= 0
 
return false
end
 
Map.GetUseItems = function (id)
    if type(id) == "string" then
        id = Item.GetID(id)
    end
    local pos = Self.Position()
local store = {}
    for x = -7, 7 do
        for y = -5, 5 do
            if Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id == id then
                itemPos = {x = pos.x + x, y = pos.y + y, z = pos.z}
table.insert(store, itemPos)
            end
        end
    end
    return store
end

 

 

 

pomoze ktos ? walker pomija mi labele, nie wyplaca kasy, nie kupuje potow 

  • 5 miesięcy temu...
  • Odpowiedzi 77
  • Dodano
  • Ostatniej odpowiedzi
  • 1 rok później...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...