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 10.00 problem z full afkiem


strojny

Rekomendowane odpowiedzi

Opublikowano

Witam, mam problem ponieważ zrobiłem własnego skrypta 100% afk przy pomocy http://www.mpcforum.pl/topic/1513026-xenobot-full-afk-krok-po-kroku/#entry12811610 i mam problem gdy jestem na huncie i zrobie "kółko" postać nie sprawdza i nie expi dalej tylko wraca się do miasta, wszystkie labele mam zgodne w skrypcie jak i w grze i skrypt mam załadowany bo itemki odkłada do dp i do banku chodzi. Pomoże ktoś? :/

Opublikowano


SKRYPT WYGLĄDA TAK : 
 

---------------------------------
--------Twoj Waypoint------------
---------------------------------
 
----------- BP SETUP ------------
--~ [bP 1] ~-- Main
--~ [bP 2] ~-- Produkty
--~ [bP 3] ~-- Gold
 
----------- DP SETUP ------------
--~ [DP 1] ~-- Rare
--~ [DP 2] ~-- Produkty
 
------------ Settings -----------
 
 
-- Health Potions --
 
local HealthToLeave = 30 -- Z iloma healtami wracać
 
-- Other Options --
 
local MainBP = 2854 -- ID plecaka glownego   (Jewelled)
local ItemBP = 2854 -- ID plecaka na itemy (Jewelled)
local GoldBP = 2869 -- ID plecaka na kase (Pomaranczowy)
local MinCap = 100 -- Od ilu Capa wracać
local HideEquipment = false -- Zminimalizować EQ 
 
-- Floor Settings --
 
local SecondFloor = true -- Tego nie zmieniajcie
 
 
Targeting.Start()
Looter.Start()
 
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
 
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
 
local info = [[]]
    wait(5000)
 
    print([[
    K.O!]])
    wait(5000)
 
-----------------------------------------------------------------------------------------------------------------------------------------
function onWalkerSelectLabel(labelName)
 
if (labelName == "Checker") then
   if (Self.ItemCount(HealthPotID) <= HealthToLeave) or (Self.Cap() < MinCap) then
           
        else
            gotoLabel("Start Hunt")
end    
 
 
elseif (labelName == "Deposit") then
setWalkerEnabled(false)
Self.ReachDepot()
Self.DepositItems({11467, 1}, {23986, 2}, {11481, 3}, {10291, 4}, {9657, 5}, {7454, 6}) -- Tutaj dodajesz ID itemkow ktore ma odkładać do Depo a po przecinku backpack w kolejności od lewej strony 0 oznacza miejsce pierwsze a 1 miejsce 2, 2 to miejsce trzecie i tak dalej
Self.DepositItems({11484, 7}, {5913, 8}, {11466, 9}, {3027, 10}) -- tutaj to smao co wyżej bo jak jest za dużo itemek w jednej lini to się zawiesza
wait(1500,1900)
 
elseif (labelName == "Cash") then
setWalkerEnabled(false)
        delayWalker(5000) 
        Self.Say("hi")
        sleep(math.random(700, 1400)) 
        Self.SayToNpc("deposit all")
        sleep(math.random(300, 1000))
        Self.SayToNpc("yes")
setWalkerEnabled(true)
 
 
elseif (labelName == "FullCheck") then
if (Self.ItemCount) or (Self.Cap() < MinCap) or (Self.ItemCount(HealthPotID) < WantedHealth) then
            gotoLabel("PreDeposit")
        else
            gotoLabel("Start Hunt")
end
 
if (labelName == "Checker") then
if (Self.ItemCount(8) <= HealthToLeave) or (Self.Cap(100) < MinCap) then
gotoLabel("Leave")
else
gotoLabel("Start Hunt")
end 
 
elseif (labelName == "ResetBp") then
Walker.Stop()
 
Container.Close(ItemBP)
wait(1000)
Container.Close(GoldBP)
wait(1000)
Container.GetFirst():OpenChildren(ItemBP)
wait(1000)
Container.GetFirst():OpenChildren(GoldBP)
wait(1000)
Container.GetByName(ItemBP):Minimize()
wait(1000)
Container.GetByName(GoldBP):Minimize()
wait(200)
if (HideEquipment) then
Client.HideEquipment()
wait(1000)
end
Walker.Start()
end
end
 
 
----------------------- Functions ----------------------
function SellItems(item) -- item = item ID
wait(300, 1700)
Self.ShopSellItem(item, Self.ShopGetItemSaleCount(item))
wait(900, 1200)
end
 
function BuyItems(item, count) -- item = item id, count = how many you want to buy up to
wait(900, 1200)
if (Self.ItemCount(item) < count) then
Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
wait(200, 500)
end
end
 
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


