Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Right, so. The events I need to override are contained in the class `class TC_GAME_API WorldScript :

[DiscordArchive] Right, so. The events I need to override are contained in the class `class TC_GAME_API WorldScript :

[DiscordArchive] Right, so. The events I need to override are contained in the class `class TC_GAME_API WorldScript :

rektbyfaith
Administrator
0
03-02-2023, 06:54 PM
#1
Archived author: FiftyTifty • Posted: 2023-03-02T18:54:14.111000+00:00
Original source

Right, so. The events I need to override are contained in the class `class TC_GAME_API WorldScript : public ScriptObject`. But to override, I need the appropriate .h file. `World.h` doesn't have `OnStartup` or `OnShutdown`.

I see that the ScriptMgr calls `FOREACH_SCRIPT(WorldScript)->OnStartup();`, so my script shouldn't be in `scripts_custom`?
rektbyfaith
03-02-2023, 06:54 PM #1

Archived author: FiftyTifty • Posted: 2023-03-02T18:54:14.111000+00:00
Original source

Right, so. The events I need to override are contained in the class `class TC_GAME_API WorldScript : public ScriptObject`. But to override, I need the appropriate .h file. `World.h` doesn't have `OnStartup` or `OnShutdown`.

I see that the ScriptMgr calls `FOREACH_SCRIPT(WorldScript)->OnStartup();`, so my script shouldn't be in `scripts_custom`?

rektbyfaith
Administrator
0
03-02-2023, 06:54 PM
#2
Archived author: FiftyTifty • Posted: 2023-03-02T18:54:29.086000+00:00
Original source

But rather `scripts_world`?
rektbyfaith
03-02-2023, 06:54 PM #2

Archived author: FiftyTifty • Posted: 2023-03-02T18:54:29.086000+00:00
Original source

But rather `scripts_world`?

rektbyfaith
Administrator
0
03-02-2023, 07:05 PM
#3
Archived author: Tea • Posted: 2023-03-02T19:05:08.430000+00:00
Original source

it doesnt matter
rektbyfaith
03-02-2023, 07:05 PM #3

Archived author: Tea • Posted: 2023-03-02T19:05:08.430000+00:00
Original source

it doesnt matter

rektbyfaith
Administrator
0
03-02-2023, 07:08 PM
#4
Archived author: FiftyTifty • Posted: 2023-03-02T19:08:36.320000+00:00
Original source

Gotcha. But I will need a header for that? Or nah?
rektbyfaith
03-02-2023, 07:08 PM #4

Archived author: FiftyTifty • Posted: 2023-03-02T19:08:36.320000+00:00
Original source

Gotcha. But I will need a header for that? Or nah?

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