Signup Now
Results 1 to 2 of 2

Thread: Auto look item?

  1. #1
    Free User
    Join Date
    Mar 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0

    Auto look item?

    Hello!

    I developed a script whose gets imbuements time from looking item.... Otherwise I can't find how to look an item...

    Code:
    continue = false
        cont = 0
        char = {}
    
        foreach newmessage m do
            if m.type == MSG_INFO then
                local msg = m.content:match('.- ')
                if m.content:match('Void') then
                    for token in string.gmatch(m.content, "[^%s]") do
                        char[cont] = token
                        cont = cont + 1
                    end
    
                    for i = 0, cont do
                        if char[i] == "V" and char[i+1] == "o" and char[i+2] == "i" and char[i+3] == "d" then
                            if char[i+5] ~= ":" then
                                hour = char[i+4] .. char[i+5]
                                minute = char[i+7] .. char[i+8]
                            else
                                hour = char[i+4]
                                minute = char[i+6] .. char[i+7]
                            end
                            waitping()
                            setuseroption('horas', tonumber(hour))
                            waitping()
                            setuseroption('min', tonumber(minute))
                            hour = ""
                            minute = ""
                        end
                    end
                end
            end
        end
    Do you know how to look an item?

  2. #2
    Wind Powered strahowski's Avatar
    Join Date
    Aug 2014
    Posts
    212
    Reputation
    27
    Rep Power
    12
    Use contextmenu function, there's info about how to in teh Docs I think

 

 

Posting Permissions

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