Results 1 to 3 of 3

Thread: [HUD] Info HUD by IMBAscripts

  1. #1
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6

    [HUD] Info HUD by IMBAscripts

    Simple info HUD by IMBAscripts... Nothing special, but maybe someone will find it useful

    Just Make new hud, add code below and enable Set refresh rate to 1000~, u can set lower, but your cpu usage will be higher.
    Ofc you can set different position of HUD, just change textX and textY variables
    For this green dot and ping, press Alt + F8 in your Tibia window.
    You need SIRMATE LIBRARY for my scripts!
    Click here to download.

    Code:
    --[[
    HUD Name: IMBAhud
    Author: Y4rR0 from IMBAscripts
    Version: 1.0
    ]]--
    ----<< EDIT POSITION HERE IF YOU WANT >>----
    
    -- X Position of text
    local textX = 11
    -- Y Position of text
    local textY = worldwin.top+50
    
    ----<< CODE, DONT EDIT >>----
    local blue1 = rgbcolor(42, 187, 255)
    local blue2 = rgbcolor(2, 79, 135)
    local blue3 = rgbcolor(1, 14, 33)
    local blue4 = rgbcolor(128, 201, 255)
    local red1 = rgbcolor(255, 65, 48)
    local orange1 = rgbcolor(255, 139, 50)
    local green1 = rgbcolor(111, 255, 22)
    local gap = 15
    setfontcolor(blue4)
    addtext(Self.Name(), textX, textY)
    addtext("Level: "..Self.Level(), textX, textY+1*gap)
    addtext("Exp Gained: "..Misc.FormatNumber(System.ExperienceGained()), textX, textY+2*gap)
    addtext("Exp to Level: "..Misc.FormatNumber(exptolevel()), textX, textY+3*gap)
    addtext("Exp per Hour: "..Misc.FormatNumber(System.ExperiencePerHour()), textX, textY+4*gap)
    addtext("Time to Level: "..timetolevel, textX, textY+5*gap)
    addtext("Time hunting: "..Misc.FormatTime(System.HuntingTime()/1000), textX, textY+6*gap)
    addtext("Stamina: ",11, textY+7*gap)
    addtext("Bank Balance: "..Misc.FormatNumber(balance).." gps", textX, textY+8*gap)
    addtext("Healer: ", textX, textY+9*gap)
    addtext("Cavebot: ", textX, textY+10*gap)
    addtext("Looting: ", textX, textY+11*gap)
    addtext("Targeting: ", textX, textY+12*gap)
    addtext("Cursor ID: "..cursorinfo().id, textX, textY+13*gap)
    ----< Healer  ON/OFF >----
    if (System.isHealerEnabled()) then
      setfontcolor(green1)
      addtext("ON", textX+42, textY+9*gap)
    else
      setfontcolor(red1)
      addtext("OFF", textX+42, textY+9*gap)
    end
    ----< CaveBot  ON/OFF >----
    if (System.isCaveBotEnabled()) then
      setfontcolor(green1)
      addtext("ON", textX+52, textY+10*gap)
    else
      setfontcolor(red1)
      addtext("OFF", textX+52, textY+10*gap)
    end
    ----< Looting  ON/OFF >----
    if (System.isLootingEnabled()) then
      setfontcolor(green1)
      addtext("ON", textX+47, textY+11*gap)
    else
      setfontcolor(red1)
      addtext("OFF", textX+47, textY+11*gap)
    end
    ----< Targeting  ON/OFF >----
    if (System.isTargetingEnabled()) then
      setfontcolor(green1)
      addtext("ON", textX+60, textY+12*gap)
    else
      setfontcolor(red1)
      addtext("OFF", textX+60, textY+12*gap)
    end
    ----< Stamina colours >----
    if stamina >= 2400 then
     setfontcolor(green1)
    elseif stamina < 2400 and (stamina > 840) then
      setfontcolor(orange1)
    elseif stamina <= 840 then
      setfontcolor(red1)
    end
    addtext(Misc.FormatTime(Self.Stamina()), textX+53, textY+7*gap)
    If you wanna add border (higher cpu usage), add this code too. You can paste it to another HUD and set refresh rate to 10000, so it wont spam). With border, ur HUD will look like this:

    Here is code of borders:
    Code:
    --[[
    HUD Name: Borders to IMBAhud
    Author: Y4rR0 from IMBAscripts
    Version: 1.0
    ]]--
    ----<< EDIT POSITION HERE IF YOU WANT >>----
    
    -- X Position of border
    local horX = 3
    -- Y Position of border
    local horY = worldwin.top + 34
    
    ----<< CODE, DONT EDIT >>----
    local blue1 = rgbcolor(42, 187, 255)
    local blue2 = rgbcolor(2, 79, 135)
    local blue3 = rgbcolor(1, 14, 33)
    local blue4 = rgbcolor(128, 201, 255)
    
    local function addhorizontalborder(Xpos, Ypos, fontColor)
      setfontcolor(fontColor)
      addtext("_________________________", Xpos, Ypos)
      addtext("_________________________", Xpos, Ypos+1)
      addtext("_________________________", Xpos, Ypos+2)
    end
    local function addverticalborder(Xpos, Ypos, fontColor)
      setfontcolor(fontColor)
      addtext("|", Xpos, Ypos)
      addtext("|", Xpos+1, Ypos)
      addtext("|", Xpos+2, Ypos)
    end
    local verLX = horX-2
    local verRX = horX+169
    local verY = horY+(13)
    local verBlockLength = 11
    local verBorderLength = 18
    --kolejna pozioma horY+(verBlockLength+1)*11+3
    --[[=======================================]]--
    addhorizontalborder(horX, horY, blue3)
    for i=0, verBorderLength do
      addverticalborder(verLX, verY+(i*verBlockLength), blue3)
    end
    for i=0, verBorderLength do
      addverticalborder(verRX, verY+(i*verBlockLength), blue3)
    end
    addhorizontalborder(3, horY+(verBorderLength+1)*verBlockLength+3
    , blue3)
    Remember to check my other scripts from link in my signature! Aslo, if you enjoyed this, leave a feedback and rep me!
    Last edited by Y4rR0; 10-28-2012 at 07:47 AM.

  2. #2
    iBot User
    Join Date
    Aug 2012
    Location
    Chile
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    50
    Rep Power
    5
    Great HUD very usefull and simple

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    14
    Rep Power
    5
    very nice HUD thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •