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 CORMY VENORE 100% afk


Knighterekk

Rekomendowane odpowiedzi

Opublikowano

DAM RADE 71 EK z MPA I ZAON EQ?


Mam taki błąd, chodź posaidam plik ropiederz.lua 
 

 XenoScript Error:
           Script: [Knight] Venore Coryms 2.0.lua
           Line #: 1
           Chunk: C:?Users?Dulczas?DOCUME?1?XenoBot?Scripts??ropiderz.lua
           Error: unexpected symbol near 'ď'
This is an error with user-input and should not be reported as a bug with XenoBot.
Opublikowano

witam mam problem z skryptem w corymach skrypt mam z tego forum #3 xenobot CORMY VENORE 100% afk: post #3 Alve Napisany 10 lipiec 2014 - 23:45
Początkujący II

Members
PipPipPip
384 postów
Płeć:Mężczyzna
Nie wiem czy to ten sam skrypt, ale ja uzywalem tego.
http://www11.zippysh...56708/file.html
W pliku jest scripts i waypoints + skrypt na wyrzucanie viali.


a dokladniej chodzi o to ze bot wylancza targeting, walker, i looter kolo banku 

93848614314621925583.png

a o to skrypt 
--[[

Venore Coryms for Elite Knight's
by Hendy

]]--

--[[HUD Settings]]--
disHUD = true -- Display HUD
softHUD = true -- Count Softboots?

--[[Variables]]--
local minCap = 200 -- Mininum cap
local manaPotID = 268 -- ID of mana potion
local manaPotCost = 50 -- Cost of each mana potion
local minManaPot = 75 -- Mininum mana potion
local maxManaPot = 200 -- Maximum mana pots to buy
local healthPotID = 236 -- ID of health potion
local healthPotCost = 80 -- Cost of each health potion
local minHealthPot = 10 -- Mininum health potions
local maxHealthPot = 40 -- Maximum health pots to buy
local usingSoftboots = false -- Using Softboots? (True Or False)
local minimizeEQ = true
local minimizeBPS = true
local skipSell = false
local stackBP = 2854
local lootBP = 2865
local goldBP = 14248
local ManaToEquip = 1600 -- Mana to equip softboots
local ManaToUnequip = 2000 -- Mana to unequip softboots

