Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
refiller mana potions
#1
whats the action in wpt for bot to withdraw cash and buy potions up to for example 300 potions
Reply

#2
Hello.

That's a bit complicated depending on server you are playing, but certainly possible. We need to know if it's possible to stack potions or not, your backpack organization and how you are plan to count potions depending on server you play.

If the server that you are playing allows you to stack potions then I already posted a script that does the same, except that's for AMMO, but you can use the same script with changes to buy potions:
|Only Registered members can see download links. | Click here to buy subscription or here to register.


But if you can't stack potions then there are different approaches:
1. Get potions left information from last green message (Using X of 3 fluids...). However, if a potion wasn't the last item then you would need to use a potion hotkey (game-client hotkey) to display the green message and find out how many potions left. This approach may be the best.
An example:
local CONFIG = {
  Item = 'mana fluid', -- The name or id of the item.
  ItemNameHotkey = 'fluid', -- The item name that shows up when using a hotkey.
  OnlyCountIfVisible = false, -- Only count if the green message is visible?
  MaxAmount = 400, -- How many potions should carry? Up to.
  Price = 50, -- Item price.
  Weight = 1.8, -- Item weight.
  DestinationBP = 'red backpack', -- Platinum coins bp destination.
  TakeFromWindow = 'locker', -- Container where you will get platinums from.
}


local count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))

if count == -1 then
  useitemoncreature('mana fluid', id())
  wait(800, 1200)
  count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))
end

if count >= 0 and count < CONFIG.MaxAmount then
  
  local AmountToBuy = CONFIG.MaxAmount - count
  local itemsCap = cap() / CONFIG.Weight
  if AmountToBuy > itemsCap then
      AmountToBuy = itemsCap
  end

  if AmountToBuy > 0 then

    local platinumsNeeded = math.ceil((CONFIG.Price * AmountToBuy) / 100) -- Platinums to withdraw.

    local currentPlatinums = itemcount('platinum coin', CONFIG.DestinationBP, true)

    while currentPlatinums < platinumsNeeded and itemcount('platinum coin', CONFIG.TakeFromWindow, false) >= platinumsNeeded do
      moveitems('platinum coin', CONFIG.DestinationBP, CONFIG.TakeFromWindow, (platinumsNeeded - currentPlatinums))
      wait(800, 1200)
      currentPlatinums = itemcount('platinum coin', CONFIG.DestinationBP, true)
    end

  end
end

2. Count potions from open containers and open next backpack searching for more then back to first backpack. This is a bit harder and may take sometime depending on how many potions backpack you carry, etc.

There are way more approaches, you just need to think what's better for you. For example: I know a guy that that uses a backpack with 5 backpack of runes inside, so on every refill he just go to depot and that backpack (that has 5 bp of runes) on depot and pickup another one (a backpack with 5 bp of runes). He organizes his depot with multiple backpacks (let's say 5) and each bp has 5 bp of runes inside. The amount depends on place he bots, how long and how many refills his character makes during bot time.
So he just need to manage that once at the end of day or before starts botting. Browse each backpack that still have runes and fill up.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Smile" title="Smile" class="smilie smilie_1" />
Reply

#3
admin can you please give any example scripts with the method with guy that uses a backpack with 5 backpack of runes inside?
that sounds really cool, im playing on kasteria so it is hard for bot to count the runes and im playing on high level character so i don't want to die.

how does this guy set up his refill method? from cap?

the problem is how should I set up my refill method? im playing high level char and I have alot of cap so i can't set it to run to depo if cap is below 500. (cap while exping is always going UP - I can start exp at 300 cap and end at 2000 cap xD)

is it possible to set bot to for example 20 loops at hunt place and then run to depo+refill? For example every 20 loops at respawn bot is running to refill?
Reply

#4
Hello.

Unfortunately no, because i don't have that script.

Well, I'm not sure... That really depends on hunt style. It all depends on your needs and what you prefer to do. There are really many ways to achieve that, you must choose the best way for you according to your needs.

