[DiscordArchive] U added it to the scriptloader.cpp?
[DiscordArchive] U added it to the scriptloader.cpp?
Archived author: M'Dic • Posted: 2023-05-31T18:34:15.298000+00:00
Original source
U added it to the scriptloader.cpp?
Archived author: Averdrity • Posted: 2023-05-31T18:34:20.242000+00:00
Original source
Yeah
Archived author: M'Dic • Posted: 2023-05-31T18:38:49.995000+00:00
Original source
Where exactly are those hooks handled?
Archived author: Averdrity • Posted: 2023-05-31T18:40:43.107000+00:00
Original source
In the provided script, the hooks are handled within the HardcoreModeScript class, specifically within the following member functions:
void OnCharacterCreate(Player* player): This function is called when a new character is created. It stores the character's information in the database by calling the StoreCharacterInfo function.
void OnLogin(Player* player, bool /*firstLogin*/): This function is called when a player logs into the game. It sends a welcome message to the player by calling the SendWelcomeMessage function.
void OnDeath(Player* player, Unit* killer): This function is called when a player's character dies. It handles the character's death by sending death notifications, storing death information in the database, and sending a death message to the world. It accomplishes this by calling the HandleCharacterDeath function.
void OnResurrect(Player* player): This function is called when a player attempts to resurrect their character. It prevents the resurrection and sends a notification message to the player by calling the PreventResurrection function.
These member functions are part of the HardcoreModeScript class, which inherits from the PlayerScript class. The PlayerScript class provides hooks that allow you to handle specific events related to player characters, such as character creation, login, death, and resurrection. By overriding these functions in the HardcoreModeScript class, you can customize the behavior of your script to perform specific actions when these events occur.
Archived author: M'Dic • Posted: 2023-05-31T18:42:14.548000+00:00
Original source
Classic chatgpt
Archived author: Averdrity • Posted: 2023-05-31T18:42:18.994000+00:00
Original source
Archived author: Averdrity • Posted: 2023-05-31T18:42:33.471000+00:00
Original source
I asked if it applied to Trinity Core 3.3.5 API
Archived author: M'Dic • Posted: 2023-05-31T18:42:33.568000+00:00
Original source
So let me ask you on the human side of things
Archived author: M'Dic • Posted: 2023-05-31T18:42:39.075000+00:00
Original source
U added the sql i assumed
Archived author: Averdrity • Posted: 2023-05-31T18:42:43.281000+00:00
Original source
Yes