[DiscordArchive] So this is already possible?
[DiscordArchive] So this is already possible?
Archived author: Dioxain • Posted: 2025-08-12T05:46:31.654000+00:00
Original source
So this is already possible?
Archived author: Dioxain • Posted: 2025-08-12T05:46:58.225000+00:00
Original source
Precisely 
Archived author: Mithria • Posted: 2025-08-12T05:47:20.604000+00:00
Original source
when worldserver is launched, it tries to connect to world db. if no world db is found, it asks to create it, and if you say yes, it creates the db, all tables in it, and populates them. then applies all updates to it
Archived author: [PD] Tlosk • Posted: 2025-08-12T05:48:57.093000+00:00
Original source
and on a fresh database, you could query all the vendors with the item-repair flag and get their entityID, save that separately, and use that to build a rebuild query if you ever wanted to allow it
Archived author: Mithria • Posted: 2025-08-12T05:49:29.629000+00:00
Original source
I don't think I'm properly understanding what the issue is lol
Archived author: Dioxain • Posted: 2025-08-12T05:50:20.191000+00:00
Original source
I didn't realise that what I was asking for was already possible. I suppose the only thing missing is automating this.
Archived author: Dioxain • Posted: 2025-08-12T05:52:45.766000+00:00
Original source
To be honest, I'd actually rather not touch the database at all. When I first started working on this, I was going to try to intercept some "send vendor window to client" event and remove the repair flag or something. Except that I don't think WoW/AzerothCore works like that?
From what I can tell, which could be entirely wrong, is that the server sends NPC data to the client which includes the flag, so the client is the one who creates the vendor window, and then asks the server what items are sold by the vendor.
Either way, I'd much, *much* prefer it if I could do this through a module script, ie, through code, rather than messing with the database that would necessitate database rebuilding.
Archived author: Mithria • Posted: 2025-08-12T05:54:10.281000+00:00
Original source
i rebuild my database a lot. having all changes in separate sql scripts makes dropping and rebuilding acore-world trivial but thats just me
Archived author: Dioxain • Posted: 2025-08-12T05:55:08.220000+00:00
Original source
Thing is, I can't even find where NPC data (including its flags) is sent to the client. I am very new to C++ though xD
Archived author: Dioxain • Posted: 2025-08-12T05:55:49.394000+00:00
Original source
I'm also not very accustomed to a lot of the C++'isms/AzerothCore'isms, like scripts registering themselves in their super-constructor xD