Results 1 to 4 of 4

Thread: Alarm If> 3 spears

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

    Alarm If> 3 spears

    i need action , alarm if 3 spears give alarm !

  2. #2
    Normal User
    Join Date
    Nov 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    PHP Code:
    local itemname "spear"
    if(itemcount(itemname) < 3then
        playsound
    ("alert.wav")
    end 

  3. #3
    Normal User
    Join Date
    Jul 2012
    Location
    Warsaw, PL
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    1st of all, you want your alarm to turn on with spears in your hand or in backpack, 2nd you want if more than 3 spears (If > 3 spears) 3rd you want when exact 3 spears (if == 3 spears) ?

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local SPEARS itemcount("spear") + weaponamount

    if (SPEARS >= 3then -- Over or equal to 3 spears
        playsound
    ("alert.wav")
    end 

Posting Permissions

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