Open TerrorBringer opened 7 years ago
UPDATE creature_template SET unit_flags=0, faction=35, flags_extra=2, AIName='SmartAI', ScriptName='' WHERE entry=12126;
the factionchange is confirmed by sniffs?
No, In Sunwell core they hacks the faction very often, also blizzard use the faction 250 for escort quests if a faction change is required.
Waiting for the waypoint system to be fixed before finishing the script.
Updated texts with BroadcastTextId
DELETE FROM `creature_text` WHERE `CreatureID` IN (1840, 1842, 12126);
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
(1840,0,0,'You will not make it to the forest\'s edge, Fordring.',12,0,100,0,0,0,7395,0,'Grand Inquisitor Isillien'),
(1840,1,0,'You disappoint me, Taelan. I had plans for you... grand plans. Alas, it was only a matter of time before your filthy bloodline would catch up with you.',12,0,100,0,0,0,7337,0,'Grand Inquisitor Isillien'),
(1840,2,0,'It is as they say: Like father, like son. You are as weak of will as Tirion... perhaps more so. I can only hope my assassins finally succeeded in ending his pitiful life.',12,0,100,0,0,0,7338,0,'Grand Inquisitor Isillien'),
(1840,3,0,'The Grand Crusader has charged me with destroying you and your newfound friends, Taelan, but know this: I do this for pleasure, not of obligation or duty.',12,0,100,0,0,0,7359,0,'Grand Inquisitor Isillien'),
(1840,4,0,'%s calls for his guardsmen.',16,0,100,22,0,0,7360,0,'Grand Inquisitor Isillien'),
(1840,5,0,'The end is now, Fordring.',12,0,100,0,0,0,7361,0,'Grand Inquisitor Isillien'),
(1840,6,0,'Enough!',12,0,100,0,0,0,7381,0,'Grand Inquisitor Isillien'),
(1840,7,0,'%s laughs.',16,0,100,11,0,0,7382,0,'Grand Inquisitor Isillien'),
(1840,8,0,'Did you really believe that you could defeat me? Your friends are soon to join you, Taelan.',12,0,100,0,0,0,7383,0,'Grand Inquisitor Isillien'),
(1840,9,0,'Tragic. The elder Fordring lives on... You are too late, old man. Retreat back to your cave, hermit, unless you wish to join your son in the Twisting Nether.',12,0,100,0,0,0,7433,0,'Grand Inquisitor Isillien'),
(1840,10,0,'Then come, hermit!',12,0,100,0,0,0,7436,0,'Grand Inquisitor Isillien'),
(1842,0,0,'I will lead us through Hearthglen to the forest\'s edge. From there, you will take me to my father.',12,0,100,0,0,0,7313,0,'Taelan Fordring'),
(1842,1,0,'Remove your disguise, lest you feel the bite of my blade when the fury has taken control.',12,0,100,0,0,0,7314,0,'Taelan Fordring'),
(1842,2,0,'Halt.',12,0,100,0,0,0,7315,0,'Taelan Fordring'),
(1842,3,0,'%s calls for his mount.',16,0,100,22,0,0,7316,0,'Taelan Fordring'),
(1842,4,0,'It\'s not much further. The main road is just up ahead.',12,0,100,0,0,0,7329,0,'Taelan Fordring'),
(1842,5,0,'Isillien!',14,0,100,0,0,0,7370,0,'Taelan Fordring'),
(1842,6,0,'This is not your fight, stranger. Protect yourself from the attacks of the Crimson Elite. I shall battle the Grand Inquisitor.',12,0,100,0,0,0,7371,0,'Taelan Fordring'),
(12126,0,0,'What have you done, Isillien? You once fought with honor, for the good of our people... and now... you have murdered my boy... ',12,0,100,1,0,0,7372,0,'Lord Tirion Fordring'),
(12126,1,0,'May your soul burn in anguish, Isillien! Light give me strength to battle this fiend.',12,0,100,15,0,0,7373,0,'Lord Tirion Fordring'),
(12126,2,0,'Face me, coward. Face the faith and strength that you once embodied.',12,0,100,25,0,0,7374,0,'Lord Tirion Fordring'),
(12126,3,0,'A thousand more like him exist. Ten thousand. Should one fall, another will rise to take the seat of power.',12,0,100,0,0,0,7420,0,'Lord Tirion Fordring'),
(12126,4,0,'%s falls to one knee.',16,0,100,0,0,0,7421,0,'Lord Tirion Fordring'),
(12126,5,0,'Look what they did to my boy.',12,0,100,5,0,0,7423,0,'Lord Tirion Fordring'),
(12126,6,0,'Too long have I sat idle, gripped in this haze... this malaise, lamenting what could have been... what should have been.',12,0,100,0,0,0,7429,0,'Lord Tirion Fordring'),
(12126,7,0,'Your death will not have been in vain, Taelan. A new Order is born on this day... an Order which will dedicate itself to extinguishing the evil that plagues this world. An evil that cannot hide behind politics and pleasantries.',12,0,100,0,0,0,7426,0,'Lord Tirion Fordring'),
(12126,8,0,'This I promise... This I vow...',12,0,100,0,0,0,7430,0,'Lord Tirion Fordring');
Confirmed by 401777d024785c58f90947cfdadd9b1b7d8fbd3b
Just a quick feedback especially for when @Killyana may look over this again : I tested this a few weeks ago and it worked quite good up to the point where old Fordring should attack Grand Inquisitor Isillien- he doesnt. Still completeable anyway when you kill Isillien yourself.
Maybe the faction hack is removed, but not substituted with any working replacement?
Ive formatted this into a more readable version:
https://gist.github.com/Jinnaix/bf50bf5a1b5f40a10c917a75c24ecb22
There are a few problems left:
But summed up, the quest works if you are able to kill Grand Inquisitor Isillien on your own.
Maybe @offl can give this a final touch?
These are changes I made to this script the below was applied after the above
DELETE FROM `smart_scripts` WHERE `entryorguid`IN (1840,1842) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`IN (184000,184200,184201) AND `source_type`=9;
DELETE FROM `smart_scripts` WHERE `entryorguid`=12126 AND `source_type`=0 AND `id`IN(7,8,9,10);
DELETE FROM `smart_scripts` WHERE `entryorguid`=12128 AND `source_type`=0 AND `id`IN(3);
UPDATE `smart_scripts` SET `target_param2`='0' WHERE `entryorguid`=1212600 AND `source_type`=9 AND `id`=11 AND `link`=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`, `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
(1840, 0, 0, 0, 37, 0, 100, 0, 0, 0, 0, 0, 0, 80, 184000, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On AI Init - Script9'),
(1840, 0, 1, 0, 0, 0, 100, 0, 1000, 1000, 30000, 30000, 0, 11, 11647, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell'),
(1840, 0, 2, 0, 0, 0, 100, 0, 3000, 3000, 8000, 9000, 0, 11, 17287, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell'),
(1840, 0, 3, 0, 0, 0, 100, 0, 20000, 20000, 20000, 20000, 0, 11, 13639, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell'),
(1840, 0, 4, 0, 0, 0, 100, 0, 7000, 8000, 15000, 15000, 0, 11, 17314, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell'),
(1842, 0, 0, 0, 34, 0, 100, 0, 8, 16777215, 0, 0, 0, 43, 0, 2402, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Movement Inform - Mount'),
(1842, 0, 1, 17, 19, 0, 100, 0, 5944, 0, 0, 0, 0, 1, 0, 6000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Talk'),
(1842, 0, 2, 0, 52, 0, 100, 1, 0, 1842, 0, 0, 0, 53, 0, 1842, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Text Over - WP Start'),
(1842, 0, 3, 15, 11, 0, 100, 0, 0, 0, 0, 0, 0, 2, 67, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Respawn - Set Faction'),
(1842, 0, 4, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 11, 17232, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Aggro - Cast Spell'),
(1842, 0, 5, 0, 0, 0, 100, 0, 3000, 3000, 5000, 5000, 0, 11, 17281, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'IC Update - Cast Spell'),
(1842, 0, 6, 0, 2, 0, 100, 0, 0, 10, 20000, 40000, 0, 11, 17233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On HP Update - Cast Spell'),
(1842, 0, 7, 8, 40, 0, 100, 0, 1, 0, 0, 0, 0, 1, 1, 6000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Talk'),
(1842, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 250, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Set Faction'),
(1842, 0, 9, 10, 40, 0, 100, 0, 26, 0, 0, 0, 0, 54, 7000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - WP Pause'),
(1842, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 3000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Talk'),
(1842, 0, 11, 0, 52, 0, 100, 0, 2, 1842, 0, 0, 0, 1, 3, 2000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Text Over - Talk'),
(1842, 0, 12, 27, 52, 0, 100, 0, 3, 1842, 0, 0, 0, 43, 0, 2402, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Text Over - Mount'),
(1842, 0, 13, 0, 40, 0, 100, 0, 74, 0, 0, 0, 0, 80, 184200, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On WP Reach - Script9'),
(1842, 0, 14, 0, 8, 0, 100, 0, 18969, 0, 0, 0, 0, 80, 184201, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Spell Hit - Script9'),
(1842, 0, 15, 16, 61, 0, 100, 0, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Respawn - Remove Flag'),
(1842, 0, 16, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 91, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Respawn - Remove Byte 1'),
(1842, 0, 17, 18, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 67, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Set Faction'),
(1842, 0, 18, 19, 61, 0, 100, 0, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Set Active'),
(1842, 0, 19, 20, 61, 0, 100, 0, 0, 0, 0, 0, 0, 20, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Allow Auto Attack'),
(1842, 0, 20, 21, 61, 0, 100, 0, 0, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Allow Combat Movement'),
(1842, 0, 21, 26, 61, 0, 100, 0, 0, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Accept - Set Aggresive'),
(1842, 0, 22, 0, 40, 0, 100, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Reached WP (any) update home position'),
(1842, 0, 23, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 2, 67, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Spawn Set Faction'),
(1842, 0, 24, 0, 9, 0, 100, 0, 0, 5, 5000, 9000, 0, 11, 18819, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Range - Cast'),
(1842, 0, 25, 0, 9, 0, 100, 0, 0, 10, 15000, 25000, 0, 11, 18810, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Range Cast'),
(1842, 0, 26, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Quest Acceot - Set Invincibility HP'),
(1842, 0, 27, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Text Over - Set Run On'),
(12126, 0, 7, 0, 9, 0, 100, 0, 0, 5, 5000, 9000, 0, 11, 18819, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Range - Cast'),
(12126, 0, 8, 0, 2, 0, 100, 0, 0, 10, 20000, 40000, 0, 11, 17233, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On HP Update - Cast Spell'),
(12126, 0, 9, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'On Spawn - Set Flags'),
(12126, 0, 10, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 11, 12128, 100, 0, 0, 0, 0, 0, 0, 'On Spawn - Set Flags'),
(12128, 0, 3, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 25, 100, 0, 0, 0, 0, 0, 0, 0, 'OOC - Attack Closest Enemy'),
(184000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Flag'),
(184000, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 2, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 2677, -1917, 68, 2.1, 'Script9 - Move To Pos'),
(184000, 9, 3, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 4, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 5, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 6, 0, 0, 0, 100, 0, 8000, 8000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 7, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 12128, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 0, 2674, -1920, 68.41, 1.8, 'Script9 - Summon Creature'),
(184000, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 12128, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 0, 2684, -1918, 69.52, 2.2, 'Script9 - Summon Creature'),
(184000, 9, 10, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 12128, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 0, 2694, -1875, 66.86, 3.8, 'Script9 - Summon Creature'),
(184000, 9, 11, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 12128, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 0, 2693, -1869, 66.87, 3.9, 'Script9 - Summon Creature'),
(184000, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 12128, 4, 300000, 0, 0, 0, 8, 0, 0, 0, 0, 2697, -1879, 66.8, 3.8, 'Script9 - Summon Creature'),
(184000, 9, 13, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 11, 12128, 100, 0, 0, 0, 0, 0, 0, 'Script9 - Set Data'),
(184000, 9, 14, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 19, 774, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flag'),
(184000, 9, 15, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 1842, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Attack Start'),
(184000, 9, 16, 0, 0, 0, 100, 0, 45000, 45000, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'IC (Phase 1/No repeat) - Say Line 6'),
(184000, 9, 17, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'IC (Phase 1/No repeat) - Set Home Pos'),
(184000, 9, 18, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 18969, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'IC (Phase 1/No repeat) - Cast Spell'),
(184000, 9, 19, 0, 0, 0, 100, 0, 3500, 3500, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Evade'),
(184000, 9, 20, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Flag'),
(184000, 9, 21, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 22, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184000, 9, 23, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flag'),
(184000, 9, 24, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 100, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Attack Start'),
(184000, 9, 25, 0, 0, 0, 100, 0, 15000, 15000, 0, 0, 0, 12, 12126, 4, 180000, 0, 0, 0, 8, 0, 0, 0, 0, 2642.8, -1913, 71.2, 0.4, 'Script9 - Summon Creature'),
(184200, 9, 0, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184200, 9, 1, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 21, 40, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Orientation'),
(184200, 9, 2, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 12, 1840, 4, 120000, 0, 0, 0, 8, 0, 0, 0, 0, 2683.64, -1926.72, 72.14, 2, 'Script9 - Summon Creature'),
(184200, 9, 3, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184200, 9, 4, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Talk'),
(184200, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Dismount'),
(184200, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Home Position'),
(184200, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 19, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Remove Flag'),
(184200, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 450000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Despawn'),
(184201, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Passive'),
(184201, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Flag'),
(184201, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 90, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Set Byte 1'),
(184201, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Script9 - Die');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=1 AND `SourceEntry`=18811;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 1, 18811, 0, 0, 31, 0, 4, 0, 0, 1, 0, 0, '', 'Taelans Suffering Effect not hit Player'),
(13, 1, 18811, 0, 0, 31, 0, 3, 1842, 0, 1, 0, 0, '', 'Taelans Suffering Effect does not hit Taelan');
DELETE FROM `smart_scripts` WHERE `entryorguid`=1840 AND `source_type`=0 AND `id` IN(5,6) AND `link`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=12126 AND `source_type`=0 AND `id`=11 AND `link`=0;
UPDATE `smart_scripts` SET `link`='11' WHERE `entryorguid`=12126 AND `source_type`=0 AND `id`=10 AND `link`=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`, `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
(1840, 0, 5, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 42, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Grand Inquisitor Isillien - On Just Summoned - Set Invincibility HP ON'),
(1840, 0, 6, 0, 38, 0, 100, 0, 6, 6, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Grand Inquisitor Isillien - On Data Set - Set Invincibility HP OFF'),
(12126, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 6, 6, 0, 0, 0, 0, 19, 1840, 0, 0, 0, 0, 0, 0, 0, 'Lord Tirion Fordring - Linked with Previous Event - Set Data 6 6 to Grand Inquisitor Isillien');
comments are crap I know I just used existing comment style
@dr-j : I have not tested any of this yet, but did you manage to get less DB errors than @Jinnaix with your SQL added?
I tried to troubleshoot the SQL in Jinnaix's gist, but I got stuck on the first 2 error lines, so I don't know what the cause is.
I currently have no errors from this script but cant remember much about this ive been sitting on this for about 9 months however as said original still needs applying first as was used as base
This quest is still bugged, having the same problem as the issue #23553, as of 9d959123e68020a83c780f53a967b3589cb70786.
There still has been no commit for this quest and nothing has changed yet in so why would it not still be bugged
@offl : Would you like to have a look at the suggested solutions and see if any or all of it can be used?
For anyone interested, this is my current state of the quest that i am using now:
https://gist.github.com/Jinnaix/347ecc74b3e546c608fe465dd3fcb415
/Edit: Updated the gist after @offl gave me some tips (thank you). Most errors are now gone.
The current move_run speed of some creatures involved (Crimson Elite, Taelan, Isillien...) seems to be wrong. I didn't touch them. Mounting with SAI works good, telling a creature to stop mounting again is another topic... Quest is fully complete-able and i also implemented a safety switch to prevent a group of people nuking Isillien in the first fight phase (this would bug the quest).
NOTE: I use set active in this script for Taelan. Without this, the script has a high potential to get stuck and Taelan will never return if the invoking player decides to stop/disconnect/interrupt this quest.
For a fast way to test this quest, i suggest the following: Apply SQL to your world database .gm on .cheat god .quest add 5862 .go c id 1842 turn in 5862 at c id 1842 accept in dreams 5944 wait 6 seconds .gm off have fun
For anyone interested, this is my current state of the quest that i am using now:
https://gist.github.com/Jinnaix/347ecc74b3e546c608fe465dd3fcb415
/Edit: Updated the gist after @offl gave me some tips (thank you). Most errors are now gone.
The current move_run speed of some creatures involved (Crimson Elite, Taelan, Isillien...) seems to be wrong. I didn't touch them. Mounting with SAI works good, telling a creature to stop mounting again is another topic... Quest is fully complete-able and i also implemented a safety switch to prevent a group of people nuking Isillien in the first fight phase (this would bug the quest).
NOTE: I use set active in this script for Taelan. Without this, the script has a high potential to get stuck and Taelan will never return if the invoking player decides to stop/disconnect/interrupt this quest.
For a fast way to test this quest, i suggest the following: Apply SQL to your world database .gm on .cheat god .quest add 5862 .go c id 1842 turn in 5862 at c id 1842 accept in dreams 5944 wait 6 seconds .gm off have fun
It's working. Finally, I can complete this quest normally, the only problem is the moving speed of Taelan is really fast.
Came here to log the issue regarding the quest.
Before adding this fix, when a final fix is implemented, will it override/modify the values used here or create additional/different ones requiring that this fix be removed first?
Came here to log the issue regarding the quest.
Before adding this fix, when a final fix is implemented, will it override/modify the values used here or create additional/different ones requiring that this fix be removed first?
Most likely overwrite if you pick this fix for now. Or, to be specific, delete old code and insert new code.
Thanks for that. I'll give it a shot.
Much appreciated.
Worked perfectly. I didn't have any speed issues on my end. The quest and pace were executed great!
I took 2 bots with me so we managed to save him but of course, he's meant to fail.
Thanks again for this.
Hmm... Should not be possible. Isillien is invulnerable untill he hits Taelan with the death spell and Taelan must die when he got hit by it. Might need to rework this once more... But not today.
Anyway, good to see people using it, i hope you had fun.
Recent commit changes are now causing the following to be logged to DBErrors if this script is implemented:
SmartAIMgr: Unused action_type(19), event_type(61), Entry 1842 SourceType 0 Event 5, skipped.
SmartAIMgr: Unused action_type(18), event_type(1), Entry 184000 SourceType 9 Event 0, skipped.
SmartAIMgr: Unused action_type(19), event_type(1), Entry 184000 SourceType 9 Event 14, skipped.
SmartAIMgr: Unused action_type(18), event_type(1), Entry 184000 SourceType 9 Event 21, skipped.
SmartAIMgr: Unused action_type(19), event_type(1), Entry 184000 SourceType 9 Event 25, skipped.
SmartAIMgr: Unused action_type(19), event_type(1), Entry 184200 SourceType 9 Event 8, skipped.
SmartAIMgr: Unused action_type(19), event_type(1), Entry 1212600 SourceType 9 Event 7, skipped.
SmartAIMgr::LoadSmartAIFromDB: Entry 1842 SourceType 0, Event 4, Link Event 5 not found or invalid.
SmartAIMgr::LoadSmartAIFromDB: Entry 1842 SourceType 0, Event 6, Link Source Event not found or invalid. Event will never trigger.
Thought I'd drop in and say that I tested the script proposed by @dr-j on the latest 3.3.5 build, and it works quite well. I did not have any of the issues others have reported. Someone should look into merging this into the 3.3.5 branch.
Here's the fix for quest http://www.wowhead.com/quest=5944/in-dreams which I ported from SunwellCore (https://github.com/Kittnz/Sunwell) and fixed the errors. All credits goes to everyone involved in SunwellCore and its contributors.
Win 8.1 x64 90a5811