Hello,
I have question about the bank system. I'm playing on real map ots and when it withdraws the money it keeps withdrawing them all the time without moving.
Probably someone will ask me about the script but there's no script all I found isand if that helps you the script is called Dekklezz Script for Carlin Dragons/Dragon LordsCode:depositerbank('a')
And this script works, I will try to copy this and use this one instead:Okay I found the solution, standard money withdraw doesn't work on open tibia servers (ots) So i've taken someone else script and works, I'm leaving all the info that I found through the 30 minutes maybe it will help other people.Code:--[[ Bank Fixer ___ /\ _`\ __ \ \ \/\ \/\_\ __ __ _ __ __ \ \ \ \ \/\ \ /'__`\ /\ \/'\/\ \/\ \ \ \ \_\ \ \ \/\ \L\.\_\/> </\ \ \_\ \ \ \____/\ \_\ \__/.\_\/\_/\_\\/`____ \ \/___/ \/_/\/__/\/_/\//\/_/ `/___/> \ /\___/ \/__/ Depositer and backpacks fixer Script Version: 1.0.0 Author: Diaxy Do not edit anything below! ]]-- local extrabp = getuseroption('suppbp') local Mana = positive(getuseroption('MaxMana') - itemcount(getuseroption('ManaName'))) * itemcost(getuseroption('ManaName')) local Total = Mana + 1000 if not islocation(5) then gotolabel($wptid-3) else setsetting("Alerts/PlayerOnScreen/PlaySound", "no") closewindows() wait(200) while windowcount(mainbp) == 0 do openitem(0, "back", true) wait(300) end if getuseroption('UseExtraBP') and windowcount() >= 2 and itemcount(extrabp) > 0 then while windowcount(extrabp) ~= 1 do openitem(extrabp,0,true) wait(250,400) resizewindows() end end npctalk("hi", "deposit all", "yes", "withdraw " .. Total, "yes", "balance") if $cap < 10 then if getuseroption('OfflineTrain') then gotolabel(0, "Skill Trainer") else logout() msgbox("Logged out because low cap.") end end end
This code is a solution for me:Code:extragold = extragold or 0 local npccount = 0 foreach creature m 'ns' do if m.dist <= 3 then npccount = npccount + 1 end end if npccount == 0 then printerror('Unable to find a NPC close to you') return end local currentnpcmsg = $lastnpcmsg local tries = 0 local maxtries = math.random(3, 5) if not ischannel('NPCs') then say('hi') wait(2000, 3000) else npcsay('hi') wait(500, 1000) end local t = $timems while $timems - t <= 2500 and currentnpcmsg == $lastnpcmsg do wait(100) end -- deposits money npcsay('deposit all') wait(500,1000) npcsay('yes') wait(500,1000) -- check balance npcsay('balance') wait(500, 1000) -- withdraw needed money local towithdraw = moneytowithdraw(supplycategory) + extragold if towithdraw == 0 then return end local success = false if $balance >= towithdraw then repeat npcsay('withdraw '..towithdraw) wait(500,1000) npcsay('yes') success = waitmessage('', 'You have withdrawn '..towithdraw..'.', 2000, false, MSG_NPC) until success else if (logoutifnocash) then printerror('Your character has logged out because you don\'t have enough money in bank.') xlog(true) setcavebot('off') return end playsoundflash('monster.wav') wait(1000) end if UseSofts and itemcount(6530) > 0 then npcsay('withdraw 11000') npcsay('yes') gotolabel('Start','RefillSofts') end
PS: Sorry for the title, can't change it anymore.