Results 1 to 3 of 3

Thread: Alarm if looted in ibot :(

  1. #1
    Normal User Crimewave's Avatar
    Join Date
    Jul 2012
    Location
    Sweden, Stockholm
    Posts
    205
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    12
    Rep Power
    5

    Alarm if looted in ibot :(

    Hellow all the time this option is ibot dont work (not script)

    "settings>looting>list>Royal Helmet>AlarmOn : Loot announced <<< this think never work only with gold coins..

    do i need put enabled on "settings>alerts>enalbed ? dont think so ?

    Extras>states> Alarm X
    Last edited by Crimewave; 10-30-2012 at 08:58 AM.

  2. #2
    Normal User
    Join Date
    Aug 2012
    Location
    São Paulo, Brazil
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    Try this:

    PHP Code:
    if itemcount("NameOfItem") => 1 then
    playsound
    ("alert.wav")
    end 

  3. #3
    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
    This should work
    PHP Code:
    local ITEMS = {"royal helmet","dragon scale mail"}
    local MESSAGES getnewmessages("Server Log")
    local MESSAGES_QUANTITY MESSAGES.count 1

    for INDEX 0MESSAGES_QUANTITY do
        for 
    1#ITEMS do
            
    if (MESSAGES[MESSAGES_QUANTITY INDEX].text:find(ITEMS[i])) then
                playsound
    ("alert.wav")
            
    end
        end
    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
  •