Results 1 to 4 of 4

Thread: Help with message action

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

    Question Help with message action

    i just want the bot to read if bloker says 'up' he goes to label 'up' and if he says 'down' he goes to label 'down' i wish to use this continously to go up and down stairs can some 1 help me pleaseee !!

    local msgs = getnewmessages(Blocker)

    if msgs.text("up") then
    gotolabel("agua")
    setcavebot('on')
    end

  2. #2
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Open private message channel with blocker and test it:

    Lua Code:
     
    local MESSAGES = getnewmessages("Blocker")  
    local MESSAGES_COUNT = MESSAGES.count - 1     
     
    for INDEX = 0, MESSAGES_COUNT do     
    if (MESSAGES[MESSAGES_COUNT - INDEX].text:find("up")) then     
        gotolabel("up")    
    end     
    end
    Last edited by Gryllz; 04-13-2014 at 04:07 PM.

  3. #3
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    thankssss awesome support i waited like 30 minutes only for answer tyyyyyyyyyy!!!!!!!!!!!! <3

  4. #4
    Normal User
    Join Date
    Sep 2013
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4
    tread closed? trying to close it xd

Posting Permissions

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