Results 1 to 3 of 3

Thread: Replace worn soft boots with full

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

    How to design a HUD

    I'd like a HUD that will show the items that I've looted since it was turned on and their values + the value of the supplies used. Is this possible?
    Last edited by Farstrider; 08-11-2012 at 02:42 AM.

  2. #2
    Normal User blablabla's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba, Brazil
    Posts
    242
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5
    I think that's not possible yet because HUDs do not interact with global variables. So, you cannot use a HUD for creature kill count, ammo spent and soft boots.

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    -- 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].name, 10,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(totals, 150,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].name, 10,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(totall, 150,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-totals, 150,50+(startloot*15)+20+startpos+35)

    setfontcolor("white")
    addtext("________________________________", 0,115+(startloot*15)+startpos)
    Isnt mine, just I got from:
    http://www.tibiaibot.com/forum/showt...75-Scripts-Lua

    Happy Botting!

Posting Permissions

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