Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Read Orange Messages

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Question Read Orange Messages

    Hello everybody, I would like an action to read orange messages on screen, an example of this is dice speaking orange: "Player rolled a 1" ..
    i tried this:

    Code:
    local msgs = getnewmessages("Local Chat") 
    local qtd = msgs.count-1 
    for i=0,qtd do 
       if msgs[qtd].text:find('A batch of documents has been stashed in the shelf. These might be of interest Zalamon') then
    gotolabel("Exit Zalamon")
       end 
    end
    but it did not work

    I waiting answer for this question. thank to all.

  2. #2
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    It is not possible to read orange messages, because all of them appear on the same place while reading tibia's data, so iBot can't recognize if the msg was for you or for another player.
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  3. #3
    iBot User Bloker's Avatar
    Join Date
    Jun 2013
    Posts
    122
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    22 Post(s)
    Reputation
    25
    Rep Power
    4
    Does anyone know if it has been implemented?

    OS MELHORES SCRIPTS VOCÊ ENCONTRA AQUI!
    www.manehscripts.com

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by Bloker View Post
    Does anyone know if it has been implemented?
    it is

  5. #5
    iBot User Bloker's Avatar
    Join Date
    Jun 2013
    Posts
    122
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    22 Post(s)
    Reputation
    25
    Rep Power
    4
    Quote Originally Posted by Eli View Post
    it is
    @Eli, can you show me? Please.

    And taking advantage of:
    Your post about safe-bank (http://www.tibiaibot.com/forum/showt...ight=bank+safe) don't work. I had to change and now its work, see you below

    local NPClog_lines = getnewmessages("NPCs")
    local NPClog_q = NPClog_lines.count - 1
    for i = 0, NPClog_q do
    if (NPClog_lines[NPClog_q - i].text:find("There is not enough gold on your account.")) then
    setalarms("off")
    waitping()
    waitandlogout()
    waitping(3,5)
    end
    end

    OS MELHORES SCRIPTS VOCÊ ENCONTRA AQUI!
    www.manehscripts.com

  6. #6
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by Bloker View Post
    @Eli, can you show me? Please.

    And taking advantage of:
    Your post about safe-bank (http://www.tibiaibot.com/forum/showt...ight=bank+safe) don't work. I had to change and now its work, see you below

    local NPClog_lines = getnewmessages("NPCs")
    local NPClog_q = NPClog_lines.count - 1
    for i = 0, NPClog_q do
    if (NPClog_lines[NPClog_q - i].text:find("There is not enough gold on your account.")) then
    setalarms("off")
    waitping()
    waitandlogout()
    waitping(3,5)
    end
    end
    Here you are 2.8.1 Messages Class

  7. #7
    iBot User Bloker's Avatar
    Join Date
    Jun 2013
    Posts
    122
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    22 Post(s)
    Reputation
    25
    Rep Power
    4
    Quote Originally Posted by Eli View Post
    Thank you!
    Last edited by Bloker; 05-30-2016 at 06:23 AM.

    OS MELHORES SCRIPTS VOCÊ ENCONTRA AQUI!
    www.manehscripts.com

  8. #8
    iBot User
    Join Date
    Jul 2012
    Posts
    71
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    21 Post(s)
    Reputation
    20
    Rep Power
    5
    Quote Originally Posted by Eli View Post
    it is
    Can you help me my friend. I am trying to read a orange message, and if something has been said then to get targeting off:

    PHP Code:
    local messages getmapmessages()
        
    local n messages.count 1
          
        
    for 0n1 then
          
    print(messages[i].message)
    if 
    messages{i].message "There was just rubbish in it." then
    settargeting
    ("off")
    end
        end 

  9. #9
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    for i = 0, n, 1 do

  10. #10
    iBot User
    Join Date
    Jul 2012
    Posts
    71
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    21 Post(s)
    Reputation
    20
    Rep Power
    5
    Quote Originally Posted by Eli View Post
    for i = 0, n, 1 do
    This is the error the debug window is telling me:

    18:54:16 : Action NewAction1 : [string "local messages =getmapmessages ( ) ..."]:6: 'then' expected near '='
    This is the code i am trying to use with the correction you made:

    PHP Code:
    local messages getmapmessages()
        
    local n messages.count 1
          
        
    for 0ndo
          print(
    messages[i].message)
    if 
    messages[i].message = ("Only knights and paladins of level 50 and above may use this potion."then
    say
    ("hi")
    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
  •