TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

[DB/Fix] Quests 11984, 12255, 12259

Open Pitcrawler opened this issue 14 years ago • 14 comments

SET @NPC_BUDD := 26422;
SET @NPC_FLAMEBRINGER := 27292;
SET @NPC_FLAMEBRINGERS_CHAIN := 27297;
SET @NPC_THANE_TORVALD := 27377;
SET @NPC_BUDD_PET := 32663;
SET @GUID := XXX; -- Need 2

UPDATE `creature` SET `spawndist`=0, `MovementType`=0 WHERE `id`=27377; -- Thane Torvald
DELETE FROM `creature` WHERE `id`=@NPC_FLAMEBRINGERS_CHAIN;
INSERT INTO `creature` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`curmana`,`MovementType`,`npcflag`,`unit_flags`,`dynamicflags`) VALUES
(@GUID+0,@NPC_FLAMEBRINGERS_CHAIN,571,1,1,17188,0,2786.589,-2483.958,49.05502,4.171337,120,0,0,42,0,0,0,33555200,8),
(@GUID+1,@NPC_FLAMEBRINGERS_CHAIN,571,1,1,17188,0,2802.708,-2520.483,52.75195,2.443461,120,0,0,42,0,0,0,33555200,8);

UPDATE `creature_template` SET `InhabitType`=`InhabitType`|4, `spell1`=48619, `spell2`=48620, `spell3`=52812 WHERE `entry`=@NPC_FLAMEBRINGER;
UPDATE `creature_template` SET `spell1`=47031 WHERE `entry`=@NPC_BUDD_PET;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (@NPC_BUDD,@NPC_FLAMEBRINGER,@NPC_FLAMEBRINGERS_CHAIN,@NPC_BUDD_PET);
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=@NPC_FLAMEBRINGERS_CHAIN;

UPDATE `creature_model_info` SET `combat_reach`=1.95 WHERE `modelid`=134;
UPDATE `creature_model_info` SET `bounding_radius`=0.62, `combat_reach`=4 WHERE `modelid`=22657;

