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

Problem z xeno Full Afki


ksitka

Rekomendowane odpowiedzi

Opublikowano

Otóż mam takowy skrypt

 

 

dofile('[CONFIG] Minosy1.lua')
dofile('ssLib.lua')
registerEventListener(WALKER_SELECTLABEL, "onLabel")
print("Minosy Full AFKI")

Targeting.Start()
Looter.Start()

function onLabel(label)
if(label == "Backpacks") then
Client.HideEquipment()
repeat
Self.CloseContainers()
wait(200, 400)
Self.OpenMainBackpack(true):OpenChildren({_stackBackpack, true}, {_rareBackpack, true}, {_goldBackpack, true}, {_suppliesBackpack, true})
wait(200, 400)
until SolidScripts.CheckBackpacks(5)
elseif(label == "Stamina") then
SolidScripts.CheckStamina(false)
elseif(label == "Withdraw") then
SolidScripts.WithdrawItem(_withdrawFood, 3725, 50, 2)
elseif(label == "BankNPC") then
SolidScripts.WithdrawMoney()
elseif(label == "PotionsNPC") then
SolidScripts.BuyPotions(true)
elseif(label == "CheckSofts") then
SolidScripts.CheckSofts()
elseif(label == "CheckSupplies") then
SolidScripts.CheckSupplies()
elseif(label == "Check") then
SolidScripts.Check()
elseif(label == "Deposit") then
SolidScripts.ReachDepot()
Self.DepositItems({9665, 0}, {3028, 0}, {236, 0}, {237, 0})
Self.DepositItems({8027, 1}, {8043, 1}, {8092, 1}, {8045, 1}, {7430, 1}, {9304, 1}, {8093, 1}, {816, 1}, {3349, 1}, {822, 1}, {820, 1}, {825, 1}, {7451, 1})

elseif(label == "Hole") then
SolidScripts.UseShovel(32997, 32397, beforeHole, 607)
elseif(label == "Rope") then
SolidScripts.UseRope(Self.Position().x, Self.Position().y)
elseif(label == "Rope1") then
SolidScripts.UseRope(33027, 32420)
elseif(label == "Rope2") then
SolidScripts.UseRope(33026, 32417)
elseif(label == "Rope3") then
SolidScripts.UseRope(33027, 32417)
elseif(label == "checkPos1") then
SolidScripts.CheckPositionZ(9, "Pos1")
elseif(label == "checkPos2") then
SolidScripts.CheckPositionZ(8, "Pos2")
elseif(label == "checkPos3") then
SolidScripts.CheckPositionZ(7, "Pos3")
elseif(label == "checkStairs1") then
SolidScripts.CheckPositionZ(11, "skipStairs1")
elseif(label == "CheckDoors1") then
SolidScripts.CheckDoors(33231, 32412, NORTH, "Doors1")
elseif(label == "CheckDoors2") then
SolidScripts.CheckDoors(33231, 32406, NORTH, "Doors2")
elseif(label == "CheckDoors3") then
SolidScripts.CheckDoors(33224, 32398, WEST, "Doors3")
elseif(label == "CheckDoors4") then
SolidScripts.CheckDoors(33221, 32394, NORTH, "Doors4")
elseif(label == "CheckDoors5") then
SolidScripts.CheckDoors(33221, 32394, SOUTH, "Doors5")
elseif(label == "CheckDoors6") then
SolidScripts.CheckDoors(33221, 32400, SOUTH, "Doors6")
elseif(label == "CheckDoors7") then
SolidScripts.CheckDoors(33221, 32400, NORTH, "Doors7")
elseif(label == "CheckDoors8") then
SolidScripts.CheckDoors(33224, 32398, EAST, "Doors8")
elseif(label == "CheckDoors9") then
SolidScripts.CheckDoors(33231, 32406, SOUTH, "Doors9")
elseif(label == "CheckDoors10") then
SolidScripts.CheckDoors(33231, 32412, SOUTH, "Doors10")
elseif(label == "open60Door") then
SolidScripts.CheckDoors(33032, 32398, EAST, "before60Door")
elseif(label == "open60Door2") then
SolidScripts.CheckDoors(33032, 32398, WEST, "before60Door2")
elseif(label == "Leave") then
Walker.Stop()
wait(200,500)
loadSettings("[280+ EK] Elder Wyrms EXTRA", "Targeting")
wait(200,500)
Walker.Start()
Targeting.Start()
elseif(label == "City|ToHunt") then
Walker.Stop()
wait(200,500)
loadSettings("[280+ EK] Elder Wyrms EXTRA2", "Targeting")
wait(200,500)
Walker.Start()
Targeting.Start()
end
end

if(_dropVials) then
Module.Start('vial-dropper')
end

if(_refillMana) then
Module.Start('mana-refiller')
end

if(_useSoftBoots) then
Module.Start('equip-softs')
end

if(_screenLevel) then
Module.Start('screen-shooter')
end

if(_sortSupplies) then
Module.Start('sort-supplies')
end

if(_monsterAlarm) then
Module.Start('monster-alarm')
end

 

Jest to plik minosy1.lua

Jak widać na początku mam odniesienie do pliku

[CONFIG] Minosy1.lua

który wygląda tak:

 

_useManaPotions = true -- buy mana potions
_manaPotions = 'mana potion' -- name or id
_manaMaximum = 1000 -- how many mana potions to buy
_manaMinimum = 300 -- how many potions to leave the spawn


_sortSupplies = true -- puts your supplies into supply bp

_useAmmunition = true -- buy ammunition
_ammo = 'crystalline bolt' -- name or id
_ammoMaximum = 2000 -- how many ammunition to buy
_ammoMinimum = 400 -- how many ammunition to leave the spawn

 

I Gdy dochodzi do labela check wywala błąd

 Error: attempt to index global 'SolidScripts' (a nil value)

Próbowałem osobno wczytać skrypt lecz się nie dało.

Opublikowano

Po pierwsze gdy odpalałem identyczny skrypt np do elder wyrmów nic tam nie wpisywałem.

Po drugie w tej komendzie nie ma czego sprawdzac bot tzn. sprawdź czy jest 40 ale czego? jest wartość ale bez podmiotu

Opublikowano

Pierwszy post, jak sie nie zna to powinien sie nie wypowiadac. Solid script zastrzega sobie prawo do zmieniania funkcji i labeli ich skryptów dlatego zakodował library i funkcje pod xenobota ( czyt. normalna funkcja to jest Self.UseID powiedzmy a solid script ma SolidScript. i nie rozszyfrujesz czy to Self.Usedoor, czy say npc.)

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...