[DiscordArchive] Hopefully I won't get shot asking this question:
[DiscordArchive] Hopefully I won't get shot asking this question:
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?
Archived author: ModoX • Posted: 2023-01-15T03:27:52.904000+00:00
Original source
<https://github.com/TrinityCore/TrinityCore/commit/10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7> heres an example
Archived author: Ellienore • Posted: 2023-01-15T03:28:28.436000+00:00
Original source
Thanks!
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.