Results 1 to 4 of 4

Thread: Hotkey for Alert if less than x spears

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

    Post Hotkey for Alert if less than x spears

    Hi, just in case I would like to add an action which will play sound if I have less than 3 royal spears. I have tried that:

    if weaponamount("Royal Spear") < 3 then
    playsound("alert.wav")
    end


    I have tried

    if itemcount("Royal Spear") < 3 then and it doesn't work neither. I use similar hotkey for SMP if there are less than 20 and it works. Everything is enabled! Any ideas?

  2. #2
    Normal User
    Join Date
    Apr 2012
    Location
    Home
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    U Open the backpack where the "Royal Spear" stay. My Friend, the Bot so count of the specific itens if this had seen.

    Try this, ok?!

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I worked out myself that, this works:

    say("hi")
    wait(500,900)
    opentrade()
    wait(500,1000)
    buyitemsupto("Royal Spear", 55 - weaponamount)
    npcsay('Bye')
    wait(500,1000)

    It buys up to 55 royal spears, so if I have 20, it will buy 35.

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    if weaponamount < 5 then
    playsound("alert.wav")
    end


    Ok. Alert less 5, Royal Spear or Spear or Shuriken or Assassin Star.

Posting Permissions

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