Log in

View Full Version : A Nice Idea I had and want to share with you guys :D



ososzayat
01-12-2016, 11:34 PM
ManaID = 268
ManaWight = 2.7
ManaCounter = ((Self.Cap()-100)/ManaWight) --ex: if your cap is 500 bot will keep buying manas till your cap is 100
ManaToBuy = math.floor(ManaCounter)



Self.ShopBuyItem(ManaID, (ManaToBuy-Self.ItemCount(ManaID)))

so you can run the same script on high or low lvls and bot will buy mana depending on cap.. :D
"math.floor() is to remove decimal part. ex: 340.422 >> 340"

​have fun ;)

eldera
01-13-2016, 06:44 AM
Its kinda cool but what when you run it on high level character and it will buy potions that will go into closed containers. That will fuck refiler part and other shits.

Vulcanus
01-13-2016, 05:39 PM
Its kinda cool but what when you run it on high level character and it will buy potions that will go into closed containers. That will fuck refiler part and other shits.

Just add a limiter.
Let's say at level 20 you have cap to buy 100MP and level 70 you can buy 1500MP.
Let's just limit the MP to 1500, in order not to ruin the other features.

Tirell
01-13-2016, 08:31 PM
@topic

function Self.ShopBuyItemsUpToCap(item, capacity) I recommend XD

Whitehat
01-13-2016, 09:00 PM
Or.. Just find out how many you can carry, and then place this for example:


local MANA_MIN = 40 --Minimum mana potions before refill--
local MANA_MAX = 500 --Maximum mana to buy--
local MANA_NAME = "Mana potion" --Name/ID of the mana potion--
local MANA_PRICE = 50 --Price of the mana potion--

function onWalkerSelectLabel(labelName)
if (labelName == "ManaCheck") then
print ("CheckMana")
if (Self.ItemCount(MANA_NAME) < MANA_MIN) then
Walker.Goto("BuyPots")
end
end

if (labelName == "ManaX") then
print ("CheckMana2")
if (Self.ItemCount(MANA_NAME) > MANA_MIN) then
Walker.Goto("TrainMlvl")
end
end
end

And you could set the following lines as a delay:


function onReachLabel(labelName)
if (labelName == 'Timer') then
Cavebot.Stop()
wait(10000,15000)
Cavebot.Start()
end
end

eldera
01-13-2016, 09:16 PM
@topic

function Self.ShopBuyItemsUpToCap(item, capacity) I recommend XD

LOOOL