If you just need to carry multiple rune backpacks like 20, then you can simply do what I said above (about the user) and open the last 2-3 backpacks from those many, so you would know when you have less than 60 runes.

For example: You get 12 runes backpacks from depot (240 runes), open last 3 backpacks... It would display 60 runes, but you could have more that, but whenever you have 59 runes you actually know that you really have 59 runes. So you could use that information to go out and refill.
Reply

#5
local CONFIG = {
  Item = 'mana fluid', -- The name or id of the item.
  ItemNameHotkey = 'fluid', -- The item name that shows up when using a hotkey.
  OnlyCountIfVisible = false, -- Only count if the green message is visible?
  MaxAmount = 400, -- How many potions should carry? Up to.
  Price = 50, -- Item price.
  Weight = 1.8, -- Item weight.
  DestinationBP = 'red backpack', -- Platinum coins bp destination.
  TakeFromWindow = 'locker', -- Container where you will get platinums from.
}


local count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))

if count == -1 then
  useitemoncreature('mana fluid', id())
  wait(800, 1200)
  count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))
end

if count >= 0 and count < CONFIG.MaxAmount then
 
  local AmountToBuy = CONFIG.MaxAmount - count
  local itemsCap = cap() / CONFIG.Weight
  if AmountToBuy > itemsCap then
      AmountToBuy = itemsCap
  end

  if AmountToBuy > 0 then

    local platinumsNeeded = math.ceil((CONFIG.Price * (AmountToBuy - itemcount(CONFIG.Item, true))) / 100) -- Platinums to withdraw.

    local currentPlatinums = itemcount('platinum coin', CONFIG.DestinationBP, true)

    while currentPlatinums < platinumsNeeded and itemcount('platinum coin', CONFIG.TakeFromWindow, false) >= platinumsNeeded do
      moveitems('platinum coin', CONFIG.DestinationBP, CONFIG.TakeFromWindow, (platinumsNeeded - currentPlatinums))
      wait(800, 1200)
      currentPlatinums = itemcount('platinum coin', CONFIG.DestinationBP, true)
    end

  end
end

Can u help me to get this to withdraw cash from bank instead of depot?
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />
Reply

#6
local CONFIG = {
  Item = 'mana fluid', -- The name or id of the item.
  ItemNameHotkey = 'fluid', -- The item name that shows up when using a hotkey.
  OnlyCountIfVisible = false, -- Only count if the green message is visible?
  MaxAmount = 400, -- How many potions should carry? Up to.
  Price = 50, -- Item price.
  Weight = 1.8, -- Item weight.
  DestinationBP = 'red backpack', -- Platinum coins bp destination.
  TakeFromWindow = 'locker', -- Container where you will get platinums from.
}


local count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))
if count == -1 then
  useitemoncreature('mana fluid', id())
  wait(800, 1200)
  count = itemcountmsg(CONFIG.ItemNameHotkey, screenmessage(CONFIG.OnlyCountIfVisible))
end

if count >= 0 and count < CONFIG.MaxAmount then
  local AmountToBuy = CONFIG.MaxAmount - count
  local itemsCap = cap() / CONFIG.Weight
  if AmountToBuy > itemsCap then
      AmountToBuy = itemsCap
  end

  if AmountToBuy > 0 then
    local moneyNeeded = math.ceil(CONFIG.Price * AmountToBuy)
    if moneyNeeded > 0 then
      say('hi')
      wait(800, 1000)
      say('withdraw ' .. moneyNeeded)
      wait(800, 1000)
      say('yes')
      wait(800, 1000)
      say('bye')
      wait(800, 1000)
    end
  end
end
Reply

#7
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Tnx alot
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" /> now i just gonna try to get the same but for buying them
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" /> then im starting to get home with my script
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />

Hmm, it didnt work ;( put it as an action infront of banker, it goes there, drinks a mana, but doesnt say anything
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016