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 blad skryptu


methadione

Rekomendowane odpowiedzi

Opublikowano

witam mam problem w skrypcie

gdy go odpalam wyskakuje mi blad w depozycie itemow

potem skrypt idzie do banku po poty oczywiscie nie gada z npc ;dd

po czym idzie na expa pod gate i tez nie gada z npc xD

 gdy odpalam skrypt wyskakuje komunikat

 

20:10 XenoScript Error:
           Script: ACID - EK - Yalahar Arena Quarter.lua
           Line #: 50
           Chunk: ...:?Users?Piotr?DOCUME?1?XenoBot?Scripts??ACID-E?1.LUA
           Error: attempt to call field 'ReachDepot' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.

 

prosze o pomoc !

Opublikowano

Self.ReachDepot()

 

to jest 50 linijka skryptu


------------------------------------------------------------------------------------------------------
------------------------------------------------AcidScripts-------------------------------------------
-------------------------------------------Yalahar Arena Quarter--------------------------------------
-------------------------------------------------EK (70+)---------------------------------------------
------------------------------------------------------------------------------------------------------

---------------------------------
--          VARIABLES          --
---------------------------------
local ManaID = 268 -- ID of mana potions
local MinMana = 150 -- manas to leave spawn
local MaxMana = 500 -- manas to buy
local ManaPrice = 50 -- price of mana pots
    
local HealthID = 236 --ID of health potions
local MinHealth = 40 -- healths to leave spawn
local MaxHealth = 80 -- healths to buy
local HealthPrice = 100 -- price of health pots

local StaminaLogout = true -- logout if stamina under 18hrs

local MinCap = 20 -- caps to leave spawn

local Softs = true -- true if you are using soft boots

local Hunt_Last_Floor = true -- true if you want to hunt the last floor with undead gladiators

local MainBP = "grey backpack" -- main backpack color
local StackBP = "brocade backpack" -- stackable items bp color
local LootBP = "grey backpack" -- loot bp color
local GoldBP = "green backpack" -- gold bp color

local AmmoID = 7378 -- ID of ammo (default royal spears)
local MinAmmo = 10 -- ammo to leave spawn
local MaxAmmo = 24 -- ammo to buy
local AmmoPrice = 25 -- price of ammo