UPDATE `smart_scripts` SET `event_param1`=9615 WHERE `entryorguid`=26423; -- Drakuru correct gossip_menu from sniff
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@NPC_BUDD,@NPC_FLAMEBRINGER,@NPC_FLAMEBRINGERS_CHAIN,@NPC_BUDD_PET) AND `source_type`=0;
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_BUDD,0,0,1,62,0,100,0,9301,0,0,0,11,61545,0,0,0,0,0,7,0,0,0,0,0,0,0,'Budd - On gossip select - Spellcast'),
(@NPC_BUDD,0,1,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Budd - On gossip select - Close gossip'),
(@NPC_FLAMEBRINGER,0,0,1,62,0,100,0,9512,0,0,0,11,48606,0,0,0,0,0,7,0,0,0,0,0,0,0,'Flamebringer - On gossip select - Spellcast'),
(@NPC_FLAMEBRINGER,0,1,0,61,0,100,0,0,0,0,0,72,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Flamebringer - On gossip select - Close gossip'),
(@NPC_FLAMEBRINGER,0,2,3,54,0,100,0,0,0,0,0,83,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Flamebringer - On summon - Remove npcflag'),
(@NPC_FLAMEBRINGER,0,3,4,61,0,100,0,0,0,0,0,11,48602,0,0,0,0,0,1,0,0,0,0,0,0,0,'Flamebringer - On summon - Spellcast'),
(@NPC_FLAMEBRINGER,0,4,0,61,0,100,0,0,0,0,0,85,46598,0,0,0,0,0,1,0,0,0,0,0,0,0,'Flamebringer - On summon - Spellcast'), -- actually cast 48598 on invoker but the linked spell 48600 doesn't work maybe because of effect 1: Dummy (4207) which means this spell works in area Voldrune only and will be removed if the area is left
(@NPC_FLAMEBRINGER,0,5,0,28,0,100,0,0,0,0,0,41,500,0,0,0,0,0,1,0,0,0,0,0,0,0,'Flamebringer - On passenger removed - Despawn'), -- not working
(@NPC_FLAMEBRINGERS_CHAIN,0,0,0,11,0,100,0,0,0,0,0,11,48293,0,30,0,0,0,10,110538,0,0,0,0,0,0,'Flamebringer''s Chain - On update - Spellcast'),
(@NPC_BUDD_PET,0,0,1,54,0,100,0,0,0,0,0,11,47014,0,0,0,0,0,7,0,0,0,0,0,0,0,'Budd pet - On summon - Spellcast'),
(@NPC_BUDD_PET,0,1,2,61,0,100,0,0,0,0,0,11,47025,0,0,0,0,0,1,0,0,0,0,0,0,0,'Budd pet - On summon - Spellcast'),
(@NPC_BUDD_PET,0,2,3,61,0,100,0,0,0,0,0,8,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Budd pet - On summon - Set react defensive'),
(@NPC_BUDD_PET,0,3,0,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'Budd pet - On summon - Follow'),
(@NPC_BUDD_PET,0,4,0,60,0,100,0,5000,5000,15000,15000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Budd pet - Frequently - Say random line');

-- Insert creature_text from sniff
DELETE FROM `creature_text` WHERE `entry`=@NPC_BUDD_PET;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(@NPC_BUDD_PET,0,0,'You sure we be goin'' da right way, mon?',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,1,'Nuttin'' says luvin'' like a little tap on da noggin.',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,2,'You be it now, brudda!',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,3,'Hee hee hee! Dis gunna be some fun, mon!',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,4,'My troll bruddas be in for some real fun today, mon!',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,5,'Time to play some troll tag, mon!',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,6,'<sniff, sniff> I can smell ''em, mon.',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,7,'No, no, mon. Dere be no trolls here....',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,8,'Ok, mon. Tell me when we be close to mah troll bruddas.',12,0,10,0,0,0,'Budd'),
(@NPC_BUDD_PET,0,9,'Ey, mon! Take me to mah troll bruddas!',12,0,10,0,0,0, 'Budd');

DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=48293;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=47042;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(13,1,48293,0,0,31,0,3,27292,0,0,0,'','Spell Flamebringer''s Chain targets Flamebringer'),
(17,0,47042,0,0,31,1,3,26425,0,0,0,'','Spell Assemble Cage can only be cast on Drakkari Warrior'),
(17,0,47042,0,1,31,1,3,26447,0,0,0,'','Spell Assemble Cage can only be cast on Drakkari Shaman');

This fix belongs to my recent fix for the gossips which was already pushed. It is based on the newly found gossip menus. Quest 11984 works more blizzlike now though it's still not perfect. Actually Budd should be the player's pet as long as he is under the effect of spell 47025. I guess an aura script for this spell might do the trick but my C++ skills are quite low...

Quests 12255 and 12259 can not be completed while riding on Flamebringer as he resets during fight and returns to his spawnpoint. I think that's a general issue which will be fixed soon.

The scripts for the Flamebringer's Chain doesn't work because spell 48293 doesn't target Flamebringer but the Flamebringer's Chain npc instead. Maybe this is due to wrong spell.dbc data...

There are some minor buggs I have commented in the sql. I wasn't able to solve those...

Pitcrawler avatar Jan 12 '12 11:01 Pitcrawler

you should really come on the irc :D

Star-lion avatar Jan 12 '12 13:01 Star-lion

Set spawndist to 0 also for Thane Torvald Eriksson. I asked Subv to look into the creature resetting after combat.

ghost avatar Jan 12 '12 13:01 ghost

@malcrom done. @kandera as I live in Germany I guess we won't meet very often on the irc ;-) But I'll do what I can.

Pitcrawler avatar Jan 13 '12 07:01 Pitcrawler

im usually on the irc most of the day/night XD i haz no life

Star-lion avatar Jan 13 '12 11:01 Star-lion

:O

Do u have facebook? :D

fredimachado avatar Jan 13 '12 11:01 fredimachado

nupe :] i think its a total waste of time and a place where stalkers hang out

Star-lion avatar Jan 13 '12 11:01 Star-lion

lol ;P

you seem to have plenty of time ;P

fredimachado avatar Jan 13 '12 11:01 fredimachado

i do but it wastes the free time i have to do other things like stuff for here or skyrim

Star-lion avatar Jan 13 '12 11:01 Star-lion

I managed to solve one of the remaining bugs I mentioned above:

DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=48293;
(13,0,48293,0,18,1,27292,0,0,'','Spell 48293 targets Flamebringer'),

When I added this to the conditions the targeting worked. Unfortunately a new issue occured: It seems only one of these spells can be channeled at Flamebringer at a time. So the Chain-npcs alternately cast it which doesn't look very nice :( Maybe this again is a general issue as I saw it with different npcs targeting one ELM bunny, too.

Pitcrawler avatar Jan 13 '12 11:01 Pitcrawler

It seems only one of these spells can be channeled at Flamebringer at a time.

Yap, known issue. You can't have a channel spell from different casters on the same targets. What we do is fix it in a way that will work once that spell bug is fixed (code SAI like it would work).

DDuarte avatar Feb 11 '12 20:02 DDuarte

(17,0,47042,0,29,26425,5,0,0,'','Spell 47042 can only be cast if near Drakkari Warrior'),

CONDITION_SOURCE_TYPE_SPELL shouldn't be used. Since the spell has TARGET_UNIT_TARGET_ANY and is cast by an item, CONDITION_SOURCE_TYPE_ITEM_REQUIRED_TARGET should be used.

DDuarte avatar Feb 11 '12 21:02 DDuarte

@DDuarte will fix these soon.

Pitcrawler avatar Feb 12 '12 09:02 Pitcrawler

This can be pushed?

Aokromes avatar Oct 22 '12 09:10 Aokromes

lol the fix for him attacking stuff is to set reactstate to passive in the SAI. :)

zaphod77 avatar Oct 03 '13 22:10 zaphod77