Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.86 KB | None | 0 0
  1. local function addbordertext(text, color, xpos, ypos)
  2.     setfontcolor(rgbcolor(1, 1, 1))
  3.     addtext(text, xpos+1, ypos)
  4.     addtext(text, xpos-1, ypos)
  5.     addtext(text, xpos, ypos+1)
  6.     addtext(text, xpos, ypos-1)
  7.     setfontcolor(color)
  8.     addtext(text, xpos, ypos)
  9. end
  10.  
  11. local numberscolor = rgbcolor(255, 255, 255)
  12. local namecolor = rgbcolor(230, 221, 213)
  13.  
  14. local staminaformated = 0
  15.  
  16. local staminahours = 0
  17. if math.floor(stamina/60) >= 10 then
  18.     staminahours = math.floor(stamina/60)
  19. else
  20.     staminahours = "0" .. math.floor(stamina/60)
  21. end
  22.  
  23. local staminaminutes = 0
  24. if math.floor(stamina - math.floor(stamina/60)*60) >= 10 then
  25.     staminaminutes = math.floor(stamina - math.floor(stamina/60)*60)
  26. else
  27.     staminaminutes = "0" .. math.floor(stamina - math.floor(stamina/60)*60)
  28. end
  29.  
  30. local staminaformated =  staminahours .. ":" .. staminaminutes
  31.  
  32. setposition(worldwin.left+10, worldwin.top+33)
  33.  
  34. addbordertext("BOTTING INFO", rgbcolor(255, 180, 4), 0, 0)
  35.  
  36. addbordertext("Exp per Hour", namecolor, 0, 15)
  37. addbordertext("Exp to Level", namecolor, 0, 30)
  38. addbordertext("Exp Gained", namecolor, 0, 45)
  39. addbordertext("Time to Level", namecolor, 0, 60)
  40. addbordertext("Time Online", namecolor, 0, 75)
  41. addbordertext("Stamina", namecolor, 0, 90)
  42. addbordertext("Balance", namecolor, 0, 105)
  43.  
  44. addbordertext(tibiaexphour, numberscolor, 100, 15)
  45. addbordertext(exptolevel(), numberscolor, 100, 30)
  46. addbordertext(expgained, numberscolor, 100, 45)
  47. addbordertext(timetolevel, numberscolor, 100, 60)
  48. addbordertext(timehunt, numberscolor, 100, 75)
  49. addbordertext(balance, numberscolor, 100, 105)
  50.  
  51. if stamina > 2400 then
  52.     addbordertext(staminaformated, rgbcolor(106, 177, 22), 100, 90)
  53. elseif stamina > 840 then
  54.     addbordertext(staminaformated, rgbcolor(248, 158, 0), 100, 90)
  55. else
  56.     addbordertext(staminaformated, rgbcolor(255, 0, 0), 100, 90)
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement