Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] U added it to the scriptloader.cpp?

[DiscordArchive] U added it to the scriptloader.cpp?

[DiscordArchive] U added it to the scriptloader.cpp?

Pages (5): 1 2 3 4 5 Next
rektbyfaith
Administrator
0
05-31-2023, 06:34 PM
#1
Archived author: M'Dic • Posted: 2023-05-31T18:34:15.298000+00:00
Original source

U added it to the scriptloader.cpp?
rektbyfaith
05-31-2023, 06:34 PM #1

Archived author: M'Dic • Posted: 2023-05-31T18:34:15.298000+00:00
Original source

U added it to the scriptloader.cpp?

rektbyfaith
Administrator
0
05-31-2023, 06:34 PM
#2
Archived author: Averdrity • Posted: 2023-05-31T18:34:20.242000+00:00
Original source

Yeah
rektbyfaith
05-31-2023, 06:34 PM #2

Archived author: Averdrity • Posted: 2023-05-31T18:34:20.242000+00:00
Original source

Yeah

rektbyfaith
Administrator
0
05-31-2023, 06:38 PM
#3
Archived author: M'Dic • Posted: 2023-05-31T18:38:49.995000+00:00
Original source

Where exactly are those hooks handled?
rektbyfaith
05-31-2023, 06:38 PM #3

Archived author: M'Dic • Posted: 2023-05-31T18:38:49.995000+00:00
Original source

Where exactly are those hooks handled?

rektbyfaith
Administrator
0
05-31-2023, 06:40 PM
#4
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.
rektbyfaith
05-31-2023, 06:40 PM #4

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.

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#5
Archived author: M'Dic • Posted: 2023-05-31T18:42:14.548000+00:00
Original source

Classic chatgpt
rektbyfaith
05-31-2023, 06:42 PM #5

Archived author: M'Dic • Posted: 2023-05-31T18:42:14.548000+00:00
Original source

Classic chatgpt

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#6
Archived author: Averdrity • Posted: 2023-05-31T18:42:18.994000+00:00
Original source

rektbyfaith
05-31-2023, 06:42 PM #6

Archived author: Averdrity • Posted: 2023-05-31T18:42:18.994000+00:00
Original source

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#7
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
rektbyfaith
05-31-2023, 06:42 PM #7

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

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#8
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
rektbyfaith
05-31-2023, 06:42 PM #8

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

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#9
Archived author: M'Dic • Posted: 2023-05-31T18:42:39.075000+00:00
Original source

U added the sql i assumed
rektbyfaith
05-31-2023, 06:42 PM #9

Archived author: M'Dic • Posted: 2023-05-31T18:42:39.075000+00:00
Original source

U added the sql i assumed

rektbyfaith
Administrator
0
05-31-2023, 06:42 PM
#10
Archived author: Averdrity • Posted: 2023-05-31T18:42:43.281000+00:00
Original source

Yes
rektbyfaith
05-31-2023, 06:42 PM #10

Archived author: Averdrity • Posted: 2023-05-31T18:42:43.281000+00:00
Original source

Yes

Pages (5): 1 2 3 4 5 Next
Recently Browsing
 
Recently Browsing