Paper Boy
06-06-2012, 04:57 AM
Well , is it possible , to some1 share with other users , a LUA config , that is 100% working , with resetbackpacks , checker of gold / MP's , depositer , withdraw mp , and buy MP ?
I have this one , that works really good , but the resetbps is bugged and i dont know how to fix it , if some1 knows pls say :
dofile("forgee.lua")
MinCap = 100 --How much cap to leave cave?
ManasToLeave = 50 --How many manas to leave cave?
WantedMPS = 100 --How many manas to have before hunt at depot?
ManaPotID = 268 --Change for your own mana pots(268 is normal, 237 strong).
ManaCost = 50 --How much 1 mana pot cost?
--END OF SETTINGS--DONT CHANGE BELOW IF YOUR NOT 100% SURE OF WHAT YOURE DOING----
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Checker") then
if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) then
gotoLabel("Refiller")
else
gotoLabel("Start")
end
elseif (labelName == "Depositer") then
setWalkerEnabled(false)
delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.SayToNpc("deposit all")
sleep(math.random(300, 1000))
Self.SayToNpc("yes")
setWalkerEnabled(true)
elseif (labelName == "Deposit itens") then
Self.DepositItems(3269, 3737, 10308)
elseif (labelName == "Withdraw MP") then
setWalkerEnabled(false)
delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.WithdrawMoney((ManaCost*(WantedMPS-Self.ItemCount(ManaPotID))))
sleep(math.random(800, 1500))
Self.SayToNpc("yes")
setWalkerEnabled(true)
elseif (labelName == "Buy MP") then
setWalkerEnabled(false)
delayWalker(7000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(800, 1700)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.SayToNpc("trade")
sleep(math.random(2000, 2400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.ShopBuyItem(ManaPotID, (WantedMPS-Self.ItemCount(ManaPotID)))
sleep(math.random(800, 1700))
setWalkerEnabled(true)
elseif (labelName == "Backpacks") then
setBotEnabled(false)
resetBackpacks()
setBotEnabled(true)
end
end
I have this one , that works really good , but the resetbps is bugged and i dont know how to fix it , if some1 knows pls say :
dofile("forgee.lua")
MinCap = 100 --How much cap to leave cave?
ManasToLeave = 50 --How many manas to leave cave?
WantedMPS = 100 --How many manas to have before hunt at depot?
ManaPotID = 268 --Change for your own mana pots(268 is normal, 237 strong).
ManaCost = 50 --How much 1 mana pot cost?
--END OF SETTINGS--DONT CHANGE BELOW IF YOUR NOT 100% SURE OF WHAT YOURE DOING----
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Checker") then
if (Self.Cap() < MinCap) or ((Self.ItemCount(ManaPotID) < ManasToLeave)) then
gotoLabel("Refiller")
else
gotoLabel("Start")
end
elseif (labelName == "Depositer") then
setWalkerEnabled(false)
delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.SayToNpc("deposit all")
sleep(math.random(300, 1000))
Self.SayToNpc("yes")
setWalkerEnabled(true)
elseif (labelName == "Deposit itens") then
Self.DepositItems(3269, 3737, 10308)
elseif (labelName == "Withdraw MP") then
setWalkerEnabled(false)
delayWalker(5000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(700, 1400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.WithdrawMoney((ManaCost*(WantedMPS-Self.ItemCount(ManaPotID))))
sleep(math.random(800, 1500))
Self.SayToNpc("yes")
setWalkerEnabled(true)
elseif (labelName == "Buy MP") then
setWalkerEnabled(false)
delayWalker(7000) --Call this immediately, before evr sleeping. Walker and scripter are in different threads so if we sleep before calling this walker will proceed a few wps before this bites
Self.Say("hi")
sleep(math.random(800, 1700)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.SayToNpc("trade")
sleep(math.random(2000, 2400)) --Sleep between everything we say. saying everything very quickly can be _highly_ suspicious
Self.ShopBuyItem(ManaPotID, (WantedMPS-Self.ItemCount(ManaPotID)))
sleep(math.random(800, 1700))
setWalkerEnabled(true)
elseif (labelName == "Backpacks") then
setBotEnabled(false)
resetBackpacks()
setBotEnabled(true)
end
end