Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Could you create in a .h file options, such as ON_PLAYER_LOGIN = 3, so that instead of using the num

[DiscordArchive] Could you create in a .h file options, such as ON_PLAYER_LOGIN = 3, so that instead of using the num

[DiscordArchive] Could you create in a .h file options, such as ON_PLAYER_LOGIN = 3, so that instead of using the num

rektbyfaith
Administrator
0
12-15-2020, 01:27 AM
#1
Archived author: stevej • Posted: 2020-12-15T01:27:56.124000+00:00
Original source

Could you create in a .h file options, such as ON_PLAYER_LOGIN = 3, so that instead of using the number, the visual studio itself or whatever you use to create the code, detects these values and offers them?
rektbyfaith
12-15-2020, 01:27 AM #1

Archived author: stevej • Posted: 2020-12-15T01:27:56.124000+00:00
Original source

Could you create in a .h file options, such as ON_PLAYER_LOGIN = 3, so that instead of using the number, the visual studio itself or whatever you use to create the code, detects these values and offers them?

rektbyfaith
Administrator
0
12-15-2020, 01:30 AM
#2
Archived author: stevej • Posted: 2020-12-15T01:30:21.006000+00:00
Original source

It seems that it already exists.
rektbyfaith
12-15-2020, 01:30 AM #2

Archived author: stevej • Posted: 2020-12-15T01:30:21.006000+00:00
Original source

It seems that it already exists.

rektbyfaith
Administrator
0
12-15-2020, 01:30 AM
#3
Archived author: stevej • Posted: 2020-12-15T01:30:54.174000+00:00
Original source

```c++
enum PlayerEvents
{
PLAYER_EVENT_ON_CHARACTER_CREATE = 1, // (event, player)
PLAYER_EVENT_ON_CHARACTER_DELETE = 2, // (event, guid)
PLAYER_EVENT_ON_LOGIN = 3, // (event, player)
PLAYER_EVENT_ON_LOGOUT = 4, // (event, player)
PLAYER_EVENT_ON_SPELL_CAST = 5, // (event, player, spell, skipCheck)
PLAYER_EVENT_ON_KILL_PLAYER = 6, // (event, killer, killed)
PLAYER_EVENT_ON_KILL_CREATURE = 7, // (event, killer, killed)
PLAYER_EVENT_ON_KILLED_BY_CREATURE = 8, // (event, killer, killed)
PLAYER_EVENT_ON_DUEL_REQUEST = 9, // (event, target, challenger)
PLAYER_EVENT_ON_DUEL_START = 10, // (event, player1, player2)
PLAYER_EVENT_ON_DUEL_END = 11, // (event, winner, loser, type)
PLAYER_EVENT_ON_GIVE_XP = 12, // (event, player, amount, victim) - Can return new XP amount
...
}
```
rektbyfaith
12-15-2020, 01:30 AM #3

Archived author: stevej • Posted: 2020-12-15T01:30:54.174000+00:00
Original source

```c++
enum PlayerEvents
{
PLAYER_EVENT_ON_CHARACTER_CREATE = 1, // (event, player)
PLAYER_EVENT_ON_CHARACTER_DELETE = 2, // (event, guid)
PLAYER_EVENT_ON_LOGIN = 3, // (event, player)
PLAYER_EVENT_ON_LOGOUT = 4, // (event, player)
PLAYER_EVENT_ON_SPELL_CAST = 5, // (event, player, spell, skipCheck)
PLAYER_EVENT_ON_KILL_PLAYER = 6, // (event, killer, killed)
PLAYER_EVENT_ON_KILL_CREATURE = 7, // (event, killer, killed)
PLAYER_EVENT_ON_KILLED_BY_CREATURE = 8, // (event, killer, killed)
PLAYER_EVENT_ON_DUEL_REQUEST = 9, // (event, target, challenger)
PLAYER_EVENT_ON_DUEL_START = 10, // (event, player1, player2)
PLAYER_EVENT_ON_DUEL_END = 11, // (event, winner, loser, type)
PLAYER_EVENT_ON_GIVE_XP = 12, // (event, player, amount, victim) - Can return new XP amount
...
}
```

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