XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Improve Recent LOOT Hud

  1. #1

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Improve Recent LOOT Hud

    So i been using xenobot a bit for manually hunting lately and i've found it can be hard to see the loot when you're killing many monsters at the same time. I've seen in other bots where you can customize the colors if you loot something good in a monster and you could also see many more lines in the recent loot hud of that bot, but in xenobot it's just capped to 4 which isn't enough imo, I often have to take a look into the server log to see if I looted anything which defeats the purpose of that feature.

    So simply put:
    if we loot over 1k (customizable amount) in a mob, it should change loot text in recent loot from green to red (or some other color)
    make it possible to adjust the number of lines we see in the recent loot hud (right now it's capped to 4)
    maybe make the text size adjustable (not sure if possible, but smaller size, u can fit more on ur screen)

    Example:



    This would make the recent loot much better especially in big teamhunts etcetc. I guess this is also possible with a LUA script, so if someone experienced wants to do it, @shadowart im looking at u, plz do it xD


    EDIT::::::::::::::::::
    Seems like there's a script in examples already which works a bit better then the recent loot hud, with that script you see all the items in a new channel and you can set it to highlight certain items but still it would be better to have it highlight corpses over x amount and having it come up in the hud instead of in a new channel. I guess that script is simple to adjust for my needs if you have the knowledge, sadly I don't.
    Last edited by alehopper; 01-16-2016 at 06:04 AM.

  2. #2

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i will pay for script like this. 10$

  3. #3

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stusse View Post
    You can choose either to show only rare items -> hud -> use list. Then it Will only display looted items from list. That the normal hud. There is also a script that opens a new channel, just like Server log but only for loot. It red marks 'rare items'.

    If I'm not wrong this script exist in Examples when u download the bot.

    If it doesnt you can ask @Rydan he created this and I have it on my computer not home atm though. But he made it and it should be around the forums or Examples unless it got pruned. I think his version was also from list, so I remade it to show above X value instead, + special list (for items listed not as worth anything, i.e. mount items etc). Im not sure if that version also exist there in Examples or if it is updated.

    Maybe @Rydan or someone else knows.

    /Stusse

    Edit: didnt read the edit lol. :facepalm:
    Ty for reply. I been trying myself to make this script for about an hour, I got it kinda working by combining two example scripts but I still can't fix some things myself for that script since it's too advanced ;p

    If you can find the script I would love you, and I would even give you $10 for it even if you just post it as a normal thread for everyone to use (and before too if that's why you would post it xd, ill gift u on paypal if u gimme mail)
    Last edited by alehopper; 01-21-2016 at 06:26 AM.

  4. #4
    Lifetime Subscriber Stusse's Avatar
    Join Date
    Dec 2011
    Location
    solid-scripts.com
    Posts
    3,523
    Mentioned
    346 Post(s)
    Tagged
    1 Thread(s)
    Check PM!

    /Stusse

  5. #5
    l4z's Avatar
    Join Date
    Oct 2015
    Posts
    133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Stusse & alehopper
    Is it possible to get this script aswell?
    Thanks!

  6. #6

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by l4z View Post
    Hi Stusse & alehopper
    Is it possible to get this script aswell?
    Thanks!
    no script so far ;/

  7. #7

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've messed around a bit with some example scripts and I managed to do this:


    But I haven't gotten it to highlight loot so far, I've messed around ALOT tryin to get it to work but I just can't

    And here's the script without highlighting loot, maybe someone can try to add it? Else i'll keep trying xd Would also be good to be avle to adjust the position, I would love to use this together with shadowhud.
    Code:
    --set the title of the HUD
    local title = "Recent Loot:"
    local showTitle = true
    
    --set the number of messages to show
    local messageCount = 10
    
    --set the top left x and y coordinates of the HUD
    local location =
    {
    	x = 25,
    	y = 5
    }
    
    --set the colors for the HUD
    local colors = 
    {
    	message = {95, 247, 247},
    	title = {225, 225, 225},
    }
    
    -------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------
    
    --this creates the title HUD
    if (showTitle == true) then
    	local HUDTitle = HUD.CreateTextDisplay(location.x, location.y, title, unpack(colors.title))
    	location.y = location.y + 20 -- just offsets the y axis to below the header
    end
    
    --loop from 1 until messageCount, creating HUD objects for each
    local HUDData = {}
    for index = 1, messageCount do
    	local data = {}
    	
    	-- no message yet
    	data.message = ""
    	
    	--create the label HUD
    	data.label = HUD.CreateTextDisplay(
    							location.x,
    							-- +12 pixels to the y axis for every item
    							location.y + ((index - 1) * 12),
    							data.message,
    							-- text color
    							unpack(colors.message)
    						)
    						
    	--store the data to use later
    	HUDData[index] = data
    end
    
    --this is a proxy event which gets invoked when a private message is received
    LootMessageProxy.OnReceive("lootProxy", function (proxy, message)
    	local creature = string.match(message, "(.+):") --this stores the first part of the lootmessage "Loot of <monster>"
        local loot = string.match(message, ": (.+)") --this stores everything after the first part of the lootmessage "a gold coin, meat, 2 worms"
    	local message = creature .. ": " .. loot 
    	
    
    	
    	--this will move each message "up" (from index 4 to 3, 3 to 2, 2 to 1, etc)
    	for index = 1, messageCount-1 do
    		HUDData[index].message = HUDData[index+1].message
    		HUDData[index].label:SetText(HUDData[index].message)
    	end
    	
    	--this will put the new message in the last index
    	HUDData[messageCount].message = message
    	HUDData[messageCount].label:SetText(message)
    end)
    Last edited by alehopper; 01-23-2016 at 05:06 AM.

  8. #8
    Queen Fatality Fatality's Avatar
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    754
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by alehopper View Post
    I've messed around a bit with some example scripts and I managed to do this:


    But I haven't gotten it to highlight loot so far, I've messed around ALOT tryin to get it to work but I just can't

    And here's the script without highlighting loot, maybe someone can try to add it? Else i'll keep trying xd Would also be good to be avle to adjust the position, I would love to use this together with shadowhud.
    Code:
    --set the title of the HUD
    local title = "Recent Loot:"
    local showTitle = true
    
    --set the number of messages to show
    local messageCount = 10
    
    --set the top left x and y coordinates of the HUD
    local location =
    {
    	x = 25,
    	y = 5
    }
    
    --set the colors for the HUD
    local colors = 
    {
    	message = {95, 247, 247},
    	title = {225, 225, 225},
    }
    
    -------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------
    
    --this creates the title HUD
    if (showTitle == true) then
    	local HUDTitle = HUD.CreateTextDisplay(location.x, location.y, title, unpack(colors.title))
    	location.y = location.y + 20 -- just offsets the y axis to below the header
    end
    
    --loop from 1 until messageCount, creating HUD objects for each
    local HUDData = {}
    for index = 1, messageCount do
    	local data = {}
    	
    	-- no message yet
    	data.message = ""
    	
    	--create the label HUD
    	data.label = HUD.CreateTextDisplay(
    							location.x,
    							-- +12 pixels to the y axis for every item
    							location.y + ((index - 1) * 12),
    							data.message,
    							-- text color
    							unpack(colors.message)
    						)
    						
    	--store the data to use later
    	HUDData[index] = data
    end
    
    --this is a proxy event which gets invoked when a private message is received
    LootMessageProxy.OnReceive("lootProxy", function (proxy, message)
    	local creature = string.match(message, "(.+):") --this stores the first part of the lootmessage "Loot of <monster>"
        local loot = string.match(message, ": (.+)") --this stores everything after the first part of the lootmessage "a gold coin, meat, 2 worms"
    	local message = creature .. ": " .. loot 
    	
    
    	
    	--this will move each message "up" (from index 4 to 3, 3 to 2, 2 to 1, etc)
    	for index = 1, messageCount-1 do
    		HUDData[index].message = HUDData[index+1].message
    		HUDData[index].label:SetText(HUDData[index].message)
    	end
    	
    	--this will put the new message in the last index
    	HUDData[messageCount].message = message
    	HUDData[messageCount].label:SetText(message)
    end)
    I will look into it when i get some time. Won't be this week tho, busy with studying for exams.

  9. #9
    dean015's Avatar
    Join Date
    Nov 2015
    Posts
    119
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    this would be a really nice feature !

  10. #10

    Join Date
    May 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so not for even $10 noone wants to fix something like this even though 80% of the code is alrdy done XD such dead community fkin 90% of posts are same people bumping their trade threads everyday
    Last edited by alehopper; 02-01-2016 at 01:46 AM.

Posting Permissions

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