Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hey, I'm trying to fix a quest where the object hit by a spell is supposed to despawn.

[DiscordArchive] Hey, I'm trying to fix a quest where the object hit by a spell is supposed to despawn.

[DiscordArchive] Hey, I'm trying to fix a quest where the object hit by a spell is supposed to despawn.

rektbyfaith
Administrator
0
06-10-2021, 11:59 AM
#1
Archived author: Efymer • Posted: 2021-06-10T11:59:24.583000+00:00
Original source

Hey, I'm trying to fix a quest where the object hit by a spell is supposed to despawn.
If I apply this query, the object despawns, but it never spawns again :/:

```
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 186283;

DELETE FROM `smart_scripts` WHERE (`entryorguid` = 186283);
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(186283, 1, 0, 0, 8, 0, 100, 1, 42287, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Shipwreck Debris - On Spellhit \'Salvage Wreckage\' - Despawn Instant');
```

So my question is: what's the proper way to despawn an object (quest objective)?
rektbyfaith
06-10-2021, 11:59 AM #1

Archived author: Efymer • Posted: 2021-06-10T11:59:24.583000+00:00
Original source

Hey, I'm trying to fix a quest where the object hit by a spell is supposed to despawn.
If I apply this query, the object despawns, but it never spawns again :/:

```
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 186283;

DELETE FROM `smart_scripts` WHERE (`entryorguid` = 186283);
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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(186283, 1, 0, 0, 8, 0, 100, 1, 42287, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Shipwreck Debris - On Spellhit \'Salvage Wreckage\' - Despawn Instant');
```

So my question is: what's the proper way to despawn an object (quest objective)?

rektbyfaith
Administrator
0
06-10-2021, 12:25 PM
#2
Archived author: Claudiodfc • Posted: 2021-06-10T12:25:45.307000+00:00
Original source

depends on the logic <@!173164478307762176>
rektbyfaith
06-10-2021, 12:25 PM #2

Archived author: Claudiodfc • Posted: 2021-06-10T12:25:45.307000+00:00
Original source

depends on the logic <@!173164478307762176>

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