Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Free User
    Join Date
    Apr 2020
    Posts
    4
    Reputation
    10
    Rep Power
    0

    How to open/use Quiver

    Hey,

    I'm playing in a OT Server and they introduce the Quiver for Paladins and now we can only use bolts/arrows if they are inside the quiver.

    I've tried to use openitem() and moveitems () but I can't get anything to interact with the quiver.

    Does anyone has a solution for that?

    Thanks!

  2. #2
    Free User
    Join Date
    Jan 2021
    Posts
    8
    Reputation
    10
    Rep Power
    0
    +1 just found one for xeno bot

  3. #3
    Free User
    Join Date
    Jan 2021
    Posts
    8
    Reputation
    10
    Rep Power
    0
    -- [[ Quiver functions
    -- examples of it's utilitation. ]]

    local quiverConfig = {
    ["defaultContainer"] = "Jewelled Backpack",
    ["quiverContainer"] = "Red Quiver",
    ["ammunitionID"] = {25757, 25758},
    ["labelAfter"] = "openQuiver", -- Label that's after your label to open containers.
    ["huntCheck"] = true, -- If you want to check if your quiver's open while hunting.
    ["huntLabel"] = "huntQuiver" -- Label that you'll be using to check while hunting.
    }

    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(scriptExamples)
    if scriptExamples == quiverConfig["labelAfter"] then
    -- Checks if the quiver container it's open
    if (Container(quiverConfig["quiverContainer"]):isOpen() == false) then
    -- If container it's not open, will proceed to open it
    Self.UseItemFromEquipment("shield")
    end
    elseif scriptExamples == quiverConfig["huntLabel"] then
    -- Checks if the option it's enabled or not
    if quiverConfig["huntCheck"] == true then
    -- If it's enabled, will check if quiver it's open or not
    if (Container(quiverConfig["quiverContainer"]):isOpen() == false) then
    -- If container it's not open, will proceed to open it
    Self.UseItemFromEquipment("shield") -- Opens the quiver
    end
    end
    end
    end

    Module.New("sort|SpecialAmmo", function()
    local defaultContainer = Container(quiverConfig["defaultContainer"])
    local quiverContainer = Container(quiverConfig["quiverContainer"])
    for spot, item in defaultContainer:iItems() do
    if (table.contains(quiverConfig["ammunitionID"], item.id) and not quiverContainer:isFull()) then
    defaultContainer:MoveItemToContainer(spot, Container.New(quiverConfig["quiverContainer"]):Index())
    break
    end
    end
    end)

  4. #4
    Free User
    Join Date
    Oct 2014
    Posts
    1
    Reputation
    10
    Rep Power
    0
    Does not work.

  5. #5
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,669
    Reputation
    73
    Rep Power
    26
    You can iterate with character equipment slots, rhand.id returns the item id equipped on right hand slot (shield).

    To use/open items on right hand of character equipment you can do the following:

    useitem(itemname($rhand.id), 'rhand')


    Or you can assign the Quiver to the action bar with a defined hotkey and then use the function keyevent():

    keyevent('f3')


    Visit:
    (◣_◢)

  6. #6
    Free User
    Join Date
    Jan 2021
    Posts
    8
    Reputation
    10
    Rep Power
    0
    nice what an action look like for example but Crystal Attows from "Beack Backpack" into Quiver ?

  7. #7
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,669
    Reputation
    73
    Rep Power
    26
    Quote Originally Posted by natus View Post
    nice what an action look like for example but Crystal Attows from "Beack Backpack" into Quiver ?
    Give it a try, its untested:

    local nameAmmo = 'crystal arrow'
    local containerAmmo = 'beach backpack'
    local maxAmmoQuiver = 600


    while $lhand.count < maxAmmoQuiver and itemcount(nameAmmo, containerAmmo) >= 1
    do
    moveitems(nameAmmo, 'lhand', containerAmmo, 100)
    wait(500,1000)
    end
    Last edited by blakw; 02-25-2021 at 12:00 AM.


    Visit:
    (◣_◢)

  8. #8
    Free User
    Join Date
    Apr 2020
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by blakw View Post
    Give it a try, its untested:

    local nameAmmo = 'crystal arrow'
    local containerAmmo = 'beach backpack'
    local maxAmmoQuiver = 600


    while $lhand.count < maxAmmoQuiver and itemcount(nameAmmo, containerAmmo) >= 1
    do
    moveitems(nameAmmo, 'lhand', containerAmmo, 100)
    wait(500,1000)
    end
    I tried using it as a persistent action, but it keeps trying to fill the quiver on loop, even when it's full.

    I tried several iterations, but I was not able to solve it.

  9. #9
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,669
    Reputation
    73
    Rep Power
    26
    Quote Originally Posted by krunt View Post
    I tried using it as a persistent action, but it keeps trying to fill the quiver on loop, even when it's full.

    I tried several iterations, but I was not able to solve it.
    Use this to verify if its counting properly the quiver count, it should return a value on debug console:

    print($lhand.count)


    Visit:
    (◣_◢)

  10. #10
    Free User
    Join Date
    Apr 2020
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Nop, got nothing...

 

 

Posting Permissions

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