|
16 | 16 |
|
17 | 17 | /* ScriptData |
18 | 18 | SDName: Searing_Gorge |
19 | | -SD%Complete: 80 |
20 | | -SDComment: Quest support: 3377 |
| 19 | +SD%Complete: 0 |
| 20 | +SDComment: Placeholder |
21 | 21 | SDCategory: Searing Gorge |
22 | 22 | EndScriptData */ |
23 | 23 |
|
24 | 24 | /* ContentData |
25 | | -npc_zamael_lunthistle |
26 | 25 | EndContentData */ |
27 | 26 |
|
28 | 27 | #include "precompiled.h" |
29 | 28 |
|
30 | | -/*###### |
31 | | -## npc_zamael_lunthistle |
32 | | -######*/ |
33 | | - |
34 | | -bool GossipHello_npc_zamael_lunthistle(Player* pPlayer, Creature* pCreature) |
35 | | -{ |
36 | | - if (pCreature->isQuestGiver()) |
37 | | - pPlayer->PrepareQuestMenu(pCreature->GetObjectGuid()); |
38 | | - |
39 | | - if (pPlayer->GetQuestStatus(3377) == QUEST_STATUS_INCOMPLETE) |
40 | | - pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Tell me your story", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF); |
41 | | - |
42 | | - pPlayer->SEND_GOSSIP_MENU(1920, pCreature->GetObjectGuid()); |
43 | | - |
44 | | - return true; |
45 | | -} |
46 | | - |
47 | | -bool GossipSelect_npc_zamael_lunthistle(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) |
48 | | -{ |
49 | | - switch(uiAction) |
50 | | - { |
51 | | - case GOSSIP_ACTION_INFO_DEF: |
52 | | - pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Please continue...", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); |
53 | | - pPlayer->SEND_GOSSIP_MENU(1921, pCreature->GetObjectGuid()); |
54 | | - break; |
55 | | - case GOSSIP_ACTION_INFO_DEF+1: |
56 | | - pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Goodbye", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); |
57 | | - pPlayer->SEND_GOSSIP_MENU(1922, pCreature->GetObjectGuid()); |
58 | | - break; |
59 | | - case GOSSIP_ACTION_INFO_DEF+2: |
60 | | - pPlayer->CLOSE_GOSSIP_MENU(); |
61 | | - pPlayer->AreaExploredOrEventHappens(3377); |
62 | | - break; |
63 | | - } |
64 | | - return true; |
65 | | -} |
66 | | - |
67 | 29 | /*###### |
68 | 30 | ## |
69 | 31 | ######*/ |
70 | 32 |
|
71 | 33 | void AddSC_searing_gorge() |
72 | 34 | { |
73 | | - Script* pNewScript; |
74 | | - |
75 | | - pNewScript = new Script; |
76 | | - pNewScript->Name = "npc_zamael_lunthistle"; |
77 | | - pNewScript->pGossipHello = &GossipHello_npc_zamael_lunthistle; |
78 | | - pNewScript->pGossipSelect = &GossipSelect_npc_zamael_lunthistle; |
79 | | - pNewScript->RegisterSelf(); |
80 | 35 | } |
0 commit comments