Results 1 to 3 of 3

Thread: Repeat wpts if no message

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5

    Repeat wpts if no message

    Hello,

    Wanted to ask if something like that can be done...
    that bot will follow several wpts 1 2 3 4 5.. and then if it detect "some" message in server log then it will go to waypoint 6 7 8 9... if it don't detect will repeat the waypoints 1 2 3 4 5.... can be this done? if yes how? Thanks in advance.

    Greetings,

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    You can do like that:
    local MESSAGES = {"You gained 5500 experience points."}

    local GET_MESSAGE = getnewmessages("Server Log")
    local MESSAGE_COUNT = GET_MESSAGE.count-1

    for i = 0, MESSAGE_COUNT do
    for x = 1, #MESSAGES do
    if GET_MESSAGE[MESSAGE_COUNT].text:find(MESSAGES[x]) do
    return
    else
    gotolabel("blabla")
    end
    end
    end
    Last edited by Raph_; 03-21-2013 at 01:04 PM.

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5
    there is several waypoints.. then when after let's say 4th waypoint it dont receive the message it will go to waypoint 1st.. if it get the messsage.. will go forward

Posting Permissions

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