Results 1 to 7 of 7

Thread: check deposit DP

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    check deposit DP

    I need an action that when the char deposit the loot in the depot, if any item in LootBP, he regained a label to deposit at depot

  2. #2
    zami84's Avatar
    Join Date
    May 2012
    Posts
    316
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    48
    Rep Power
    5

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Thank you, the more accurate this action specifies.

  4. #4
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Lua Code:
     
    --Items to check:
    local itemsToCheck = {"dagger", "small sapphire", "dragon scale boots"}
     
    --Label name of depositer:
    local depotLabel = ("start_deposit")
     
    if (itemcount(unpack(itemsToCheck)) >= 1)
    then
        gotolabel(depotLabel)
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  5. #5
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by blakw View Post
    Lua Code:
     
    --Items to check:
    local itemsToCheck = {"dagger", "small sapphire", "dragon scale boots"}
     
    --Label name of depositer:
    local depotLabel = ("start_deposit")
     
    if (itemcount(unpack(itemsToCheck)) >= 1)
    then
        gotolabel(depotLabel)
    end
    Blakw, a problem arose, even if no item in bp, he is returning to label

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by blakw View Post
    Lua Code:
     
    --Items to check:
    local itemsToCheck = {"dagger", "small sapphire", "dragon scale boots"}
     
    --Label name of depositer:
    local depotLabel = ("start_deposit")
     
    if (itemcount(unpack(itemsToCheck)) >= 1)
    then
        gotolabel(depotLabel)
    end
    You should know that itemcount() doesnt accept an array. You need to use a loop here.

    Should also specify a location when doing an itemcount too.




    Try this.
    PHP Code:
    local depositItems = {"dagger""small sapphire""dragon scale boots"}
    local lootBp "Blue Backpack"
    local depotLabel "StartDeposit"

    for 0#depositItems do
        
    if itemcount(depositItems[i], lootBp) > 0 then
            gotolabel
    (depotLabel)
        
    end
    end 
    Last edited by pink_panther; 01-22-2014 at 12:04 AM.

  7. #7
    Normal User stemus's Avatar
    Join Date
    Jun 2012
    Location
    Edron.
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks alot Pink Panther, this action function perfectly here! awsome

    Please put solved in here! ^^
    Buscando a maxima qualidade.

Posting Permissions

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