PDA

View Full Version : Improve Recent LOOT Hud



alehopper
01-16-2016, 05:41 AM
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:
http://i.imgur.com/vrjrOcJ.png


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. :(

alehopper
01-19-2016, 06:27 PM
i will pay for script like this. 10$

alehopper
01-21-2016, 05:34 AM
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)

Stusse
01-21-2016, 09:38 AM
Check PM!

/Stusse

l4z
01-22-2016, 08:03 PM
Hi Stusse & alehopper
Is it possible to get this script aswell? :)
Thanks!

alehopper
01-23-2016, 04:50 AM
Hi Stusse & alehopper
Is it possible to get this script aswell? :)
Thanks!

no script so far ;/

alehopper
01-23-2016, 05:03 AM
I've messed around a bit with some example scripts and I managed to do this:
http://i.imgur.com/FxguBfl.png

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.


--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)

Fatality
01-24-2016, 06:42 PM
I've messed around a bit with some example scripts and I managed to do this:
http://i.imgur.com/FxguBfl.png

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.


--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.

dean015
01-25-2016, 05:24 PM
this would be a really nice feature !

alehopper
02-01-2016, 01:28 AM
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

dean015
02-03-2016, 06:11 PM
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

:( its a real shame

alehopper
02-04-2016, 04:01 AM
:( its a real shame

yeah men
atleast there is tibialyzer that came out some days ago :)
it looks like this:
http://i.imgur.com/zL7BOKo.jpg
shows total profit after a hunt and it shows notifications when you loot good items

its meant to be a 100% legal program but yeah it might not be legal program right but the owner basically just wants to make an overlay that gives you better info about exp per h, loot stats etc than what the regular client does.
u can follow what happens with it here: https://www.reddit.com/r/TibiaMMO/comments/43vy5c/my_tibialyzer_experience_15_hr_heroes/

i'm using it on my noob char atm and it's really really awwesome :D


some more examples:
https://i.imgur.com/5vJ8VJx.jpg
https://i.imgur.com/bolKlNc.png
https://i.imgur.com/iLeZtsm.png

with this program i wont need this loot script or maybe not even xenobot at all anymore :)
instead i donated the $10 i offered for making loot script i gave it to the owner of the program.

dean015
02-04-2016, 04:29 AM
yeah men
atleast there is tibialyzer that came out some days ago :)
it looks like this:
http://i.imgur.com/zL7BOKo.jpg
shows total profit after a hunt and it shows notifications when you loot good items

its meant to be a 100% legal program but yeah it might not be legal program right but the owner basically just wants to make an overlay that gives you better info about exp per h, loot stats etc than what the regular client does.
u can follow what happens with it here: https://www.reddit.com/r/TibiaMMO/comments/43vy5c/my_tibialyzer_experience_15_hr_heroes/

i'm using it on my noob char atm and it's really really awwesome :D


some more examples:
https://i.imgur.com/5vJ8VJx.jpg
https://i.imgur.com/bolKlNc.png
https://i.imgur.com/iLeZtsm.png

with this program i wont need this loot script or maybe not even xenobot at all anymore :)
instead i donated the $10 i offered for making loot script i gave it to the owner of the program.

yeah i seen that i was gona wait a while befor using it, is it possible to get hacked using something like this ?

alehopper
02-04-2016, 06:24 AM
yeah i seen that i was gona wait a while befor using it, is it possible to get hacked using something like this ?

nah u won't get hacked but it's not 100% safe to use yet in terms of getting banned i think