[DiscordArchive] entry id or -guid?
[DiscordArchive] entry id or -guid?
Archived author: bandysc • Posted: 2022-08-21T17:15:37.799000+00:00
Original source
entry id or -guid?
Archived author: Krutok • Posted: 2022-08-21T17:15:51.222000+00:00
Original source
both
Archived author: Krutok • Posted: 2022-08-21T17:18:48.269000+00:00
Original source
If I edit an npc, then I can only edit the entry with creature script, but not the guid. There is a function missing in the editor, so that if you only want to give the smart script to an npc with guid XXX, you can also save it that way
Archived author: Krutok • Posted: 2022-08-21T17:19:46.603000+00:00
Original source
the Creature script by guid function is missing
Archived author: bandysc • Posted: 2022-08-21T17:19:50.831000+00:00
Original source
it is not
Archived author: bandysc • Posted: 2022-08-21T17:19:53.088000+00:00
Original source
you need to type -guid
Archived author: bandysc • Posted: 2022-08-21T17:19:58.374000+00:00
Original source
when selecting the creature
Archived author: Whomadeit • Posted: 2022-08-21T17:21:31.069000+00:00
Original source
works great <@209317995057643521>
Archived author: Whomadeit • Posted: 2022-08-21T17:21:32.170000+00:00
Original source
thanks
Archived author: Krutok • Posted: 2022-08-21T17:21:58.360000+00:00
Original source
<@149273370838433793> -- Kanrethad smart ai
SET @ENTRY := 29;
DELETE FROM `smart_scripts` WHERE `source_type` = 0 AND `entryOrGuid` = @ENTRY;
UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = @ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ENTRY, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 4, 23333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'On AI initialize - Self: Play direct sound 23333 to every player in visibility range of Self');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 29 AND `SourceId` = 0;