Results 1 to 4 of 4

Thread: Ajuda nessa action aqui. Por favor

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

    Ajuda nessa action aqui. Por favor

    Se o player "fulano de tal" mandar private msg, dizendo "GO" o char ir ate o label (x)

    Alguém sabe?

  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
    PHP Code:
          local FULANO = {"De Tal"}
          
    local label_name "label"

         
    --[DO NOT EDIT]--
          
    local index 0
          local msgs 
    getnewmessages("Local Chat")
          
    local qtd msgs.count-1
     
     
    for i=0,qtd do
              
    local MSG msgs[i].text
              local MSG_SENDER 
    msgs[i].sender:lower()
              
    local MSG_TYPE msgs[i].type
            
    for _v in ipairs(FULANO) do    
                if 
    MSG_SENDER == v:lower() and MSG_TYPE == 6 then
               
                    
    if MSG:find("GO"then
                    gotolabel
    (label_name)
                    
    wait(10000)

                    
    end
                end
            end
    end 
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  3. #3
    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
    afy, quando terminei vi que você já havia postado, anyway:
    Code:
    --[[ INIT START ]]--
    	local WORDS = {"go"}
    	local SENDER_NAME = {"Bubble", "Eternal Oblivion"}
    	local LABEL_NAME = "blabla"
    	local MESSAGE = getnewmessages("Local Chat")
    --[[ INIT END ]]--
    MESSAGE_COUNT = MESSAGE.count - 1
    
    for x = 0, MESSAGE_COUNT do
    	for i = 1, #SENDER_NAME do
    		for a = 1, #WORDS do
    			if MESSAGE[MESSAGE_COUNT - x].type == 6 and MESSAGE[MESSAGE_COUNT - x].sender:find(SENDER_NAME[i]) and MESSAGE[MESSAGE_COUNT - x].text:find(WORDS[a]) then
    				gotolabel(LABEL_NAME)
    				wait(30000)
    			end
    		end
    	end
    end

  4. #4
    Normal User
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Obrigado, irei testar.

Posting Permissions

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