[DiscordArchive] Do I need to modify anything else?
[DiscordArchive] Do I need to modify anything else?
Archived author: Minadude • Posted: 2025-01-31T15:51:00.175000+00:00
Original source
and do't forget the NPC entry id is read from the config file, you could hard coded here if you want:
replace this:
uint32 vendor_id = sWorld->getRate(VENDOR_ID);
with this:
uint32 vendor_id = 123456 <---- your creature template entry
Archived author: Minadude • Posted: 2025-01-31T15:51:27.017000+00:00
Original source
good luck!
Archived author: Deleted User • Posted: 2025-01-31T15:51:45.898000+00:00
Original source
Appreciate it
Archived author: Deleted User • Posted: 2025-01-31T15:52:17.630000+00:00
Original source
I'll probably do it via config
Archived author: Deleted User • Posted: 2025-01-31T15:52:32.753000+00:00
Original source
So just copy and paste it into world conf?
Archived author: Minadude • Posted: 2025-01-31T15:52:53.642000+00:00
Original source
no you gotta code it in the worldconfig "loader"
Archived author: Deleted User • Posted: 2025-01-31T15:55:39.514000+00:00
Original source
Ahh okay
Archived author: Minadude • Posted: 2025-01-31T15:56:49.221000+00:00
Original source
add something like this to the world.cpp file inside World::LoadConfigSettings
rate_values[VENDOR_ID] = sConfigMgr->GetIntDefault("Vendor.ID", 123456);
VENDOR_ID ---> has to be added to the header file of course
Vendor.ID ----> would be the actual line to add in the worldconfig.conf with the value of 123456 for example.
Archived author: Minadude • Posted: 2025-01-31T15:57:11.237000+00:00
Original source
then you can use this line:
uint32 vendor_id = sWorld->getRate(VENDOR_ID);