Signup Now
Results 1 to 4 of 4

Thread: (ots)

  1. #1
    Free User spooky black's Avatar
    Join Date
    Jun 2015
    Location
    England / Poland
    Posts
    18
    Reputation
    10
    Rep Power
    0

    (ots)

    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 is
    Code:
    depositerbank('a')
    and if that helps you the script is called Dekklezz Script for Carlin Dragons/Dragon Lords

    And this script works, I will try to copy this and use this one instead:
    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
    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.

    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.
    Last edited by spooky black; 07-09-2015 at 05:38 PM. Reason: wrong title
    No but annoying as fuck and asked to remove it by a mod

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    29
    Dude, please change your signature. It's hurting my eyes.

  3. #3
    Free User spooky black's Avatar
    Join Date
    Jun 2015
    Location
    England / Poland
    Posts
    18
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    Dude, please change your signature. It's hurting my eyes.
    Did I broke any forum rules by using this signature ?
    No but annoying as fuck and asked to remove it by a mod

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    29
    Quote Originally Posted by spooky black View Post
    Did I broke any forum rules by using this signature ?
    Not a specific one, no. I believe common sense applies here though.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •