Results 1 to 3 of 3

Thread: Add Item na HUD

  1. #1
    iBot User wagnermalucowe's Avatar
    Join Date
    Apr 2012
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    32
    Rep Power
    5

    Smile Add Item na HUD

    Estou usando a HUD by Sayild + Loot Counter by Jonatas fiz umas alteraçoes ao meu gosto, mais nao estou conseguindo adicionar mais um item no suplice que seria GHP, gostaria de saber se alguem poderia me ajudar ja tentei altera mais ele ou fica com item repetido ou nao funciona.

    PHP Code:
    setfontstyle(Tahoma10"blue")
    setfontcolor("white")


    addtext("Exp Next Lvl : "1030)
    addtext(exptolevel(), 94,30)

    addtext("Exp/hour : "1045)
    addtext(exphour94,45)
    addtext("Exp/gain : "1060)
    addtext(expgained94,60)
    addtext("Time Hunt: "1075)
    addtext(timehunt94,75)

    -- 
    Loots
    local lootsitems 
    = {'gold coin''Dragon Lord Trophy','Dragon Scale Mail','Royal Helmet',
    'Dragon Slayer','Strong Health Potion','Tower Shield','Fire Sword',
    'Strange Helmet','Red Dragon Leather','Red Dragon Scale','Life Crystal','Golden Mug','Small Sapphire','Magma Boots','Shard','Ice Rapier','Frosty Heart','Spellbook of Enlightenment','Small Diamond','Dragonbone Staff','Dragon Shield',
    'Wand of Inferno','Serpent Sword','Green Dragon Scale','Green Dragon Leather','Dragon Hammer'}
    local lootsvalue = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}


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


    -- 
    Start Position
    local startpos 
    90




    --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
    ("white")
    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
    ("white")
    addtext("Loots"10,posloot)
    addtext(":"140,posloot)
    addtext(totall150,posloot)


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


    if 
    totall-totals 0 then
    setfontcolor
    ("White")
    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
    Assim ele funciona 100%

    Desde ja fico agradecido pela ajuda.
    Last edited by wagnermalucowe; 10-17-2012 at 11:04 AM. Reason: Arrumando
    Hail Ibot!!
    Gostou do tópico, veja como contribuir !!!

    ....:: Compartilhe sua opinião, ela faz a diferença ::....
    ....:: Agradeça no botão Add Reputation, não custa nada, e isso nos motiva cada vez mais ::....



    Sua ajuda nos fortalece.

  2. #2
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    PHP Code:
    setfontstyle(Tahoma10"blue")
    setfontcolor("white")


    addtext("Exp Next Lvl : "1030)
    addtext(exptolevel(), 94,30)

    addtext("Exp/hour : "1045)
    addtext(exphour94,45)
    addtext("Exp/gain : "1060)
    addtext(expgained94,60)
    addtext("Time Hunt: "1075)
    addtext(timehunt94,75)

    -- 
    Loots
    local lootsitems 
    = {'gold coin''Dragon Lord Trophy','Dragon Scale Mail','Royal Helmet',
    'Dragon Slayer','Strong Health Potion','Tower Shield','Fire Sword',
    'Strange Helmet','Red Dragon Leather','Red Dragon Scale','Life Crystal','Golden Mug','Small Sapphire','Magma Boots','Shard','Ice Rapier','Frosty Heart','Spellbook of Enlightenment','Small Diamond','Dragonbone Staff','Dragon Shield',
    'Wand of Inferno','Serpent Sword','Green Dragon Scale','Green Dragon Leather','Dragon Hammer'}
    local lootsvalue = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}


    -- 
    Supplie
    local suppliesitems 
    = {'mana potion''great health potion'}
    local suppsvalue = {50100}


    -- 
    Start Position
    local startpos 
    90




    --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
    ("white")
    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
    ("white")
    addtext("Loots"10,posloot)
    addtext(":"140,posloot)
    addtext(totall150,posloot)


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


    if 
    totall-totals 0 then
    setfontcolor
    ("White")
    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

  3. #3
    iBot User wagnermalucowe's Avatar
    Join Date
    Apr 2012
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    32
    Rep Power
    5
    Vou testar aqui,

    Mais vlw peja ajuda...
    Hail Ibot!!
    Gostou do tópico, veja como contribuir !!!

    ....:: Compartilhe sua opinião, ela faz a diferença ::....
    ....:: Agradeça no botão Add Reputation, não custa nada, e isso nos motiva cada vez mais ::....



    Sua ajuda nos fortalece.

Tags for this Thread

Posting Permissions

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