The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
239 stars 97 forks source link

DB/NPC: Torben Zapblast - no gossip menu option #358

Open evilvampire16 opened 2 years ago

evilvampire16 commented 2 years ago

Description:

after accepting the quest To the Surface (27674) you need to reach the "surface" to complete the quest, Torben Zapblast (Entry: 46293) should have a gossip menu option to send you to the surface.

Current behaviour:

there's no gossip menu option for Torben Zapblast (Entry: 46293)

Expected behaviour:

Torben Zapblast (Entry: 46293) should have a gossip menu option to send you to the surface.

Steps to reproduce the problem:

  1. create a gnome
  2. reach to the quest or add it (prev quest of To the Surface(27674) which is Decontamination(27635) is not working so you probably need to add it) (however I guess there's no need for the quest to have the gossip menu option for the Torben Zapblast (Entry: 46293)
  3. talk to Torben Zapblast, there's no gossip menu option for him.

TC rev. hash/commit:

TrinityCore rev. ce79689c963c+ 2022-05-18 13:52:36 +0200 (master branch) (Win64, RelWithDebInfo, Static) (worldserver-daemon)

TDB version: 434.22011 Operating system: Windows

SET @NPC := 46293;
SET @GOSSIP := 12104;
SET @SPELL_TELEPORT := 86278;
UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName` = '',`gossip_menu_id`=@GOSSIP WHERE `entry`=@NPC;
UPDATE `gossip_menu_option` SET `OptionIndex`='0' WHERE  `MenuId`=@GOSSIP AND `OptionIndex`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@NPC;
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
(@NPC,0,0,0,62,0,100,0,@GOSSIP,0,0,0,11,@SPELL_TELEPORT,0,0,0,0,0,7,0,0,0,0,0,0,0,"Nepenthe-Torben Zapblast - On Gossip Select - Cast Teleport to the Surface"),
(@NPC,0,1,0,62,0,100,0,@GOSSIP,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,"Nepenthe-Torben Zapblast - On Gossip Select - Close Gossip");