Results 1 to 8 of 8

Thread: maroundspell() function - and foreach new msj -- please

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

    maroundspell() function - and foreach new msj -- please

    hi, is there a function like maroundspell like neobot? i need this for divine caldera on grim reapers.. im usig maround(3) but not working so good...

    another question, is there a function like neobot "foreach new message" that reads every NEW messaje and not the whole especific channel?
    i need something like an alert a single sound everytime someone says something like a "exura gran mas res" alarm, a sound on every new "exura gran mas res"..

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    yes its, search anti mas res alert and u'll find it, if not I'll post in here but lazy atm

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    no bro.. i saw this function but its not what i want.. this

    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
    for i=0,qtd do
    if msgs[qtd].text:find("exura gran mas res") then
    playsound("alert.wav")
    end
    end

    this is not what i want because it just search in the whole channel if there is a keyword match "exura gran mas res".. obviously, if someone heal monsters just once, you will have forever the alarm sounding because this keyword will always be there... what i need if one script that only searchs in NEW mesajes

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    and i need maroundspell() too... nobody knows about?

  5. #5
    Normal User sirmate's Avatar
    Join Date
    Mar 2012
    Location
    Poland
    Posts
    176
    Mentioned
    2 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    105
    Rep Power
    6
    Exura gran mas res alarm fixed.
    Code:
    local LOCAL_CHAT_MESSAGES = getnewmessages("Local Chat")
    local LOCAL_CHAT_MESSAGES_QUANTITY = LOCAL_CHAT_MESSAGES.count - 1
    
    
    for INDEX = 0, LOCAL_CHAT_MESSAGES_QUANTITY do
        if (LOCAL_CHAT_MESSAGES[LOCAL_CHAT_MESSAGES_QUANTITY - INDEX].text:find("exura gran mas res")) then
            playsound("alert.wav")
        end
    end
    About maroundspell function it should be available soon in my library.
    (๏̯͡๏ )

  6. #6
    Normal User
    Join Date
    Jun 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you sirmate, but how do i get noticed about your library?, im newbie at libraries i dont know how to install or use them.. are they automatically updated? can someone here explainme about libraries?

  7. #7
    Normal User sirmate's Avatar
    Join Date
    Mar 2012
    Location
    Poland
    Posts
    176
    Mentioned
    2 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    105
    Rep Power
    6
    Just keep eye on this thread: http://www.tibiaibot.com/forum/showt...s-Library-v0-1
    When I release library then you will just need to copy lib file into "library" directory in iBot folder and restart the bot.
    (๏̯͡๏ )

  8. #8
    Normal User
    Join Date
    Jun 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you men, i would rep+ youif id know how to.. thanks everyone should be like u, loveya

Posting Permissions

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