Results 1 to 6 of 6

Thread: Alert when X smp

  1. #1
    iBot User
    Join Date
    Sep 2012
    Location
    Poland
    Posts
    39
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    10
    Rep Power
    5

    Alert when X smp

    hello

    I need action if lower than X SMP play alert, also when lower than X crystalline arrows play alert.

    Thx

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Lua Code:
    local insecttonoob = 20 -- smp
    local insecttonewbie = 20 -- arrows
     
    if itemcount("stron mana potion") < insecttonoob or itemcount("crystalline arrow") < insecttonewbie then
       playsound("alert.wav")
       wait(2500)
    end

  3. #3
    iBot User
    Join Date
    Sep 2012
    Location
    Poland
    Posts
    39
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Eli View Post
    Lua Code:
    local insecttonoob = 20 -- smp
    local insecttonewbie = 20 -- arrows
     
    if itemcount("stron mana potion") < insecttonoob or itemcount("crystalline arrow") < insecttonewbie then
       playsound("alert.wav")
       wait(2500)
    end
    Thx my master

  4. #4
    iBot User
    Join Date
    Dec 2014
    Posts
    10
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    2
    Quote Originally Posted by insectx View Post
    Thx my master
    are you using ibot or ibot+? dont work for me on ibot+, only work on normal ibot
    @insectx

  5. #5
    iBot User
    Join Date
    Sep 2012
    Location
    Poland
    Posts
    39
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Unt View Post
    are you using ibot or ibot+? dont work for me on ibot+, only work on normal ibot
    @insectx
    There is a mistake in script - "stron mana potion" you seen that?

  6. #6
    iBot User
    Join Date
    Dec 2014
    Posts
    10
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    2
    Quote Originally Posted by insectx View Post
    There is a mistake in script - "stron mana potion" you seen that?
    yeah, i saw... but the alarm always plays, even when i have > 20

Posting Permissions

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