Signup Now
Results 1 to 9 of 9

Thread: Friend List

  1. #1
    Free User Turc's Avatar
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    33
    Reputation
    12
    Rep Power
    0

    Friend List

    FRIEND LIST

    This image is hosted on a possibly dangerous website (http://vpx.pl/i/2013/12/27/friendlist.png). Please consider reuploading it on Imgur.com.


    About:
    - Simple HUD with your friend vip list.

    - You can move HUD with middle mouse button. Thanks to @sirmate.

    Libraries:

    - WindBot 1.1.2
    -
    Raphael's Library 0.1.2
    - Lucas Terra's Library 12.7


    Version and Changelog:
    - v1.0 - 27/12/2013 - stable version.

    Code:
    -- MADE by Turc @ --

    init start
    local space = 0
    filterinput(false, true, false, false)
    local Moving, Temp, Moved = false, {0, 0}, {0, 0}


    function inputevents(e)
    if (e.type == IEVENT_MMOUSEDOWN) then
    Moving, Temp = true, {$cursor.x - Moved[1], $cursor.y - Moved[2]}
    end

    if (e.type == IEVENT_MMOUSEUP) then
    Moving = false
    end
    end
    init end
    if (Moving) then
    auto(10)
    Moved = {$cursor.x - Temp[1], $cursor.y - Temp[2]}
    end


    setposition($clientwin.left + 2 + Moved[1], $worldwin.top - 28 + Moved[2])
    local blueGradient = {0.0, color(78, 105, 112), 0.23, color(61, 87, 93), 0.76, color(44, 68, 74)}
    local blackGradient = {0.0, color(75, 75, 75, 20), 0.23, color(45, 45, 45, 20), 0.76, color(19, 19, 19, 20)}
    local redGradient = {0.0, color(136, 35, 12, 20), 0.23, color(139, 37, 13, 20), 0.76, color(92, 6, 6, 20)}
    local greenGradient = {0.0, color(65, 96, 12, 0), 0.23, color(67, 99, 13, 0), 0.76, color(36, 52, 6, 0)}

    local online, all, k = 0, 0, 1
    setfillstyle('gradient', 'linear', 2, 0, 0, 0, 25 + space)
    addgradcolors(table.unpack(blueGradient))
    addshape('roundrect', $clientwin.left + 2, $worldwin.top, 150, 24 + space, 3,3)
    space = 0


    foreach vipentry v do

    setfontstyle('Tahoma', 7, 75, 0xFFFFFF, 1, color(0, 0, 0, 20))
    setfillstyle('gradient', 'linear', 2, 0, 0, 0, 17)
    addgradcolors(table.unpack(blackGradient))

    drawroundrect($clientwin.left + 6, $worldwin.top + 3 + (k*19), 120, 16)
    drawtext(v.name, $clientwin.left + 8, $worldwin.top + 3 + (k*19) + 3)


    if not v.isonline then
    addgradcolors(table.unpack(redGradient))
    else
    addgradcolors(table.unpack(greenGradient))
    online = online + 1
    end
    drawroundrect($clientwin.left + 110 + 8, $worldwin.top + 3 + (k*19), 30, 16, 2, 2)
    k = k +1
    all = all + 1
    space = space + 19
    end
    setfontstyle('Tahoma', 10, 40, 0xFFBB55, 1, color(0, 0, 0, 20))
    drawtext('FRIEND LIST (' ..online ..'/' ..all ..')', $clientwin.left + 10, $worldwin.top + 2)
    Attached Files Attached Files

  2. #2
    Free User
    Join Date
    Dec 2013
    Posts
    40
    Reputation
    12
    Rep Power
    0
    i like it !

  3. #3
    Free User knght's Avatar
    Join Date
    Dec 2013
    Posts
    36
    Reputation
    10
    Rep Power
    0
    Great Job Sr. Keep going.

  4. #4
    Free User
    Join Date
    Jan 2014
    Posts
    59
    Reputation
    10
    Rep Power
    21
    This HUD gets too big in my screen. Is it possible to limit the height and use mscroll to navigate between users?

    Very nice job! Thank you!

  5. #5
    Free User
    Join Date
    Jan 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    How i can hide player offiline ?

  6. #6
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    @pelindexx Here is edited code with hideOffline option
    -- MADE by Turc @ --

    init start
    local hideOffline = true

    ----------------------- !!! DONT EDIT BELOW !!! -----------------------
    local space = 0
    filterinput(false, true, false, false)
    local Moving, Temp, Moved = false, {0, 0}, {0, 0}


    function inputevents(e)
    if (e.type == IEVENT_MMOUSEDOWN) then
    Moving, Temp = true, {$cursor.x - Moved[1], $cursor.y - Moved[2]}
    end

    if (e.type == IEVENT_MMOUSEUP) then
    Moving = false
    end
    end
    init end
    if (Moving) then
    auto(10)
    Moved = {$cursor.x - Temp[1], $cursor.y - Temp[2]}
    end


    setposition($clientwin.left + 2 + Moved[1], $worldwin.top - 28 + Moved[2])
    local blueGradient = {0.0, color(78, 105, 112), 0.23, color(61, 87, 93), 0.76, color(44, 68, 74)}
    local blackGradient = {0.0, color(75, 75, 75, 20), 0.23, color(45, 45, 45, 20), 0.76, color(19, 19, 19, 20)}
    local redGradient = {0.0, color(136, 35, 12, 20), 0.23, color(139, 37, 13, 20), 0.76, color(92, 6, 6, 20)}
    local greenGradient = {0.0, color(65, 96, 12, 0), 0.23, color(67, 99, 13, 0), 0.76, color(36, 52, 6, 0)}

    local online, all, k = 0, 0, 1
    setfillstyle('gradient', 'linear', 2, 0, 0, 0, 25 + space)
    addgradcolors(table.unpack(blueGradient))
    addshape('roundrect', $clientwin.left + 2, $worldwin.top, 150, 24 + space, 3,3)
    space = 0


    foreach vipentry v do
    if v.isonline or (not v.isonline and not hideOffline) then
    setfontstyle('Tahoma', 7, 75, 0xFFFFFF, 1, color(0, 0, 0, 20))
    setfillstyle('gradient', 'linear', 2, 0, 0, 0, 17)
    addgradcolors(table.unpack(blackGradient))

    drawroundrect($clientwin.left + 6, $worldwin.top + 3 + (k*19), 120, 16)
    drawtext(v.name, $clientwin.left + 8, $worldwin.top + 3 + (k*19) + 3)

    if not v.isonline then
    addgradcolors(table.unpack(redGradient))
    else
    addgradcolors(table.unpack(greenGradient))
    online = online + 1
    end
    drawroundrect($clientwin.left + 110 + 8, $worldwin.top + 3 + (k*19), 30, 16, 2, 2)
    k = k +1

    space = space + 19
    end
    all = all + 1
    end
    setfontstyle('Tahoma', 10, 40, 0xFFBB55, 1, color(0, 0, 0, 20))
    drawtext('FRIEND LIST (' ..online ..'/' ..all ..')', $clientwin.left + 10, $worldwin.top + 2)
    Last edited by Imba; 08-25-2014 at 02:02 AM.

  7. #7
    Free User
    Join Date
    Jan 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Thanks Man, you are amaizin ;D

  8. #8
    Free User
    Join Date
    Apr 2014
    Posts
    71
    Reputation
    19
    Rep Power
    21
    Hi, it is possible to make something like this but to the battle list? im playing on laptop sometimes i need to have big battle list open, but i cant coz i need at same time have backpacks opens, so i would suggest something like this but with battle list where i could place it anywhere on my tibia screen, and i could select the target from this new battle list.

  9. #9
    Free User Mantix's Avatar
    Join Date
    Aug 2016
    Location
    Brazil
    Posts
    47
    Reputation
    10
    Rep Power
    0
    Thanks bro, nice HUD!

 

 

Posting Permissions

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