---------------------------------
--             MISC            --
---------------------------------

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("Forgee.lua")
Targeting.Start()
Looter.Start()
function onWalkerSelectLabel(labelName)
    if (labelName == "deposit_items") then
        print("~Depositing Items~")
        Walker.Stop()
        Self.ReachDepot()
        wait(1800, 2400)
        Self.DepositItems({9668, 0}, {5911, 0}, {7290, 0}, {9656, 0}, {5894, 0}, {9662, 0}, {3027, 0}, {3033, 0}, {10311, 0}, {10293, 0}, {3049, 1}, {8072, 1}, {3428, 1}, {3391, 1}, {5885, 1}, {3318, 1}, {3051, 1}, {7386, 1}, {9103, 1}, {3052, 1}, {7454, 1}, {7436, 1}, {3415, 1})
        if (Self.Stamina() < 960) or (StaminaLogout == false) then
            Walker.Stop()
            print("~Stamina Low, Stopping Bot~")
        else
            Walker.Start()
            print("~Sufficient Stamina, Bot will Continue~")
        end
    
    elseif (labelName == "bank") then
        print("~Depositing Cash and Withdrawing for Supplies~")
        wait(1200, 1600)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("deposit all")
        wait(800, 1200)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Self.WithdrawMoney((ManaPrice*(MaxMana-Self.ItemCount(ManaID)))+1000)
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Self.WithdrawMoney((HealthPrice*(MaxHealth-Self.ItemCount(HealthID))))
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(800, 1200)
        Self.SayToNpc("balance")
        wait(800, 1200)
        print("~Resetting Backpacks~")
        wait(1200, 1600)
        Self.CloseContainers()
        wait(1800, 2400)
        Self.OpenMainBackpack(true):OpenChildren({Item.GetID(StackBP), true}, {Item.GetID(LootBP), true}, {Item.GetID(GoldBP), true})
        wait(1800, 2400)
        Walker.Start()
        
    elseif (labelName == "buy_potions") then
        Walker.Stop()
        print("~Buying Potions~")
        wait(1200, 1600)
        Self.SayToNpc("hi")
        wait(800, 1200)
        Self.SayToNpc("vials")
        wait(800, 1200)
        Self.SayToNpc("yes")
        wait(800,1200)
        Self.SayToNpc("vials")
        wait(800, 1200)
        Self.SayToNpc("yes")
        wait(800,1200)
        Self.SayToNpc("vials")
        wait(800, 1200)
        Self.SayToNpc("yes")
        wait(800,1200)
        Self.SayToNpc("trade")
        wait(1800,2400)
        Self.ShopBuyItemsUpTo(ManaID, MaxMana)
        wait(1800, 2400)
        Self.ShopBuyItemsUpTo(HealthID, MaxHealth)
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_items") then
        Walker.Stop()
        print("~Checking Items~")
        if (Self.ItemCount(ManaID) < MaxMana) or (Self.ItemCount(HealthID) < MaxHealth) or (Self.Cap() < MinCap) then
            Walker.Start()
            gotoLabel("start")
            print ("~Insufficient Items - Restarting~")
        else
            Walker.Start()
            gotoLabel("hunt")
            print("~Sufficient Items - Continue to Hunt~")
        end
        
    elseif (labelName == "pass_arena") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("pass")
        wait(1200, 1600)
        Self.SayToNpc("arena")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos1") then
        if (Self.Position().y == 31253) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("pass_arena")
        end
        
    elseif (labelName == "check") then
        Walker.Stop()
        print("~Checking Items~")
        if (Self.ItemCount(ManaID) <= MinMana) or (Self.ItemCount(HealthID) <= MinHealth) or (Self.Cap() <= MinCap) then
            Walker.Start()
            gotoLabel("leave")
            print ("~Insufficient Items/Caps - Leaving~")
        else
            Walker.Start()
            gotoLabel("start_hunt")
            print("~Sufficient Items/Caps - Continuing Hunt~")
        end
        
    elseif (labelName == "pass_foreign") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("pass")
        wait(1200, 1600)
        Self.SayToNpc("foreign")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos2") then
        if (Self.Position().y == 31260) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("pass_foreign")
        end
        
    elseif (labelName == "softs/restart") then
        Walker.Stop()
        if ((Softs == true) and (Self.ItemCount(6530) > 0)) then
            Walker.Start()
            print("~Worn Soft Boots Detected - Refilling~")
        else
            Walker.Start()
            gotoLabel("start")
            print("~Restarting~")
        end
        
    elseif (labelName == "bank_softs") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("withdraw 12000")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "travel_lib") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("passage")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos_lib1") then
        if (Self.Position().y == 32896) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("travel_lib")
        end
        
    elseif (labelName == "travel_venore") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("venore")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos_ven") then
        if (Self.Position().y == 32023) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("travel_venore")
        end
        
    elseif (labelName == "repair_softs") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("soft boots")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Self.Equip(6529, "feet")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "travel_lib2") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("liberty bay")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos_lib2") then
        if (Self.Position().y == 32893) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("travel_lib2")
        end
        
    elseif (labelName == "travel_yala") then
        Walker.Stop()
        wait(800, 1200)
        Self.SayToNpc("hi")
        wait(1200, 1600)
        Self.SayToNpc("yalahar")
        wait(1200, 1600)
        Self.SayToNpc("yes")
        wait(1200, 1600)
        Walker.Start()
        
    elseif (labelName == "check_pos_yala") then
        if (Self.Position().y == 31270) then
            Walker.Start()
        else
            Walker.Start()
            gotoLabel("travel_yala")
        end
        
    elseif (labelName == "skip_lastfloor") then
        Walker.Stop()
        if (Hunt_Last_Floor == false) then
            Walker.Start()
            gotoLabel("last_skipped")
            print("~Skipped Last Floor~")
        else
            Walker.Start()
            print("~Hunting Last Floor~")
        end
        
    elseif (labelName == "restart") then
        gotoLabel("start")
    end
end

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...