[DiscordArchive] I'd like to implement a feature where grey items you loot are automatically turned into gold. I can
[DiscordArchive] I'd like to implement a feature where grey items you loot are automatically turned into gold. I can
Archived author: KJack • Posted: 2023-05-09T17:31:06.102000+00:00
Original source
I'd like to implement a feature where grey items you loot are automatically turned into gold. I can see a couple of places in the codebase where I might accomplish that. Is there a clear winner on what class and function I should do this in?
Archived author: Revision • Posted: 2023-05-09T17:50:09.745000+00:00
Original source
`Player::SendLoot` might be what you're looking for
Archived author: KJack • Posted: 2023-05-09T17:53:11.562000+00:00
Original source
let me take a look. want to be sure i'm not affecting things like taking gear on and off, buying it from a vendor, etc - literally just want it to happen when you loot a grey from creatures or items.
Archived author: Revision • Posted: 2023-05-09T17:53:32.928000+00:00
Original source
Yeah, SendLoot generates the loot afaik.
Archived author: Revision • Posted: 2023-05-09T17:53:56.862000+00:00
Original source
You actually gave me an excuse to do it myself because I'm so sick of my inventory filling up with these useless items. The idea is to take the sell price of the item and just add that instead, I guess.
Archived author: KJack • Posted: 2023-05-09T17:54:03.028000+00:00
Original source
via LootMgr, which I've been messing with some for a separate feature.
Archived author: KJack • Posted: 2023-05-09T17:54:20.816000+00:00
Original source
yes, exactly. I still want to see the loot, but when i click it to loot it, I want the money to hit my bags instead.
Archived author: Revision • Posted: 2023-05-09T17:54:29.359000+00:00
Original source
That's different then
Archived author: KJack • Posted: 2023-05-09T17:55:13.092000+00:00
Original source
i do see in LootMgr that I can add more money to the loot window instead of the item, which would functionally accomplish what I want. but it would be pretty invisible.
Archived author: Revision • Posted: 2023-05-09T17:56:17.951000+00:00
Original source
That's what I'm going to do instead of having items that would make the player wonder where the items went. Of course I'm the only player but I'm sure you get the flaws of converting the item into gold after looting it.