/* * Copyright (C) 2005,2006 ScriptDev <https://opensvn.csie.org/ScriptDev/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#include "../sc_defines.h"bool GossipHello_expedition(Player *player, Creature *_Creature){ player->ADD_GOSSIP_ITEM( 0, "Take me to the base camp at Hyjal!", GOSSIP_SENDER_MAIN, GOSSIP_SENDER_INFO + 1 ); player->SEND_GOSSIP_MENU(100000,_Creature->GetGUID()); return true;}bool GossipSelect_expedition(Player *player, Creature *_Creature, uint32 sender, uint32 action ){ if (action == GOSSIP_ACTION_INFO_DEF + 1) { _Creature->Say("Safe journeys, adventurer.", LANG_UNIVERSAL); player->TeleportTo(1, 5265.322754, -2165.018555, 1260, 2.8478); } return true;}uint32 NPCDialogStatus_expedition(Player *player, Creature *_Creature ){ return _Creature->QUEST_DIALOG_STATUS(player, DIALOG_STATUS_CHAT);}void AddSC_expedition(){ Script *newscript; newscript = new Script; newscript->Name="expedition"; newscript->pGossipHello = &GossipHello_expedition; newscript->pGossipSelect = &GossipSelect_expedition; newscript->pNPCDialogStatus = &NPCDialogStatus_expedition; m_scripts[nrscripts++] = newscript;}