#include "../../sc_defines.h" #include "../../../../../game/Player.h" #include "../../../../../game/GossipDef.h" /*###### ## npc_budd_nedreck ######*/ bool GossipHello_npc_budd_nedreck(Player *player, Creature *_Creature) { player->ADD_GOSSIP_ITEM( 0, "You gave the crew disguises?.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); player->SEND_GOSSIP_MENU(4918,_Creature->GetGUID()); return true; } #uint32 sender removed bool GossipSelect_npc_budd_nedreck(Player *player, uint32 action ) { Item* item = NULL; uint16 dest; if (action == GOSSIP_ACTION_INFO_DEF + 1) { uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 33105, 1, false); if(msg == EQUIP_ERR_OK) { item = player->StoreNewItem(dest, 33105, 1, true); player->SendNewItem(item, 1, true, false); } } return true; } void AddSC_npc_npc_budd_nedreck() { Script *newscript; newscript = new Script; newscript->Name="npc_budd_nedreck"; newscript->pGossipHello = &GossipHello_npc_budd_nedreck; newscript->pGossipSelect = &GossipSelect_npc_budd_nedreck; m_scripts[nrscripts++] = newscript; }