Results 1 to 2 of 2

Thread: Script IBOT QUEST AJUDA

  1. #1
    iBot User
    Join Date
    Jul 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Angry Script IBOT QUEST AJUDA

    Peço Desculpas sou novo aqui no Forum No momento.
    Criei alguns scripts no total de 20 scripts

    Porem no momento depois que comecei a trabalhar estou sem tempo de fazer script
    pois na epoca quando eu fiz em 2013.
    EU jogava muito tibia.
    agora estou voltando e preciso de ajuda..

    Estou querendo quests do TIBIA AFK

    Preciso de quests Solos do tibia.

    http://www.tibiawiki.com.br/Quests

    Assim como quests de poder negociar com NPCs.

    tudo AFK.
    acredito que alguem aqui no forum possa ajudar.
    Um jogador tibiano.
    Comprei premium do ibot para poder procura quests.
    porem não achei quase nenhuma.

    Por favor

    encaminhar para meu e-mail

    leopkks@gmail.com

    Desde Ja agradeço.
    espero esta no forum certo.

    e preciso tambem da quest spoil
    10 k de golds diaria.

    pois preciso de dinheiro..

    no jogo obrigado.
    aguardo contato.
    bom jogos a todos.

    Aqui Vai um Script
    de HUND que eu FIZ.
    ESPERO que gostem.

    -------------------------------------------------------------------------------------
    Click image for larger version. 

