* Stormwind Harbor Taxi. Author: FrozenDB
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
UPDATE `creature_template` SET `ScriptName`='npc_stormwindharbor_taxi' WHERE `entry`='29154';
|
||||||
@@ -27,4 +27,5 @@ INSTALL(FILES
|
|||||||
1018_world.sql
|
1018_world.sql
|
||||||
1026_world.sql
|
1026_world.sql
|
||||||
1028_world_scripts.sql
|
1028_world_scripts.sql
|
||||||
|
1307_world.sql
|
||||||
DESTINATION share/trinity/sql/updates)
|
DESTINATION share/trinity/sql/updates)
|
||||||
@@ -27,6 +27,7 @@ npc_bartleby
|
|||||||
npc_dashel_stonefist
|
npc_dashel_stonefist
|
||||||
npc_general_marcus_jonathan
|
npc_general_marcus_jonathan
|
||||||
npc_lady_katrana_prestor
|
npc_lady_katrana_prestor
|
||||||
|
npc_harbor_taxi
|
||||||
EndContentData */
|
EndContentData */
|
||||||
|
|
||||||
#include "precompiled.h"
|
#include "precompiled.h"
|
||||||
@@ -236,6 +237,28 @@ bool GossipSelect_npc_lady_katrana_prestor(Player *player, Creature *_Creature,
|
|||||||
return true;
|
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()
|
void AddSC_stormwind_city()
|
||||||
{
|
{
|
||||||
Script *newscript;
|
Script *newscript;
|
||||||
@@ -268,4 +291,10 @@ void AddSC_stormwind_city()
|
|||||||
newscript->pGossipHello = &GossipHello_npc_lady_katrana_prestor;
|
newscript->pGossipHello = &GossipHello_npc_lady_katrana_prestor;
|
||||||
newscript->pGossipSelect = &GossipSelect_npc_lady_katrana_prestor;
|
newscript->pGossipSelect = &GossipSelect_npc_lady_katrana_prestor;
|
||||||
newscript->RegisterSelf();
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user