Core: Start cleaning up hungarian notation - Phase1: pCreature -> creature

This commit is contained in:
click
2011-07-02 22:18:03 +02:00
parent 3ddc1cc4c4
commit f91ee24184
345 changed files with 3642 additions and 3642 deletions
+12 -12
View File
@@ -40,34 +40,34 @@ class npcs_riverbreeze_and_silversky : public CreatureScript
public:
npcs_riverbreeze_and_silversky() : CreatureScript("npcs_riverbreeze_and_silversky") { }
bool OnGossipSelect(Player* pPlayer, Creature* pCreature, uint32 /*uiSender*/, uint32 uiAction)
bool OnGossipSelect(Player* pPlayer, Creature* creature, uint32 /*uiSender*/, uint32 uiAction)
{
pPlayer->PlayerTalkClass->ClearMenus();
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
pPlayer->CLOSE_GOSSIP_MENU();
pCreature->CastSpell(pPlayer, 15120, false);
creature->CastSpell(pPlayer, 15120, false);
}
return true;
}
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
bool OnGossipHello(Player* pPlayer, Creature* creature)
{
uint32 eCreature = pCreature->GetEntry();
uint32 eCreature = creature->GetEntry();
if (pCreature->isQuestGiver())
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
if (creature->isQuestGiver())
pPlayer->PrepareQuestMenu(creature->GetGUID());
if (eCreature == 9528)
{
if (pPlayer->GetQuestRewardStatus(4101))
{
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_BEACON, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
pPlayer->SEND_GOSSIP_MENU(2848, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2848, creature->GetGUID());
} else if (pPlayer->GetTeam() == HORDE)
pPlayer->SEND_GOSSIP_MENU(2845, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2845, creature->GetGUID());
else
pPlayer->SEND_GOSSIP_MENU(2844, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2844, creature->GetGUID());
}
if (eCreature == 9529)
@@ -75,11 +75,11 @@ public:
if (pPlayer->GetQuestRewardStatus(4102))
{
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_BEACON, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
pPlayer->SEND_GOSSIP_MENU(2849, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2849, creature->GetGUID());
} else if (pPlayer->GetTeam() == ALLIANCE)
pPlayer->SEND_GOSSIP_MENU(2843, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2843, creature->GetGUID());
else
pPlayer->SEND_GOSSIP_MENU(2842, pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(2842, creature->GetGUID());
}
return true;