Postado Outubro 14, 2015 9 anos init start -- _________ _____ _ __ -- / ____/ (_) / ___/__________(_)___ / /______ -- / __/ / / / \__ \/ ___/ ___/ / __ \/ __/ ___/ -- / /___/ / / ___/ / /__/ / / / /_/ / /_(__ ) -- /_____/_/_/ /____/\___/_/ /_/ .___/\__/____/ -- /_/ -- Name: Health & Mana Bar -- Last Updated: 09/05/2015 -- Version: 1.0 -- you may change colors, I fuck gradients colors and I do not understand them at all. local BORDER = true local SIZE = 380 local HUD_Colors = { MANA = {0.0, color(3, 131, 183, 20), 0.23, color(3, 131, 183, 20), 0.76, color(3, 131, 183, 20)}, HEALTH = {0.0, color(0, 210, 0, 20), 0.23, color(0, 220, 0, 20), 0.76, color(0, 220, 0, 20)}, } init end if BORDER then setbordercolor(color(0,0,0)) end locationx = $worldwinrelative.left + ($worldwinrelative.width / 2) - (SIZE/2) - 18 locationy = $worldwinrelative.top + ($worldwinrelative.height / 2) - (SIZE/2) locationx2 = locationx + SIZE - ((SIZE + (SIZE * 0.85)) / 2) locationy2 = locationy + SIZE - ((SIZE + (SIZE * 0.85)) / 2) hp1 = 90 / (100 / $hppc)* - 1 mp1 = 90 / (100 / $mppc) setantialiasing(true) drawpie(locationx, locationy, SIZE, SIZE, 45, -90) drawpie(locationx, locationy, SIZE, SIZE, 135, 90) setfillstyle('gradient', 'linear', 1, 0, 0, 0, 150) addgradcolors(unpack(HUD_Colors.MANA)) drawpie(locationx, locationy, SIZE, SIZE, -45, mp1) setfillstyle('gradient', 'linear', 1, 0, 0, 0, 150) -- hp bar addgradcolors(unpack(HUD_Colors.HEALTH)) drawpie(locationx, locationy, SIZE, SIZE, 225, hp1) -- clear setbordercolor(-1) setfillstyle('color', -1) drawcircle(locationx2, locationy2, SIZE * 0.85, SIZE * 0.85) Créditos: tibiawindbot
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.