Results 1 to 5 of 5

Thread: Help with Huds

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

    Help with Huds

    Hello guys i want to add an Hud for my script that i am using.
    I have took an Example from this Forum and edited that a little, when i add the script in the Hud Actions and click on Enable i am nothing seeing.
    What have i done wrong?

    Here my script:


    -- Loots
    local lootsitems = {'Gold coin', 'Ice Cube', 'Shard', 'Halberd','Small Stone','Frost Giant Pelt','Thick fur','Norse Shield','green dragon leather','dragons tail' }
    local lootsvalue = {1,500,2000,400,25,160,150,1500,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)

  2. #2
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    are you getting any error message when u start the script?

  3. #3
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    "dragon's tail"

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    You got no spaces, this might be wrong not sure.
    Code:
    local lootsitems = {'Gold coin', 'Ice Cube', 'Shard', 'Halberd','Small Stone','Frost Giant Pelt','Thick fur','Norse Shield','green dragon leather','dragons tail' }
    Ass you see on
    Code:
    'Halberd','SmallStone'
    no space and on the
    Code:
    'gold coin', 'ice cube'
    u have a space between , and '
    .::Glocieus From NeoBot Forums::.

    Scripts Coming Soon [ September 2012 ]

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    thx for helping guys first i edited the script like you said but that dont worked :/
    after i downloaded the new version all works perfectly
    Last edited by maksim789; 06-23-2012 at 08:49 PM.

Posting Permissions

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