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
Count mana fluid then buy X amount
#1
Hi, i found a script here that count amount of ammo that u have visible then buy the exactly amount to complete up to X needed

I want a script that count how many mana fluid i have before buy, example: i want to have 400 mf before back to hunt, so when i arrive at the mana store i USE ON myself a vial to check how many i have then if for example i have 100 i need to buy just 300, its VERY similar to the one of ammo buying but i could not be able to change that to my issue, like that one count how many ammo i have on screen or bp but that`s a stackable item, so 100 to 100, and vial i want to count by 'using on creature' you know? and it doesnt matter about how much money i have cuz i always carry a good amount of money with me, its just the script to make the math to see how many i have to buy... Could u please help me sir?
Reply

#2
Hello.

Something like this:
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?
}

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

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

print(count)

Check this thread, because user wanted to create a refiller like that.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016