Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] I'd like to implement a feature where grey items you loot are automatically turned into gold. I can

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
05-09-2023, 05:31 PM
#1
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?
rektbyfaith
05-09-2023, 05:31 PM #1

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?

rektbyfaith
Administrator
0
05-09-2023, 05:50 PM
#2
Archived author: Revision • Posted: 2023-05-09T17:50:09.745000+00:00
Original source

`Player::SendLoot` might be what you're looking for
rektbyfaith
05-09-2023, 05:50 PM #2

Archived author: Revision • Posted: 2023-05-09T17:50:09.745000+00:00
Original source

`Player::SendLoot` might be what you're looking for

rektbyfaith
Administrator
0
05-09-2023, 05:53 PM
#3
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.
rektbyfaith
05-09-2023, 05:53 PM #3

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.

rektbyfaith
Administrator
0
05-09-2023, 05:53 PM
#4
Archived author: Revision • Posted: 2023-05-09T17:53:32.928000+00:00
Original source

Yeah, SendLoot generates the loot afaik.
rektbyfaith
05-09-2023, 05:53 PM #4

Archived author: Revision • Posted: 2023-05-09T17:53:32.928000+00:00
Original source

Yeah, SendLoot generates the loot afaik.

rektbyfaith
Administrator
0
05-09-2023, 05:53 PM
#5
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.
rektbyfaith
05-09-2023, 05:53 PM #5

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.

rektbyfaith
Administrator
0
05-09-2023, 05:54 PM
#6
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.
rektbyfaith
05-09-2023, 05:54 PM #6

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.

rektbyfaith
Administrator
0
05-09-2023, 05:54 PM
#7
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.
rektbyfaith
05-09-2023, 05:54 PM #7

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.

rektbyfaith
Administrator
0
05-09-2023, 05:54 PM
#8
Archived author: Revision • Posted: 2023-05-09T17:54:29.359000+00:00
Original source

That's different then
rektbyfaith
05-09-2023, 05:54 PM #8

Archived author: Revision • Posted: 2023-05-09T17:54:29.359000+00:00
Original source

That's different then

rektbyfaith
Administrator
0
05-09-2023, 05:55 PM
#9
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.
rektbyfaith
05-09-2023, 05:55 PM #9

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.

rektbyfaith
Administrator
0
05-09-2023, 05:56 PM
#10
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.
rektbyfaith
05-09-2023, 05:56 PM #10

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.

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)