From 7ad284bd33b95ea40e2c0f972d843e55505c6f63 Mon Sep 17 00:00:00 2001 From: maximius Date: Thu, 19 Nov 2009 03:53:49 -0800 Subject: *Some cleanup. --HG-- branch : trunk --- .../scripts/scripts/custom/npc_acherus_taxi.cpp | 32 ++++++++++------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp b/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp index b09f129788e..19da9bff609 100644 --- a/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp +++ b/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp @@ -3,26 +3,22 @@ #define GOSSIP_FLIGHT "I need a ride" -bool GossipHello_npc_acherus_taxi(Player* pPlayer, Creature* pCreature) +bool GossipHello_npc_acherus_taxi(Player *pPlayer, Creature *pCreature) { -pPlayer->SetTaxiCheater(true); - -pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_FLIGHT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); - pPlayer->SEND_GOSSIP_MENU(9978, pCreature->GetGUID()); + pPlayer->SetTaxiCheater(true); + pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_FLIGHT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); + pPlayer->SEND_GOSSIP_MENU(9978, pCreature->GetGUID()); return true; } -bool GossipSelect_npc_acherus_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction) +bool GossipSelect_npc_acherus_taxi(Player *pPlayer, Creature *pCreature, uint32 uiSender, uint32 uiAction) { if (uiAction == GOSSIP_ACTION_INFO_DEF + 1) { - if (pPlayer->GetPositionZ() >=316) - { - pPlayer->GetSession()->SendDoFlight(24446, 1053); - }else{ - pPlayer->GetSession()->SendDoFlight(24446, 1054); - } - + if (pPlayer->GetPositionZ() >= 316) + pPlayer->GetSession()->SendDoFlight(24446, 1053); + else + pPlayer->GetSession()->SendDoFlight(24446, 1054); } return true; } @@ -31,9 +27,9 @@ void AddSC_npc_acherus_taxi() { Script *newscript; -newscript = new Script; -newscript->Name = "npc_acherus_taxi"; -newscript->pGossipHello = &GossipHello_npc_acherus_taxi; -newscript->pGossipSelect = &GossipSelect_npc_acherus_taxi; -newscript->RegisterSelf(); + newscript = new Script; + newscript->Name = "npc_acherus_taxi"; + newscript->pGossipHello = &GossipHello_npc_acherus_taxi; + newscript->pGossipSelect = &GossipSelect_npc_acherus_taxi; + newscript->RegisterSelf(); } -- cgit v1.2.3