PDA

View Full Version : question on cap check..thanks all



tuation
02-18-2012, 03:37 AM
I use this script for cap check...but it always go bank when he got >30 cap..300 600 230 740...humm just go as he want :( some one can help me ?if it needed something plz add for me and make a new on post,cause idk how to add it by the rifgt way.thanks a lot

If u got time plz add the deposit item for me :)




config = {
a1CapToLeave = 30, -- Venore Rotworms
}

--!!!!!!!!!!!!!!!!!!!!!!!!!
--!!!!DO NOT EDIT BELOW!!!!
--!!!!!!!!!!!!!!!!!!!!!!!!!

version = {
a1 = "1.1"
}
-- [[Script Functions]]:

--Venore Rotworms
function a1ScriptInfo()
displayInformationMessage("\nScript: Venore Rotworms\nVersion: " .. version.a1 .. "\nCreator: Rydan")
end

function a1CheckCap()
if (Self.Cap() < config.a1CapToLeave) then
displayInformationMessage("STATUS: Depositting.")
sleep(math.random(200, 500))
gotoLabel("a1Leave")
else
displayInformationMessage("STATUS: Botting.")
sleep(math.random(200, 500))
gotoLabel("a1Start")
end
end

-- [[Global Functions]]:
function bankDeposit()
delayWalker(5000)
Self.Say("hi")
sleep(math.random(1000, 1500))
Self.SayToNpc("deposit all")
sleep(math.random(1000, 1500))
Self.SayToNpc("yes")
gotoLabel("afterBank")
end

Spectrus
02-20-2012, 09:37 AM
Is this the only script you are running? It's pretty much useless... :/

hopper
02-20-2012, 09:43 AM
its just a fuction to check cap and go bank..

hopper
02-20-2012, 11:25 PM
here is the 2nd

--[[
Label Manager
Version 3.0
By Syntax, notes provided by DarkstaR

Notes:

To plug this into any script, set the cap limit and structure your waypoints like so:
KeepHunting:
walk
through
cave
checkCap(limit):
GotoBank:
walk
to
bank
depositGold():
ReturnToHunt:
walk
back
to
hunt
]]

local DebugMode = false -- enable this if you want labels that do not have functions assigned to them to show a message when they are selected
dofile("functions.lua")
displayInformationMessage("Function labels are now enabled in the walker!")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
local func = loadstring(labelName)
if(func)then func() elseif(DebugMode)then
displayInformationMessage("The label '"..labelName.."' does not have an associated function or there was an error!")
end
end

Infernal Bolt
02-21-2012, 03:14 AM
No cap checkers work for me either, it just goes to deposit at random times XD

hopper
02-21-2012, 03:28 AM
hummm so xenobot can't make it 100% right check ?

Daemon
06-09-2012, 05:31 PM
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == 'Loop') then
setBotEnabled(false)
if (Self.Cap() < 20) then
setBotEnabled(true)
gotoLabel("GoToCity")
else
setBotEnabled(true)
gotoLabel("Hunting")
end
end
end


I hope that helps