Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Do I need to modify anything else?

[DiscordArchive] Do I need to modify anything else?

[DiscordArchive] Do I need to modify anything else?

Pages (5): Previous 1 2 3 4 5
rektbyfaith
Administrator
0
01-31-2025, 03:51 PM
#41
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
rektbyfaith
01-31-2025, 03:51 PM #41

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

rektbyfaith
Administrator
0
01-31-2025, 03:51 PM
#42
Archived author: Minadude • Posted: 2025-01-31T15:51:27.017000+00:00
Original source

good luck!
rektbyfaith
01-31-2025, 03:51 PM #42

Archived author: Minadude • Posted: 2025-01-31T15:51:27.017000+00:00
Original source

good luck!

rektbyfaith
Administrator
0
01-31-2025, 03:51 PM
#43
Archived author: Deleted User • Posted: 2025-01-31T15:51:45.898000+00:00
Original source

Appreciate it
rektbyfaith
01-31-2025, 03:51 PM #43

Archived author: Deleted User • Posted: 2025-01-31T15:51:45.898000+00:00
Original source

Appreciate it

rektbyfaith
Administrator
0
01-31-2025, 03:52 PM
#44
Archived author: Deleted User • Posted: 2025-01-31T15:52:17.630000+00:00
Original source

I'll probably do it via config
rektbyfaith
01-31-2025, 03:52 PM #44

Archived author: Deleted User • Posted: 2025-01-31T15:52:17.630000+00:00
Original source

I'll probably do it via config

rektbyfaith
Administrator
0
01-31-2025, 03:52 PM
#45
Archived author: Deleted User • Posted: 2025-01-31T15:52:32.753000+00:00
Original source

So just copy and paste it into world conf?
rektbyfaith
01-31-2025, 03:52 PM #45

Archived author: Deleted User • Posted: 2025-01-31T15:52:32.753000+00:00
Original source

So just copy and paste it into world conf?

rektbyfaith
Administrator
0
01-31-2025, 03:52 PM
#46
Archived author: Minadude • Posted: 2025-01-31T15:52:53.642000+00:00
Original source

no you gotta code it in the worldconfig "loader"
rektbyfaith
01-31-2025, 03:52 PM #46

Archived author: Minadude • Posted: 2025-01-31T15:52:53.642000+00:00
Original source

no you gotta code it in the worldconfig "loader"

rektbyfaith
Administrator
0
01-31-2025, 03:55 PM
#47
Archived author: Deleted User • Posted: 2025-01-31T15:55:39.514000+00:00
Original source

Ahh okay
rektbyfaith
01-31-2025, 03:55 PM #47

Archived author: Deleted User • Posted: 2025-01-31T15:55:39.514000+00:00
Original source

Ahh okay

rektbyfaith
Administrator
0
01-31-2025, 03:56 PM
#48
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.
rektbyfaith
01-31-2025, 03:56 PM #48

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.

rektbyfaith
Administrator
0
01-31-2025, 03:57 PM
#49
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);
rektbyfaith
01-31-2025, 03:57 PM #49

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);

Pages (5): Previous 1 2 3 4 5
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)