Implemented support for npc 34885. Code from ScriptDev2.
--HG-- branch : trunk
This commit is contained in:
@@ -118,6 +118,31 @@ bool GossipHello_valiant_challenge(Player* player, Creature* _Creature)
|
||||
return true;
|
||||
}
|
||||
|
||||
/*######
|
||||
## npc_dame_evniki_kapsalis
|
||||
######*/
|
||||
|
||||
enum eDameEnvikiKapsalis
|
||||
{
|
||||
TITLE_CRUSADER = 123
|
||||
};
|
||||
|
||||
bool GossipHello_npc_dame_evniki_kapsalis(Player* pPlayer, Creature* pCreature)
|
||||
{
|
||||
if (pPlayer->HasTitle(TITLE_CRUSADER))
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
|
||||
|
||||
pPlayer->SEND_GOSSIP_MENU(pPlayer->GetGossipTextId(pCreature), pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GossipSelect_npc_dame_evniki_kapsalis(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
|
||||
{
|
||||
if (uiAction == GOSSIP_ACTION_TRADE)
|
||||
pPlayer->SEND_VENDORLIST(pCreature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
void AddSC_icecrown()
|
||||
{
|
||||
Script *newscript;
|
||||
@@ -132,4 +157,10 @@ void AddSC_icecrown()
|
||||
newscript->Name = "valiant_challenge";
|
||||
newscript->pGossipHello = &GossipHello_valiant_challenge;
|
||||
newscript->RegisterSelf();
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "npc_dame_evniki_kapsalis";
|
||||
newscript->pGossipHello = &GossipHello_npc_dame_evniki_kapsalis;
|
||||
newscript->pGossipSelect = &GossipSelect_npc_dame_evniki_kapsalis;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user