WAYPOINTY : 

<control name="WaypointList">
<item text="Start:" tag="255"/>
<item text="FullCheck:" tag="255"/>
<item text="PreDeposit:" tag="255"/>
<item text="Deposit:" tag="255"/>
<item text="Stand (32347, 32231, 8)" tag="1"/>
<item text="Stand (32344, 32230, 7)" tag="1"/>
<item text="Cash:" tag="255"/>
<item text="ResetBp:" tag="255"/>
<item text="LetsHunt:" tag="255"/>
<item text="Node (32359, 32215, 7)" tag="0"/>
<item text="Node (32368, 32184, 7)" tag="0"/>
<item text="Node (32446, 32119, 7)" tag="0"/>
<item text="Stand (32448, 32069, 7)" tag="1"/>
<item text="Start Hunt:" tag="255"/>
<item text="Node (32447, 32069, 8)" tag="0"/>
<item text="Hole (32418, 32041, 8)" tag="4"/>
<item text="Node (32401, 32054, 9)" tag="0"/>
<item text="Node (32399, 32018, 9)" tag="0"/>
<item text="Node (32385, 31999, 9)" tag="0"/>
<item text="Node (32365, 31969, 9)" tag="0"/>
<item text="Hole (32360, 31972, 9)" tag="4"/>
<item text="Node (32392, 31974, 10)" tag="0"/>
<item text="Node (32414, 31987, 10)" tag="0"/>
<item text="Node (32421, 32030, 10)" tag="0"/>
<item text="Node (32441, 32045, 10)" tag="0"/>
<item text="Node (32390, 32062, 10)" tag="0"/>
<item text="Hole (32391, 32011, 10)" tag="4"/>
<item text="Node (32391, 32023, 11)" tag="0"/>
<item text="Node (32426, 32020, 11)" tag="0"/>
<item text="Node (32413, 32056, 11)" tag="0"/>
<item text="Stand (32392, 32028, 11)" tag="1"/>
<item text="Rope (32392, 32028, 11)" tag="3"/>
<item text="Rope (32405, 32033, 10)" tag="3"/>
<item text="Node (32383, 32030, 9)" tag="0"/>
<item text="Node (32411, 31995, 9)" tag="0"/>
<item text="Stand (32418, 32041, 9)" tag="1"/>
<item text="Hole (32418, 32040, 9)" tag="4"/>
<item text="Node (32420, 32049, 8)" tag="0"/>
<item text="Node (32447, 32069, 8)" tag="0"/>
<item text="Checker:" tag="255"/>
<item text="Leave:" tag="255"/>
<item text="Stand (32448, 32069, 8)" tag="1"/>
<item text="Node (32460, 32079, 7)" tag="0"/>
<item text="Node (32450, 32114, 7)" tag="0"/>
<item text="Node (32368, 32171, 7)" tag="0"/>
<item text="Node (32346, 32224, 7)" tag="0"/>
<item text="Stand (32347, 32231, 7)" tag="1"/>
<item text="Stand (32345, 32222, 8)" tag="1"/>

Zaznaczam, że wszystko działa... wkładanie itemkow do dp czy bank :) Tylko ten cholerny exp :/
Opublikowano

Proszę pana, to nie ma prawa działać, zapomniałeś o czymś i wpisałeś tylko polecenie, gdy warunek jest błędny (instrukcja po else).

if (labelName == "Checker") then

   if (Self.ItemCount(HealthPotID) <= HealthToLeave) or (Self.Cap() < MinCap) then

           BRAKUJE!

        else

            gotoLabel("Start Hunt")

end

Nie chce mi się analizować całego pliku xbst, który podałeś w txt (następnym razem wyślij *xbst) a do bota nie wkleję, bo aktualnie nie działa, ale domyślam się, że będzie tam gotoLabel("Leave").

 

Opublikowano

Proszę pana, to nie ma prawa działać, zapomniałeś o czymś i wpisałeś tylko polecenie, gdy warunek jest błędny (instrukcja po else).

if (labelName == "Checker") then

   if (Self.ItemCount(HealthPotID) <= HealthToLeave) or (Self.Cap() < MinCap) then

           BRAKUJE!

        else

            gotoLabel("Start Hunt")

end

Nie chce mi się analizować całego pliku xbst, który podałeś w txt (następnym razem wyślij *xbst) a do bota nie wkleję, bo aktualnie nie działa, ale domyślam się, że będzie tam gotoLabel("Leave").

 

 

 

Oki, spróbuję dopisać to co podałeś :) Zobaczymy czy zadziała :D

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...