Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ( @ "
- ‘® ® ®!
- ®® *®$ ®®,
- =®® W®® ®®5
- M®®¦ ®®®. .®®®
- ®®®® C®®®@ W®®®
- J®®®A M®®®® ¦®®®Ð
- ®®®®7 . ®®®®®.‘ ‘®®®®
- J®®®®M ®®® ®®®®®!M®® $®®W®Ð
- @®MW®®* M®®®®(!®®®J‘®®®®® ®®®5®®
- Ю®7®®®C .M®®®®®®®$=3®®®®®®®® *®®®#W®®
- 3®®,@®®®®‘M®=®®®®®®®®®®®®®®®®®®®®®.®®.®®®®® ®®Ð
- ®®®* ®® ®.®(®®®®®®®®®®®®®®®®®®®®®#A ® ®®. ®®®
- .®®®M $W ,®®®®®®®®®M...$®®®®®®®®® %M Ю®®¦
- ®®®®AM(, ®®®®®®®®® W®®®®®®®®¦= ®¦®®®®
- 3®MÐAM$®®=(®®®®# 7®®®®3.®®MJ!®3®@
- .®3W®®®.‘ Ю® ®®M (@®®®,®=
- .=®®®®.®®W @®® ®®®®‘!
- ®®®®M.®®®®®WÐЮ®®®®!$®®®®
- ®®®®®@ ,®®®®®®®®®¦ A®®®®®
- ®®®®®®®®®" !¦( .®®®®®®®®®
- ®®®®®®®®®®® M®®®®®®®®®®,
- ®®®®®®®®®® ®®®®®®®®®®‘
- ¦®®®®®®®® ®®®®®®®®3
- Ю®®®®®‘ ®®®®®®®
- ®®®®®¦ .®®®®®.
- #®®®$ *®®®®
- ®®W $®®
- "® @7
- ]]--
- local CONFIG = {
- DRAW_TYPE = "BORDER",
- POSITION = {X = 10, Y = 25},
- TEXT_DISTANCE = 130,
- LINE_DISTANCE = 14,
- }
- function formatnumber(NUMBER, SEPARATOR)
- local SEPARATOR, RESULT, SIGN, BEFORE, AFTER = SEPARATOR or ",", '', string.match(tostring(NUMBER), '^([%+%-]?)(%d*)(%.?.*)$')
- while (#BEFORE > 3) do
- RESULT = SEPARATOR .. string.sub(BEFORE, -3, -1) .. RESULT
- BEFORE = string.sub(BEFORE, 1, -4)
- end
- return SIGN .. BEFORE .. RESULT .. AFTER
- end
- function addcommas(amount)
- local formated = amount
- while true do
- formated, k = string.gsub(formated, "^(-?%d+)(%d%d%d)", '%1.%2')
- if (k==0) then
- break
- end
- end
- return formated
- end
- --[[ JUST EDIT THIS LINE IF YOU KNOW WHAT YOU'RE DOING ]]--
- HUD = {
- SECTIONS = {
- {
- NAME = "DARK STAR GENERAL INFO",
- ELEMENTS = {
- {"Level: ", string.format("%s", level)},
- {"HP: ", string.format("%s (%s)%%", hp, hppc)},
- {"MP: ", string.format("%s (%s)%%", mp, mppc)},
- {"Capacity: ", string.format("%s", cap)},
- {"Experience: ", string.format("%s", formatnumber(exp))},
- {"Exp/h (Tibia):", string.format("%s", formatnumber(tibiaexphour))},
- {"Exp/h (Bot): ", string.format("%s", formatnumber(exphour))},
- {"Exp Gained: ", string.format("%s", formatnumber(expgained))},
- {"Exp to Level: ", string.format("%s", formatnumber((50 / 3 * ((level + 1) ^ 3 - 6 * (level + 1) ^ 2 + 17 * (level + 1) - 12)) - exp))},
- {"Time To Level:", string.format("%s", timetolevel)},
- {"Time Online: ", string.format("%s", timehunt)},
- {"Stamina: ", string.format("%.2d:%.2d", stamina / 60, stamina % 60)},
- {"Coordinates: ", string.format("%s | %s | %s", posx, posy, posz)},
- {"Balance: ", string.format("%s", formatnumber(balance):gsub("-1", "Unknown"))},
- {"Cursor ID: ", string.format("%s", cursorinfo().id)},
- },
- },
- {
- NAME = "ENGINES",
- ELEMENTS = {
- {"Alarms: ", string.format("%s", (getsettings("Settings/Alerts/Enabled") == "yes" and "Activated") or "Deactivated")},
- {"Healer: ", string.format("%s", (getsettings("Settings/Healer/Enabled") == "yes" and "Activated") or "Deactivated")},
- {"Cavebot: ", string.format("%s", (getsettings("Settings/CaveBot/Enabled") == "yes" and "Activated") or "Deactivated")},
- {"Looting: ", string.format("%s", (getsettings("Settings/Looting/Enabled") == "yes" and "Activated") or "Deactivated")},
- {"Targeting: ", string.format("%s", (getsettings("Settings/Targeting/Enabled") == "yes" and "Activated") or "Deactivated")},
- },
- },
- },
- COLORS = {
- SHADOW = rgbcolor(10, 10, 10),
- TITLE = rgbcolor(30, 144, 255),
- TEXT1 = rgbcolor(205, 200, 177),
- TEXT2 = rgbcolor(255, 255, 255),
- BUTTON_ON = rgbcolor(0,255,0),
- BUTTON_OFF = rgbcolor(255,0,0),
- },
- VERSION = "1.0"
- }
- --[[ DON'T EDIT BELOW THIS LINE ]]--
- function addcustomtext(TEXT, X, Y, COLOR)
- setfontcolor(rgbcolor(10, 10, 10))
- if CONFIG.DRAW_TYPE:upper() == "SHADOW" then
- addtext(TEXT, X + 1, Y + 1)
- elseif CONFIG.DRAW_TYPE:upper() == "BORDER" then
- addbordertext(TEXT, X + 1, Y + 1)
- addbordertext(TEXT, X - 1, Y - 1)
- addbordertext(TEXT, X - 1, Y + 1)
- addbordertext(TEXT, X + 1, Y - 1)
- addbordertext(TEXT, X, Y + 1)
- addbordertext(TEXT, X, Y - 1)
- addbordertext(TEXT, X + 1, Y)
- addbordertext(TEXT, X - 1, Y)
- end
- setfontcolor(COLOR)
- return addtext(TEXT, X, Y)
- end
- setposition(CONFIG.POSITION.X, CONFIG.POSITION.Y)
- local Y, X = 0, 0
- setfontcolor(HUD.COLORS.TITLE)
- addtextstroke(HUD.TITLE, X, Y)
- local AA
- for _, SECTION in ipairs(HUD.SECTIONS) do
- Y = Y + 20
- setfontcolor(HUD.COLORS.TITLE)
- addtextstroke(SECTION.NAME, X, Y)
- Y = Y + 20
- for _, ELEMENT in ipairs(SECTION.ELEMENTS) do
- setfontcolor(HUD.COLORS.TEXT1)
- addtextstroke(ELEMENT[1], X, Y)
- AA = ELEMENT[2] == "Activated" and HUD.COLORS.BUTTON_ON or ELEMENT[2] == "Deactivated" and HUD.COLORS.BUTTON_OFF or HUD.COLORS.TEXT2
- setfontcolor(AA)
- addtextstroke(ELEMENT[2], X + CONFIG.TEXT_DISTANCE, Y)
- Y = Y + CONFIG.LINE_DISTANCE
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement