XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Use X item on Heroic Axe.

  1. #1
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Use X item on Heroic Axe.

    Hey, friends!
    I need script, that will use item X from my main BP on my Heroic Axe. axe.png
    For exemple every one minute.

  2. #2
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    9SPOjnA.png

    No subscription no script.
    Attached Images Attached Images

  3. #3

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    My monthly sub has ran out, but i just let tibia be runnin til i get cash. could be in the same position

  4. #4
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by eldera View Post
    9SPOjnA.png

    No subscription no script.
    I buy....
    @Jontor @Oscagi

    HELP ME

  5. #5
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    I buy....
    @Jontor @Oscagi

    HELP ME
    I found 1 on form but it don't use the sapphire, I will fix it later


    REMEMBER TO SAY THANKS.

  6. #6
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    I found 1 on form but it don't use the sapphire, I will fix it later
    Can always rely on u

  7. #7
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    Can always rely on u
    I have this but it dequip the weapon but dont use the sapphire, and I dont find wheres the mystake, maybe @Jontor can help you.
    Sorry.
    lua code:

    local bp = 'Dragon Backpack'

    while(true) do
    c = Container.GetByName(bp)
    if(Self.Weapon().id == 7383) then -- Relic Sword
    for spot = 0, c:ItemCount()-1 do
    if c:GetItemData(spot).id == 675 then -- Small Enchanted Sapphire
    Self.Dequip("weapon", c)
    wait(400,500)
    c:UseItemWithContainerItem(spot, 1, 0)
    wait(400,500)
    Self.Equip(7383, "weapon")
    end
    end
    end
    wait(2000)
    end


    REMEMBER TO SAY THANKS.

  8. #8

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    This should work, just have one backpack solely for this purpose. for example a bag with 10 enchanted sapphires and nothing else.

    Code:
    -- I recommend having one backpack or bag for the enchant to take place, 
    -- because the enchanted sapphires needs to be on spot 1 and the weapon at spot 0 when enchanting.
    local bp = 'dragon backpack'
      
    while(true) do
        c = Container.GetByName(bp)
        if(Self.Weapon().id == 7383) then -- Relic Sword
            for spot = 0, c:ItemCount()-1 do
                if c:GetItemData(spot).id == 675 then -- Small Enchanted Sapphire
                    Self.Dequip("weapon", c)
                    wait(400,500)
                    c:UseItemWithContainerItem(1, bp, 0)
                    wait(400,500)
                    Self.Equip(680, "weapon") -- icy relic sword
                end
            end
        end
        wait(2000)
    end

  9. #9
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    @Oscagi @yompa93
    The script is very problematic, becouse:
    I'll have to always empty first container, this is impossible when i used bank. And i'll have to change all scripts .lua and create new products.

    I found this script:

    PHP Code:
    local AxeBackpack "Backpack Of Holding"
    local ReplaceAxe 16096
    local ChargeGem 
    675
     
    Module
    .New("Enchant", function(mod)
        
    local weapon Self.Weapon()
        if (
    weapon.id == 7389then
            Walker
    .Stop()
            
    local ping Self.Ping()
            
    local bp Container.New(AxeBackpack)
            
    local spots = {}
            while (
    Self.Weapon().id == 7389) do
                
    Self.Equip(ReplaceAxe"weapon")
                
    wait(500 ping)
            
    end
            
    for 0bp:ItemCount() do
                
    local spot bp:GetItemData(i)
                if (
    spot.id == ChargeGemthen
                    spots
    [1] = i
                
    elseif (spot.id == 7389then
                    spots
    [2] = i
                end
            end
            
    if (spots ~= nilthen
                bp
    :UseItemWithContainerItem(spots[1], bp:Index(), spots[2])
                
    wait(500 ping)
                
    local new = bp:GetItemData(spots[2])
                while (
    Self.Weapon().id ~= new.id) do
                    
    Self.Equip(new.id"weapon")
                    
    wait(500 ping)
                
    end
            
    else
                print(
    "Weapon and gems must be in the same backpack!")
            
    end
            Walker
    .Start()
        
    end
        mod
    :Delay(10000)
    end
    This is better, but sometimes when i have exhausted and script try use gem on axe don't do it, and my waypoints is stoped.

  10. #10

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    what about this, cant test it atm so yeah

    Code:
    local bp = 'dragon backpack'
      
    while(true) do
        c = Container.GetByName(bp)
        if(Self.Weapon().id == 7383) then -- Relic Sword
            for spot = 0, c:ItemCount()-1 do
                if c:GetItemData(spot).id == 675 then -- Small Enchanted Sapphire
                    Self.Dequip("weapon", c)
                    wait(400,500)
                    c:UseItemWithContainerItem(spot, bp, 0)
                    wait(400,500)
                    Self.Equip(680, "weapon") -- icy relic sword
                end
            end
        end
        wait(2000)
    end

Posting Permissions

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