Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hopefully I won't get shot asking this question:

[DiscordArchive] Hopefully I won't get shot asking this question:

[DiscordArchive] Hopefully I won't get shot asking this question:

rektbyfaith
Administrator
0
01-15-2023, 03:26 AM
#1
Archived author: Ellienore • Posted: 2023-01-15T03:26:03.056000+00:00
Original source

Hopefully I won't get shot asking this question:
I am trying to register my custom command script 'PhaseCommand' but I am having difficulty locating the appropriate location in the code, specifically the file where the command script registration takes place. Can you please assist me in finding the correct file and method for registering the script?
rektbyfaith
01-15-2023, 03:26 AM #1

Archived author: Ellienore • Posted: 2023-01-15T03:26:03.056000+00:00
Original source

Hopefully I won't get shot asking this question:
I am trying to register my custom command script 'PhaseCommand' but I am having difficulty locating the appropriate location in the code, specifically the file where the command script registration takes place. Can you please assist me in finding the correct file and method for registering the script?

rektbyfaith
Administrator
0
01-15-2023, 03:27 AM
#2
Archived author: ModoX • Posted: 2023-01-15T03:27:52.904000+00:00
Original source

<https://github.com/TrinityCore/TrinityCore/commit/10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7> heres an example
rektbyfaith
01-15-2023, 03:27 AM #2

Archived author: ModoX • Posted: 2023-01-15T03:27:52.904000+00:00
Original source

<https://github.com/TrinityCore/TrinityCore/commit/10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7> heres an example

rektbyfaith
Administrator
0
01-15-2023, 03:28 AM
#3
Archived author: Ellienore • Posted: 2023-01-15T03:28:28.436000+00:00
Original source

Thanks!
rektbyfaith
01-15-2023, 03:28 AM #3

Archived author: Ellienore • Posted: 2023-01-15T03:28:28.436000+00:00
Original source

Thanks!

rektbyfaith
Administrator
0
01-15-2023, 04:41 AM
#4
Archived author: Ellienore • Posted: 2023-01-15T04:41:34.955000+00:00
Original source

I don't think it's what I am looking for. I understand that the convention for command scripts in TrinityCore is to have them located in the src/server/scripts/Commands/ directory, with the file name starting with 'cs_'. However, I am unable to locate the specific file that I should be adding my new command script's registration to.
rektbyfaith
01-15-2023, 04:41 AM #4

Archived author: Ellienore • Posted: 2023-01-15T04:41:34.955000+00:00
Original source

I don't think it's what I am looking for. I understand that the convention for command scripts in TrinityCore is to have them located in the src/server/scripts/Commands/ directory, with the file name starting with 'cs_'. However, I am unable to locate the specific file that I should be adding my new command script's registration to.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)