Results 1 to 3 of 3

Thread: HUD não soma GHP e UHP

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

    HUD não soma GHP e UHP

    Olá,

    Estou com problema em uma HUD aqui e gostaria de saber se alguém sabe como soluciono este problema.

    Estou com seguinte problema nela, ela conta o número de mana potions gastas e soma no prejuízo ou no lucro final perfeitamente, porém, ela conta o número de great health potions e ultimate health potions gastas e não soma no prejuizo ou no lucro final.

    Vamos supor que gastou-se 100 mana potions, ela irá aparecer - 5000 GPs de prejuízo no final.. porém se gastou 100 great health potions irá aparecer que foram gastas mas ela não aparece o valor gasto em GPs.

    Segue a HUD abaixo para uma análise de alguém que esteja afim de ajudar, está configurada conforme meu monitor:

    OBS: ---> Uso Library padrão do Ibot <----

    -- [[ HUD ]]

    -- [[ Settings ]]
    local RaphaelLibrary = false

    -- [[ Botting Status by PV! ]]
    local showBotting = true

    -- [[ Position ]]
    local showPosition = false

    -- [[ Supplies Counter ]]
    local showSupplies = true
    local item1 = {name = "Mana Potion", buy = 1000, min = 10}
    local item2 = {name = "Great Health Potion", buy = 100, min = 10}
    local item3 = {name = "UHP", buy = 100, min = 10}
    local items = {item1, item2, item3}

    -- [[ Supplies Wasted ]]
    local showSuppliesWasted = true
    local suppliesitems = {'mana potion'}
    local suppsvalue = {50}

    -- [[ Items Looted ]]

    local showLoots = true
    local lootitems = {'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx', 'xxx'}
    local lootsvalue = {x, xxxx, xxx, xxx, xxx, xxx, xxxx, xxxxx}

    local myname = true -- DO NOT DISABLE, make your char stop healing :P

    local fontsize = 10
    local fontspacing = fontsize+2

    -- [[ ENGINE ]] -- do not change it below

    local cont = 0
    local x = 5
    local y = 0
    local z = 0
    local totals = 0
    local totall = 0
    local total = 0
    local sub = 17

    if clientwin.x ~= nil or clientwin.y ~= nil then
    setposition(clientwin.x+13, clientwin.y+30)
    else
    setposition(5, 20)
    end

    setfontstyle("Tahoma", fontsize, "white")
    -- [[ Botting ]]
    if showBotting then
    setfontcolor("white")
    y = y + 10
    addtext(' [ Botting ]', 15, y)
    y = y + 10
    y = y + 10
    addtext('Exp Por Hora', x, y)
    addtext('- ' .. exphour, 120, y)
    y = y + 15
    addtext('Exp Faltando', x, y)
    addtext('- ' .. exptolevel(), 120, y)
    y = y + 15
    addtext('Exp Feita', x, y)
    addtext('- ' .. expgained, 120, y)
    y = y + 15
    addtext('Time To Next Level', x, y)
    addtext('- ' .. timetolevel, 120, y)
    y = y + 15
    setfontcolor("white")
    addtext('Tempo Caçando', x, y)
    addtext('- ' .. timehunt, 120, y)
    y = y + 15
    addtext('Cavebot', x, y)
    addtext('- ', 120, y)
    if cavebot then
    setfontcolor("red")
    addtext('ON', 130, y)
    else
    setfontcolor("green")
    addtext('OFF', 130, y)
    end
    y = y + 15
    setfontcolor("white")
    addtext('- ', 120, y)
    addtext('Targeting', x, y)
    if targeting then
    setfontcolor("red")
    addtext('ON', 130, y)
    else
    setfontcolor("green")
    addtext('OFF', 130, y)
    end
    y = y + 15
    setfontcolor("white")
    addtext('Looting', x, y)
    addtext('- ', 120, y)
    if looting then
    setfontcolor("red")
    addtext('ON', 130, y)
    else
    setfontcolor("green")
    addtext('OFF', 130, y)
    end
    y = y + 15
    setfontcolor("white")
    addtext('Walk Through', x, y)
    addtext('- ', 120, y)
    if getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'yes' then
    setfontcolor("red")
    addtext('ON', 130, y)
    elseif getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'no' then
    setfontcolor("green")
    addtext('OFF', 130, y)
    else
    setfontcolor("yellow")
    addtext('???', 130, y)
    end
    y = y + 15
    setfontcolor("white")
    addtext('Balance', x, y)
    addtext('- ', 120, y)
    if balance == -1 then
    addtext('?', 130, y)
    else
    addtext(balance, 130, y)
    end
    y = y + 10
    end

    -- [[ Position ]]

    if showPosition then
    setfontcolor("yellow")
    y = y + 10
    addtext(' [ Position ]', 15, y)
    y = y + 10
    addtext("Position X ", x, y)
    addtext("- "..posx, 120, y)
    y = y + 15
    addtext("Position Y ", x, y)
    addtext("- "..posy, 120, y)
    y = y + 15
    addtext("Position Z ", x, y)
    addtext("- "..posz, 120, y)
    y = y + 15
    addtext("Cursor ID", x, y)
    addtext('- '..cursorinfo().id, 120, y)
    y = y + 10
    end

    -- [[ Supplies ]]

    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    if showSupplies then
    setfontcolor("yellow")
    addtext(' [ Supplies ]', 15, y)
    y = y + 10
    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    setfontcolor("white")
    for i, j in pairs(items) do
    if itemid(items[i].name) == ammo then
    cont = itemcount(items[i].name) + ammoamount
    elseif itemid(items[i].name) == weapon then
    cont = itemcount(items[i].name) + weaponamount
    else
    cont = itemcount(items[i].name)
    end
    addtext(items[i].name, x, y)
    addtext('-', 120, y)
    if cont <= items[i].min then
    setfontcolor("white")
    elseif cont <= (items[i].buy/2) then
    setfontcolor("white")
    elseif cont < items[i].buy then
    setfontcolor("white")
    else
    setfontcolor("white")
    end
    if itemid(items[i].name) == ammo then
    addtext(cont, 130, y)
    elseif itemid(items[i].name) == weapon then
    addtext(cont, 130, y)
    else
    addtext(cont, 130, y)
    end
    setfontcolor("white")
    y = y + 15
    end
    y = y - 5
    end

    -- [[ Supplies Wasted ]]

    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    if showSuppliesWasted then
    setfontcolor("yellow")
    addtext(' [ Supplies Gastas ]', 15, y)
    y = y + 10
    y = y + 10
    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    setfontcolor("white")
    addtext(' ', 5, y)
    y = y + 10
    local supps = getitems(unpack(suppliesitems))
    local qtds = supps.count-1
    for i=0,qtds do
    if string.len(supps[i].name) > 17 then
    addtext(string.sub((supps[i].name), 1, sub).."...", x, y)
    else
    addtext(supps[i].name, x, y)
    end
    addtext("- "..supps[i].usage.." ("..(math.floor(supps[i].usage*suppsvalue[i+1] / 100)/10).."k)", 120, y)
    totals = totals + supps[i].usage*suppsvalue[i+1]
    y = y + 15
    end
    addtext("Total", x, y)
    addtext("-", 120, y)
    addtext(totals.." GPs", 130, y)
    y = y + 10
    end

    -- [[ Loots ]]

    if showLoots then
    setfontcolor("yellow")
    y = y + 10
    addtext(' [ Items looted ]', 15, y)
    y = y + 10
    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    setfontcolor("white")
    local loots = getitems(unpack(lootitems))
    local qtdl = loots.count-1
    for i=0,qtdl do
    if loots[i].loot > 0 then
    if string.len(loots[i].name) > 17 then
    addtext(string.sub(loots[i].name, 1, sub).."..", x, y)
    else
    addtext(loots[i].name, x, y)
    end
    addtext("- "..loots[i].loot.." ("..(math.floor(loots[i].loot*lootsvalue[i+1] / 100)/10).."k)", 120, y)
    totall = totall + loots[i].loot*lootsvalue[i+1]
    y = y + 15
    end
    end
    addtext("Total", x, y)
    addtext("-", 120, y)
    addtext(totall.." GPs", 130, y)
    y = y + 10
    end

    y = y + 10
    addtext(' ', 5, y)
    y = y + 10
    if showSuppliesWasted and showLoots then
    total = totall - totals
    if totall-totals > 0 then
    setfontcolor("red")
    addtext("LUCRO:", x, y)
    else
    setfontcolor("red")
    addtext("Prejuizo:", x, y)
    end
    setfontcolor("white")
    addtext(total.." GPs ("..(math.floor((total/(tosec(timehunt)/3600))/100)/10).."k/h)", x + 50, y)
    y = y + 10
    end

    if myname then
    end


    Obrigado!!!
    Last edited by LKSSSS; 05-18-2013 at 04:33 AM.

  2. #2
    Pedroo's Avatar
    Join Date
    Jul 2012
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    17
    Rep Power
    5
    Baixe a library do Raphael

    E coloque ela na pasta 'library' do seu ibot.

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by Pedroo View Post
    Baixe a library do Raphael

    E coloque ela na pasta 'library' do seu ibot.
    Não funcionou e bugou uma parte da HUD, tive que voltar para como estava, tem mais alguma sugestão?

Posting Permissions

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