Results 1 to 3 of 3

Thread: recent loot dont work..

  1. #1
    iBot User PabloGura's Avatar
    Join Date
    Jun 2012
    Posts
    164
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    11
    Rep Power
    5

    recent loot dont work..

    -- you can add more items here
    local warnitems = {"heavy trident", "foxtail", "deepling backpack", "warrior's shield", "warrior's axe", "deepling squelcher", "ornate crossbow", "deepling staff", "guardian axe", "necklace of the deep"}

    -- max lines to display at once
    local maxindex = 19

    -- spacing between lines
    local spacing = 11

    local function addtextshadow(text, color, xpos, ypos)
    setfontcolor(rgbcolor(1, 1, 1))
    addtext(text, xpos+1, ypos)
    addtext(text, xpos-1, ypos)
    addtext(text, xpos, ypos+1)
    addtext(text, xpos, ypos-1)
    setfontcolor(color)
    addtext(text, xpos, ypos)
    end

    local index = 0
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
    for i=0,qtd do
    if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then

    local colorm = false
    local l = 0
    for l=1, table.getn(warnitems) do
    if msgs[qtd-i].text:find(warnitems[l]) then
    colorm = true
    break
    end
    end
    if colorm then
    addtextshadow(msgs[qtd-i].text, rgbcolor(107, 142, 35), worldwin.left+5,worldwin.bottom-(maxindex*spacing)+20+(index*spacing))
    else
    addtextshadow(msgs[qtd-i].text, rgbcolor(255, 255, 255), worldwin.left+5,worldwin.bottom-(maxindex*spacing)+20+(index*spacing))
    end


    index=index+1
    if index == maxindex then
    break
    end
    end
    end

  2. #2
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
    change 19 to 20, like this

    if msgs[qtd-i].type == 20 and msgs[qtd-i].text:find('Loot of ') then
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  3. #3
    iBot User PabloGura's Avatar
    Join Date
    Jun 2012
    Posts
    164
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    11
    Rep Power
    5
    hmmm, ok thanks!

Posting Permissions

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