diff options
| author | maximius <none@none> | 2009-11-19 03:53:49 -0800 |
|---|---|---|
| committer | maximius <none@none> | 2009-11-19 03:53:49 -0800 |
| commit | 7ad284bd33b95ea40e2c0f972d843e55505c6f63 (patch) | |
| tree | d898296ac295a750e29942e74b17c8d32a48dba9 /src/bindings/scripts | |
| parent | 9953ff49b819ac2f0abf6ad08711f2193d9e9861 (diff) | |
*Some cleanup.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp | 32 |
1 files changed, 14 insertions, 18 deletions
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(); } |
