Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] thank u <@216234897390436353> , do i have to put my "script" in the core or build folder ?

[DiscordArchive] thank u <@216234897390436353> , do i have to put my "script" in the core or build folder ?

[DiscordArchive] thank u <@216234897390436353> , do i have to put my "script" in the core or build folder ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
06-26-2025, 05:42 PM
#1
Archived author: Dyor • Posted: 2025-06-26T17:42:20.245000+00:00
Original source

thank u <@216234897390436353> , do i have to put my "script" in the core or build folder ?
rektbyfaith
06-26-2025, 05:42 PM #1

Archived author: Dyor • Posted: 2025-06-26T17:42:20.245000+00:00
Original source

thank u <@216234897390436353> , do i have to put my "script" in the core or build folder ?

rektbyfaith
Administrator
0
06-26-2025, 05:54 PM
#2
Archived author: ModoX • Posted: 2025-06-26T17:54:24.080000+00:00
Original source

we have some kind of order in the directory tree,
for dungeons/raids its:
`src/server/scripts/<continent>/<dungeon/raid>/boss_<bossname>.cpp`
for quests:
`src/server/scripts/<continent>/zone_<zone_name>.cpp`
rektbyfaith
06-26-2025, 05:54 PM #2

Archived author: ModoX • Posted: 2025-06-26T17:54:24.080000+00:00
Original source

we have some kind of order in the directory tree,
for dungeons/raids its:
`src/server/scripts/<continent>/<dungeon/raid>/boss_<bossname>.cpp`
for quests:
`src/server/scripts/<continent>/zone_<zone_name>.cpp`

rektbyfaith
Administrator
0
06-26-2025, 05:55 PM
#3
Archived author: Dyor • Posted: 2025-06-26T17:55:02.172000+00:00
Original source

okey okey, understandable so before im compiling it with Cmake i will create my scripts
rektbyfaith
06-26-2025, 05:55 PM #3

Archived author: Dyor • Posted: 2025-06-26T17:55:02.172000+00:00
Original source

okey okey, understandable so before im compiling it with Cmake i will create my scripts

rektbyfaith
Administrator
0
06-26-2025, 05:55 PM
#4
Archived author: ModoX • Posted: 2025-06-26T17:55:26.897000+00:00
Original source

after you create new files you gotta re-run cmake, yes
rektbyfaith
06-26-2025, 05:55 PM #4

Archived author: ModoX • Posted: 2025-06-26T17:55:26.897000+00:00
Original source

after you create new files you gotta re-run cmake, yes

rektbyfaith
Administrator
0
06-26-2025, 05:55 PM
#5
Archived author: Northstrider • Posted: 2025-06-26T17:55:33.012000+00:00
Original source

exactly. you cannot compile code that's not added yet after all
rektbyfaith
06-26-2025, 05:55 PM #5

Archived author: Northstrider • Posted: 2025-06-26T17:55:33.012000+00:00
Original source

exactly. you cannot compile code that's not added yet after all

rektbyfaith
Administrator
0
06-26-2025, 05:56 PM
#6
Archived author: Dyor • Posted: 2025-06-26T17:56:23.630000+00:00
Original source

so i was looking at this page rn : https://trinitycore.info/database/master...e_template

but i got a question i my head cuz i saw a lot of youtube tutorials, they were including some stuff and typing for example something like

OnGossipHello -> player*
[Embed: creature_template]
https://trinitycore.info/database/master...e_template
rektbyfaith
06-26-2025, 05:56 PM #6

Archived author: Dyor • Posted: 2025-06-26T17:56:23.630000+00:00
Original source

so i was looking at this page rn : https://trinitycore.info/database/master...e_template

but i got a question i my head cuz i saw a lot of youtube tutorials, they were including some stuff and typing for example something like

OnGossipHello -> player*
[Embed: creature_template]
https://trinitycore.info/database/master...e_template

rektbyfaith
Administrator
0
06-26-2025, 05:57 PM
#7
Archived author: Dyor • Posted: 2025-06-26T17:57:08.344000+00:00
Original source

and if im right they included the Player.h ?
rektbyfaith
06-26-2025, 05:57 PM #7

Archived author: Dyor • Posted: 2025-06-26T17:57:08.344000+00:00
Original source

and if im right they included the Player.h ?

rektbyfaith
Administrator
0
06-26-2025, 05:58 PM
#8
Archived author: Dyor • Posted: 2025-06-26T17:58:56.580000+00:00
Original source

so i would like to add some npcs (smartscript) so just to give them later on in the database the script name to apply like 100M HP to them
rektbyfaith
06-26-2025, 05:58 PM #8

Archived author: Dyor • Posted: 2025-06-26T17:58:56.580000+00:00
Original source

so i would like to add some npcs (smartscript) so just to give them later on in the database the script name to apply like 100M HP to them

rektbyfaith
Administrator
0
06-26-2025, 06:04 PM
#9
Archived author: AJlYKAPD • Posted: 2025-06-26T18:04:06.809000+00:00
Original source

Hlello
rektbyfaith
06-26-2025, 06:04 PM #9

Archived author: AJlYKAPD • Posted: 2025-06-26T18:04:06.809000+00:00
Original source

Hlello

rektbyfaith
Administrator
0
06-29-2025, 07:18 AM
#10
Archived author: ModoX • Posted: 2025-06-29T07:18:31.849000+00:00
Original source

You cant assign smartscript AND c
C++ script to a creature, only one of them will be loaded.
You gotta include Player.h if you access any methods or fields of it. In easy terms that means as soon as you use `player->` in code
rektbyfaith
06-29-2025, 07:18 AM #10

Archived author: ModoX • Posted: 2025-06-29T07:18:31.849000+00:00
Original source

You cant assign smartscript AND c
C++ script to a creature, only one of them will be loaded.
You gotta include Player.h if you access any methods or fields of it. In easy terms that means as soon as you use `player->` in code

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)