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]