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

Nowy tibijczyk, boty


deyath

Rekomendowane odpowiedzi

Opublikowano

witam od 2 dni zaczalem grac w tibie na jednym z oficjalnych serwerów i moje pytanie jest takie takie czy istenie jakis bot to expienia na potworkach oraz do expienia magic levela? Jak tak to prosze o linka Pozdrawiam

Opublikowano

Poradzilem sobie z tym wszystkim ale mam dwa pytania jak ostawic tak ze jak zglodnieje aby mi automatycznie jadl i gdy braknie mu potionow to zeby sie wylogowal ? no i w sumie mam problem z ustawieniem aby mi zabieral zloto oraz jedzenie :)

Opublikowano

Jedzenie powinien jesc sam z ciala. A tutaj masz skrypt zeby jadl jedzenie z bp

 

 

--Food eater/dropper by anoyn
 
--What does it do:
--  Drops excess food open backpacks under self
--  randomized delay 
--  wont spam throw or spam eat
--  ignores specific food ids found in "ignoreTheseFoodIDs" in config
 
--What do you do?
--  Set xenobot's looter to pickup food
--  Keep config as it is or edit to your liking
 
--[[CONFIG]]
ignoreTheseFoodIDs = { 12345123, 99999 }
dropFoodIfCountAbove = 1000 -- Drop food if you have more than this
delayBetweenEatingFood = 160 -- wait this many seconds before eating food again
delayBetweenDroppingFood = 20 -- wait this many seconds before dropping food again
 
moduleDelay = 5000 -- Check if you can drop/eat every this milliseconds
moduleDelayRandomization = 2000 --Ex, if delay set to 5000 and this is 2000, delay will be between 3 and 7 seconds 
 
--[[SCRIPT]]
print("Food eater running")
lastEatFood = 0
Module.New('eatFood', function(eatFood)
    if os.time() - lastEatFood >= delayBetweenEatingFood then
        local ateFood = false
        for i = 0, #Container.GetAll() do
            for spot = Container(i):ItemCount() - 1, 0, -1 do
                if Item.isFood( Container(i):GetItemData(spot).id ) and not table.find( ignoreTheseFoodIDs, Container(i):GetItemData(spot).id, false) then
                    --Food Found eating
                    Container(i):UseItem(spot, true)
                    lastEatFood = os.time()
                    ateFood = true
                    break
                end
            end
            if ateFood then
                --ate food, skip looking at other bps
                break
            end
        end
    end
    eatFood:Delay(math.random(moduleDelay - moduleDelayRandomization, moduleDelay + moduleDelayRandomization) )
end)
 
lastDropFood = 0
Module.New('countFood', function(countFood)
    if os.time() - lastDropFood >= delayBetweenDroppingFood then
        local foodCount = 0
        for i = 0, #Container.GetAll() do
            for spot = Container(i):ItemCount() - 1, 0, -1 do
                if Item.isFood( Container(i):GetItemData(spot).id ) and not table.find( ignoreTheseFoodIDs, Container(i):GetItemData(spot).id, false) then
                    local itemData = Container(i):GetItemData(spot)
                    foodCount = itemData.count + foodCount
                end
            end
        end
 
        --Check if have too much food
        if foodCount > dropFoodIfCountAbove then
            local dropped = false
            for i = 0, #Container.GetAll() do
                for spot = Container(i):ItemCount() - 1, 0, -1 do
                    if Item.isFood( Container(i):GetItemData(spot).id ) and not table.find( ignoreTheseFoodIDs, Container(i):GetItemData(spot).id, false) then
                        local itemData = Container(i):GetItemData(spot)
 
                        local myPos = Self.Position()
 
                        lastDropFood = os.time()
                        --if the pile is larger than limit, drop partial
                        if itemData.count > dropFoodIfCountAbove then
                            local drop = itemData.count - dropFoodIfCountAbove
                            Container(i):MoveItemToGround(spot, myPos.x, myPos.y, myPos.z, drop)
                            -- Large pile , drop partial amount
                            dropped = true
                            break
                        else
                            --pile not larger than limit, drop all
                            Container(i):MoveItemToGround(spot, myPos.x, myPos.y, myPos.z, itemData.count)
                            dropped = true
                            break
                        end
                    end
                end
                if dropped then
                    --ate food, skip looking at other bps
                    break
                end
            end
        end
    end
 
    countFood:Delay(math.random(moduleDelay - moduleDelayRandomization, moduleDelay + moduleDelayRandomization) )
end)
Opublikowano

zgadza sie podchodzi 

i zjada co tylko znajdzie a kolejne pytanie mam  problem a mianowicie nie wiem jak ustawic abu bil mi potworki z czarow a aauto atacku bije

Opublikowano

zgadza sie podchodzi

i zjada co tylko znajdzie a kolejne pytanie mam problem a mianowicie nie wiem jak ustawic abu bil mi potworki z czarow a aauto atacku bije

Targeting>magic shooter

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...