* Stormwind Harbor Taxi. Author: FrozenDB

--HG--
branch : trunk
This commit is contained in:
Muhaha
2009-02-10 19:35:52 +01:00
parent 42b98f7e57
commit 6147bfaf04
4 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1 @@
UPDATE `creature_template` SET `ScriptName`='npc_stormwindharbor_taxi' WHERE `entry`='29154';

View File

@@ -27,4 +27,5 @@ INSTALL(FILES
1018_world.sql
1026_world.sql
1028_world_scripts.sql
1307_world.sql
DESTINATION share/trinity/sql/updates)

View File

@@ -27,6 +27,7 @@ npc_bartleby
npc_dashel_stonefist
npc_general_marcus_jonathan
npc_lady_katrana_prestor
npc_harbor_taxi
EndContentData */
#include "precompiled.h"
@@ -236,6 +237,28 @@ bool GossipSelect_npc_lady_katrana_prestor(Player *player, Creature *_Creature,
return true;
}
/*######
## npc_harbor_taxi
######*/
#define GOSSIP_STORMWIND "I'd like to take a flight around Stormwind Harbor."
bool GossipHello_npc_stormwind_harbor_taxi(Player *player, Creature *_Creature)
{
player->ADD_GOSSIP_ITEM(0, GOSSIP_STORMWIND, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 10);
player->SEND_GOSSIP_MENU(13454,_Creature->GetGUID());
return true;
}
bool GossipSelect_npc_stormwind_harbor_taxi(Player *player, Creature *_Creature, uint32 sender, uint32 action )
{
if (action == GOSSIP_ACTION_INFO_DEF + 10)
{
player->GetSession()->SendDoFlight(1149, 1041);
}
return true;
}
void AddSC_stormwind_city()
{
Script *newscript;
@@ -268,4 +291,10 @@ void AddSC_stormwind_city()
newscript->pGossipHello = &GossipHello_npc_lady_katrana_prestor;
newscript->pGossipSelect = &GossipSelect_npc_lady_katrana_prestor;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name="npc_stormwind_harbor_taxi";
newscript->pGossipHello = &GossipHello_npc_stormwind_harbor_taxi;
newscript->pGossipSelect = &GossipSelect_npc_stormwind_harbor_taxi;
newscript->RegisterSelf();
}