Postado Janeiro 31, 2015 10 anos Preciso de ajuda pra configurar a HUDPor FavorEnviar ou postar aqui a a solução.. Obrigado da HUD eu fico grato.. e Sei que isso vai ajudar outras pessoas.tive um problema esqueci minha antiga acc no IBOT.e acabei criando essa estou voltando a jogar.e preciso de uma HUD nova.comInformação de Capacidade.e tambem de Cordenadas..Fico grato..se poder arruma essa HUD.e ainda adicionarCordenadas Nela..em baixo de Balance..Obrigado.Deixando as cordenadas Assim exemplo..35620|36514 7 HUD = { TITLE = "Informações Gerais", CONFIG = { ORIENTATION = "Left", START_POSITION = {15, 25}, MAX_TEXT_LENGTH = 15, TEXT_DISTANCE = 120, LINE_DISTANCE = 15, }, --[[ EDITE APENAS SE SABER EDITAR. --]] COLORS = { TITLE = rgbcolor(255, 165, 0), TEXT1 = rgbcolor(205, 200, 177), TEXT2 = rgbcolor(255, 255, 255), SUBTITLE = rgbcolor(30, 144, 255), RED = rgbcolor(178, 34, 34), GREEN = rgbcolor(107, 142, 35), }, CHARINFO = { ENABLED = true, {NAME = "Level:", VALUE = level, ENABLED = true}, {NAME = "Health:", VALUE = hp.. " / ".. maxhp .." (".. hppc .." %)" , ENABLED = true}, {NAME = "Mana:", VALUE = mp.. " / ".. maxmp .." (".. mppc .." %)" , ENABLED = true}, {NAME = "Experiance:", VALUE = valExperiance, ENABLED = true}, {NAME = "Exp Gained:", VALUE = valExpGain, ENABLED = true}, {NAME = "Exp Per Hour:", VALUE = valExpPerHour, ENABLED = true}, {NAME = "Exp to Level:", VALUE = valExpToLevel, ENABLED = true}, {NAME = "Hunt Time:", VALUE = timehunt, ENABLED = true}, {NAME = "Time to Level:", VALUE = timetolevel, ENABLED = true}, {NAME = "Stamina:", VALUE = valStamina, ENABLED = true}, {NAME = "Balance:", VALUE = valBalance, ENABLED = true}, }, CHARSKILLS = { ENABLED = true, {NAME = "Magic Level:", VALUE = mlevel.. " (".. mlevelpc .." %)", ENABLED = true}, {NAME = "Fist Level:", VALUE = fist.. " (".. fistpc .." %)", ENABLED = false}, {NAME = "Club Level:", VALUE = club.. " (".. clubpc .." %)", ENABLED = false}, {NAME = "Sword Level:", VALUE = sword.. " (".. swordpc .." %)", ENABLED = false}, {NAME = "Axe Level:", VALUE = axe.. " (".. axepc .." %)", ENABLED = true}, {NAME = "Distance Level:", VALUE = distance.. " (".. distancepc .." %)", ENABLED = false}, {NAME = "Shielding Level:", VALUE = shielding.. " (".. shieldingpc .." %)", ENABLED = true}, {NAME = "Fishing Level:", VALUE = fishing.. " (".. fishingpc .." %)", ENABLED = false}, }, BOTINFO = { ENABLED = false, -- EDITE APENAS SE SOBER EDITAR-- {NAME = "Standtime:", VALUE = valStandtime, ENABLED = true}, {NAME = "Loot Bodies:", VALUE = lootbodiescount.. " Bodies to Loot", ENABLED = true}, {NAME = "Pos X:", VALUE = valPosX, ENABLED = true}, {NAME = "Pos Y:", VALUE = valPosY, ENABLED = true}, {NAME = "Pos Z:", VALUE = posz, ENABLED = true}, {NAME = "Mouse Item ID:", VALUE = valMouseId, ENABLED = true}, }, BOTSTATES = { ENABLED = true, {NAME = "Healer:", VALUE = getsettings("Settings\\Healer\\Enabled"), ENABLED = true}, {NAME = "Friend Healer:", VALUE = getsettings("Settings\\FriendHealer\\Enabled"), ENABLED = false}, {NAME = "Refiller:", VALUE = getsettings("Settings\\Refiller\\Enabled"), ENABLED = false}, {NAME = "Actions:", VALUE = getsettings("Settings\\Actions\\Enabled"), ENABLED = true}, {NAME = "Cavebot:", VALUE = getsettings("Settings\\CaveBot\\Enabled"), ENABLED = true}, {NAME = "Looting:", VALUE = getsettings("Settings\\Looting\\Enabled"), ENABLED = true}, {NAME = "Targeting:", VALUE = getsettings("Settings\\Targeting\\Enabled"), ENABLED = false}, }, SUPPLYTRACKER = { ENABLED = true, {NAME = "HP", ENABLED = true}, {NAME = "MP", ENABLED = true}, {NAME = "SHP", ENABLED = true}, {NAME = "GHP", ENABLED = true}, {NAME = "UHP", ENABLED = true}, {NAME = "SMP", ENABLED = false}, {NAME = "GSP", ENABLED = false}, {NAME = "SD Rune", ENABLED = false}, {NAME = "Icicle rune", ENABLED = false}, {NAME = "Avalanche rune", ENABLED = false}, {NAME = "Thunderstorm rune", ENABLED = false}, {NAME = "GFB rune", ENABLED = false}, }, KILLCOUNTER = { ENABLED = true, MONSTERS = { {NAME = "frost dragon", VALUE = 0}, {NAME = "frost dragon hatchling", VALUE = 0}, }, TOTALKILLED = 0, } } --[[ DONT EDIT NOTHING BELOW THIS LINE --]] function comma_value(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k==0) then break end end return formatted end function round(val, decimal) if (decimal) then return math.floor( (val * 10^decimal) + 0.5) / (10^decimal) else return math.floor(val+0.5) end end function format_num(amount, decimal, prefix, neg_prefix) local str_amount, formatted, famount, remain decimal = decimal or 2 -- default 2 decimal places neg_prefix = neg_prefix or "-" -- default negative sign famount = math.abs(round(amount,decimal)) famount = math.floor(famount) remain = round(math.abs(amount) - famount, decimal) -- comma to separate the thousands formatted = comma_value(famount) -- attach the decimal portion if (decimal > 0) then remain = string.sub(tostring(remain),3) formatted = formatted .. "." .. remain .. string.rep("0", decimal - string.len(remain)) end return formatted end valExperiance = comma_value(exp).. " / ".. comma_value(exp+exptolevel()) valExpGain = comma_value(expgained) valExpPerHour = comma_value(exphour) valExpToLevel = comma_value(exptolevel()) valTimeToLevel = math.floor(exptolevel()/exphour) ..":".. math.floor(math.abs((exptolevel()/exphour)-math.floor(exptolevel()/exphour))*60) valStamina = math.floor(stamina/60) ..":".. os.date("%M", stamina*60) valBalance = comma_value(balance) valStandtime = format_num((standtime/1000)).. " Seconds" valPosX = comma_value(posx) valPosY = comma_value(posy) valMouseId = comma_value(cursorinfo().id) local X, Y = (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] setfontcolor(HUD.COLORS.TITLE) addtextstroke(HUD.TITLE, X, Y) local Y = Y + HUD.CONFIG.LINE_DISTANCE + 2 if HUD.CHARINFO.ENABLED then setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("INFORMAÇÔES DO PLAYER:", X, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE for _, INFO in ipairs(HUD.CHARINFO) do if INFO.ENABLED then setfontcolor(HUD.COLORS.TEXT1) addtextstroke(INFO.NAME, X, Y) if INFO.NAME == "Stamina:" and stamina >= 2400 then setfontcolor(HUD.COLORS.GREEN) elseif INFO.NAME == "Stamina:" and stamina < 2400 and stamina >= 840 then setfontcolor(HUD.COLORS.TEXT2) elseif INFO.NAME == "Stamina:" and stamina < 840 then setfontcolor(HUD.COLORS.RED) else setfontcolor(HUD.COLORS.TEXT2) end addtextstroke(INFO.VALUE, X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE end end end if HUD.SUPPLYTRACKER.ENABLED then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("SUPRIMENTOS:", X, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE for _, INFO in ipairs(HUD.SUPPLYTRACKER) do if INFO.ENABLED then setfontcolor(HUD.COLORS.TEXT1) addtextstroke(INFO.NAME, X, Y) if itemcount(INFO.NAME) > 0 then setfontcolor(HUD.COLORS.GREEN) else setfontcolor(HUD.COLORS.RED) end addtextstroke(itemcount(INFO.NAME), X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE end end end if HUD.CHARSKILLS.ENABLED then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("SKILLS DO PERSONAGEM:", X, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE for _, INFO in ipairs(HUD.CHARSKILLS) do if INFO.ENABLED then setfontcolor(HUD.COLORS.TEXT1) addtextstroke(INFO.NAME, X, Y) setfontcolor(HUD.COLORS.TEXT2) addtextstroke(INFO.VALUE, X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE end end end if HUD.BOTINFO.ENABLED then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("INFORMAÇÃO DO BOT:", X, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE for _, INFO in ipairs(HUD.BOTINFO) do if INFO.ENABLED then setfontcolor(HUD.COLORS.TEXT1) addtextstroke(INFO.NAME, X, Y) setfontcolor(HUD.COLORS.TEXT2) addtextstroke(INFO.VALUE, X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE end end end if HUD.BOTSTATES.ENABLED then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("ESTATUS DO BOT:", X, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE for _, INFO in ipairs(HUD.BOTSTATES) do if INFO.ENABLED then setfontcolor(HUD.COLORS.TEXT1) addtextstroke(INFO.NAME, X, Y) if INFO.VALUE == "yes" then setfontcolor(HUD.COLORS.GREEN) else setfontcolor(HUD.COLORS.RED) end addtextstroke(INFO.VALUE, X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE end end end local getMessages = getmessages("Server Log") local countMessages = getMessages.count - 1 for i = 0, countMessages do if (getMessages[countMessages - i].text:find("Loot of a") and getMessages[countMessages - i].type == 20) then for _, MONSTER in ipairs(HUD.KILLCOUNTER.MONSTERS) do if (getMessages[countMessages - i].text:find("Loot of a ".. MONSTER.NAME:lower() ..":")) or (getMessages[countMessages - i].text:find("Loot of an ".. MONSTER.NAME:lower() ..":")) then MONSTER.VALUE = MONSTER.VALUE + 1 HUD.KILLCOUNTER.TOTALKILLED = HUD.KILLCOUNTER.TOTALKILLED + 1 end end end end if HUD.KILLCOUNTER.ENABLED then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.SUBTITLE) addtextstroke("KILL COUNTER:", X, Y) for _, m in ipairs(HUD.KILLCOUNTER.MONSTERS) do if m.VALUE >= 0 then Y = Y + HUD.CONFIG.LINE_DISTANCE setfontcolor(HUD.COLORS.TEXT1) addtextstroke((#m.NAME < HUD.CONFIG.MAX_TEXT_LENGTH and m.NAME or m.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(m.VALUE, X + HUD.CONFIG.TEXT_DISTANCE, Y) end end if HUD.KILLCOUNTER.TOTALKILLED >= 0 then Y = Y + HUD.CONFIG.LINE_DISTANCE + 2 setfontcolor(HUD.COLORS.TEXT2) addtextstroke("Kills Total: ", X, Y) setfontcolor(HUD.COLORS.TITLE) addtextstroke(HUD.KILLCOUNTER.TOTALKILLED, X + HUD.CONFIG.TEXT_DISTANCE, Y) Y = Y + HUD.CONFIG.LINE_DISTANCE + 2 setfontcolor(HUD.COLORS.TEXT2) addtextstroke("Kills Per Hour: ", X, Y) setfontcolor(HUD.COLORS.TITLE) addtextstroke(math.floor(HUD.KILLCOUNTER.TOTALKILLED/(tosec(timehunt)/60/60)), X + HUD.CONFIG.TEXT_DISTANCE, Y) end end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.