Name:	Sem título.jpg 
Views:	24 
Size:	99.6 KB 
ID:	20877

    PHP Code:
    --     
    --     
    PPPP    RR  RR      OOOO     JJJJJJ   EEEEEEE      CCCCCC     TT       
    --    PP  PP   RRRRRRR    OO   OO     JJ    EE     EE    CC        TTTTTT     
    --   PP PPP    RRRR  RR  OO     OO    JJ    EEEEEEEE    CC           TT       
    --   PPP       RR        OO     OO    JJ    EE          CC           TT       
    --   PP        RR         OO   OO     JJ     EE          CC          TT        _
    --   PP        RR           OOO      JJJ       EEEEE      CCCCCC      TTT     |_|

    --
    Criada por scripts Editado Por Wiskan

            local Font 
    "Calibri"
            
    local FontTitle "Cambria"
            
    local FontSecond "Arial Black"
            
    local FontTamanho 12
            local FontTamanhoTitle 
    13
            local Posx 
    15
            local Posy 
    0
            local Script 
    "Knight - Nightmare (Yalahar) 1.3"

    ------------------------------------------------------------------------------------

                    
    CORETIMES_PROJECT_COLOR CORETIMES_PROJECT_COLOR or {
                
    BLACK rgbcolor(111),
                
    ORANGE rgbcolor(2551650),
                
    BLUE rgbcolor(30144255),
                
    WHITE rgbcolor(255255255),
                
    GREEN rgbcolor(10714235),
                
    RED rgbcolor(1783434),
                    }
                    
    local function coretimesproject(TextPosxPosyFontColor)
                          
    setfontcolor(CORETIMES_PROJECT_COLOR.BLACK)
                          
    addtext(TextPosx+1Posy+1)
                          
    setfontcolor(FontColor)
                          
    addtext(TextPosxPosy)
                    
    end
                    local 
    function fontTitle(FontTamanhoTitle)
                          
    setfontstyle(FontTitleFontTamanhoTitleCORETIMES_PROJECT_COLOR.WHITE)
                    
    end
                    local 
    function fontNormal(FontTamanho)
                          
    setfontstyle(FontFontTamanhoCORETIMES_PROJECT_COLOR.WHITE)
                    
    end


                
    function formatonumero(numero)
             
    local RESULTSIGNBEFOREAFTER = [[]], string.match(tostring(numero), [[^([%+%-]?)(%d*)(%.?.*)$]])
            
                    while (
    #BEFORE > 3) do
                
    RESULT = [[,]] .. string.sub(BEFORE, -3, -1) .. RESULT
                BEFORE 
    string.sub(BEFORE1, -4)
              
    end
                    
            
            
    return SIGN .. BEFORE .. RESULT .. AFTER
                 end
        
                
    function formatotempo(segundos)
             
    local TIME_UNITSRETURN_VALUES = {segundos 86400 7segundos 3600 24segundos 60 60segundos 60}, {}
            
               for 
    INDEXVALUE in ipairs(TIME_UNITS) do
                if (
    math.floor(VALUE) > 0then
                    table
    .insert(RETURN_VALUESsprintf([[%02d]], VALUE))
                
    end
                
             end
            
    return #RETURN_VALUES > 0 and table.concat(RETURN_VALUES, [[:]]) or [[0]]
                
    end

     fontTitle
    (FontTamanhoTitle+1)
    coretimesproject("Acesse Nosso Site:"Posx-4Posy+35CORETIMES_PROJECT_COLOR.WHITE)
     
    fontTitle(FontTamanhoTitle)
     
    coretimesproject("www.wiskan.biz"Posx-4Posy+55CORETIMES_PROJECT_COLOR.RED)
     
    fontTitle(FontTamanhoTitle)
    coretimesproject(ScriptPosx-4Posy+75CORETIMES_PROJECT_COLOR.ORANGE)
     
    fontTitle(FontTamanhoTitle)
    coretimesproject("Botting Stats:"Posx-4Posy+100CORETIMES_PROJECT_COLOR.BLUE)
     
    fontNormal(FontTamanho)
    -- 
    # NOME:
    coretimesproject("Name:"Posx+5Posy+120CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(namePosx+100Posy+120CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # LEVEL:
    coretimesproject("Level:"Posx+5Posy+140CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(levelPosx+100Posy+140CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # HP:
    coretimesproject("Health:"Posx+5Posy+160CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(Self.Health(), Posx+100Posy+160CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+145Posy+160CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(hppc.."%"Posx+150Posy+160CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # MP:
    coretimesproject("Mana:"Posx+5Posy+180CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(Self.Mana(), Posx+100Posy+180CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+145Posy+180CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(mppc.."%"Posx+150Posy+180CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # EXP LEFT:
    coretimesproject("Exp Left:"Posx+5Posy+200CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(formatonumero(math.floor(Client.ExperienceToLevel() - Self.Experience())), Posx+100Posy+200CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # EXP/HOUR:
    coretimesproject("Exp/Hour:"Posx+5Posy+220CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(formatonumero(Client.ExperiencePerHour()), Posx+100Posy+220CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # EXP GAINED:
    coretimesproject("Exp Gained:"Posx+5Posy+240CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(formatonumero(System.ExperienceGained()), Posx+100Posy+240CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # TIME TO UP:
    coretimesproject("Time to Up:"Posx+5Posy+260CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(formatotempo(Client.TimeToLevel()), Posx+100Posy+260CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # TIME ON:
    coretimesproject("Time On:"Posx+5Posy+280CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(formatotempo(System.HuntingTime() / 1000), Posx+100Posy+280CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # STAMINA:
    coretimesproject("Stamina:"Posx+5Posy+300CORETIMES_PROJECT_COLOR.WHITE)
    if 
    stamina >= 2400 then
                          setfontcolor
    ("lime")
                          
    addtext(formatotempo(Self.Stamina()), Posx+100Posy+300)
                          
    setfontcolor("lime")
                          
    addtext(formatotempo(Self.Stamina()), Posx+101Posy+300)
    elseif 
    stamina 2400 and (stamina >= 840then
                          setfontcolor
    ("orange")
                          
    addtext(formatotempo(Self.Stamina()), Posx+100Posy+300)
                          
    setfontcolor("orange")
                          
    addtext(formatotempo(Self.Stamina()), Posx+101Posy+300)
    elseif 
    stamina 840 and (stamina >= 600then
                          setfontcolor
    ("red")
                          
    addtext(formatotempo(Self.Stamina()), Posx+100Posy+300)
                          
    setfontcolor("red")
                          
    addtext(formatotempo(Self.Stamina()), Posx+101Posy+300)
    elseif 
    stamina 600 then
                          setfontcolor
    ("black")
                          
    addtext(formatotempo(Self.Stamina()), Posx+100Posy+300)
                          
    setfontcolor("black")
                          
    addtext(formatotempo(Self.Stamina()), Posx+101Posy+300)
    end
    -- # STATUS SKILLS:

    fontTitle(FontTamanhoTitle)
    coretimesproject("Status Skill:"Posx-4Posy+327CORETIMES_PROJECT_COLOR.BLUE)
    fontNormal(FontTamanho)
    -- 
    # ML:
    coretimesproject("Magic Level:"Posx+5Posy+350CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(mlevelPosx+100Posy+350CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+350CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(mlevelpc.."%"Posx+140Posy+350CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # CLUB:
    coretimesproject("Club:"Posx+5Posy+370CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(clubPosx+100Posy+370CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+370CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(clubpc.."%"Posx+140Posy+370CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # AXE:
    coretimesproject("Axe:"Posx+5Posy+390CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(axePosx+100Posy+390CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+390CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(axepc.."%"Posx+140Posy+390CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # SWORD:
    coretimesproject("Sword:"Posx+5Posy+410CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(swordPosx+100Posy+410CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+410CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(swordpc.."%"Posx+140Posy+410CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # SHIELDING:
    coretimesproject("Shielding:"Posx+5Posy+430CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(shieldingPosx+100Posy+430CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+430CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(shieldingpc.."%"Posx+140Posy+430CORETIMES_PROJECT_COLOR.WHITE)
    -- 
    # DISTANCE:
    coretimesproject("Distance:"Posx+5Posy+450CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(distancePosx+100Posy+450CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject("(         )"Posx+135Posy+450CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(distancepc.."%"Posx+140Posy+450CORETIMES_PROJECT_COLOR.WHITE)

    -- 
    # ENGINE STATS:

    fontTitle(FontTamanhoTitle)
    coretimesproject("Engine Stats:"Posx-4Posy+479CORETIMES_PROJECT_COLOR.BLUE)
    fontNormal(FontTamanho)

    -- 
    # CAVEBOT:
    coretimesproject("Cavebot:"Posx+5Posy+505CORETIMES_PROJECT_COLOR.WHITE)
    if 
    cavebot then
                          setfontcolor
    ("lime")
                          
    addtext("On"Posx+100Posy+505)
                          
    setfontcolor("lime")
                          
    addtext("On"Posx+101Posy+506)
    else
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+100Posy+505)
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+101Posy+506)
    end
    -- # TARGETING:
    coretimesproject("Targeting:"Posx+5Posy+525CORETIMES_PROJECT_COLOR.WHITE)
    if 
    targeting then
                          setfontcolor
    ("lime")
                          
    addtext("On"Posx+100Posy+525)
                          
    setfontcolor("lime")
                          
    addtext("On"Posx+101Posy+526)
    else
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+100Posy+525)
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+101Posy+526)
    end
    -- # LOOTING:
    coretimesproject("Looting:"Posx+5Posy+545CORETIMES_PROJECT_COLOR.WHITE)
    if 
    looting then
                          setfontcolor
    ("lime")
                          
    addtext("On"Posx+100Posy+545)
                          
    setfontcolor("lime")
                          
    addtext("On"Posx+101Posy+546)
    else
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+100Posy+545)
                          
    setfontcolor("red")
                          
    addtext("Off"Posx+101Posy+546)
    end
    -- # Others:

    fontTitle(FontTamanhoTitle)
    coretimesproject("Others:"Posx-4Posy+579CORETIMES_PROJECT_COLOR.BLUE)
    fontNormal(FontTamanho)
    coretimesproject("Cursor ID:"Posx+5Posy+600CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(Client.CursorInfo().idPosx+79Posy+600CORETIMES_PROJECT_COLOR.WHITE)

    fontNormal(FontTamanho)
    coretimesproject("Capacity:"Posx+5Posy+620CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(Self.Capacity(), Posx+100Posy+620CORETIMES_PROJECT_COLOR.WHITE)

    coretimesproject("Bank Balance:"Posx+5Posy+640CORETIMES_PROJECT_COLOR.WHITE)
    coretimesproject(Self.BankBalance(), Posx+100Posy+640CORETIMES_PROJECT_COLOR.WHITE
    PHP Code:
    --Variables:
    local sHUDscriptVersion scriptVersion
    local sHUDfontSize1 
    15
    local sHUDfontSize2 
    11

    --Headbar
    setfontstyle
    ("impact"sHUDfontSize10xFF0000)
    setfontcolor("Orange")

    addtext("Suprimentos",600,575)
    addtext("__________",600,580)
    addtext("Runas",800,575)
    addtext("_____",800,580)
    addtext("Cordenadas:",600,700)

    --
    Character Stats displays
    setfontstyle
    ("impact"sHUDfontSize20xFF0000)

    ----
    Coords
    setfontcolor
    ("white")
    addtext(posx710,705)
    addtext(posy750,705)
    addtext(posz790,705)

    ----
    HP
    setfontcolor
    ("red")
    addtext("- HP:"600,610)
    setfontcolor("white")
    addtext(itemcount("health potion"), 650,610)

    ----
    SHP
    setfontcolor
    ("red")
    addtext("- SHP:"600,630)
    setfontcolor("white")
    addtext(itemcount("strong health potion"), 650,630)

    ----
    GHP
    setfontcolor
    ("red")
    addtext("- GHP:"600,650)
    setfontcolor("white")
    addtext(itemcount("great health potion"), 650,650)

    ----
    UHP
    setfontcolor
    ("red")
    addtext("- UHP:"600,670)
    setfontcolor("white")
    addtext(itemcount("ultimate health potion"), 650,670)

    ----
    MP
    setfontcolor
    ("red")
    addtext("- MP:"680,610)
    setfontcolor("white")
    addtext(itemcount("mana potion"), 730,610)

    ----
    SMP
    setfontcolor
    ("red")
    addtext("- SMP:"680,630)
    setfontcolor("white")
    addtext(itemcount("strong mana potion"), 730,630)

    ----
    GMP
    setfontcolor
    ("red")
    addtext("- GMP:"680,650)
    setfontcolor("white")
    addtext(itemcount("great mana potion"), 730,650)

    ----
    GSP
    setfontcolor
    ("red")
    addtext("- GSP:"680,670)
    setfontcolor("white")
    addtext(itemcount("great spirit potion"), 730,670)

    ---
    Runas

    ----Ultimate Healing Rune
    setfontcolor
    ("red")
    addtext("- UH:"800,610)
    setfontcolor("white")
    addtext(itemcount("Ultimate Healing Rune"), 850,610)

    ----
    Magic Wall Rune
    setfontcolor
    ("red")
    addtext("- MW:"800,630)
    setfontcolor("white")
    addtext(itemcount("Magic Wall Rune"), 850,630)

    ----
    Wild Growth Rune
    setfontcolor
    ("red")
    addtext("- WG:"800,650)
    setfontcolor("white")
    addtext(itemcount("Wild Growth Rune"), 850,650)

    ----
    Sudden Death Rune
    setfontcolor
    ("red")
    addtext("- SD:"800,670)
    setfontcolor("white")
    addtext(itemcount("Sudden Death Rune"), 850,670
    PHP Code:
    --[[
        
    NameiBot Loot Counter HUD
        Version
    v1.1
        Last Updated
    23 Jan 2014
    ]]--
     
     
    HUD = {
     
        
    TITLE "iBot Loot Counter",
     
        
    CONFIG = {
            
    ORIENTATION "right",
            
    START_POSITION = {3525},
            
    MAX_TEXT_LENGTH 15,
            
    TEXT_DISTANCE 115,
            
    LINE_DISTANCE 12,
        },
     
        
    ITEMS =
        {
            
    LOOT getlootitems(),
     
            
    SUPPLY =
        {
                {
    NAME "mana potion"VALUE 50},
                {
    NAME "strong mana potion"VALUE 80},
                {
    NAME "great mana potion"VALUE 120},
                {
    NAME "health potion"VALUE 45},
                {
    NAME "strong health potion"VALUE 100},
                {
    NAME "great health potion"VALUE 190},
                {
    NAME "ultimate health potion"VALUE 310},
                {
    NAME "Assassin Star"VALUE 100},
                {
    NAME "prismatic bolt"VALUE 20},
                {
    NAME "crystalline arrow"VALUE 20},
                {
    NAME "great fireball rune"VALUE 45},
                {
    NAME "sudden death rune"VALUE 108},
                {
    NAME "avalanche rune"VALUE 45},
                {
    NAME "icicle rune"VALUE 30},
                {
    NAME "fireball rune"VALUE 30},
                {
    NAME "thunderstorm rune"VALUE 37},
                {
    NAME "Soft Boots"VALUE 10000},
                {
    NAME "Rust Remover"VALUE 50}
            }
        },
     
        --[[ 
    Just edit below if you know what you're doing --]]
     
        COLORS = {
        SHADOW = rgbcolor(10, 10, 10),
        TITLE = rgbcolor(255, 165, 0),
        TEXT1 = rgbcolor(205, 200, 177),
        TEXT2 = rgbcolor(255, 255, 255),
        SUBTITLE = rgbcolor(30, 144, 255),
        PROFIT = rgbcolor(107, 142, 35),
        WASTE = rgbcolor(178, 34, 34),
        },
     
        VERSION = "1.0"
    }
     
    --[[ DONT EDIT NOTHING BELOW THIS LINE --]]

    AMMO_COUNT, AMMO_COUNT_BP = AMMO_COUNT or 0, AMMO_COUNT_BP or 0
    local DISTANCE_WEAPONS, AMMUNITION, AMMO_NAME, AMMO_TYPE_COUNT, ADD_TO_HUD = {"assassin star", "enchanted spear", "hunting spear", "mean paladin spear", "royal spear", "small stone", "snowball", "spear", "throwing knife", "throwing star", "viper star"}, {"arrow", "burst arrow", "crystalline arrow", "earth arrow", "envenomed arrow", "flaming arrow", "flash arrow", "onyx arrow", "poison arrow", "shiver arrow", "sniper arrow", "tarsal arrow", "infernal bolt", "drill bolt", "power bolt", "prismatic bolt", "vortex bolt", "piercing bolt", "bolt"}, nil, 0, 0
     
    if (weapon ~= 0) and (table.find(DISTANCE_WEAPONS, itemname(weapon):lower())) then
        AMMO_NAME, AMMO_TYPE_COUNT = itemname(weapon) or nil, weaponamount or 0
    elseif (ammo ~= 0) and (table.find(AMMUNITION, itemname(ammo):lower())) then
        AMMO_NAME, AMMO_TYPE_COUNT = itemname(ammo) or nil, ammoamount or 0
    end
     
    if (AMMO_NAME ~= nil) then
        local CURRENT_AMMO_COUNT = itemcount(AMMO_NAME)
       
        if (AMMO_TYPE_COUNT < AMMO_COUNT) then
            ADD_TO_HUD = math.max(0, AMMO_COUNT-AMMO_TYPE_COUNT)
        elseif (AMMO_TYPE_COUNT > AMMO_COUNT) and (CURRENT_AMMO_COUNT < AMMO_COUNT_BP) then
            ADD_TO_HUD = math.max(0, (AMMO_COUNT+(AMMO_COUNT_BP-CURRENT_AMMO_COUNT))-100)
        end
       
        addhudsupplie(AMMO_NAME, ADD_TO_HUD)
        AMMO_COUNT, AMMO_COUNT_BP = AMMO_TYPE_COUNT, CURRENT_AMMO_COUNT
    end

    function formatnumber(n, s)
        local result, sign, before, after = '', string.match(tostring(n), '
    ^([%+%-]?)(%d*)(%.?.*)$')
     
        while #before > 3 do
            result = (s or '
    .') .. string.sub(before, -3, -1) .. result
            before = string.sub(before, 1, -4)
        end
     
        return sign .. before .. result .. after
    end
     
    local X, Y, INDEX, TOTAL, TOTAL_LOOTED, TOTAL_WASTED = (HUD.CONFIG.ORIENTATION:lower() == "right" and worldwin.right + 10 or clientwin.left + 10) + HUD.CONFIG.START_POSITION[1], worldwin.top + 10 + HUD.CONFIG.START_POSITION[2], 1, 0, 0, 0
     
    setfontcolor(HUD.COLORS.TITLE)
    addtextstroke(HUD.TITLE, X, Y)
     
    Y = Y + 20
     
    setfontcolor(HUD.COLORS.SUBTITLE)
    addtextstroke("ITEMS LOOTED:", X, Y)
     
    Y = Y + 5
     
    local lootqtd = HUD.ITEMS.LOOT.count-1
     
    for it = 0, lootqtd do
        local ITEM = HUD.ITEMS.LOOT[it]
        if ITEM.lootmessage > 0 then
            Y = Y + HUD.CONFIG.LINE_DISTANCE
     
        local itemvalue = ITEM.npcsell
        if ITEM.custom ~= 0 then
            itemvalue = ITEM.custom
        end
     
        setfontcolor(HUD.COLORS.TEXT1)
            addtextstroke((#ITEM.NAME < HUD.CONFIG.MAX_TEXT_LENGTH and ITEM.NAME or ITEM.NAME:sub(1, HUD.CONFIG.MAX_TEXT_LENGTH) .. "..."):gsub("(%a)([%w_'
    ]*)", function(s1, s2) return s1:upper() .. s2:lower() end), X, Y)
     
        setfontcolor(HUD.COLORS.TEXT2)
        addtextstroke(string.format("
    %(%s k)", formatnumber(ITEM.lootmessage), math.floor(ITEM.lootmessage * itemvalue / 100) / 10), X + HUD.CONFIG.TEXT_DISTANCE, Y)
     
            TOTAL, TOTAL_LOOTED = TOTAL + ITEM.lootmessage * itemvalue, TOTAL_LOOTED + (ITEM.lootmessage * itemvalue)
        end
    end
     
    Y = Y + HUD.CONFIG.LINE_DISTANCE + 2
     
    setfontcolor(HUD.COLORS.TEXT2)
    addtextstroke("
    Total", X, Y)
     
    setfontcolor(HUD.COLORS.TITLE)
    addtextstroke(formatnumber(TOTAL_LOOTED) .. " 
    GPs", X+35, Y)
     
    Y = Y + 25
     
    setfontcolor(HUD.COLORS.SUBTITLE)
    addtextstroke("
    SUPPLIES USED:", X, Y)
     
    Y = Y + 5
     
    for _, ITEM in ipairs(HUD.ITEMS.SUPPLY) do
        local ITEM_USED = itemproperty(ITEM.NAME)
        if ITEM_USED.usagemessage > 0 then
            Y = Y + HUD.CONFIG.LINE_DISTANCE
     
        setfontcolor(HUD.COLORS.TEXT1)
            addtextstroke((#ITEM.NAME < HUD.CONFIG.MAX_TEXT_LENGTH and ITEM.NAME or ITEM.NAME:sub(1, HUD.CONFIG.MAX_TEXT_LENGTH) .. "
    ..."):gsub("(%a)([%w_']*)", function(s1, s2) return s1:upper() .. s2:lower() end), X, Y)
     
        setfontcolor(HUD.COLORS.TEXT2)
        addtextstroke(string.format("%s (%sk)", formatnumber(ITEM_USED.usagemessage), math.floor(ITEM_USED.usagemessage * (ITEM.VALUE or itemvalue(ITEM.NAME)) / 100) / 10), X + HUD.CONFIG.TEXT_DISTANCE, Y)
     
            TOTAL, TOTAL_WASTED = TOTAL - ITEM_USED.usagemessage * (ITEM.VALUE or itemvalue(ITEM.NAME)), TOTAL_WASTED + (ITEM_USED.usagemessage * (ITEM.VALUE or itemvalue(ITEM.NAME)))
        end
    end
     
    Y = Y + HUD.CONFIG.LINE_DISTANCE + 2
     
    setfontcolor(HUD.COLORS.TEXT2)
    addtextstroke("Total: ", X, Y)
     
    setfontcolor(HUD.COLORS.TITLE)
    addtextstroke("-" .. formatnumber(TOTAL_WASTED) .. " GPs", X + 35, Y)
     
    Y = Y + 25
     
    setfontcolor(TOTAL_LOOTED - TOTAL_WASTED >= 0 and HUD.COLORS.PROFIT or HUD.COLORS.WASTE)
    addtextstroke(string.format("%s %s GPs (%s k/h)", TOTAL_LOOTED - TOTAL_WASTED >= 0 and "PROFIT:" or "WASTE:", formatnumber(TOTAL_LOOTED - TOTAL_WASTED), math.floor(((TOTAL_LOOTED - TOTAL_WASTED) / (tosec(timehunt) / 3600)) / 100) / 10), X, Y) 

  2. #2
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    eu tenho alguns feitos, e há outros aqui: http://www.tibiaibot.com/forum/showt...ted-17-06-2014
    click the image below to see my 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
  •