Results 1 to 6 of 6

Thread: Tibia shuts down.

  1. #1
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5

    Tibia shuts down.

    Hello! Kinda new to scripting and Im just wondering how come tibia shuts down every time bot goes through this action.


    if not islocation() then
    gotolabel('upDepot')
    else

    if windowcount() < 2 then
    closewindows()
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)
    openitem(GOLDBP, MAINBP)
    wait(500,600)
    resizewindow(GOLDBP, 1)
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)

    end


    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    if itemcount('treasure map') == 0 then
    openitem(MAPBP, "depot chest")
    wait(700,900)
    if windowcount(MAPBP) == 1 and itemcount('treasure map') == 0 then
    closetibia()
    end
    while itemcount('treasure map', MAINBP) ~= 1 do
    moveitems('treasure map', MAINBP, 1)
    end
    wait(700,900)
    openitem("depot")
    wait(700,900)
    end
    openitem(DPBP, "depot chest")
    wait(5000,6000)
    resizewindow(DPBP, 5)
    depotdeposit(STACKBP, "Ghostly Tissue", "Brown Piece of Cloth", "Scarab Coin", "Small Emerald", "Small Amethyst", "White Piece of Cloth")
    wait(5000,6000)
    depotdeposit(RAREBP, "Stealth Ring", "Ancient Shield", "Life Ring")
    wait(1700,2000)


    end

    Notes: I got a bp for the treasure maps outside the main dpbp.


    Thanks.
    Last edited by Bonzaii; 04-12-2013 at 10:10 AM.

  2. #2
    Normal User fernandon's Avatar
    Join Date
    Feb 2012
    Location
    Goiânia - GO / BRAZIL
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Bonzaii View Post
    Hello! Kinda new to scripting and Im just wondering how come tibia shuts down every time bot goes through this action.


    if not islocation() then
    gotolabel('upDepot')
    else

    if windowcount() < 2 then
    closewindows()
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)
    openitem(GOLDBP, MAINBP)
    wait(500,600)
    resizewindow(GOLDBP, 1)
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)

    end


    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    if itemcount('treasure map') == 0 then
    openitem(MAPBP, "depot chest")
    wait(700,900)
    if windowcount(MAPBP) == 1 and itemcount('treasure map') == 0 then
    closetibia()
    end
    while itemcount('treasure map', MAINBP) ~= 1 do
    moveitems('treasure map', MAINBP, 1)
    end
    wait(700,900)
    openitem("depot")
    wait(700,900)
    end
    openitem(DPBP, "depot chest")
    wait(5000,6000)
    resizewindow(DPBP, 5)
    depotdeposit(STACKBP, "Ghostly Tissue", "Brown Piece of Cloth", "Scarab Coin", "Small Emerald", "Small Amethyst", "White Piece of Cloth")
    wait(5000,6000)
    depotdeposit(RAREBP, "Stealth Ring", "Ancient Shield", "Life Ring")
    wait(1700,2000)


    end

    Notes: I got a bp for the treasure maps outside the main dpbp.


    Thanks.
    if not islocation() then
    gotolabel('upDepot')
    else

    if windowcount() < 2 then
    closewindows()
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)
    openitem(GOLDBP, MAINBP)
    wait(500,600)
    resizewindow(GOLDBP, 1)
    wait(500,600)
    openitem(MAINBP, 'back')
    wait(500,600)

    end


    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    if itemcount('treasure map') == 0 then
    openitem(MAPBP, "depot chest")
    wait(700,900)
    if windowcount(MAPBP) == 1 and itemcount('treasure map') == 0 then
    closetibia() <---
    end
    while itemcount('treasure map', MAINBP) ~= 1 do
    moveitems('treasure map', MAINBP, 1)
    end
    wait(700,900)
    openitem("depot")
    wait(700,900)
    end
    openitem(DPBP, "depot chest")
    wait(5000,6000)
    resizewindow(DPBP, 5)
    depotdeposit(STACKBP, "Ghostly Tissue", "Brown Piece of Cloth", "Scarab Coin", "Small Emerald", "Small Amethyst", "White Piece of Cloth")
    wait(5000,6000)
    depotdeposit(RAREBP, "Stealth Ring", "Ancient Shield", "Life Ring")
    wait(1700,2000)


    end


    ___________________________________________
    The function that closes the client is
    closetibia()



    I have helped.
    Last edited by fernandon; 04-12-2013 at 11:16 AM.

  3. #3
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5
    Yeah, I know that. But should I simply delete it? It clearly have a function that when u don´t got enough treasure maps the client should close. I want that to work too.

  4. #4
    Normal User fernandon's Avatar
    Join Date
    Feb 2012
    Location
    Goiânia - GO / BRAZIL
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    The bp of treasure map it is in MainBP?
    Last edited by fernandon; 04-12-2013 at 12:30 PM.

  5. #5
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5
    Quote Originally Posted by fernandon View Post
    The bp of treasure map it is in MainBP?
    No, it´s in the locker in depot.

  6. #6
    Normal User Bonzaii's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    47
    Rep Power
    5
    Bumpss

Posting Permissions

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