Scripts/Ebon Hold: How To Win Friends And Influence Enemies (#24090)

* Scripts/Ebon Hold: How To Win Friends And Influence Enemies

* Scripts/Ebon Hold: Improve SQL!

* Scripts/Ebon Hold: Final touch

* Scripts/Ebon Hold: Actually final touch

* Rename 9999_99_99_99_world.sql to 2020_01_26_04_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 13c81f55e3)
This commit is contained in:
Sorikoff
2020-01-26 22:15:39 +02:00
committed by Shauren
parent d37547e769
commit a463e7f1bd
2 changed files with 235 additions and 143 deletions

View File

@@ -0,0 +1,235 @@
--
DELETE FROM `creature_text` WHERE `CreatureID` IN (28610,28939,28940,28936);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
-- Players line
(28610,0,0,'What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29133,0,'Scarlet Marksman'),
(28610,0,1,'Tell me what you know about \"Crimson Dawn\" or the beatings will continue!''',12,0,100,0,0,0,29134,0,'Scarlet Marksman'),
(28610,0,2,'I''m through being courteous with your kind, human! What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29135,0,'Scarlet Marksman'),
(28610,0,3,'\"Crimson Dawn!\" What is it! Speak!',12,0,100,0,0,0,29136,0,'Scarlet Marksman'),
(28610,0,4,'I can keep this up for a very long time, Scarlet dog! Tell me about the \"Crimson Dawn!\"',12,0,100,0,0,0,29137,0,'Scarlet Marksman'),
(28610,0,5,'I''ll tear the secrets from your soul! Tell me about the \"Crimson Dawn\" and your life may be spared!',12,0,100,0,0,0,29138,0,'Scarlet Marksman'),
(28610,0,6,'Is your life worth so little? Just tell me what I need to know about \"Crimson Dawn\" and I''ll end your suffering quickly.',12,0,100,0,0,0,29139,0,'Scarlet Marksman'),
(28610,0,7,'I grow tired of these games, human. Tell me of the \"Crimson Dawn\" or I will tear your spine out with my bare hands!',12,0,100,0,0,0,29140,0,'Scarlet Marksman'),
-- npc resist line
(28610,1,0,"I'll tell you nothing, Scourge filth!",12,0,100,0,0,0,29141,0,'Scarlet Marksman'),
(28610,1,1,'You''''ll have to kill me, monster. I will tell you NOTHING!',12,0,100,0,0,0,29142,0,'Scarlet Marksman'),
(28610,1,2,'Argh... The pain... The pain is almost as unbearable as the lashings I received in grammar school when I was but a child.',12,0,100,0,0,0,29143,0,'Scarlet Marksman'),
(28610,1,3,"You... You'll get nothing... And like it...",12,0,100,0,0,0,29144,0,'Scarlet Marksman'),
(28610,1,4,"Do you think this to be pain? To be suffering? HAH! Destroy this mortal shell so that I may ascend to the heavens!",12,0,100,0,0,0,29145,0,'Scarlet Marksman'),
(28610,1,5,'You hit like a girl. Honestly. Is that the best you can do?',12,0,100,0,0,0,29146,0,'Scarlet Marksman'),
(28610,1,6,"The crimson what? Never heard of it...",12,0,100,0,0,0,29147,0,'Scarlet Marksman'),
(28610,1,7,"The pain is momentary. It pales in comparison to what the High General would do to me...",12,0,100,0,0,0,29148,0,'Scarlet Marksman'),
(28610,1,8,"You know nothing of pain, monster!",12,0,100,0,0,0,29155,0,'Scarlet Marksman'),
(28610,1,9,"HAH! I've survived three separate inquisitions! This is nothing in comparison!",12,0,100,0,0,0,29156,0,'Scarlet Marksman'),
(28610,1,10,"Look out! There's a bee loose and it's on a stinging rampage!",12,0,100,0,0,0,29157,0,'Scarlet Marksman'),
(28610,1,11,"That one tickled...",12,0,100,0,0,0,29158,0,'Scarlet Marksman'),
(28610,1,12,"I'm going to send you back to the Lich King in pieces!",12,0,100,0,0,0,29159,0,'Scarlet Marksman'),
(28610,1,13,'You''ll be hanging in the gallows shortly, Scourge fiend!',12,0,100,0,0,0,29160,0,'Scarlet Marksman'),
(28610,1,14,'I used to work for Grand Inquisitor Isillien! Your idea of pain is a normal mid-afternoon for me!',12,0,100,0,0,0,29161,0,'Scarlet Marksman'),
(28610,1,15,'ARGH! You burned my last good tabard!',12,0,100,0,0,0,29162,0,'Scarlet Marksman'),
-- torture success
(28610,2,0,"I'll tell you everything! STOP! PLEASE!",12,0,100,20,0,0,29149,0,'Scarlet Marksman'),
(28610,3,0,'We... We have only been told that the \"Crimson Dawn\" is an awakening. You... You see, the Light speaks to the High General. It is the Light...',12,0,100,1,0,0,29150,0,'Scarlet Marksman'),
(28610,4,0,'The Light that guides us. This movement was set in motion before you came... We... We do as we are told. It is what must be done.',12,0,100,1,0,0,29151,0,'Scarlet Marksman'),
(28610,5,0,'I know very litte else... The High General chooses who may go and who must stay behind. There''''s nothing else... You must believe me!',12,0,100,1,0,0,29152,0,'Scarlet Marksman'),
(28610,6,0,'LIES! The pain you are about to endure will be talked about for years to come!',12,0,100,0,0,0,29163,0,'Scarlet Marksman'),
(28610,7,0,'NO! PLEASE! There is one more thing that I forgot to mention... A courier comes soon... From Hearthglen. It...',12,0,100,431,0,0,29153,0,'Scarlet Marksman'),
(28610,8,0,'%s dies from the torture.',16,0,100,0,0,0,29154,0,'Scarlet Marksman'),
-- aggro
(28610,9,0,"Scourge filth! DIE!, Scourge filth! DIE!",12,0,100,0,0,0,28597,0,'Scarlet Marksman'),
(28610,9,1,"The Crusade will be victorious!, The Crusade will be victorious!",12,0,100,0,0,0,28598,0,'Scarlet Marksman'),
(28610,9,2,"I will present your head to Abbendis myself!",12,0,100,0,0,0,28599,0,'Scarlet Marksman'),
(28610,9,3,"You're not welcome in these lands, monster!",12,0,100,0,0,0,28600,0,'Scarlet Marksman'),
(28610,9,4,"Let the purging begin!, Let the purging begin!",12,0,100,0,0,0,28601,0,'Scarlet Marksman'),
(28610,9,5,"By the Light be cleansed!, By the Light be cleansed!",12,0,100,0,0,0,28602,0,'Scarlet Marksman'),
--
-- Players line
(28939,0,0,'What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29133,0,'Scarlet Preacher'),
(28939,0,1,'Tell me what you know about \"Crimson Dawn\" or the beatings will continue!''',12,0,100,0,0,0,29134,0,'Scarlet Preacher'),
(28939,0,2,'I''m through being courteous with your kind, human! What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29135,0,'Scarlet Preacher'),
(28939,0,3,'\"Crimson Dawn!\" What is it! Speak!',12,0,100,0,0,0,29136,0,'Scarlet Preacher'),
(28939,0,4,'I can keep this up for a very long time, Scarlet dog! Tell me about the \"Crimson Dawn!\"',12,0,100,0,0,0,29137,0,'Scarlet Preacher'),
(28939,0,5,'I''ll tear the secrets from your soul! Tell me about the \"Crimson Dawn\" and your life may be spared!',12,0,100,0,0,0,29138,0,'Scarlet Preacher'),
(28939,0,6,'Is your life worth so little? Just tell me what I need to know about \"Crimson Dawn\" and I''ll end your suffering quickly.',12,0,100,0,0,0,29139,0,'Scarlet Preacher'),
(28939,0,7,'I grow tired of these games, human. Tell me of the \"Crimson Dawn\" or I will tear your spine out with my bare hands!',12,0,100,0,0,0,29140,0,'Scarlet Preacher'),
-- npc resist line
(28939,1,0,"I'll tell you nothing, Scourge filth!",12,0,100,0,0,0,29141,0,'Scarlet Preacher'),
(28939,1,1,'You''''ll have to kill me, monster. I will tell you NOTHING!',12,0,100,0,0,0,29142,0,'Scarlet Preacher'),
(28939,1,2,'Argh... The pain... The pain is almost as unbearable as the lashings I received in grammar school when I was but a child.',12,0,100,0,0,0,29143,0,'Scarlet Preacher'),
(28939,1,3,"You... You'll get nothing... And like it...",12,0,100,0,0,0,29144,0,'Scarlet Preacher'),
(28939,1,4,"Do you think this to be pain? To be suffering? HAH! Destroy this mortal shell so that I may ascend to the heavens!",12,0,100,0,0,0,29145,0,'Scarlet Preacher'),
(28939,1,5,'You hit like a girl. Honestly. Is that the best you can do?',12,0,100,0,0,0,29146,0,'Scarlet Preacher'),
(28939,1,6,"The crimson what? Never heard of it...",12,0,100,0,0,0,29147,0,'Scarlet Preacher'),
(28939,1,7,"The pain is momentary. It pales in comparison to what the High General would do to me...",12,0,100,0,0,0,29148,0,'Scarlet Preacher'),
(28939,1,8,"You know nothing of pain, monster!",12,0,100,0,0,0,29155,0,'Scarlet Preacher'),
(28939,1,9,"HAH! I've survived three separate inquisitions! This is nothing in comparison!",12,0,100,0,0,0,29156,0,'Scarlet Preacher'),
(28939,1,10,"Look out! There's a bee loose and it's on a stinging rampage!",12,0,100,0,0,0,29157,0,'Scarlet Preacher'),
(28939,1,11,"That one tickled...",12,0,100,0,0,0,29158,0,'Scarlet Preacher'),
(28939,1,12,"I'm going to send you back to the Lich King in pieces!",12,0,100,0,0,0,29159,0,'Scarlet Preacher'),
(28939,1,13,'You''ll be hanging in the gallows shortly, Scourge fiend!',12,0,100,0,0,0,29160,0,'Scarlet Preacher'),
(28939,1,14,'I used to work for Grand Inquisitor Isillien! Your idea of pain is a normal mid-afternoon for me!',12,0,100,0,0,0,29161,0,'Scarlet Preacher'),
(28939,1,15,'ARGH! You burned my last good tabard!',12,0,100,0,0,0,29162,0,'Scarlet Preacher'),
-- torture success
(28939,2,0,"I'll tell you everything! STOP! PLEASE!",12,0,100,20,0,0,29149,0,'Scarlet Preacher'),
(28939,3,0,'We... We have only been told that the \"Crimson Dawn\" is an awakening. You... You see, the Light speaks to the High General. It is the Light...',12,0,100,1,0,0,29150,0,'Scarlet Preacher'),
(28939,4,0,'The Light that guides us. This movement was set in motion before you came... We... We do as we are told. It is what must be done.',12,0,100,1,0,0,29151,0,'Scarlet Preacher'),
(28939,5,0,'I know very litte else... The High General chooses who may go and who must stay behind. There''''s nothing else... You must believe me!',12,0,100,1,0,0,29152,0,'Scarlet Preacher'),
(28939,6,0,'LIES! The pain you are about to endure will be talked about for years to come!',12,0,100,0,0,0,29163,0,'Scarlet Preacher'),
(28939,7,0,'NO! PLEASE! There is one more thing that I forgot to mention... A courier comes soon... From Hearthglen. It...',12,0,100,431,0,0,29153,0,'Scarlet Preacher'),
(28939,8,0,'%s dies from the torture.',16,0,100,0,0,0,29154,0,'Scarlet Preacher'),
-- aggro
(28939,9,0,"Scourge filth! DIE!, Scourge filth! DIE!",12,0,100,0,0,0,28597,0,'Scarlet Preacher'),
(28939,9,1,"The Crusade will be victorious!, The Crusade will be victorious!",12,0,100,0,0,0,28598,0,'Scarlet Preacher'),
(28939,9,2,"I will present your head to Abbendis myself!",12,0,100,0,0,0,28599,0,'Scarlet Preacher'),
(28939,9,3,"You're not welcome in these lands, monster!",12,0,100,0,0,0,28600,0,'Scarlet Preacher'),
(28939,9,4,"Let the purging begin!, Let the purging begin!",12,0,100,0,0,0,28601,0,'Scarlet Preacher'),
(28939,9,5,"By the Light be cleansed!, By the Light be cleansed!",12,0,100,0,0,0,28602,0,'Scarlet Preacher'),
--
-- Players line
(28940,0,0,'What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29133,0,'Scarlet Crusader'),
(28940,0,1,'Tell me what you know about \"Crimson Dawn\" or the beatings will continue!''',12,0,100,0,0,0,29134,0,'Scarlet Crusader'),
(28940,0,2,'I''m through being courteous with your kind, human! What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29135,0,'Scarlet Crusader'),
(28940,0,3,'\"Crimson Dawn!\" What is it! Speak!',12,0,100,0,0,0,29136,0,'Scarlet Crusader'),
(28940,0,4,'I can keep this up for a very long time, Scarlet dog! Tell me about the \"Crimson Dawn!\"',12,0,100,0,0,0,29137,0,'Scarlet Crusader'),
(28940,0,5,'I''ll tear the secrets from your soul! Tell me about the \"Crimson Dawn\" and your life may be spared!',12,0,100,0,0,0,29138,0,'Scarlet Crusader'),
(28940,0,6,'Is your life worth so little? Just tell me what I need to know about \"Crimson Dawn\" and I''ll end your suffering quickly.',12,0,100,0,0,0,29139,0,'Scarlet Crusader'),
(28940,0,7,'I grow tired of these games, human. Tell me of the \"Crimson Dawn\" or I will tear your spine out with my bare hands!',12,0,100,0,0,0,29140,0,'Scarlet Crusader'),
-- npc resist line
(28940,1,0,"I'll tell you nothing, Scourge filth!",12,0,100,0,0,0,29141,0,'Scarlet Crusader'),
(28940,1,1,'You''''ll have to kill me, monster. I will tell you NOTHING!',12,0,100,0,0,0,29142,0,'Scarlet Crusader'),
(28940,1,2,'Argh... The pain... The pain is almost as unbearable as the lashings I received in grammar school when I was but a child.',12,0,100,0,0,0,29143,0,'Scarlet Crusader'),
(28940,1,3,"You... You'll get nothing... And like it...",12,0,100,0,0,0,29144,0,'Scarlet Crusader'),
(28940,1,4,"Do you think this to be pain? To be suffering? HAH! Destroy this mortal shell so that I may ascend to the heavens!",12,0,100,0,0,0,29145,0,'Scarlet Crusader'),
(28940,1,5,'You hit like a girl. Honestly. Is that the best you can do?',12,0,100,0,0,0,29146,0,'Scarlet Crusader'),
(28940,1,6,"The crimson what? Never heard of it...",12,0,100,0,0,0,29147,0,'Scarlet Crusader'),
(28940,1,7,"The pain is momentary. It pales in comparison to what the High General would do to me...",12,0,100,0,0,0,29148,0,'Scarlet Crusader'),
(28940,1,8,"You know nothing of pain, monster!",12,0,100,0,0,0,29155,0,'Scarlet Crusader'),
(28940,1,9,"HAH! I've survived three separate inquisitions! This is nothing in comparison!",12,0,100,0,0,0,29156,0,'Scarlet Crusader'),
(28940,1,10,"Look out! There's a bee loose and it's on a stinging rampage!",12,0,100,0,0,0,29157,0,'Scarlet Crusader'),
(28940,1,11,"That one tickled...",12,0,100,0,0,0,29158,0,'Scarlet Crusader'),
(28940,1,12,"I'm going to send you back to the Lich King in pieces!",12,0,100,0,0,0,29159,0,'Scarlet Crusader'),
(28940,1,13,'You''ll be hanging in the gallows shortly, Scourge fiend!',12,0,100,0,0,0,29160,0,'Scarlet Crusader'),
(28940,1,14,'I used to work for Grand Inquisitor Isillien! Your idea of pain is a normal mid-afternoon for me!',12,0,100,0,0,0,29161,0,'Scarlet Crusader'),
(28940,1,15,'ARGH! You burned my last good tabard!',12,0,100,0,0,0,29162,0,'Scarlet Crusader'),
-- torture success
(28940,2,0,"I'll tell you everything! STOP! PLEASE!",12,0,100,20,0,0,29149,0,'Scarlet Crusader'),
(28940,3,0,'We... We have only been told that the \"Crimson Dawn\" is an awakening. You... You see, the Light speaks to the High General. It is the Light...',12,0,100,1,0,0,29150,0,'Scarlet Crusader'),
(28940,4,0,'The Light that guides us. This movement was set in motion before you came... We... We do as we are told. It is what must be done.',12,0,100,1,0,0,29151,0,'Scarlet Crusader'),
(28940,5,0,'I know very litte else... The High General chooses who may go and who must stay behind. There''''s nothing else... You must believe me!',12,0,100,1,0,0,29152,0,'Scarlet Crusader'),
(28940,6,0,'LIES! The pain you are about to endure will be talked about for years to come!',12,0,100,0,0,0,29163,0,'Scarlet Crusader'),
(28940,7,0,'NO! PLEASE! There is one more thing that I forgot to mention... A courier comes soon... From Hearthglen. It...',12,0,100,431,0,0,29153,0,'Scarlet Crusader'),
(28940,8,0,'%s dies from the torture.',16,0,100,0,0,0,29154,0,'Scarlet Crusader'),
-- aggro
(28940,9,0,"Scourge filth! DIE!, Scourge filth! DIE!",12,0,100,0,0,0,28597,0,'Scarlet Crusader'),
(28940,9,1,"The Crusade will be victorious!, The Crusade will be victorious!",12,0,100,0,0,0,28598,0,'Scarlet Crusader'),
(28940,9,2,"I will present your head to Abbendis myself!",12,0,100,0,0,0,28599,0,'Scarlet Crusader'),
(28940,9,3,"You're not welcome in these lands, monster!",12,0,100,0,0,0,28600,0,'Scarlet Crusader'),
(28940,9,4,"Let the purging begin!, Let the purging begin!",12,0,100,0,0,0,28601,0,'Scarlet Crusader'),
(28940,9,5,"By the Light be cleansed!, By the Light be cleansed!",12,0,100,0,0,0,28602,0,'Scarlet Crusader'),
--
-- Players line
(28936,0,0,'What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29133,0,'Scarlet Commander'),
(28936,0,1,'Tell me what you know about \"Crimson Dawn\" or the beatings will continue!''',12,0,100,0,0,0,29134,0,'Scarlet Commander'),
(28936,0,2,'I''m through being courteous with your kind, human! What is the \"Crimson Dawn?\"',12,0,100,0,0,0,29135,0,'Scarlet Commander'),
(28936,0,3,'\"Crimson Dawn!\" What is it! Speak!',12,0,100,0,0,0,29136,0,'Scarlet Commander'),
(28936,0,4,'I can keep this up for a very long time, Scarlet dog! Tell me about the \"Crimson Dawn!\"',12,0,100,0,0,0,29137,0,'Scarlet Commander'),
(28936,0,5,'I''ll tear the secrets from your soul! Tell me about the \"Crimson Dawn\" and your life may be spared!',12,0,100,0,0,0,29138,0,'Scarlet Commander'),
(28936,0,6,'Is your life worth so little? Just tell me what I need to know about \"Crimson Dawn\" and I''ll end your suffering quickly.',12,0,100,0,0,0,29139,0,'Scarlet Commander'),
(28936,0,7,'I grow tired of these games, human. Tell me of the \"Crimson Dawn\" or I will tear your spine out with my bare hands!',12,0,100,0,0,0,29140,0,'Scarlet Commander'),
-- npc resist line
(28936,1,0,"I'll tell you nothing, Scourge filth!",12,0,100,0,0,0,29141,0,'Scarlet Commander'),
(28936,1,1,'You''''ll have to kill me, monster. I will tell you NOTHING!',12,0,100,0,0,0,29142,0,'Scarlet Commander'),
(28936,1,2,'Argh... The pain... The pain is almost as unbearable as the lashings I received in grammar school when I was but a child.',12,0,100,0,0,0,29143,0,'Scarlet Commander'),
(28936,1,3,"You... You'll get nothing... And like it...",12,0,100,0,0,0,29144,0,'Scarlet Commander'),
(28936,1,4,"Do you think this to be pain? To be suffering? HAH! Destroy this mortal shell so that I may ascend to the heavens!",12,0,100,0,0,0,29145,0,'Scarlet Commander'),
(28936,1,5,'You hit like a girl. Honestly. Is that the best you can do?',12,0,100,0,0,0,29146,0,'Scarlet Commander'),
(28936,1,6,"The crimson what? Never heard of it...",12,0,100,0,0,0,29147,0,'Scarlet Commander'),
(28936,1,7,"The pain is momentary. It pales in comparison to what the High General would do to me...",12,0,100,0,0,0,29148,0,'Scarlet Commander'),
(28936,1,8,"You know nothing of pain, monster!",12,0,100,0,0,0,29155,0,'Scarlet Commander'),
(28936,1,9,"HAH! I've survived three separate inquisitions! This is nothing in comparison!",12,0,100,0,0,0,29156,0,'Scarlet Commander'),
(28936,1,10,"Look out! There's a bee loose and it's on a stinging rampage!",12,0,100,0,0,0,29157,0,'Scarlet Commander'),
(28936,1,11,"That one tickled...",12,0,100,0,0,0,29158,0,'Scarlet Commander'),
(28936,1,12,"I'm going to send you back to the Lich King in pieces!",12,0,100,0,0,0,29159,0,'Scarlet Commander'),
(28936,1,13,'You''ll be hanging in the gallows shortly, Scourge fiend!',12,0,100,0,0,0,29160,0,'Scarlet Commander'),
(28936,1,14,'I used to work for Grand Inquisitor Isillien! Your idea of pain is a normal mid-afternoon for me!',12,0,100,0,0,0,29161,0,'Scarlet Commander'),
(28936,1,15,'ARGH! You burned my last good tabard!',12,0,100,0,0,0,29162,0,'Scarlet Commander'),
-- torture success
(28936,2,0,"I'll tell you everything! STOP! PLEASE!",12,0,100,20,0,0,29149,0,'Scarlet Commander'),
(28936,3,0,'We... We have only been told that the \"Crimson Dawn\" is an awakening. You... You see, the Light speaks to the High General. It is the Light...',12,0,100,1,0,0,29150,0,'Scarlet Commander'),
(28936,4,0,'The Light that guides us. This movement was set in motion before you came... We... We do as we are told. It is what must be done.',12,0,100,1,0,0,29151,0,'Scarlet Commander'),
(28936,5,0,'I know very litte else... The High General chooses who may go and who must stay behind. There''''s nothing else... You must believe me!',12,0,100,1,0,0,29152,0,'Scarlet Commander'),
(28936,6,0,'LIES! The pain you are about to endure will be talked about for years to come!',12,0,100,0,0,0,29163,0,'Scarlet Commander'),
(28936,7,0,'NO! PLEASE! There is one more thing that I forgot to mention... A courier comes soon... From Hearthglen. It...',12,0,100,431,0,0,29153,0,'Scarlet Commander'),
(28936,8,0,'%s dies from the torture.',16,0,100,0,0,0,29154,0,'Scarlet Commander'),
-- aggro
(28936,9,0,"Scourge filth! DIE!, Scourge filth! DIE!",12,0,100,0,0,0,28597,0,'Scarlet Commander'),
(28936,9,1,"The Crusade will be victorious!, The Crusade will be victorious!",12,0,100,0,0,0,28598,0,'Scarlet Commander'),
(28936,9,2,"I will present your head to Abbendis myself!",12,0,100,0,0,0,28599,0,'Scarlet Commander'),
(28936,9,3,"You're not welcome in these lands, monster!",12,0,100,0,0,0,28600,0,'Scarlet Commander'),
(28936,9,4,"Let the purging begin!, Let the purging begin!",12,0,100,0,0,0,28601,0,'Scarlet Commander'),
(28936,9,5,"By the Light be cleansed!, By the Light be cleansed!",12,0,100,0,0,0,28602,0,'Scarlet Commander');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=52781;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=52805;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(17,0,52781,0,0,31,1,3,28610,0,0,27,0,'','Persuasive Strike - Scarlet Marksman'),
(17,0,52781,0,0,9,0,12720,0,0,0,27,0,'','Persuasive Strike - require quest taken'),
(17,0,52781,0,1,31,1,3,28939,0,0,27,0,'','Persuasive Strike - Scarlet Preacher'),
(17,0,52781,0,1,9,0,12720,0,0,0,27,0,'','Persuasive Strike - require quest taken'),
(17,0,52781,0,2,31,1,3,28940,0,0,27,0,'','Persuasive Strike - Scarlet Crusader'),
(17,0,52781,0,2,9,0,12720,0,0,0,27,0,'','Persuasive Strike - require quest taken'),
(17,0,52781,0,3,31,1,3,28936,0,0,27,0,'','Persuasive Strike - Scarlet Commander'),
(17,0,52781,0,3,9,0,12720,0,0,0,27,0,'','Persuasive Strike - require quest taken'),
(13,1,52805,0,0,31,0,3,28610,0,0,0,0,'','Interrogation - Scarlet Marksman'),
(13,1,52805,0,1,31,0,3,28939,0,0,0,0,'','Interrogation - Scarlet Preacher'),
(13,1,52805,0,2,31,0,3,28940,0,0,0,0,'','Interrogation - Scarlet Crusader'),
(13,1,52805,0,3,31,0,3,28936,0,0,0,0,'','Interrogation - Scarlet Commander');
UPDATE `creature_template` SET `ScriptName`='',`AIName`='SmartAI' WHERE `entry` IN (28610,28939,28940,28936);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (28610,28939,28940,28936) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (2861000,2861001,2861002) AND `source_type`=9;
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
(28610,0,0,0,0,0,100,0,2000,3900,2500,3900,0,11,6660,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Marksman - IC CMC - Cast shot'),
(28610,0,1,0,0,0,100,0,4000,8000,4000,8000,0,11,32915,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Marksman - IC - Cast Raptor Strike'),
(28610,0,2,0,0,0,100,0,8000,10000,8000,10000,0,11,18651,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Marksman - IC - Cast Multi-Shot'),
(28610,0,3,0,8,0,100,0,52781,0,10000,10000,0,87,2861000,2861001,2861000,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Marksman - On spellhit - Random action list'),
(28610,0,4,0,4,0,10,0,0,0,0,0,0,1,9,0,1,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet Marksman - On aggro - say text'),
(28610,0,5,0,7,0,100,0,0,0,0,0,0,80,2861002,2,1,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Marksman - On evade - action list'),
(28939,0,0,0,0,0,100,0,2000,3900,2500,3900,0,11,15498,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Preacher - IC CMC - Cast Holy Smite'),
(28939,0,1,0,0,0,100,0,4000,6000,60000,60000,0,11,34809,1,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Preacher - IC - Cast Holy Fury'),
(28939,0,2,0,0,0,100,0,8000,10000,25000,30000,0,11,19725,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Preacher - IC - Cast Turn Undead'),
(28939,0,3,0,8,0,100,0,52781,0,10000,10000,0,87,2861000,2861001,2861000,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Preacher - On spellhit - Random action list'),
(28939,0,4,0,4,0,10,0,0,0,0,0,0,1,9,0,1,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet Preacher - On aggro - say text'),
(28939,0,5,0,7,0,100,0,0,0,0,0,0,80,2861002,2,1,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Preacher - On evade - action list'),
(28940,0,0,0,0,0,100,0,2300,3900,2300,3900,0,11,52818,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Crusader - IC CMC - Cast shot'),
(28940,0,1,0,0,0,100,0,5000,8000,5000,8000,0,11,52221,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Crusader - IC - Cast Heroic Strike'),
(28940,0,2,0,8,0,100,0,52781,0,10000,10000,0,87,2861000,2861001,2861000,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Crusader - On spellhit - Random action list'),
(28940,0,3,0,4,0,10,0,0,0,0,0,0,1,9,0,1,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet Marksman - On aggro - say text'),
(28940,0,4,0,7,0,100,0,0,0,0,0,0,80,2861002,2,1,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Marksman - On evade - action list'),
(28936,0,0,0,0,0,100,0,2300,3900,2300,3900,0,11,52818,64,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Commander - IC CMC - Cast shot'),
(28936,0,1,0,0,0,100,0,5000,8000,5000,8000,0,11,52221,0,0,0,0,0,2,0,0,0,0,0,0,0,0,'Scarlet Commander - IC - Cast Heroic Strike'),
(28936,0,2,0,8,0,100,0,52781,0,10000,10000,0,87,2861000,2861001,2861000,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Commander - On spellhit - Random action list'),
(28936,0,3,0,4,0,10,0,0,0,0,0,0,1,9,0,1,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet Commander - On aggro - say text'),
(28936,0,4,0,7,0,100,0,0,0,0,0,0,80,2861002,2,1,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet Commander - On evade - action list'),
(2861000,9,0,0,0,0,100,0,0,0,0,0,0,84,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 0 - Player say line 0'),
(2861000,9,1,0,0,0,100,0,4000,4000,0,0,0,1,1,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 0 - Say line 1'),
(2861001,9,0,0,0,0,100,0,0,0,0,0,0,84,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 0 - Player say line 0'),
(2861001,9,1,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,'Scarlet unit - Action list 1 - Set react state'),
(2861001,9,2,0,0,0,100,0,0,0,0,0,0,21,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Disable combat movement'),
(2861001,9,3,0,0,0,100,0,2000,2000,0,0,0,1,2,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 2'),
(2861001,9,4,0,0,0,100,0,2000,2000,0,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Set kneel state'),
(2861001,9,5,0,0,0,100,0,2000,2000,0,0,0,1,3,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 3'),
(2861001,9,6,0,0,0,100,0,5000,5000,0,0,0,1,4,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 4'),
(2861001,9,7,0,0,0,100,0,6000,6000,0,0,0,1,5,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 5'),
(2861001,9,8,0,0,0,100,0,3000,3000,0,0,0,84,6,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Player say line 6'),
(2861001,9,9,0,0,0,100,0,0,0,0,0,0,11,52806,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - cast Interrogation'),
(2861001,9,10,0,0,0,100,0,0,0,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Remove kneel state'),
(2861001,9,11,0,0,0,100,0,0,0,0,0,0,17,431,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Set state Cower'),
(2861001,9,12,0,0,0,100,0,4000,4000,0,0,0,1,7,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 7'),
(2861001,9,13,0,0,0,100,0,2000,2000,0,0,0,11,52794,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Cast \'Interrogation Quest Credit\''),
(2861001,9,14,0,0,0,100,0,1000,1000,0,0,0,1,8,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Say line 8'),
(2861001,9,15,0,0,0,100,0,0,0,0,0,0,11,3617,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - Action list 1 - Cast kill self'),
(2861002,9,0,0,0,0,100,0,0,0,0,0,0,17,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - On action list - Reset emote state'),
(2861002,9,1,0,0,0,100,0,0,0,0,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - On action list - Restore state'),
(2861002,9,2,0,0,0,100,0,0,0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - On action list - Restore react state'),
(2861002,9,3,0,0,0,100,0,0,0,0,0,0,21,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Scarlet unit - On action list - Enable combat movement');

View File

@@ -25,148 +25,6 @@
#include "SpellInfo.h"
#include "SpellScript.h"
//How to win friends and influence enemies
// texts signed for creature 28939 but used for 28939, 28940, 28610
enum win_friends
{
SAY_CRUSADER = 1,
SAY_PERSUADED1 = 2,
SAY_PERSUADED2 = 3,
SAY_PERSUADED3 = 4,
SAY_PERSUADED4 = 5,
SAY_PERSUADED5 = 6,
SAY_PERSUADED6 = 7,
SAY_PERSUADE_RAND = 8,
SPELL_PERSUASIVE_STRIKE = 52781,
SPELL_THREAT_PULSE = 58111,
QUEST_HOW_TO_WIN_FRIENDS = 12720,
};
class npc_crusade_persuaded : public CreatureScript
{
public:
npc_crusade_persuaded() : CreatureScript("npc_crusade_persuaded") { }
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_crusade_persuadedAI(creature);
}
struct npc_crusade_persuadedAI : public ScriptedAI
{
npc_crusade_persuadedAI(Creature* creature) : ScriptedAI(creature)
{
Initialize();
}
void Initialize()
{
speechTimer = 0;
speechCounter = 0;
playerGUID.Clear();
}
uint32 speechTimer;
uint32 speechCounter;
ObjectGuid playerGUID;
void Reset() override
{
Initialize();
me->SetReactState(REACT_AGGRESSIVE);
me->RestoreFaction();
}
void SpellHit(Unit* caster, SpellInfo const* spell) override
{
if (spell->Id == SPELL_PERSUASIVE_STRIKE && caster->GetTypeId() == TYPEID_PLAYER && me->IsAlive() && !speechCounter)
{
if (Player* player = caster->ToPlayer())
{
if (player->GetQuestStatus(QUEST_HOW_TO_WIN_FRIENDS) == QUEST_STATUS_INCOMPLETE)
{
playerGUID = player->GetGUID();
speechTimer = 1000;
speechCounter = 1;
me->SetFaction(player->GetFaction());
me->CombatStop(true);
me->GetMotionMaster()->MoveIdle();
me->SetReactState(REACT_PASSIVE);
DoCastAOE(SPELL_THREAT_PULSE, true);
sCreatureTextMgr->SendChat(me, SAY_PERSUADE_RAND, nullptr, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_NORMAL, 0, SoundKitPlayType::Normal, TEAM_OTHER, false, player);
Talk(SAY_CRUSADER);
}
}
}
}
void UpdateAI(uint32 diff) override
{
if (speechCounter)
{
if (speechTimer <= diff)
{
Player* player = ObjectAccessor::GetPlayer(*me, playerGUID);
if (!player)
{
EnterEvadeMode();
return;
}
switch (speechCounter)
{
case 1:
Talk(SAY_PERSUADED1);
speechTimer = 8000;
break;
case 2:
Talk(SAY_PERSUADED2);
speechTimer = 8000;
break;
case 3:
Talk(SAY_PERSUADED3);
speechTimer = 8000;
break;
case 4:
Talk(SAY_PERSUADED4);
speechTimer = 8000;
break;
case 5:
sCreatureTextMgr->SendChat(me, SAY_PERSUADED5, nullptr, CHAT_MSG_ADDON, LANG_ADDON, TEXT_RANGE_NORMAL, 0, SoundKitPlayType::Normal, TEAM_OTHER, false, player);
speechTimer = 8000;
break;
case 6:
Talk(SAY_PERSUADED6);
Unit::Kill(player, me);
speechCounter = 0;
player->GroupEventHappens(QUEST_HOW_TO_WIN_FRIENDS, me);
return;
}
++speechCounter;
DoCastAOE(SPELL_THREAT_PULSE, true);
} else
speechTimer -= diff;
return;
}
if (!UpdateVictim())
return;
DoMeleeAttackIfReady();
}
};
};
/*######
## npc_koltira_deathweaver
######*/
@@ -763,7 +621,6 @@ class spell_death_knight_devour_humanoid : public SpellScript
void AddSC_the_scarlet_enclave_c2()
{
new npc_crusade_persuaded();
new npc_scarlet_courier();
new npc_koltira_deathweaver();
new npc_high_inquisitor_valroth();