Results 1 to 5 of 5

Thread: count spear on hand

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

    count spear on hand

    i want a action that count how much spear have on hand and if > 8 go to label x else go tolabel y


    i try this

    if itemcount(3277) < 8 then
    gotolabel("w094")
    end
    else
    gotolabel("w098")
    end


    what is wrong?

  2. #2
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    U Don't use itemcount() for weapon counting.

    PHP Code:
    if weaponamount 8 then
    gotolabel
    ("w094")
    else
    gotolabel("w098")
    end 

    Also u don't need to end the "if" statement to start an "else" statement.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    how your learn that? ahahah
    thank you

  4. #4
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Quote Originally Posted by xiko1234 View Post
    how your learn that? ahahah
    thank you
    http://luatut.com/

    lua.org

    And friends ^^

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks again i'll read

Posting Permissions

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