AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ScriptedGossip.cpp File Reference
#include "ScriptedGossip.h"
#include "Creature.h"
#include "Player.h"

Go to the source code of this file.

Functions

void ClearGossipMenuFor (Player *player)
 
void AddGossipItemFor (Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
 
void AddGossipItemFor (Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action, std::string const &popupText, uint32 popupMoney, bool coded)
 
void AddGossipItemFor (Player *player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action, uint32 boxMoney)
 
void SendGossipMenuFor (Player *player, uint32 npcTextID, ObjectGuid const guid)
 
void SendGossipMenuFor (Player *player, uint32 npcTextID, Creature const *creature)
 
void CloseGossipMenuFor (Player *player)
 

Function Documentation

◆ AddGossipItemFor() [1/3]

void AddGossipItemFor ( Player player,
uint32  gossipMenuID,
uint32  gossipMenuItemID,
uint32  sender,
uint32  action,
uint32  boxMoney 
)
41{
42 player->PlayerTalkClass->GetGossipMenu().AddMenuItem(gossipMenuID, gossipMenuItemID, sender, action, boxMoney);
43}
void AddMenuItem(int32 menuItemId, uint8 icon, std::string const &message, uint32 sender, uint32 action, std::string const &boxMessage, uint32 boxMoney, bool coded=false)
Definition: GossipDef.cpp:41
GossipMenu & GetGossipMenu()
Definition: GossipDef.h:263
PlayerMenu * PlayerTalkClass
Definition: Player.h:2201

References GossipMenu::AddMenuItem(), PlayerMenu::GetGossipMenu(), and Player::PlayerTalkClass.

◆ AddGossipItemFor() [2/3]

void AddGossipItemFor ( Player player,
uint32  icon,
std::string const &  text,
uint32  sender,
uint32  action 
)
29{
30 player->PlayerTalkClass->GetGossipMenu().AddMenuItem(-1, icon, text, sender, action, "", 0);
31}

References GossipMenu::AddMenuItem(), PlayerMenu::GetGossipMenu(), and Player::PlayerTalkClass.

Referenced by npc_pet_gen_argent_pony_bridle::OnGossipHello(), npc_lokhtos_darkbargainer::OnGossipHello(), boss_gloomrel::OnGossipHello(), boss_doomrel::OnGossipHello(), boss_majordomo::OnGossipHello(), npc_grandmother::OnGossipHello(), npc_barnes::OnGossipHello(), npc_death_knight_initiate::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_augustus_the_touched::OnGossipHello(), npc_parqual_fintallas::OnGossipHello(), npc_varian_wrynn::OnGossipHello(), npc_thrall_bfu::OnGossipHello(), npc_zulaman_hostage::OnGossipHello(), npc_jaina_proudmoore::OnGossipHello(), npc_thrall::OnGossipHello(), npc_tyrande_whisperwind::OnGossipHello(), npc_arthas::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipHello(), npcs_riverbreeze_and_silversky::OnGossipHello(), npc_bunthen_plainswind::OnGossipHello(), npc_great_bear_spirit::OnGossipHello(), npc_silva_filnaveth::OnGossipHello(), npc_thrall_warchief::OnGossipHello(), npc_braug_dimspirit::OnGossipHello(), npc_steward_of_time::OnGossipHello(), npc_stone_watcher_of_norgannon::OnGossipHello(), npc_plucky::OnGossipHello(), npc_rivern_frostwind::OnGossipHello(), npc_announcer_toc5::OnGossipHello(), npc_announcer_toc10::OnGossipHello(), npc_fos_leader::OnGossipHello(), npc_hor_leader::OnGossipHello(), npc_high_overlord_saurfang_icc::OnGossipHello(), npc_muradin_bronzebeard_icc::OnGossipHello(), npc_oculus_drakegiver::OnGossipHello(), brann_bronzebeard::OnGossipHello(), npc_ulduar_expedition_commander::OnGossipHello(), npc_ulduar_keeper::OnGossipHello(), npc_vh_sinclari::OnGossipHello(), npc_iruk::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_razael_and_lyana::OnGossipHello(), npc_mcmanus::OnGossipHello(), npc_vekjik::OnGossipHello(), npc_avatar_of_freya::OnGossipHello(), npc_adventurous_dwarf::OnGossipHello(), npc_roxi_ramrocket::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), npc_wg_quest_giver::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_captain_saeed::OnGossipHello(), npc_drake_dealer_hurlunk::OnGossipHello(), npcs_flanis_swiftwing_and_kagrosh::OnGossipHello(), npc_shattrathflaskvendors::OnGossipHello(), npc_zephyr::OnGossipHello(), npc_slim::OnGossipHello(), npc_innkeeper::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_engineering_tele_trinket::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), npc_sayge::OnGossipHello(), npc_wormhole::OnGossipHello(), npc_locksmith::OnGossipHello(), npc_experience::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), icecrown_citadel_teleport::OnGossipHello(), go_ahune_ice_stone::OnGossipHello(), go_skull_pile::OnGossipHello(), go_fel_crystalforge::OnGossipHello(), go_bashir_crystalforge::OnGossipHello(), go_amberpine_outhouse::OnGossipHello(), boss_gloomrel::OnGossipSelect(), boss_doomrel::OnGossipSelect(), boss_majordomo::OnGossipSelect(), npc_grandmother::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_arthas::OnGossipSelect(), npc_great_bear_spirit::OnGossipSelect(), npc_thrall_warchief::OnGossipSelect(), npc_stone_watcher_of_norgannon::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_vekjik::OnGossipSelect(), npc_avatar_of_freya::OnGossipSelect(), npc_prof_leather::OnGossipSelect(), npc_oculus_drakegiver::OnGossipSelect(), go_fel_crystalforge::OnGossipSelect(), go_bashir_crystalforge::OnGossipSelect(), npc_sayge::SendAction(), npc_prof_alchemy::SendConfirmLearn(), npc_prof_blacksmith::SendConfirmLearn(), npc_prof_tailor::SendConfirmLearn(), go_evil_book_for_dummies::SendConfirmLearn(), npc_prof_alchemy::SendConfirmUnlearn(), npc_prof_blacksmith::SendConfirmUnlearn(), npc_prof_tailor::SendConfirmUnlearn(), go_evil_book_for_dummies::SendConfirmUnlearn(), npc_echo_of_medivh::sGossipHello(), npc_chesspiece::sGossipHello(), npc_sergeant_bly::npc_sergeant_blyAI::sGossipHello(), and npc_weegli_blastfuse::npc_weegli_blastfuseAI::sGossipHello().