--[[########################################################]]--
--[[##########NOTHING BELOW HERE SHOULD BE CHANGED##########]]--
--[[########################################################]]--
local count = 0
fileName = '[Knight] Venore Coryms 2.0'
SD = false
dofile('Hendys HUD 1.c.lua')

--[[LABEL MANAGER]]--
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
displayInformationMessage("Spawn: Venore Coryms\n Vocation: Elite Knight's\n Author: Hendy")
function onWalkerSelectLabel(labelName)
local func = loadstring(labelName)
if (func) then func()
end
end

--[DepositItems]]--
function DepositItems()
Walker.Stop()
Self.ReachDepo()
Self.DepositItems(17859, 17819, 17818, 17813, 17812, 17809, 17809, 17817)
Walker.Start()
end

--[[RefillPotions]]--
function RefillPotions()
Walker.Stop()
local amountMp = ((maxManaPot - Self.ItemCount(manaPotID)) * manaPotCost)
local amountHp = ((maxHealthPot - Self.ItemCount(healthPotID)) * healthPotCost)
local countMp = math.ceil(amountMp / 1000) * 1000
local countHp = math.ceil(amountHp / 1000) * 1000
count = count + 1
Self.SayToNpc({"hi", "deposit all", "yes", "withdraw " .. (countMp + countHp + 200), "yes", "balance"}, 65)
Walker.Start()
end

--[[safeBank]]--
function SafeBank()
Walker.Stop()
Safe = ((math.ceil(((maxManaPot - Self.ItemCount(manaPotID)) * manaPotCost) / 1000) * 1000) + (math.ceil(((maxHealthPot - Self.ItemCount(healthPotID)) * healthPotCost) / 1000) * 1000)) + 200
if (Self.Money() ~= Safe) and (count <= 2) then
gotoLabel("RefillPotions()")
Walker.Start()
elseif count >= 3 then
Cavebot.Stop()
else
count = 0
wait(500)
Walker.Start()
end
end

--[[stamina Checker]]--
function Stamina()
if Self.Stamina() <= 960 then
Cavebot.Stop()
else
wait(100)
end
end

--[[ResetBps]]--
function ResetBps()
Walker.Stop()
Self.CloseContainers()
repeat
wait(900)
until (Self.UseItemFromEquipment("backpack") > 0)
wait (1000)
Container.GetFirst():OpenChildren(stackBP, lootBP, goldBP)
Walker.Start()
end

--[[buyPotions]]--
function BuyPotions()
Walker.Stop()
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopBuyItemsUpTo(manaPotID, maxManaPot)
wait(900, 1200)
Self.ShopBuyItemsUpTo(healthPotID, maxHealthPot)
Walker.Start()
end

--[[CheckSofts]]--
function CheckSofts()
delayWalker(3000)
if (usingSoftboots == true) and (Self.ItemCount(6530) >= 1) then
wait(500, 2500)
else
gotoLabel("ToHunt")
end
end

--[[WithdrawSofts]]--
function WithdrawSofts()
Walker.Stop()
Self.WithdrawMoney(11000)
Walker.Start()
end

--[[TalkSofts]]--
function TalkSofts()
Walker.Stop()
Self.SayToNpc({"hi", "softboots", "yes"}, 65)
Walker.Start()
end

--[[startHunt]]--
function StartHunt()
Looter.Start()
Targeting.Start()
end

--[[CheckPotions]]--
function CheckPotions()
delayWalker(1000)
if ((Self.ItemCount(manaPotID) <= minManaPot) or (Self.Cap() <= minCap) or (Self.ItemCount(healthPotID) <= minHealthPot)) then
gotoLabel("ToDepo")
else
wait(500, 1500)
end
end

--[[CheckPotions]]--
function CheckPotions2()
delayWalker(1000)
if ((Self.ItemCount(manaPotID) <= minManaPot) or (Self.Cap() <= minCap) or (Self.ItemCount(healthPotID) <= minHealthPot)) then
wait(100, 1000)
else
gotoLabel("StartHunt()")
end
end

--[[skipSell]]--
function SkipRafzan()
if skipSell then
gotoLabel("skip")
else
wait(500)
end
end

--[[Minimize]]--
function Minimize()
Walker.Stop()
if minimizeEQ == true then
Client.HideEquipment()
end
wait(500, 1400)
if minimizeBPS == true then
for x = 0, #Container.GetIndexes() - 1 do
local bp = Container.GetFromIndex(x) 
bp:Minimize()
wait(200, 400)
end
end
Walker.Start()
end

function Rafzan()
Walker.Stop()
Self.SayToNpc({"hi", "trade"}, 65)
wait(500, 1000) 
Self.ShopSellAllItems(17810) 
wait(500, 1000)
Self.ShopSellAllItems(17859) 
wait(500, 1000)
Self.ShopSellAllItems(17819) 
wait(500, 1000)
Self.ShopSellAllItems(17818) 
wait(500, 1000) 
Self.ShopSellAllItems(17813) 
wait(500, 1000) 
Self.ShopSellAllItems(17812) 
wait(500, 1000)
Self.ShopSellAllItems(17846) 
wait(500, 1000)
Walker.Start() 
end

--[[Find Certain Items On Screen]]--
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

--[[DepotChooser]]--
Self.ReachDepo = function (attempt)
local attempt = attempt or 4
Walker.Stop()
local DepotIDs = {3497, 3498, 3499, 3500}
local DepotPos = {}
for i = 1, #DepotIDs do
local dps = Map.GetUseItems(DepotIDs)
for d = 1, #dps do
table.insert(DepotPos, dps[d])
end
end
local function gotoDepot()
local pos = Self.Position()
print("Depots found: " .. 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("There is something blocking the path.")
end
end
return false
end
repeat
reachedDP = gotoDepot()
if reachedDP then
return true
end
attempt = attempt - 1
sleep(100)
print("Attempt to reach depot was unsuccessfull. " .. attempt .. " attempts left.")
until attempt <= 0
return false
end

Module.New("Softboots", function(module)
if usingSoftboots then
if (Self.Mana() <= ManaToEquip) and (Self.Feet().id ~= 3549) then
Self.Equip(6529, "feet")
elseif (Self.Mana() >= ManaToUnequip) and (Self.Feet().id ~= Boots) or (Self.Feet().id == 6530) then
Self.Equip(Boots, "feet")
end
end
end)

HDD1SRE.png                            

  

Opublikowano

dokładniej chyba chodzi o to 

--[[safeBank]]--
function SafeBank()
Walker.Stop()
Safe = ((math.ceil(((maxManaPot - Self.ItemCount(manaPotID)) * manaPotCost) / 1000) * 1000) + (math.ceil(((maxHealthPot - Self.ItemCount(healthPotID)) * healthPotCost) / 1000) * 1000)) + 200
if (Self.Money() ~= Safe) and (count <= 2) then
gotoLabel("RefillPotions()")
Walker.Start()
elseif count >= 3 then
Cavebot.Stop()
else
count = 0
wait(500)
Walker.Start()
end
end

HDD1SRE.png                            

  

Opublikowano

Przecież to jest nie możliwe...
 
Nawet masz tutaj:

--[[SafeBank]]--
function SafeBank()
Walker.Stop()
Safe = ((math.ceil(((maxManaPot - Self.ItemCount(manaPotID)) * manaPotCost) / 1000) * 1000) + (math.ceil(((maxHealthPot - Self.ItemCount(healthPotID)) * healthPotCost) / 1000) * 1000)) + 200
if (Self.Money() ~= Safe) and (count <= 2) then
gotoLabel("RefillPotions()")
Walker.Start()
elseif count >= 3 then
Cavebot.Stop()
else
count = 0
wait(500)
Walker.Start()
end
end

Zatrzymuje walkera, robi funkcje, włacza walkera, i kiedy masz więcej pieniędzy niż 3 zatrzymuje bota, jeżeli pieniędzy = 0 włacza walkera czy tam ilość potów.. Idzie się obkupić i w label start hunt włącza targeting i lotting dopiero.

 

A takie inne pytanie, wyłącza czy po prostu staje w miejscu?

66j32w.jpg
 
Sprawdź mój tutorial na temat demonbuddy!

Nie odpowiadam na wiadomości prywatne.

Opublikowano

notepadem + zapisuje 

Może nie masz odkrytej całej mapy?

qxv1fr.jpg


by NovusOrdo


It is better to keep your mouth closed and let people think you are a fool than to open it and remove all doubt. ~Mark Twain

Opublikowano

22:39 XenoBot: Unable to load file! Error code 0x00000002!

deposit items jak bot ma mi zdeponowac itemki jest ten błąd w confligu zmienilem tylko nazwy bp, moze musze miec jakos bp w dp poukłsdsne lub coś w tym stylu 

Opublikowano
local countMp = math.ceil(amountMp / 1000) * 1000

co oznacza math.ceil i dlaczego jest to tak zrobione? Chcę poprawić bo bot źle liczy kasę, którą wyciąga z banku i mnie to denerwuje :P

Opublikowano

Bo musi być wykonane jakieś działanie nie może byc math.ceil(amountMP) tak mi się wydaje. Dlatego dzieli przez 1000 i mnoży, bo to się równa wciąż 0 więc pozostaje samo amountMP.

 

Na Twoim miejscu sprawdzimy bym ceny potionów czy się zgadzają, bo może dlatego bierze za dużo. Masz ustawione SMP, a cene ma z GMP na przykład.

66j32w.jpg
 
Sprawdź mój tutorial na temat demonbuddy!

Nie odpowiadam na wiadomości prywatne.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...