Quest 14444 & 24555 "What The Dragons Know"

up pack:36

server hash:c2690f748bcc42a1818b90336e81fb586588dd1e

also need core script.

source : http://www.wowhead.com/quest=24555#comments

and

– strings for future use(did not know what id should be and therefore took free ids)
DELETE FROM db_script_string where entry in (2000005411,2000005412,2000005413,2000005414,2000005415,2000005416,2000005417,2000005418,2000005419,2000005420,2000005421,2000005422);
INSERT INTO db_script_string (entry,content_default,content_loc1,content_loc2,content_loc3,content_loc4,content_loc5,content_loc6,content_loc7,content_loc8) VALUES
(2000005411, ‘You're too late, $N. Another visitor from Dalaran came asking after information about the same prismatic dragon blades.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005412, ‘From your description, I'm certain that the book I loaned our visitor could allow you to easily identify the weapon.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005413, ‘I'm afraid you'll have to ask the – Well, perhaps Kalecgos can help.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005414, ‘$N may have found the remains of a prismatic blade, Kalecgos. Will you offer your help to our visitor?’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005415, ‘Are you certain you should be helping these mortals in their quest for the sword?’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005416, ‘These blades, Krasus… They were made long ago, when things were… different.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005417, ‘You believe our allies will not be able to control the power of the swords?’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005418, ‘Our enemies once turned our strongest weapon against us. What makes you think the prismatic blades will be any different?’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005419, ‘Mortal champions have long used these weapons to combat evil. I see no reason to keep the swords from them in this battle.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005420, ‘As you wish, my queen. I will not stand in their way, but I will keep a close watch.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005421, ‘As will we all.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2000005422, ‘Please, mortal, speak with Arcanist Tybalin in Dalaran. He may be able to negotiate with the Sunreavers for access to the book.’,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

UPDATE creature_template SET ScriptName=‘boss_krasus’ WHERE entry=27990; – set script name for Krasus
DELETE FROM gossip_menu_option WHERE menu_id=10199; – cleenup first

INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id,action_poi_id,action_script_id,box_coded,box_money,box_text) VALUES
(10199,0,0,‘What do you know of ancient swords?’,1,1,0,0,1019900,0,0,‘’); – menu link

DELETE FROM gossip_scriptsWHERE id=1019900;
INSERT INTO gossip_scripts (id,delay,command,datalong,datalong2,dataint,x,y,z,o) VALUES
(1019900,0,33,0,0,0,0,0,0,0), – close gossip
(1019900,0,1,1,0,0,0,0,0,0), – emote talk
(1019900,1,0,0,0,2000005411,0,0,0,0), – say krasus_1
(1019900,7,1,1,0,0,0,0,0,0), – emote talk
(1019900,8,0,0,0,2000005412,0,0,0,0), – say krasus_2
(1019900,8,21,131080,3801700,5,0,0,0,0), – run scripts for Kalecgos in event_scripts
(1019900,19,1,25,0,0,0,0,0,0), – emote POINT
(1019900,19,0,0,0,2000005413,0,0,0,0), – say krasus_3
(1019900,23,0,0,0,2000005414,0,0,0,0), – say krasus_4
(1019900,40,1,1,0,0,0,0,0,0), – emote talk
(1019900,40,0,0,0,2000005417,0,0,0,0), – say krasus_5
(1019900,60,8,36715,0,0,0,0,0,0), – give kill_credit for quest What The Dragons Know(A_H)
(1019900,68,1,1,0,0,0,0,0,0), – emote talk
(1019900,68,0,0,0,2000005421,0,0,0,0), – say krasus_6
(1019900,74,1,25,0,0,0,0,0,0), – emote POINT
(1019900,74,0,0,0,2000005422,0,0,0,0); – say krasus_7