◆ AddGossipItemFor() [3/3]

void AddGossipItemFor ( Player player,
uint32  icon,
std::string const &  text,
uint32  sender,
uint32  action,
std::string const &  popupText,
uint32  popupMoney,
bool  coded 
)
35{
36 player->PlayerTalkClass->GetGossipMenu().AddMenuItem(-1, icon, text, sender, action, popupText, popupMoney, coded);
37}

References GossipMenu::AddMenuItem(), PlayerMenu::GetGossipMenu(), and Player::PlayerTalkClass.

◆ ClearGossipMenuFor()

void ClearGossipMenuFor ( Player player)
23{
24 player->PlayerTalkClass->ClearMenus();
25}
void ClearMenus()
Definition: GossipDef.cpp:187

References PlayerMenu::ClearMenus(), and Player::PlayerTalkClass.

Referenced by ScriptMgr::GetDialogStatus(), Creature::isCanInteractWithBattleMaster(), ScriptMgr::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_steward_of_time::OnGossipSelect(), npc_plucky::OnGossipSelect(), npc_iruk::OnGossipSelect(), npcs_flanis_swiftwing_and_kagrosh::OnGossipSelect(), npc_zephyr::OnGossipSelect(), npc_taxi::OnGossipSelect(), npc_locksmith::OnGossipSelect(), npc_experience::OnGossipSelect(), npc_prof_alchemy::OnGossipSelect(), npc_prof_blacksmith::OnGossipSelect(), npc_engineering_tele_trinket::OnGossipSelect(), npc_prof_tailor::OnGossipSelect(), npc_sayge::OnGossipSelect(), npc_lokhtos_darkbargainer::OnGossipSelect(), boss_gloomrel::OnGossipSelect(), boss_doomrel::OnGossipSelect(), boss_majordomo::OnGossipSelect(), npc_grandmother::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::OnGossipSelect(), npc_highlord_darion_mograine::OnGossipSelect(), npc_augustus_the_touched::OnGossipSelect(), npc_parqual_fintallas::OnGossipSelect(), npc_varian_wrynn::OnGossipSelect(), npc_thrall_bfu::OnGossipSelect(), npc_zulaman_hostage::OnGossipSelect(), npc_jaina_proudmoore::OnGossipSelect(), npc_thrall::OnGossipSelect(), npc_tyrande_whisperwind::OnGossipSelect(), npc_arthas::OnGossipSelect(), npcs_riverbreeze_and_silversky::OnGossipSelect(), npc_bunthen_plainswind::OnGossipSelect(), npc_great_bear_spirit::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), npc_thrall_warchief::OnGossipSelect(), npc_braug_dimspirit::OnGossipSelect(), npc_stone_watcher_of_norgannon::OnGossipSelect(), npc_rivern_frostwind::OnGossipSelect(), npc_high_overlord_saurfang_icc::OnGossipSelect(), npc_muradin_bronzebeard_icc::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_razael_and_lyana::OnGossipSelect(), npc_vekjik::OnGossipSelect(), npc_avatar_of_freya::OnGossipSelect(), npc_adventurous_dwarf::OnGossipSelect(), npc_roxi_ramrocket::OnGossipSelect(), npc_wg_quest_giver::OnGossipSelect(), npc_drake_dealer_hurlunk::OnGossipSelect(), npc_shattrathflaskvendors::OnGossipSelect(), npc_slim::OnGossipSelect(), npc_innkeeper::OnGossipSelect(), npc_prof_leather::OnGossipSelect(), npc_wormhole::OnGossipSelect(), npc_fos_leader::OnGossipSelect(), npc_hor_leader::OnGossipSelect(), npc_oculus_drakegiver::OnGossipSelect(), npc_vh_sinclari::OnGossipSelect(), npc_captain_saeed::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_hor_leader_second::OnGossipSelect(), icecrown_citadel_teleport::OnGossipSelect(), go_amberpine_outhouse::OnGossipSelect(), go_evil_book_for_dummies::OnGossipSelect(), go_skull_pile::OnGossipSelect(), go_fel_crystalforge::OnGossipSelect(), go_bashir_crystalforge::OnGossipSelect(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestComplete(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestSelect(), npc_sergeant_bly::npc_sergeant_blyAI::sGossipSelect(), and npc_weegli_blastfuse::npc_weegli_blastfuseAI::sGossipSelect().

◆ CloseGossipMenuFor()

void CloseGossipMenuFor ( Player player)
57{
59}
void SendCloseGossip()
Definition: GossipDef.cpp:241

References Player::PlayerTalkClass, and PlayerMenu::SendCloseGossip().

Referenced by go_wind_stone::go_wind_stoneAI::GossipSelect(), npc_essence_of_twin::OnGossipHello(), npc_plucky::OnGossipSelect(), npc_iruk::OnGossipSelect(), npc_wg_spirit_guide::OnGossipSelect(), npcs_flanis_swiftwing_and_kagrosh::OnGossipSelect(), npc_taxi::OnGossipSelect(), npc_locksmith::OnGossipSelect(), npc_wg_queue::OnGossipSelect(), npc_engineering_tele_trinket::OnGossipSelect(), npc_pet_gen_argent_pony_bridle::OnGossipSelect(), npc_lokhtos_darkbargainer::OnGossipSelect(), boss_gloomrel::OnGossipSelect(), boss_doomrel::OnGossipSelect(), boss_majordomo::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_death_knight_initiate::OnGossipSelect(), npc_highlord_darion_mograine::OnGossipSelect(), npc_parqual_fintallas::OnGossipSelect(), npc_varian_wrynn::OnGossipSelect(), npc_thrall_bfu::OnGossipSelect(), npc_zulaman_hostage::OnGossipSelect(), npc_arthas::OnGossipSelect(), npcs_riverbreeze_and_silversky::OnGossipSelect(), npc_bunthen_plainswind::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), npc_thrall_warchief::OnGossipSelect(), npc_braug_dimspirit::OnGossipSelect(), npc_stone_watcher_of_norgannon::OnGossipSelect(), npc_high_overlord_saurfang_icc::OnGossipSelect(), npc_muradin_bronzebeard_icc::OnGossipSelect(), brann_bronzebeard::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_shandy_dalaran::OnGossipSelect(), npc_vekjik::OnGossipSelect(), npc_avatar_of_freya::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), npc_innkeeper::OnGossipSelect(), npc_wormhole::OnGossipSelect(), npc_announcer_toc5::OnGossipSelect(), npc_announcer_toc10::OnGossipSelect(), npc_fos_leader::OnGossipSelect(), npc_hor_leader::OnGossipSelect(), npc_oculus_drakegiver::OnGossipSelect(), npc_vh_sinclari::OnGossipSelect(), npc_mcmanus::OnGossipSelect(), npc_finklestein::OnGossipSelect(), npc_captain_saeed::OnGossipSelect(), boss_azuregos::OnGossipSelect(), npc_thrall_old_hillsbrad::OnGossipSelect(), npc_icc_buff_switcher::OnGossipSelect(), npc_tirions_gambit_tirion::OnGossipSelect(), npc_artorius::OnGossipSelect(), npc_simone::OnGossipSelect(), npc_nelson::OnGossipSelect(), npc_franklin::OnGossipSelect(), icecrown_citadel_teleport::OnGossipSelect(), go_amberpine_outhouse::OnGossipSelect(), go_midsummer_bonfire::OnGossipSelect(), go_skull_pile::OnGossipSelect(), go_ahune_ice_stone::OnGossipSelect(), go_pumpkin_shrine::OnGossipSelect(), go_apexis_relic::OnGossipSelect(), ProcessCastaction(), ProcessUnlearnAction(), boss_apothecary_hummel::boss_apothecary_hummelAI::sGossipSelect(), npc_coren_direbrew::sGossipSelect(), boss_victor_nefarius::boss_victor_nefariusAI::sGossipSelect(), boss_vaelastrasz::boss_vaelAI::sGossipSelect(), npc_harrison_jones::npc_harrison_jonesAI::sGossipSelect(), npc_brewfest_keg_reciver::sGossipSelect(), npc_thassarian2::npc_thassarian2AI::sGossipSelect(), npc_akama_shade::sGossipSelect(), npc_echo_of_medivh::sGossipSelect(), npc_chesspiece::sGossipSelect(), npc_tharnarian::npc_tharnarianAI::sGossipSelect(), npc_sergeant_bly::npc_sergeant_blyAI::sGossipSelect(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::sGossipSelect(), npc_hidden_cultist::npc_hidden_cultistAI::sGossipSelect(), npc_general_andorov::sGossipSelect(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::sGossipSelect(), npc_crusade_recruit::npc_crusade_recruitAI::sGossipSelect(), npc_akama_illidan::npc_akama_illidanAI::sGossipSelect(), and npc_magister_aledis::sGossipSelect().

◆ SendGossipMenuFor() [1/2]

void SendGossipMenuFor ( Player player,
uint32  npcTextID,
Creature const *  creature 
)
51{
52 if (creature)
53 SendGossipMenuFor(player, npcTextID, creature->GetGUID());
54}
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const guid)
Definition: ScriptedGossip.cpp:45

References Object::GetGUID(), and SendGossipMenuFor().

◆ SendGossipMenuFor() [2/2]

void SendGossipMenuFor ( Player player,
uint32  npcTextID,
ObjectGuid const  guid 
)
46{
47 player->PlayerTalkClass->SendGossipMenu(npcTextID, guid);
48}
void SendGossipMenu(uint32 titleTextId, ObjectGuid objectGUID)
Definition: GossipDef.cpp:193

References Player::PlayerTalkClass, and PlayerMenu::SendGossipMenu().

Referenced by Creature::isCanInteractWithBattleMaster(), npc_pet_gen_argent_pony_bridle::OnGossipHello(), npc_lokhtos_darkbargainer::OnGossipHello(), boss_gloomrel::OnGossipHello(), boss_doomrel::OnGossipHello(), boss_majordomo::OnGossipHello(), npc_grandmother::OnGossipHello(), npc_barnes::OnGossipHello(), npc_death_knight_initiate::OnGossipHello(), npc_highlord_darion_mograine::OnGossipHello(), npc_augustus_the_touched::OnGossipHello(), npc_parqual_fintallas::OnGossipHello(), npc_varian_wrynn::OnGossipHello(), npc_thrall_bfu::OnGossipHello(), npc_zulaman_hostage::OnGossipHello(), npc_jaina_proudmoore::OnGossipHello(), npc_thrall::OnGossipHello(), npc_tyrande_whisperwind::OnGossipHello(), npc_arthas::OnGossipHello(), npc_rizzle_sprysprocket::OnGossipHello(), npc_aged_dying_ancient_kodo::OnGossipHello(), npcs_riverbreeze_and_silversky::OnGossipHello(), npc_bunthen_plainswind::OnGossipHello(), npc_great_bear_spirit::OnGossipHello(), npc_silva_filnaveth::OnGossipHello(), npc_thrall_warchief::OnGossipHello(), npc_braug_dimspirit::OnGossipHello(), npc_steward_of_time::OnGossipHello(), npc_stone_watcher_of_norgannon::OnGossipHello(), npc_plucky::OnGossipHello(), npc_rivern_frostwind::OnGossipHello(), npc_announcer_toc5::OnGossipHello(), npc_announcer_toc10::OnGossipHello(), npc_fos_leader::OnGossipHello(), npc_hor_leader::OnGossipHello(), npc_high_overlord_saurfang_icc::OnGossipHello(), npc_muradin_bronzebeard_icc::OnGossipHello(), npc_oculus_drakegiver::OnGossipHello(), brann_bronzebeard::OnGossipHello(), npc_ulduar_expedition_commander::OnGossipHello(), npc_ulduar_keeper::OnGossipHello(), npc_vh_sinclari::OnGossipHello(), npc_iruk::OnGossipHello(), npc_shandy_dalaran::OnGossipHello(), npc_razael_and_lyana::OnGossipHello(), npc_mcmanus::OnGossipHello(), npc_vekjik::OnGossipHello(), npc_avatar_of_freya::OnGossipHello(), npc_adventurous_dwarf::OnGossipHello(), npc_roxi_ramrocket::OnGossipHello(), npc_wg_demolisher_engineer::OnGossipHello(), npc_wg_spirit_guide::OnGossipHello(), npc_wg_queue::OnGossipHello(), npc_wg_quest_giver::OnGossipHello(), npc_finklestein::OnGossipHello(), npc_captain_saeed::OnGossipHello(), npc_drake_dealer_hurlunk::OnGossipHello(), npcs_flanis_swiftwing_and_kagrosh::OnGossipHello(), npc_shattrathflaskvendors::OnGossipHello(), npc_zephyr::OnGossipHello(), npc_slim::OnGossipHello(), npc_innkeeper::OnGossipHello(), npc_prof_alchemy::OnGossipHello(), npc_prof_blacksmith::OnGossipHello(), npc_engineering_tele_trinket::OnGossipHello(), npc_prof_leather::OnGossipHello(), npc_prof_tailor::OnGossipHello(), npc_artorius::OnGossipHello(), npc_simone::OnGossipHello(), npc_nelson::OnGossipHello(), npc_franklin::OnGossipHello(), npc_taxi::OnGossipHello(), npc_riggle_bassbait::OnGossipHello(), npc_sayge::OnGossipHello(), npc_wormhole::OnGossipHello(), npc_locksmith::OnGossipHello(), npc_experience::OnGossipHello(), go_evil_book_for_dummies::OnGossipHello(), icecrown_citadel_teleport::OnGossipHello(), go_ahune_ice_stone::OnGossipHello(), go_skull_pile::OnGossipHello(), go_fel_crystalforge::OnGossipHello(), go_bashir_crystalforge::OnGossipHello(), go_table_theka::OnGossipHello(), go_amberpine_outhouse::OnGossipHello(), boss_gloomrel::OnGossipSelect(), boss_doomrel::OnGossipSelect(), boss_majordomo::OnGossipSelect(), npc_grandmother::OnGossipSelect(), npc_barnes::OnGossipSelect(), npc_tyrande_whisperwind::OnGossipSelect(), npc_arthas::OnGossipSelect(), npc_bunthen_plainswind::OnGossipSelect(), npc_great_bear_spirit::OnGossipSelect(), npc_silva_filnaveth::OnGossipSelect(), npc_thrall_warchief::OnGossipSelect(), npc_stone_watcher_of_norgannon::OnGossipSelect(), npc_ulduar_keeper::OnGossipSelect(), npc_razael_and_lyana::OnGossipSelect(), npc_vekjik::OnGossipSelect(), npc_avatar_of_freya::OnGossipSelect(), npc_prof_leather::OnGossipSelect(), npc_oculus_drakegiver::OnGossipSelect(), npc_vh_sinclari::OnGossipSelect(), go_fel_crystalforge::OnGossipSelect(), go_bashir_crystalforge::OnGossipSelect(), npc_sayge::SendAction(), npc_prof_blacksmith::SendActionMenu(), npc_prof_alchemy::SendConfirmLearn(), npc_prof_blacksmith::SendConfirmLearn(), npc_prof_tailor::SendConfirmLearn(), go_evil_book_for_dummies::SendConfirmLearn(), npc_prof_alchemy::SendConfirmUnlearn(), npc_prof_blacksmith::SendConfirmUnlearn(), npc_prof_tailor::SendConfirmUnlearn(), go_evil_book_for_dummies::SendConfirmUnlearn(), SendGossipMenuFor(), npc_echo_of_medivh::sGossipHello(), npc_chesspiece::sGossipHello(), npc_sergeant_bly::npc_sergeant_blyAI::sGossipHello(), and npc_weegli_blastfuse::npc_weegli_blastfuseAI::sGossipHello().