aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/scripts')
-rw-r--r--src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp32
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();
}