Results 1 to 3 of 3

Thread: How to check if I have an item in my BP?

  1. #1
    Normal User
    Join Date
    Mar 2013
    Location
    SWE!
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    How to check if I have an item in my BP?

    I want to check if i have a silver key in inventory.
    How do i make this check so I can know if I must get it first or not.

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Humm... you should check that key's id manually and use an action like that:

    --[[ INIT START ]]--
    local ITEM_ID = 1234 -- You should edit that ID.
    --[[ INIT END ]]--

    if itemcount(ITEM_ID) > 0 then
    -- and now?
    else
    -- aff, i think i don't have that key :(
    end

  3. #3
    Normal User
    Join Date
    Mar 2013
    Location
    SWE!
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks man!

Posting Permissions

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