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 gold and deposit it
#1
bot needs to count all gold in platinum coins and write instant deposit xxx 

xxx - the gold in platinum coins bot counted
Reply

#2
Easiest way? Speak to npc and use deposit all OR create a hotkey with gold coin, useitem() to use that hotkey and itemcountmsg to count then say instant deposit.
say('hi')
wait(800, 1200)
say('deposit all')
wait(800, 1200)
say('yes')
wait(800, 1200)


useitem('gold coin', '')
wait(500, 800)
local count = itemcountmsg('gold coin', screenmessage())
if count > 0 then
    say('instant deposit ' .. count)
    wait(500, 800)
end

|Only Registered members can see download links. | Click here to buy subscription or here to register.


say(string text, optional string channel) [void]: Speaks defined text in defined channel, if channel not defined, speak in default.
itemcount(string/number item, optional string location name, optional boolean countEquipments) [number]: Represent the amount of defined items found on opened containers.
screenmessage() [string]: Returns the last green message that appeared to you. The optional parameter bool visible, true by default, if true will only return if the message is currently visible.
itemcountmsg(string item, string message) [number]: Returns the amount of items from a using on message. E.g.: itemcountmsg('vial', 'Using one of 2 vials...') will return value 2. itemcountmsg('vial', 'Using the last vial...') will return value 1.
actionbarcount(string item) [number]
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016