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 balance and transfer money
#1
I deposit my money in bank with:

Say('hi')
Wait(800)
Say('deposit all')
Wait(800)
Say('yes')

I need to transfer the money  to my main character if the maker is deleted
Reply

#2
Hello.

This script will deposit all and transfer the balance to a specific character.
local PLAYER_DESTINATION = 'player name'


say('hi')
wait(800, 1200)
say('deposit all')
wait(1200, 1800)
say('yes')
wait(1200, 1800)
getnewmessages()
say('balance')
wait(5000)

local msgs = getnewmessages()
for _, msg in ipairs(msgs) do
    local gold_str = string.match(msg.content, "Your account balance is (%f[%d]%d[,.%d]*%f[%D]) gold.")
    if gold_str ~= nil and gold_str ~= '' then
        gold_str = gold_str:gsub(",", "")
        if gold_str ~= nil and gold_str ~= '' then
            local gold = tonumber(gold_str)
            if type(gold) == 'number' and gold > 0 then
                say('transfer ' .. gold)
                wait(1200, 1800)
                say(PLAYER_DESTINATION)
                wait(1200, 1800)
                say('yes')
                wait(1200, 1800)
                break
            end
        end
    end
end
Reply

#3
Hi,
It seems to deposit fine but then does not transfer the balance, it asks for balance after depositing then just skips the transfer :S
Reply

#4
I tested it once and the first one doesn't work, but the second one it worked now I try again and it's not transferring, it just hangs and goes out.
Can anyone help?
Reply

#5
@Arkilys any idea how to fix the issue where it doesnt transfer?
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016