XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Mana potter (multiple backpacks) - Mana trainer

  1. #1

    Join Date
    May 2015
    Posts
    156
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Mana potter (multiple backpacks) - Mana trainer

    Hello!

    I am currently mana training a lot on my character (more than 200 backpacks of potions),
    and I found this great script to mana pot my main character:

    Code:
    function pumpMana()
        local charToPump = Creature.New("Eternal Oblivion")
        local charToPumpPos = charToPump:Position()
        local manaId = 238
        local backpack = Container.GetByName("shopping bag")
        if (Self.DistanceFromPosition(charToPumpPos.x, charToPumpPos.y, charToPumpPos.z) <= 2) and (Self.Position().z == charToPumpPos.z) then
            for spots = 0, backpack:ItemCount() do
                local item = backpack:GetItemData(spots)
                if (item.id == manaId) then
                    backpack:UseItemWithCreature(spots, charToPump:ID())
                    break
                end
            end
        end
    end
    while true do
    pumpMana()
    wait(900,1100)
    end
    But how can I make it work with multiple backpacks?
    I have now opened 15 backpacks of potions, but when first backpack is empty, it stop potting.´
    And I must close it manually.

    Is there a way to make it continue to next backpack of potions, without closing it manually?
    I want to be able to be 100% afk when potting the other character.

    Need to make some array with backpacks, but idk how - i suck at coding.
    And i want it to finish the first bp in line, before going to the next

  2. #2
    ososzayat's Avatar
    Join Date
    Oct 2014
    Posts
    69
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    with this simple one u don't even have to open bps xD

    Name = "CHARACTER-NAME"
    ItemToUse = 238


    while true do
    Creature.Follow(Name)
    Self.UseItemWithFollow(ItemToUse)
    sleep(math.random(140,420))
    end



    Have fun

    Edit: you have to carry manas on your cap

  3. #3

    Join Date
    May 2015
    Posts
    156
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ososzayat View Post
    with this simple one u don't even have to open bps xD

    Name = "CHARACTER-NAME"
    ItemToUse = 238


    while true do
    Creature.Follow(Name)
    Self.UseItemWithFollow(ItemToUse)
    sleep(math.random(140,420))
    end



    Have fun

    Edit: you have to carry manas on your cap
    But if you read my post, i dont cap pots on myself.
    I have 200 backpacks on the floor, it's impossible to cap it xD

  4. #4

    Join Date
    Aug 2011
    Posts
    188
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by texmex47 View Post
    But if you read my post, i dont cap pots on myself.
    I have 200 backpacks on the floor, it's impossible to cap it xD
    maybe you need more levels, you get x cap per level depending on vocation.
    im serious, you really do.
    but seriously, i jest.

  5. #5
    ososzayat's Avatar
    Join Date
    Oct 2014
    Posts
    69
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by texmex47 View Post
    But if you read my post, i dont cap pots on myself.
    I have 200 backpacks on the floor, it's impossible to cap it xD
    you can add NPC buyer and stand next to it.. like if cap < x then buy 100 manas~~
    if u needed this i can tell you how to do

  6. #6

    Join Date
    May 2015
    Posts
    156
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ososzayat View Post
    you can add NPC buyer and stand next to it.. like if cap < x then buy 100 manas~~
    if u needed this i can tell you how to do
    fixed it. i just put potion on ground, and use browse field.
    it works with multiple pages.
    got 150+ pages of potions. let's go!

  7. #7
    Lifetime Subscriber
    Join Date
    Sep 2011
    Posts
    171
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    can you post this script? i need 2 please !

  8. #8

    Join Date
    Aug 2011
    Posts
    188
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spook View Post
    can you post this script? i need 2 please !
    +1 to that !

  9. #9
    Senior Member Aristeus's Avatar
    Join Date
    Jun 2013
    Location
    Sweden
    Posts
    600
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    This script will check the amount of mana potions in a backpack, if it's zero it'll click the last slot in the backpack (which should be your cascaded backpacks). You only have to have one backpack open for this to work.

    lua code:

    local manas = 268 --- Id of mana potions
    local index = 0 --- Index of your backpack (first backpack is 0)

    Module.New('GoDeeper-Mana', function(module)
    if (Self.ItemCount(manas, index) == 0) then
    local bp = Container.New(index)
    bp:UseItem(19,true)
    end
    module:Delay(math.random(400,600))
    end)
    Last edited by Aristeus; 12-12-2015 at 02:16 AM.

  10. #10

    Join Date
    May 2015
    Posts
    156
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spook View Post
    can you post this script? i need 2 please !
    Quote Originally Posted by viser14 View Post
    +1 to that !
    Sorry for the late reply!
    Here is the script I used to pot my main char with bot chars.


    lua code:

    function pumpMana()
    local charToPump = Creature.New("Bubble") --name of your main char
    local charToPumpPos = charToPump:Position()
    local manaId = 238 --id of potion
    local backpack = Container.GetByName("browse field")
    if (Self.DistanceFromPosition(charToPumpPos.x, charToPumpPos.y, charToPumpPos.z) <= 2) and (Self.Position().z == charToPumpPos.z) then
    for spots = 0, backpack:ItemCount() do
    local item = backpack:GetItemData(spots)
    if (item.id == manaId) then
    backpack:UseItemWithCreature(spots, charToPump:ID())
    break
    end
    end
    end
    end
    while true do
    pumpMana()
    wait(900,1100)
    end


    I also found a bug to not get kicked (anti idle, WITHOUT BOT).
    So my lvl 80 mage uses GMP on my mainchar, through browse field.
    And on my mainchar, I dont use bot, I just put coins/stones on my hotkey to weight it down (utana vid hotkey).
    But I noticed that if I keep browse field open on my mainchar too, it doesn't get kicked after 15min.
    I AFK'd for 24 hours (WITHOUT BOT!!!) on my mainchar by doing this.

    I think the Tibia client thinks my mainchar used the potions on itself because browse field kept changing. Used potions were moved to the top of the stack automatically with these new "pages".
    And it's something that makes the client think my character is moving them. But in reality, its my other char that pots me. I dont know why it works, but it works.

    Keep browse field open on botchar + manual char, and you never get kick after 15min.

Posting Permissions

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