Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Any clue about the trainers?

[DiscordArchive] Any clue about the trainers?

[DiscordArchive] Any clue about the trainers?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
07-03-2023, 08:19 AM
#1
Archived author: Lucian Tudorache • Posted: 2023-07-03T08:19:24.779000+00:00
Original source

Any clue about the trainers?
rektbyfaith
07-03-2023, 08:19 AM #1

Archived author: Lucian Tudorache • Posted: 2023-07-03T08:19:24.779000+00:00
Original source

Any clue about the trainers?

rektbyfaith
Administrator
0
07-03-2023, 08:36 AM
#2
Archived author: <o> • Posted: 2023-07-03T08:36:09.502000+00:00
Original source

`trainer`, `trainer_spell` (sql tables) and `SkillLineAbility.dbc` for trainer spells. might also need `SkillRaceClassInfo.dbc` set up but don't remember if you did
rektbyfaith
07-03-2023, 08:36 AM #2

Archived author: <o> • Posted: 2023-07-03T08:36:09.502000+00:00
Original source

`trainer`, `trainer_spell` (sql tables) and `SkillLineAbility.dbc` for trainer spells. might also need `SkillRaceClassInfo.dbc` set up but don't remember if you did

rektbyfaith
Administrator
0
07-03-2023, 08:40 AM
#3
Archived author: Lucian Tudorache • Posted: 2023-07-03T08:40:29.566000+00:00
Original source

I'm more curious into making just custom NPCs which have already existing Trainer IDs. As an example, if I'm making a custom NPC and making it use the Trainer ID for Warrior Trainer, the Gossips are shown incorrect because I'm getting the "Player X requested wrong trainer" and I assume that might cause it...
rektbyfaith
07-03-2023, 08:40 AM #3

Archived author: Lucian Tudorache • Posted: 2023-07-03T08:40:29.566000+00:00
Original source

I'm more curious into making just custom NPCs which have already existing Trainer IDs. As an example, if I'm making a custom NPC and making it use the Trainer ID for Warrior Trainer, the Gossips are shown incorrect because I'm getting the "Player X requested wrong trainer" and I assume that might cause it...

rektbyfaith
Administrator
0
07-03-2023, 08:41 AM
#4
Archived author: Lucian Tudorache • Posted: 2023-07-03T08:41:43.043000+00:00
Original source

Also impossible to have 2 Gossip_Menu options, one for the specific class accessing the Trainer, and one for any other class which should have displayed another Gossip...
rektbyfaith
07-03-2023, 08:41 AM #4

Archived author: Lucian Tudorache • Posted: 2023-07-03T08:41:43.043000+00:00
Original source

Also impossible to have 2 Gossip_Menu options, one for the specific class accessing the Trainer, and one for any other class which should have displayed another Gossip...

rektbyfaith
Administrator
0
07-03-2023, 08:41 AM
#5
Archived author: <o> • Posted: 2023-07-03T08:41:52.552000+00:00
Original source

that happens because if there's only one gossip option then the client will attempt to select the first one, and then the server errors because the player isn't supposed to be able to select that option.

the way the core does this normally is to attach a condition on the option so that it's only sent to the client if they have the correct class to begin with
rektbyfaith
07-03-2023, 08:41 AM #5

Archived author: <o> • Posted: 2023-07-03T08:41:52.552000+00:00
Original source

that happens because if there's only one gossip option then the client will attempt to select the first one, and then the server errors because the player isn't supposed to be able to select that option.

the way the core does this normally is to attach a condition on the option so that it's only sent to the client if they have the correct class to begin with

rektbyfaith
Administrator
0
07-03-2023, 08:43 AM
#6
Archived author: <o> • Posted: 2023-07-03T08:43:28.844000+00:00
Original source

iirc it's two conditions, one for the option itself and one for the text to display in the gossip, you can check the `condition` documentation for the core you're using
rektbyfaith
07-03-2023, 08:43 AM #6

Archived author: <o> • Posted: 2023-07-03T08:43:28.844000+00:00
Original source

iirc it's two conditions, one for the option itself and one for the text to display in the gossip, you can check the `condition` documentation for the core you're using

rektbyfaith
Administrator
0
07-03-2023, 08:43 AM
#7
Archived author: <o> • Posted: 2023-07-03T08:43:54.189000+00:00
Original source

or if you need even more fine-grained control, use a creature script
rektbyfaith
07-03-2023, 08:43 AM #7

Archived author: <o> • Posted: 2023-07-03T08:43:54.189000+00:00
Original source

or if you need even more fine-grained control, use a creature script

rektbyfaith
Administrator
0
07-03-2023, 08:44 AM
#8
Archived author: Lucian Tudorache • Posted: 2023-07-03T08:44:19.803000+00:00
Original source

I'm using TrinityCore, and tried to replicate classes trainer duplicating the already existing Creatures Template
rektbyfaith
07-03-2023, 08:44 AM #8

Archived author: Lucian Tudorache • Posted: 2023-07-03T08:44:19.803000+00:00
Original source

I'm using TrinityCore, and tried to replicate classes trainer duplicating the already existing Creatures Template

rektbyfaith
Administrator
0
07-03-2023, 08:44 AM
#9
Archived author: Lucian Tudorache • Posted: 2023-07-03T08:44:41.365000+00:00
Original source

That's why I thought these might be hard-coded
rektbyfaith
07-03-2023, 08:44 AM #9

Archived author: Lucian Tudorache • Posted: 2023-07-03T08:44:41.365000+00:00
Original source

That's why I thought these might be hard-coded

rektbyfaith
Administrator
0
07-03-2023, 08:44 AM
#10
Archived author: <o> • Posted: 2023-07-03T08:44:56.854000+00:00
Original source

nah it's not hardcoded, you just need to also port the `conditions` entries
rektbyfaith
07-03-2023, 08:44 AM #10

Archived author: <o> • Posted: 2023-07-03T08:44:56.854000+00:00
Original source

nah it's not hardcoded, you just need to also port the `conditions` entries

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