Results 1 to 4 of 4

Thread: alerta loot

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0

    alerta loot

    galera alguem pode me passa um action q apite quando dropar um voodoo doll? ja coloquei em loot anoucer e tlz mais n funciona.. se alguem puder me ajudar dou 1 +rep

  2. #2
    Normal User markeloff's Avatar
    Join Date
    Feb 2013
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    local warnitems = {'item1', 'item2', 'item3'}

    local msgs = getmessages("Server Log")

    local qtd = msgs.count-1
    local l = 0

    for i=0,qtd do
    for l=1, table.getn(warnitems) do
    if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
    if msgs[qtd-i].text:find(warnitems[l]) then
    print(warnitems[l].." looted!")


    end
    end
    end
    end

  3. #3
    Normal User
    Join Date
    Oct 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    amigo não funciono não =/

  4. #4
    Normal User
    Join Date
    Oct 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    Quote Originally Posted by markeloff View Post
    local warnitems = {'item1', 'item2', 'item3'}

    local msgs = getmessages("Server Log")

    local qtd = msgs.count-1
    local l = 0

    for i=0,qtd do
    for l=1, table.getn(warnitems) do
    if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
    if msgs[qtd-i].text:find(warnitems[l]) then
    print(warnitems[l].." looted!")


    end
    end
    end
    end


    amigo não funciono não =/

Posting Permissions

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