TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[3.3.5] Therylune didn't attack enemies

Open ikir83 opened this issue 11 years ago • 4 comments

NPC Therylune http://www.wowhead.com/npc=3584/therylune continue to start attacking enemies but stop after a second and return to her position. Also her escorting quest is bugged this way.

DB 335.58 rev 0148832 2015-05-21

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ikir83 avatar May 25 '15 18:05 ikir83

try this:

-- Therylune SAI
SET @ENTRY := 3584;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0 AND `id`>=5;
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,5,0,61,0,100,0,945,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Quest 'Therylune's Escape' Taken - Set Faction 250"),
(@ENTRY,0,6,0,11,0,100,0,0,0,0,0,2,124,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Respawn - Set Faction 124");
UPDATE `smart_scripts` SET `link`=5 WHERE  `entryorguid`=3584 AND `source_type`=0 AND `id`=1 AND `link`=0;

Lumber-Jack-2 avatar May 25 '15 19:05 Lumber-Jack-2

-- Therylune SAI
SET @ENTRY := 3584;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0 AND `id`>=5;
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,5,0,61,0,100,0,945,0,0,0,2,250,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Quest 'Therylune's Escape' Taken - Set Faction 250"),
(@ENTRY,0,6,0,11,0,100,0,0,0,0,0,2,124,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Respawn - Set Faction 124"),
(@ENTRY,0,7,0,61,0,100,0,0,0,0,0,19,512,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Quest 'Therylune's Escape' Taken - Remove Flags Immune To NPC's"),
(@ENTRY,0,8,0,61,0,100,0,0,0,0,0,18,512,0,0,0,0,0,1,0,0,0,0,0,0,0,"Therylune - On Respawn - Set Flags Immune To NPC's");
UPDATE `smart_scripts` SET `link`=5 WHERE  `entryorguid`=3584 AND `source_type`=0 AND `id`=1 AND `link`=0;
UPDATE `smart_scripts` SET `link`=7 WHERE  `entryorguid`=3584 AND `source_type`=0 AND `id`=5 AND `link`=0;
UPDATE `smart_scripts` SET `link`=8 WHERE  `entryorguid`=3584 AND `source_type`=0 AND `id`=6 AND `link`=0;

attack

CrisPj avatar Jul 31 '15 20:07 CrisPj

nice! @CreshandKesh could you also try to add the immune_to_pc flag cuz Therylune tries to 'help' the player if attackable creatures are in range, but because of the immune_to_npc flag Therylune instantly resets again, what looks a bit strange :D

Lumber-Jack-2 avatar Jul 31 '15 23:07 Lumber-Jack-2

@Rushor, i've tried adding the immune_to_pc flag but she continues reseting :cry:

CrisPj avatar Aug 01 '15 17:08 CrisPj