[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 ?
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 ?
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`
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
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
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
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
Archived author: Dyor • Posted: 2025-06-26T17:57:08.344000+00:00
Original source
and if im right they included the Player.h ?
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
Archived author: AJlYKAPD • Posted: 2025-06-26T18:04:06.809000+00:00
Original source
Hlello
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