Core/Scripts: remove obsolete scripts for Orsonn and Kodian
related to #4788
This commit is contained in:
committed by
ZxBiohazardZx
parent
e6693dc6b5
commit
d9a75b3828
@@ -16,115 +16,9 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* ScriptData
|
||||
SDName: Grizzly_Hills
|
||||
SD%Complete: 80
|
||||
SDComment: Quest support: 12231, 12247
|
||||
SDCategory: Grizzly Hills
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
npc_orsonn_and_kodian
|
||||
EndContentData */
|
||||
|
||||
#include "ScriptPCH.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
|
||||
#define GOSSIP_ITEM1 "You're free to go Orsonn, but first tell me what's wrong with the furbolg."
|
||||
#define GOSSIP_ITEM2 "What happened then?"
|
||||
#define GOSSIP_ITEM3 "Thank you, Son of Ursoc. I'll see what can be done."
|
||||
#define GOSSIP_ITEM4 "Who was this stranger?"
|
||||
#define GOSSIP_ITEM5 "Thank you, Kodian. I'll do what I can."
|
||||
|
||||
enum eEnums
|
||||
{
|
||||
GOSSIP_TEXTID_ORSONN1 = 12793,
|
||||
GOSSIP_TEXTID_ORSONN2 = 12794,
|
||||
GOSSIP_TEXTID_ORSONN3 = 12796,
|
||||
|
||||
GOSSIP_TEXTID_KODIAN1 = 12797,
|
||||
GOSSIP_TEXTID_KODIAN2 = 12798,
|
||||
|
||||
NPC_ORSONN = 27274,
|
||||
NPC_KODIAN = 27275,
|
||||
|
||||
//trigger creatures
|
||||
NPC_ORSONN_CREDIT = 27322,
|
||||
NPC_KODIAN_CREDIT = 27321,
|
||||
|
||||
QUEST_CHILDREN_OF_URSOC = 12247,
|
||||
QUEST_THE_BEAR_GODS_OFFSPRING = 12231
|
||||
};
|
||||
|
||||
class npc_orsonn_and_kodian : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_orsonn_and_kodian() : CreatureScript("npc_orsonn_and_kodian") { }
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
if (creature->isQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
if (player->GetQuestStatus(QUEST_CHILDREN_OF_URSOC) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_BEAR_GODS_OFFSPRING) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case NPC_ORSONN:
|
||||
if (!player->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_ORSONN_CREDIT) || !player->GetReqKillOrCastCurrentCount(QUEST_THE_BEAR_GODS_OFFSPRING, NPC_ORSONN_CREDIT))
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ORSONN1, creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case NPC_KODIAN:
|
||||
if (!player->GetReqKillOrCastCurrentCount(QUEST_CHILDREN_OF_URSOC, NPC_KODIAN_CREDIT) || !player->GetReqKillOrCastCurrentCount(QUEST_THE_BEAR_GODS_OFFSPRING, NPC_KODIAN_CREDIT))
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM4, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+4);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_KODIAN1, creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
switch (uiAction)
|
||||
{
|
||||
case GOSSIP_ACTION_INFO_DEF+1:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ORSONN2, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+2:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM3, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_ORSONN3, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+3:
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
player->TalkedToCreature(NPC_ORSONN_CREDIT, creature->GetGUID());
|
||||
break;
|
||||
|
||||
case GOSSIP_ACTION_INFO_DEF+4:
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM5, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 5);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_KODIAN2, creature->GetGUID());
|
||||
break;
|
||||
case GOSSIP_ACTION_INFO_DEF+5:
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
player->TalkedToCreature(NPC_KODIAN_CREDIT, creature->GetGUID());
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## Quest 12027: Mr. Floppy's Perilous Adventure
|
||||
######*/
|
||||
@@ -801,7 +695,6 @@ public:
|
||||
|
||||
void AddSC_grizzly_hills()
|
||||
{
|
||||
new npc_orsonn_and_kodian;
|
||||
new npc_emily;
|
||||
new npc_mrfloppy;
|
||||
new npc_outhouse_bunny;
|
||||
|
||||
Reference in New Issue
Block a user