Results 1 to 5 of 5

Thread: Loot na tela

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

    Lightbulb Loot na tela

    tem como deixar loot de forma visivel na tela?
    ajudem-me por favor

  2. #2
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    voce ta falando doq?

    loot counter?
    loot global do server log?
    que loot?
    REP+ If I helped you

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Aew galera gostaria de saber se tem como ir contando o gp, o loot q cai, sem ter q ta com as bp abertas, exemplo eu pego do server log sei lah e vou contando para ver quanto vou ter de gp e assim por diante. desde já Obrigado.

  4. #4
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    Exemplo de Contador de Loot - Loot Counter
    feito por Jonatas
    PHP Code:
    -- Loots
    local lootsitems 
    = {'gold coin''dragon Shield''Wand of Inferno''serpent sword','dragon hammer','dragonbone staff','small diamond','green dragon scale','green dragon leather','dragons tail' }
    local lootsvalue = {1,4000,3000,900,2000,3000,300,100,100,100}

    -- 
    Supplie
    local suppliesitems 
    = {'mana potion'}
    local suppsvalue = {50}

    -- 
    Start Position
    local startpos 
    200


    --dont change things below

    local loots 
    getitems(unpack(lootsitems))
    local qtdl loots.count-1
    local totall 
    0

    local supps 
    getitems(unpack(suppliesitems))
    local qtds supps.count-1
    local totals 
    0

    local startloot 
    0

    setfontcolor
    ("white")
    addtext("________________________________"0,10+startpos)
    setfontcolor("red")

    -- 
    Supplies
    for i=0,qtds do
       
    addtext(supps[i].name10,30+(startloot*15)+20+startpos)
       
    addtext(":"140,30+(startloot*15)+20+startpos)
       
    addtext(supps[i].usage*suppsvalue[i+1], 150,30+(startloot*15)+20+startpos)
       
    startloot startloot 1
       totals 
    totals supps[i].usage*suppsvalue[i+1]
    end

    setfontcolor
    ("red")
    addtext("Supplie"10,30+startpos)
    addtext(":"140,30+startpos)
    addtext(totals150,30+startpos)

    setfontcolor("white")
    addtext("________________________________"0,45+(startloot*15)+startpos)

    -- 
    Loots

    setfontcolor
    ("green")
    local posloot 50+(startloot*15)+20+startpos

    for i=0,qtdl do
       
    addtext(loots[i].name10,50+(startloot*15)+40+startpos)
       
    addtext(":"140,50+(startloot*15)+40+startpos)
       
    addtext(loots[i].loot*lootsvalue[i+1], 150,50+(startloot*15)+40+startpos)
       
    startloot startloot 1
       totall 
    totall loots[i].loot*lootsvalue[i+1]
    end

    setfontcolor
    ("green")
    addtext("Loots"10,posloot)
    addtext(":"140,posloot)
    addtext(totall150,posloot)

    setfontcolor("white")
    addtext("________________________________"0,85+(startloot*15)+startpos)

    if 
    totall-totals 0 then
    setfontcolor
    ("blue")
    else
    setfontcolor("red")
    end

    addtext
    ("Total"10,50+(startloot*15)+20+startpos+35)
    addtext(":"140,50+(startloot*15)+20+startpos+35)
    addtext(totall-totals150,50+(startloot*15)+20+startpos+35)

    setfontcolor("white")
    addtext("________________________________"0,115+(startloot*15)+startpos
    isso é uma Hud!
    REP+ If I helped you

  5. #5
    Normal User
    Join Date
    Mar 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by lelao22 View Post
    exemplo de contador de loot - loot counter
    feito por jonatas
    PHP Code:
    -- loots
    local lootsitems 
    = {'gold coin''dragon shield''wand of inferno''serpent sword','dragon hammer','dragonbone staff','small diamond','green dragon scale','green dragon leather','dragons tail' }
    local lootsvalue = {1,4000,3000,900,2000,3000,300,100,100,100}

    -- 
    supplie
    local suppliesitems 
    = {'mana potion'}
    local suppsvalue = {50}

    -- 
    start position
    local startpos 
    200


    --dont change things below

    local loots 
    getitems(unpack(lootsitems))
    local qtdl loots.count-1
    local totall 
    0

    local supps 
    getitems(unpack(suppliesitems))
    local qtds supps.count-1
    local totals 
    0

    local startloot 
    0

    setfontcolor
    ("white")
    addtext("________________________________"0,10+startpos)
    setfontcolor("red")

    -- 
    supplies
    for i=0,qtds do
       
    addtext(supps[i].name10,30+(startloot*15)+20+startpos)
       
    addtext(":"140,30+(startloot*15)+20+startpos)
       
    addtext(supps[i].usage*suppsvalue[i+1], 150,30+(startloot*15)+20+startpos)
       
    startloot startloot 1
       totals 
    totals supps[i].usage*suppsvalue[i+1]
    end

    setfontcolor
    ("red")
    addtext("supplie"10,30+startpos)
    addtext(":"140,30+startpos)
    addtext(totals150,30+startpos)

    setfontcolor("white")
    addtext("________________________________"0,45+(startloot*15)+startpos)

    -- 
    loots

    setfontcolor
    ("green")
    local posloot 50+(startloot*15)+20+startpos

    for i=0,qtdl do
       
    addtext(loots[i].name10,50+(startloot*15)+40+startpos)
       
    addtext(":"140,50+(startloot*15)+40+startpos)
       
    addtext(loots[i].loot*lootsvalue[i+1], 150,50+(startloot*15)+40+startpos)
       
    startloot startloot 1
       totall 
    totall loots[i].loot*lootsvalue[i+1]
    end

    setfontcolor
    ("green")
    addtext("loots"10,posloot)
    addtext(":"140,posloot)
    addtext(totall150,posloot)

    setfontcolor("white")
    addtext("________________________________"0,85+(startloot*15)+startpos)

    if 
    totall-totals 0 then
    setfontcolor
    ("blue")
    else
    setfontcolor("red")
    end

    addtext
    ("total"10,50+(startloot*15)+20+startpos+35)
    addtext(":"140,50+(startloot*15)+20+startpos+35)
    addtext(totall-totals150,50+(startloot*15)+20+startpos+35)

    setfontcolor("white")
    addtext("________________________________"0,115+(startloot*15)+startpos
    isso é uma hud!
    ta dando debug ...
    Debug :
    00:18 lua:hudaction - luainterface.luascriptexception: [string "chunk"]:15: Attempt to call global 'getitems' (a nil value)

Posting Permissions

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