Results 1 to 5 of 5

Thread: Itemcount debug

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Itemcount debug

    Doesnt work this action.

    PHP Code:
    if itemcount('Mana Potion') <= 500
    then playsound
    ('alert.wav')
    end 
    Debug:
    Code:
    11:27 p.m. : LUA:PersistentAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'itemcount' (a nil value)

  2. #2
    Normal User livascripts's Avatar
    Join Date
    Apr 2012
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    6
    Try this one:

    local MpName = 'Mana Potion'
    local MinMana = 500
    if itemcount(MpName) <= MinMana then
    playsound('alert.wav')
    end

  3. #3
    Banned
    Join Date
    Jul 2012
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    0
    Cara no próprio bot já tem isso..
    Vai em Alerta > Item > adiciona o item e o valor minimo para alertar em baixo ..

    xD

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Are you sure this is the action that is making the error? Is there more itemcount() in the action hotkeys? if so, paste it here

  5. #5
    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
    Using any other libraries than standard one?
    Someone told me about a similar problem which was solved by removing all other libraries except Standard.
    Last edited by blakw; 07-22-2012 at 08:41 PM.


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

    For a better iBot!

    (◣_◢)

Posting Permissions

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