Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So this is already possible?

[DiscordArchive] So this is already possible?

[DiscordArchive] So this is already possible?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
08-12-2025, 05:46 AM
#1
Archived author: Dioxain • Posted: 2025-08-12T05:46:31.654000+00:00
Original source

So this is already possible?
rektbyfaith
08-12-2025, 05:46 AM #1

Archived author: Dioxain • Posted: 2025-08-12T05:46:31.654000+00:00
Original source

So this is already possible?

rektbyfaith
Administrator
0
08-12-2025, 05:46 AM
#2
Archived author: Dioxain • Posted: 2025-08-12T05:46:58.225000+00:00
Original source

Precisely Big Grin
rektbyfaith
08-12-2025, 05:46 AM #2

Archived author: Dioxain • Posted: 2025-08-12T05:46:58.225000+00:00
Original source

Precisely Big Grin

rektbyfaith
Administrator
0
08-12-2025, 05:47 AM
#3
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
rektbyfaith
08-12-2025, 05:47 AM #3

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

rektbyfaith
Administrator
0
08-12-2025, 05:48 AM
#4
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
rektbyfaith
08-12-2025, 05:48 AM #4

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

rektbyfaith
Administrator
0
08-12-2025, 05:49 AM
#5
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
rektbyfaith
08-12-2025, 05:49 AM #5

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

rektbyfaith
Administrator
0
08-12-2025, 05:50 AM
#6
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.
rektbyfaith
08-12-2025, 05:50 AM #6

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.

rektbyfaith
Administrator
0
08-12-2025, 05:52 AM
#7
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.
rektbyfaith
08-12-2025, 05:52 AM #7

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.

rektbyfaith
Administrator
0
08-12-2025, 05:54 AM
#8
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
rektbyfaith
08-12-2025, 05:54 AM #8

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

rektbyfaith
Administrator
0
08-12-2025, 05:55 AM
#9
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
rektbyfaith
08-12-2025, 05:55 AM #9

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

rektbyfaith
Administrator
0
08-12-2025, 05:55 AM
#10
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
rektbyfaith
08-12-2025, 05:55 AM #10

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

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