Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Does using `.npc add` correctly trigger SAI scripts that trigger on summoning?

[DiscordArchive] Does using `.npc add` correctly trigger SAI scripts that trigger on summoning?

[DiscordArchive] Does using `.npc add` correctly trigger SAI scripts that trigger on summoning?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
10-27-2023, 06:47 AM
#1
Archived author: Michael Crilly • Posted: 2023-10-27T06:47:19.010000+00:00
Original source

Does using `.npc add` correctly trigger SAI scripts that trigger on summoning?
rektbyfaith
10-27-2023, 06:47 AM #1

Archived author: Michael Crilly • Posted: 2023-10-27T06:47:19.010000+00:00
Original source

Does using `.npc add` correctly trigger SAI scripts that trigger on summoning?

rektbyfaith
Administrator
0
10-27-2023, 06:50 AM
#2
Archived author: Michael Crilly • Posted: 2023-10-27T06:50:00.141000+00:00
Original source

For example, if I want to summon The Lich King and have him go through the usual phases, is it enough to use `.npc add`? And which incarnation of him would be the correct one? I've found the following with a SQL join:

```sql
SELECT
sai.comment,
sai.id,
ct.entry,
ct.name,
ct.subname
FROM creature_template as ct
INNER JOIN smart_scripts as sai ON
sai.entryorguid = ct.entry
WHERE
sai.source_type = 0 AND
ct.name LIKE '%the lich king%'
;```
[Image: WindowsTerminal_eJ3lJc7LFE.png?ex=690c45...6acf6c17e&]
rektbyfaith
10-27-2023, 06:50 AM #2

Archived author: Michael Crilly • Posted: 2023-10-27T06:50:00.141000+00:00
Original source

For example, if I want to summon The Lich King and have him go through the usual phases, is it enough to use `.npc add`? And which incarnation of him would be the correct one? I've found the following with a SQL join:

```sql
SELECT
sai.comment,
sai.id,
ct.entry,
ct.name,
ct.subname
FROM creature_template as ct
INNER JOIN smart_scripts as sai ON
sai.entryorguid = ct.entry
WHERE
sai.source_type = 0 AND
ct.name LIKE '%the lich king%'
;```
[Image: WindowsTerminal_eJ3lJc7LFE.png?ex=690c45...6acf6c17e&]

rektbyfaith
Administrator
0
10-27-2023, 07:01 AM
#3
Archived author: Tereneckla • Posted: 2023-10-27T07:01:46.571000+00:00
Original source

the ICC lich king is 36597
he does not use SAI though, his script is in c++ (as is usual for raid bosses)
rektbyfaith
10-27-2023, 07:01 AM #3

Archived author: Tereneckla • Posted: 2023-10-27T07:01:46.571000+00:00
Original source

the ICC lich king is 36597
he does not use SAI though, his script is in c++ (as is usual for raid bosses)

rektbyfaith
Administrator
0
10-27-2023, 07:02 AM
#4
Archived author: Tereneckla • Posted: 2023-10-27T07:02:08.665000+00:00
Original source

I severely doubt it will run when he is added somewhere else
rektbyfaith
10-27-2023, 07:02 AM #4

Archived author: Tereneckla • Posted: 2023-10-27T07:02:08.665000+00:00
Original source

I severely doubt it will run when he is added somewhere else

rektbyfaith
Administrator
0
10-27-2023, 07:03 AM
#5
Archived author: Michael Crilly • Posted: 2023-10-27T07:03:25.673000+00:00
Original source

Thanks for that. It won't work outside of ICC, no - he's likely got waypoints to walk to and go through various phases and stages. I'm happy to spawn him in ICC, but I want to spawn him without having to go through everything else.
rektbyfaith
10-27-2023, 07:03 AM #5

Archived author: Michael Crilly • Posted: 2023-10-27T07:03:25.673000+00:00
Original source

Thanks for that. It won't work outside of ICC, no - he's likely got waypoints to walk to and go through various phases and stages. I'm happy to spawn him in ICC, but I want to spawn him without having to go through everything else.

rektbyfaith
Administrator
0
10-27-2023, 07:13 AM
#6
Archived author: Honey • Posted: 2023-10-27T07:13:26.051000+00:00
Original source

If you want him to not use his script for a custom implementation, you can just duplicate the row in `creature_template` with a new entry and change the script name to SAI or whatever you want the custom LK to script in.
rektbyfaith
10-27-2023, 07:13 AM #6

Archived author: Honey • Posted: 2023-10-27T07:13:26.051000+00:00
Original source

If you want him to not use his script for a custom implementation, you can just duplicate the row in `creature_template` with a new entry and change the script name to SAI or whatever you want the custom LK to script in.

rektbyfaith
Administrator
0
10-27-2023, 07:13 AM
#7
Archived author: Honey • Posted: 2023-10-27T07:13:54.937000+00:00
Original source

Lua is the master's way for that. <:kek:1065379143887372398>
rektbyfaith
10-27-2023, 07:13 AM #7

Archived author: Honey • Posted: 2023-10-27T07:13:54.937000+00:00
Original source

Lua is the master's way for that. <:kek:1065379143887372398>

rektbyfaith
Administrator
0
10-27-2023, 07:14 AM
#8
Archived author: Michael Crilly • Posted: 2023-10-27T07:14:40.113000+00:00
Original source

Yeah, that's right. I know that much. I guess I'm not being very clear (with my self, to be honest lol). And yeah, I _want_ use Lua, eventually.

All I want to do now is spawn him as if going through ICC as a raid group, then add in NPCs as I see fit.
rektbyfaith
10-27-2023, 07:14 AM #8

Archived author: Michael Crilly • Posted: 2023-10-27T07:14:40.113000+00:00
Original source

Yeah, that's right. I know that much. I guess I'm not being very clear (with my self, to be honest lol). And yeah, I _want_ use Lua, eventually.

All I want to do now is spawn him as if going through ICC as a raid group, then add in NPCs as I see fit.

rektbyfaith
Administrator
0
10-27-2023, 07:18 AM
#9
Archived author: Honey • Posted: 2023-10-27T07:18:24.679000+00:00
Original source

You could set the previous encounters to be complete using GM commands.
rektbyfaith
10-27-2023, 07:18 AM #9

Archived author: Honey • Posted: 2023-10-27T07:18:24.679000+00:00
Original source

You could set the previous encounters to be complete using GM commands.

rektbyfaith
Administrator
0
10-27-2023, 07:19 AM
#10
Archived author: Michael Crilly • Posted: 2023-10-27T07:19:18.254000+00:00
Original source

`.npc set phase`?
rektbyfaith
10-27-2023, 07:19 AM #10

Archived author: Michael Crilly • Posted: 2023-10-27T07:19:18.254000+00:00
Original source

`.npc set phase`?

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