DELETE FROM event_scriptsWHERE id=3801700;
INSERT INTO event_scripts (id,delay,command,datalong,datalong2,dataint,x,y,z,o) VALUES
(3801700,0,3,0,9000,0,3541.156,276.041,342.721,0), – Kalecgos go to talk
(3801700,10,30,0,0,0,0,0,0,3.120972), – Kalecgos set orientation
(3801700,19,1,1,0,0,0,0,0,0), – emote say
(3801700,19,0,0,0,2000005415,0,0,0,0), – say Kalecgos_1
(3801700,25,1,1,0,0,0,0,0,0), – emote talk
(3801700,25,0,0,0,2000005416,0,0,0,0), – say Kalecgos_2
(3801700,41,1,1,0,0,0,0,0,0), – emote talk
(3801700,41,0,0,0,2000005418,0,0,0,0), – say Kalecgos_3
(3801700,48,21,130984,2691700,5,0,0,0,0), – run event_scripts for Alexstrasza the Life-Binder
(3801700,55,1,1,0,0,0,0,0,0), – emote talk
(3801700,55,0,0,0,2000005420,0,0,0,0), – say Kalecgos_4
(3801700,64,1,16,0,0,0,0,0,0), – emote KNEEL
(3801700,66,3,0,9000,0,3545.989,287.278,342.721,0), – move Kalecgos to start lokation
(3801700,76,30,0,0,0,0,0,0,4.76475), – Kalecgos set orientation
(2691700,0,1,1,0,0,0,0,0,0), – emote talk
(2691700,0,0,0,0,2000005419,0,0,0,0);-- say Alexstrasza the Life-Binder_1

core patch


Index: src/server/scripts/Northrend/dragonblight.cpp

===================================================================

--- a/src/server/scripts/Northrend/dragonblight.cpp

+++ b/src/server/scripts/Northrend/dragonblight.cpp

@@ -35,5 +35,7 @@

     QUEST_RETURN_TO_AG_A    = 12499,

     QUEST_RETURN_TO_AG_H    = 12500,

-    MOVIE_ID_GATES          = 14

+    MOVIE_ID_GATES          = 14,

+        WHAT_THE_DRAGONS_KNOW_A = 14444,

+        WHAT_THE_DRAGONS_KNOW_H = 24555

 };


@@ -269,6 +271,31 @@

 };


+enum eKrasus

+{

+        NPC_KRASUS_MENU = 10199

+};

+

+class boss_krasus : public CreatureScript

+{

+public:

+    boss_krasus() : CreatureScript("boss_krasus") { }

+

+

+    bool OnGossipHello(Player* pPlayer, Creature* pCreature)

+    {

+            if (pCreature->isQuestGiver())

+        pPlayer->PrepareQuestMenu(pCreature->GetGUID());

+

+                if (pPlayer->GetQuestStatus(WHAT_THE_DRAGONS_KNOW_A) == QUEST_STATUS_INCOMPLETE || pPlayer->GetQuestStatus(WHAT_THE_DRAGONS_KNOW_H) == QUEST_STATUS_INCOMPLETE)

+                        pPlayer->PrepareGossipMenu(pCreature, NPC_KRASUS_MENU, true);

+

+                pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());

+        return true;

+   }

+};

+

 void AddSC_dragonblight()

 {

+        new boss_krasus;

     new npc_alexstrasza_wr_gate;

     new npc_inquisitor_hallard;

i do not see any SAI involved here. this belongs in cpp section for testing.

yap you are right! sorry my mistake. /emoticons/default_smile.png

I am curious as to why you would use C++ when what you have written can be done with the condition system and gossip system entirely in the DB…

– Brian

maybe i don’t know so good condition system /emoticons/default_sad.png

http://www.trinitycore.org/w/Conditions_tc2

Doing “if (pPlayer->GetQuestStatus(WHAT_THE_DRAGONS_KNOW_A) == QUEST_STATUS_INCOMPLETE || pPlayer->GetQuestStatus(WHAT_THE_DRAGONS_KNOW_H) == QUEST_STATUS_INCOMPLETE)” is trivial using conditions (DB only).

Didn’t I already do that quest in SAI?

The fix was on old forums?

It Was, Malcrom made it.

tanks tomorrow i will rewrite

It was tested and working too. Did anyone copy it?

Sadness, I believe it was www.trinitycore.org/topic/30230-quest-what-the-dragons-know but it is no longer on google cache

You don’t save what you do, Malcrom? /emoticons/default_ohmy.png

(Wait… I don’t either)

I used to fix a lot of stuff. I put it on the forum for safe keeping :expressionless:

Does anyone have the entries of the npcs involved?

Moved to tracker.

Thanks Malcrom.

Thanks kirkita for the effort!

Kirkita, you gave us the proper emotes and the move to locations has I had no video to go by so good show /emoticons/default_smile.png

Still problems to workout:

updated below

Needs someone to test to see if Kalecgos is pathing.

Quest works but Kalecgos does not move towards Krasus

IMG:
http://i51.tinypic.com/1195h5w.jpg

I don’t think you are using the updated sql.