Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [HUD] Recent PM by FrogZ & ToadZ

  1. #1
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5

    [HUD] Recent PM by FrogZ & ToadZ

    So guys I just want to release us new HUD. It's a HUD that shows the recent private messages. I gonna update it with more stuffs but for now that is all!

    Any suggestions? Just let me know.

    Recent PM

    It's got some options like NeoBot's one.

    Works only for messages at Local Chat.

    Code:
    --[ Recent PM by Frogz & ToadZ v0.1 ]--
    
    local showTime = true -- Show current time on PM.
    local showLevel = true -- Show level of the PM sender.
    local maxrows = 6 -- Max number of rows to PMs.
    local maxlength = 50 -- Trim your message, 0 to not trim.
    local fontsize = 10
    
    local positionx = 15 -- Change it, if you need.
    
    --[ ENGINE ]--
    -- do not change below
    
    local fontspacing = fontsize + 4
    local privatemsgs = {}
    local index = 0
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1
    
    setfontstyle('Tahoma', fontsize,'green')
    setfontcolor(rgbcolor(95, 247, 247))
    if clientwin.x ~= nil or clientwin.y ~= nil then
    	setposition(clientwin.left + positionx, worldwin.bottom - (maxrows * fontspacing))
    else
    	setposition(5, 20)
    end
    for i=0,qtd do
    	if msgs[qtd-i].type == 6 then  
    		local privatemsg = ''
    		if showTime then
    			privatemsg = (string.sub(msgs[qtd-i].text, 0, 6))
    		end
    		l, k = string.find(msgs[qtd-i].text, "(%d+)", 7)
    		local sender = (string.sub(msgs[qtd-i].text, 7, l - 3))
    		privatemsg = privatemsg..sender
    		if showLevel then
    			l, k = string.find(msgs[qtd-i].text, "(%d+)", 7)
    			privatemsg = privatemsg..string.sub(msgs[qtd-i].text, l - 2, k + 1)
    		end
    		l, k = string.find(msgs[qtd-i].text, "(%d+)", 7)
    		privatemsg = privatemsg..string.sub(msgs[qtd-i].text, k + 2, msgs[qtd-i].text:len())
    		if msgs[qtd-i].text:len() > maxlength then
    			privatemsg = string.sub(privatemsg, 1, maxlength)..".."
    		end
    		table.insert(privatemsgs, 1, privatemsg)
    		if #privatemsgs > maxrows then
    			table.remove(privatemsgs, 1)
    		end
    	end
    end
    for i = 1, #privatemsgs do
    	if privatemsgs[i] ~= '' then
    		addtext(privatemsgs[i], 0, ((maxrows+i+1)*fontspacing) - (maxrows*fontspacing))
    	end
    end
    Try my General Info HUD too
    Last edited by ToadZ; 07-28-2012 at 02:49 AM.

  2. #2
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Nize jub

  3. #3
    iBot User mlim!'s Avatar
    Join Date
    Jun 2012
    Location
    São Paulo, Brasil
    Posts
    433
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    17
    Rep Power
    5
    Testado e aprovados cvom suas duas HUD

    Click image for larger version. 

Name:	PM.jpg 
Views:	538 
Size:	104.0 KB 
ID:	4862

    =]
    Last edited by ¿mlim!; 07-30-2012 at 07:54 PM.


    "Não há vida no vazio, só a morte"

  4. #4
    iBot User Noxuos's Avatar
    Join Date
    Mar 2012
    Location
    iBot Forums
    Posts
    852
    Mentioned
    6 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    167
    Rep Power
    7
    really nice, will be very useful
    impressed!
    123456789123456789

    Script Voc Video Of Script 100% AFK
    [300+]Zao Walls Main Floor And Floor Up Ava SD and Spell Version ED|MS Video On TibiaCast/YouTube
    [200+]Deeplings Stage 1 West Side ED|MS|RP|EK Video On TibiaCast/YouTube
    [150+]Yalahar Bog Raiders Optional Nightmare And Destroyer Elite Knight Video On TibiaCast/YouTube
    •Noxuos Scripts Screen Shot Project Click Here! •Sell 340 RP Open-PVP: Transferable: Pm With Offers Noxuos Scripts Character Shop Click Here

    •New Poll Which voc do you want to see more scripts of? Check out my thread to vote •Sell 264 ED PvP: Transferable: 80 voucher days! •Accepting Tibia Cash On All New Scripts



  5. #5
    Normal User
    Join Date
    Jun 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    not working for me? strange

  6. #6
    Normal User
    Join Date
    Oct 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    thanks very usefull, nice job reped

  7. #7
    Normal User
    Join Date
    Oct 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    If you could do the same for loots like did EKX, red colors for loot with rare, green for regular loot, and it shows last 6-7 loot

  8. #8
    Normal User
    Join Date
    Aug 2012
    Location
    venezuela
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    6
    Rep Power
    0
    Thx but local maxlength = 250 -- Trim your message, 0 to not trim. now PERFECT

  9. #9
    Normal User
    Join Date
    May 2012
    Location
    England
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    I think a "Recent PM HUD" should really show private messages (when you consider that the abbreviation PM means private message, it makes little sense for it not to).

    Good share though, well done.

  10. #10
    Banned
    Join Date
    May 2012
    Posts
    1,081
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Quote Originally Posted by Afro Samurai View Post
    If you could do the same for loots like did EKX, red colors for loot with rare, green for regular loot, and it shows last 6-7 loot
    We already have it, idk the others but our scripts from BUgWT have it.

Posting Permissions

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