[DiscordArchive] or maybe improve the support for bots in the core?
[DiscordArchive] or maybe improve the support for bots in the core?
Archived author: Zeeg • Posted: 2018-05-13T14:17:34.107000+00:00
Original source
or maybe improve the support for bots in the core?
Archived author: Zeeg • Posted: 2018-05-13T14:17:44.837000+00:00
Original source
bots in general
Archived author: ayase • Posted: 2018-05-13T14:18:21.631000+00:00
Original source
Eluna needs a lot of hooks. This can't be avoided. Although some c++ hooks can be used to reduce the core changes.
Archived author: ayase • Posted: 2018-05-13T14:24:29.644000+00:00
Original source
Such as:
Add the file playerhooks.cpp
```
Archived author: ayase • Posted: 2018-05-13T14:24:35.438000+00:00
Original source
class ElunaPlayerHooks : public PlayerScript
{
public:
ElunaPlayerHooks() : PlayerScript("ElunaPlayerHooks"){}
void OnLogin(Player* player,bool FirstLogin)
{
#ifdef ELUNA
if (FirstLogin)
sEluna->OnFirstLogin(player);
sEluna->OnLogin(player);
#endif
}
};
Archived author: ayase • Posted: 2018-05-13T14:25:02.343000+00:00
Original source
```
This reduces core changes.
Archived author: Deleted User • Posted: 2018-05-13T14:25:36.577000+00:00
Original source
Use code brackets
Archived author: Deleted User • Posted: 2018-05-13T14:25:47.257000+00:00
Original source
\```
\```
Archived author: ayase • Posted: 2018-05-13T14:27:20.330000+00:00
Original source
Archived author: Deleted User • Posted: 2018-05-13T14:27:25.493000+00:00
Original source