![]() |
TrinityCore
|
Inheritance diagram for npc_commandscript:Public Member Functions | |
| npc_commandscript () | |
| ChatCommandTable | GetCommands () const override |
Public Member Functions inherited from ScriptObject | |
| std::string const & | GetName () const |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
| CommandScript (char const *name) | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) | |
| virtual | ~ScriptObject () |
Definition at line 56 of file cs_npc.cpp.
|
inline |
Definition at line 59 of file cs_npc.cpp.
|
inlinestatic |
Definition at line 1116 of file cs_npc.cpp.
References _ShowLootEntry(), LootItem::count, ObjectAccessor::FindConnectedPlayer(), WorldObject::GetName(), LootItem::is_looted, LootItem::itemid, LANG_COMMAND_NPC_SHOWLOOT_SUBLABEL, ChatHandler::PSendSysMessage(), and Trinity::StringFormat().
Referenced by HandleNpcShowLootCommand().
|
inlinestatic |
Definition at line 1105 of file cs_npc.cpp.
References ItemTemplate::GetName(), ItemTemplate::GetQuality(), ChatHandler::GetSessionDbLocaleIndex(), ITEM_QUALITY_POOR, ItemQualityColors, LANG_COMMAND_NPC_SHOWLOOT_ENTRY, LANG_COMMAND_NPC_SHOWLOOT_ENTRY_2, ChatHandler::PSendSysMessage(), and sObjectMgr.
Referenced by _IterateNotNormalLootMap(), and HandleNpcShowLootCommand().
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 61 of file cs_npc.cpp.
References HandleNpcAddCommand(), HandleNpcAddFormationCommand(), HandleNpcAddMoveCommand(), HandleNpcAddTempSpawnCommand(), HandleNpcAddVendorItemCommand(), HandleNpcDeleteCommand(), HandleNpcDeleteVendorItemCommand(), HandleNpcDespawnGroup(), HandleNpcEvadeCommand(), HandleNpcFollowCommand(), HandleNpcInfoCommand(), HandleNpcMoveCommand(), HandleNpcNearCommand(), HandleNpcPlayEmoteCommand(), HandleNpcSayCommand(), HandleNpcSetAllowMovementCommand(), HandleNpcSetDataCommand(), HandleNpcSetEntryCommand(), HandleNpcSetFactionIdCommand(), HandleNpcSetFlagCommand(), HandleNpcSetLevelCommand(), HandleNpcSetLinkCommand(), HandleNpcSetModelCommand(), HandleNpcSetMoveTypeCommand(), HandleNpcSetPhaseCommand(), HandleNpcSetSpawnTimeCommand(), HandleNpcSetWanderDistanceCommand(), HandleNpcShowLootCommand(), HandleNpcSpawnGroup(), HandleNpcTameCommand(), HandleNpcTextEmoteCommand(), HandleNpcUnFollowCommand(), HandleNpcWhisperCommand(), HandleNpcYellCommand(), rbac::RBAC_PERM_COMMAND_NPC_ADD, rbac::RBAC_PERM_COMMAND_NPC_ADD_FORMATION, rbac::RBAC_PERM_COMMAND_NPC_ADD_ITEM, rbac::RBAC_PERM_COMMAND_NPC_ADD_MOVE, rbac::RBAC_PERM_COMMAND_NPC_ADD_TEMP, rbac::RBAC_PERM_COMMAND_NPC_DELETE, rbac::RBAC_PERM_COMMAND_NPC_DELETE_ITEM, rbac::RBAC_PERM_COMMAND_NPC_DESPAWNGROUP, rbac::RBAC_PERM_COMMAND_NPC_EVADE, rbac::RBAC_PERM_COMMAND_NPC_FOLLOW, rbac::RBAC_PERM_COMMAND_NPC_INFO, rbac::RBAC_PERM_COMMAND_NPC_MOVE, rbac::RBAC_PERM_COMMAND_NPC_NEAR, rbac::RBAC_PERM_COMMAND_NPC_PLAYEMOTE, rbac::RBAC_PERM_COMMAND_NPC_SAY, rbac::RBAC_PERM_COMMAND_NPC_SET_ALLOWMOVE, rbac::RBAC_PERM_COMMAND_NPC_SET_DATA, rbac::RBAC_PERM_COMMAND_NPC_SET_ENTRY, rbac::RBAC_PERM_COMMAND_NPC_SET_FACTIONID, rbac::RBAC_PERM_COMMAND_NPC_SET_FLAG, rbac::RBAC_PERM_COMMAND_NPC_SET_LEVEL, rbac::RBAC_PERM_COMMAND_NPC_SET_LINK, rbac::RBAC_PERM_COMMAND_NPC_SET_MODEL, rbac::RBAC_PERM_COMMAND_NPC_SET_MOVETYPE, rbac::RBAC_PERM_COMMAND_NPC_SET_PHASE, rbac::RBAC_PERM_COMMAND_NPC_SET_SPAWNDIST, rbac::RBAC_PERM_COMMAND_NPC_SET_SPAWNTIME, rbac::RBAC_PERM_COMMAND_NPC_SHOWLOOT, rbac::RBAC_PERM_COMMAND_NPC_SPAWNGROUP, rbac::RBAC_PERM_COMMAND_NPC_TAME, rbac::RBAC_PERM_COMMAND_NPC_TEXTEMOTE, rbac::RBAC_PERM_COMMAND_NPC_WHISPER, and rbac::RBAC_PERM_COMMAND_NPC_YELL.
|
inlinestatic |
Definition at line 117 of file cs_npc.cpp.
References Unit::CleanupsBeforeDelete(), Creature::Create(), Map::GenerateLowGuid(), Map::GetId(), WorldObject::GetMap(), Player::GetPhaseMaskForSpawn(), WorldSession::GetPlayer(), ChatHandler::GetSession(), Creature::GetSpawnId(), Map::GetSpawnMode(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), SpawnData::id, Creature::LoadFromDB(), SpawnData::phaseMask, Position::Relocate(), Creature::SaveToDB(), sObjectMgr, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, SpawnData::spawnPoint, and Unit.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1195 of file cs_npc.cpp.
References Position::GetAbsoluteAngle(), Creature::GetFormation(), CreatureGroup::GetLeaderSpawnId(), Position::GetOrientation(), WorldSession::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), Creature::GetSpawnId(), LANG_SELECT_CREATURE, M_PI, ChatHandler::PSendSysMessage(), Creature::SearchFormation(), ChatHandler::SendSysMessage(), PreparedStatementBase::setFloat(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), sFormationMgr, WORLD_INS_CREATURE_FORMATION, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 205 of file cs_npc.cpp.
References LANG_COMMAND_CREATGUIDNOTFOUND, LANG_WAYPOINT_ADDED, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sObjectMgr, WAYPOINT_MOTION_TYPE, WORLD_UPD_CREATURE_MOVEMENT_TYPE, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 992 of file cs_npc.cpp.
References WorldSession::GetPlayer(), Position::GetPosition(), ChatHandler::GetSession(), sObjectMgr, StringEqualI(), WorldObject::SummonCreature(), TEMPSUMMON_CORPSE_DESPAWN, and TEMPSUMMON_CORPSE_TIMED_DESPAWN.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 169 of file cs_npc.cpp.
References ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), ItemTemplate::GetId(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), LANG_COMMAND_NEEDITEMSEND, LANG_ITEM_ADDED_TO_LIST, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sObjectMgr.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1268 of file cs_npc.cpp.
|
inlinestatic |
Definition at line 290 of file cs_npc.cpp.
References Creature::DeleteFromDB(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), Unit::IsPet(), Unit::IsTotem(), LANG_COMMAND_CREATGUIDNOTFOUND, LANG_COMMAND_DELCREATMESSAGE, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and Unit::ToTempSummon().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 327 of file cs_npc.cpp.
References ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), ItemTemplate::GetId(), ChatHandler::getSelectedCreature(), Unit::IsVendor(), LANG_COMMAND_NEEDITEMSEND, LANG_COMMAND_VENDORSELECTION, LANG_ITEM_DELETED_FROM_LIST, LANG_ITEM_NOT_IN_LIST, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sObjectMgr.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1081 of file cs_npc.cpp.
References Creature::AI(), Unit::ClearUnitState(), CreatureAI::EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, ChatHandler::getSelectedCreature(), Unit::IsAIEnabled(), Unit::IsPet(), LANG_CREATURE_NOT_AI_ENABLED, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SetSentErrorMessage(), and UNIT_STATE_EVADE.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 439 of file cs_npc.cpp.
References Unit::GetFollowAngle(), Unit::GetMotionMaster(), WorldObject::GetName(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), LANG_CREATURE_FOLLOW_YOU_NOW, LANG_SELECT_CREATURE, MotionMaster::MoveFollow(), PET_FOLLOW_DIST, ChatHandler::PSendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 458 of file cs_npc.cpp.
References Creature::AI(), DescribeReactState(), SpawnGroupTemplateData::flags, CreatureTemplate::flags_extra, Creature::GetAIName(), Unit::GetArmor(), Unit::GetCreateHealth(), Creature::GetCreatureData(), Map::GetCreatureRespawnTime(), Creature::GetCreatureTemplate(), Creature::GetCurrentEquipmentId(), Unit::GetDisplayId(), Unit::GetDynamicFlags(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), Object::GetGUID(), Unit::GetHealth(), WorldObject::GetInstanceId(), Unit::GetLevel(), WorldObject::GetMap(), Unit::GetMaxHealth(), Creature::GetMovementTemplate(), WorldObject::GetName(), Unit::GetNativeDisplayId(), Unit::GetNpcFlags(), Creature::GetOriginalEquipmentId(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Creature::GetReactState(), Creature::GetRespawnCompatibilityMode(), Creature::GetRespawnDelay(), Creature::GetRespawnTimeEx(), Creature::GetScriptName(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), Creature::GetStringId(), Trinity::GetTypeName(), Unit::GetUnitFlags(), Unit::GetUnitFlags2(), SpawnGroupTemplateData::groupId, Unit::HasUnitFlag(), Map::IsSpawnGroupActive(), LANG_COMMAND_RAWPAWNTIMES, LANG_NPCINFO_ARMOR, LANG_NPCINFO_CHAR, LANG_NPCINFO_DUNGEON_ID, LANG_NPCINFO_EQUIPMENT, LANG_NPCINFO_FLAGS, LANG_NPCINFO_FLAGS_EXTRA, LANG_NPCINFO_HEALTH, LANG_NPCINFO_LEVEL, LANG_NPCINFO_LOOT, LANG_NPCINFO_MECHANIC_IMMUNE, LANG_NPCINFO_MOVEMENT_DATA, LANG_NPCINFO_PHASEMASK, LANG_NPCINFO_POSITION, LANG_NPCINFO_REACTSTATE, LANG_NPCINFO_UNIT_FIELD_FLAGS, LANG_OBJECTINFO_AIINFO, LANG_OBJECTINFO_AITYPE, LANG_OBJECTINFO_STRINGIDS, LANG_SELECT_CREATURE, LANG_SPAWNINFO_COMPATIBILITY_MODE, LANG_SPAWNINFO_GROUP_ID, CreatureTemplate::lootid, CreatureTemplate::MechanicImmuneMask, SpawnGroupTemplateData::name, CreatureTemplate::pickpocketLootId, ChatHandler::PSendSysMessage(), Script, secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), ShortText, CreatureTemplate::SkinLootId, Spawn, SpawnMetadata::spawnGroupData, STRING_VIEW_FMT_ARG, Template, CreatureMovementData::ToString(), ObjectGuid::ToString(), and EnumUtils::ToTitle().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 579 of file cs_npc.cpp.
References Creature::DespawnOrUnsummon(), WorldLocation::GetMapId(), Position::GetOrientation(), WorldSession::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), Creature::GetSpawnId(), LANG_COMMAND_CREATGUIDNOTFOUND, LANG_COMMAND_CREATUREATSAMEMAP, LANG_COMMAND_CREATUREMOVED, SpawnMetadata::mapId, ChatHandler::PSendSysMessage(), PreparedStatementBase::setFloat(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), sObjectMgr, WORLD_UPD_CREATURE_POSITION, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 532 of file cs_npc.cpp.
References Field::GetFloat(), WorldLocation::GetMapId(), WorldSession::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ChatHandler::GetSession(), Field::GetUInt16(), Field::GetUInt32(), LANG_COMMAND_NEAR_NPC_MESSAGE, LANG_CREATURE_LIST_CHAT, CreatureTemplate::Name, ChatHandler::PSendSysMessage(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt32(), sObjectMgr, WORLD_SEL_CREATURE_NEAREST, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 629 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), LANG_SELECT_CREATURE, ChatHandler::SendSysMessage(), Unit::SetEmoteState(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 866 of file cs_npc.cpp.
References EMOTE_ONESHOT_EXCLAMATION, EMOTE_ONESHOT_QUESTION, EMOTE_ONESHOT_TALK, ChatHandler::getSelectedCreature(), Unit::HandleEmoteCommand(), LANG_SELECT_CREATURE, LANG_UNIVERSAL, Unit::Say(), ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 229 of file cs_npc.cpp.
References LANG_CREATURE_MOVE_DISABLED, LANG_CREATURE_MOVE_ENABLED, ChatHandler::SendSysMessage(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 421 of file cs_npc.cpp.
References Creature::AI(), Creature::GetAIName(), Object::GetGUID(), WorldObject::GetName(), Creature::GetScriptName(), ChatHandler::getSelectedCreature(), LANG_NPC_SETDATA, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), UnitAI::SetData(), ChatHandler::SetSentErrorMessage(), and ObjectGuid::ToString().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 244 of file cs_npc.cpp.
References ChatHandler::getSelectedUnit(), Object::GetTypeId(), LANG_DONE, LANG_ERROR, LANG_SELECT_CREATURE, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), Object::ToCreature(), TYPEID_UNIT, and Creature::UpdateEntry().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 357 of file cs_npc.cpp.
References Creature::GetCreatureTemplate(), Object::GetEntry(), ChatHandler::getSelectedCreature(), LANG_SELECT_CREATURE, LANG_WRONG_FACTION, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), Unit::SetFaction(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), sFactionTemplateStore, WORLD_UPD_CREATURE_FACTION, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 395 of file cs_npc.cpp.
References Object::GetEntry(), ChatHandler::getSelectedCreature(), LANG_SELECT_CREATURE, LANG_VALUE_SAVED_REJOIN, Unit::ReplaceAllNpcFlags(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), WORLD_UPD_CREATURE_NPCFLAG, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 265 of file cs_npc.cpp.
References CONFIG_MAX_PLAYER_LEVEL, ChatHandler::getSelectedCreature(), Unit::IsPet(), LANG_BAD_VALUE, LANG_SELECT_CREATURE, Creature::SaveToDB(), ChatHandler::SendSysMessage(), Unit::SetHealth(), Unit::SetLevel(), Unit::SetMaxHealth(), ChatHandler::SetSentErrorMessage(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1238 of file cs_npc.cpp.
References ObjectGuid::GetCounter(), Object::GetGUID(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sObjectMgr.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 645 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), Unit::IsPet(), LANG_COMMAND_INVALID_PARAM, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), Creature::SaveToDB(), sCreatureDisplayInfoStore, ChatHandler::SendSysMessage(), Creature::SetDisplayId(), Unit::SetNativeDisplayId(), ChatHandler::SetSentErrorMessage(), and Trinity::ToString().
Referenced by GetCommands().
|
inlinestatic |
HandleNpcSetMoveTypeCommand Set the movement type for an NPC.
Valid movement types are:
additional parameter: NODEL - so no waypoints are deleted, if you change the movement type
Definition at line 683 of file cs_npc.cpp.
References ChatHandler::GetCreatureFromPlayerMapByDbGuid(), Unit::GetMotionMaster(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), IDLE_MOTION_TYPE, MotionMaster::Initialize(), Unit::IsAlive(), Unit::IsPet(), JUST_DIED, LANG_COMMAND_CREATGUIDNOTFOUND, LANG_MOVE_TYPE_SET, LANG_MOVE_TYPE_SET_NODEL, Creature::LoadPath(), ChatHandler::PSendSysMessage(), RANDOM_MOTION_TYPE, Creature::Respawn(), Creature::SaveToDB(), Creature::setDeathState(), Creature::SetDefaultMovementType(), ChatHandler::SetSentErrorMessage(), sObjectMgr, EnumUtils::ToTitle(), and WAYPOINT_MOTION_TYPE.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 781 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), Unit::IsPet(), LANG_BAD_VALUE, LANG_SELECT_CREATURE, Creature::SaveToDB(), ChatHandler::SendSysMessage(), Creature::SetPhaseMask(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 849 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), LANG_COMMAND_SPAWNTIME, ChatHandler::PSendSysMessage(), Creature::SetRespawnDelay(), PreparedStatementBase::setUInt32(), WORLD_UPD_CREATURE_SPAWN_TIME_SECS, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 807 of file cs_npc.cpp.
References Unit::GetMotionMaster(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), IDLE_MOTION_TYPE, MotionMaster::Initialize(), Unit::IsAlive(), JUST_DIED, LANG_BAD_VALUE, LANG_COMMAND_WANDER_DISTANCE, ChatHandler::PSendSysMessage(), RANDOM_MOTION_TYPE, Creature::Respawn(), ChatHandler::SendSysMessage(), Creature::setDeathState(), Creature::SetDefaultMovementType(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), Creature::SetWanderDistance(), WORLD_UPD_CREATURE_WANDER_DISTANCE, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1133 of file cs_npc.cpp.
References _IterateNotNormalLootMap(), _ShowLootEntry(), Loot::empty(), Object::GetEntry(), WorldObject::GetName(), Loot::GetPlayerFFAItems(), Loot::GetPlayerNonQuestNonFFAConditionalItems(), Loot::GetPlayerQuestItems(), ChatHandler::getSelectedCreature(), Loot::gold, GOLD, Unit::isDead(), Unit::IsPet(), Loot::items, LANG_COMMAND_NOT_DEAD_OR_NO_LOOT, LANG_COMMAND_NPC_SHOWLOOT_HEADER, LANG_COMMAND_NPC_SHOWLOOT_LABEL, LANG_COMMAND_NPC_SHOWLOOT_LABEL_2, LANG_COMMAND_NPC_SHOWLOOT_MONEY, LANG_SELECT_CREATURE, Creature::loot, ChatHandler::PSendSysMessage(), Loot::quest_items, ChatHandler::SetSentErrorMessage(), and SILVER.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1015 of file cs_npc.cpp.
References Map::AddToMap(), Player::CanTameExoticPets(), CONTACT_DISTANCE, Unit::CreateTamedPetFrom(), CreatureTemplate::Entry, WorldObject::GetClosePoint(), Unit::GetCombatReach(), Creature::GetCreatureTemplate(), Unit::GetLevel(), WorldObject::GetMap(), Position::GetOrientation(), Unit::GetPetGUID(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), ObjectGuid::IsEmpty(), Unit::IsPet(), CreatureTemplate::IsTameable(), LANG_CREATURE_NON_TAMEABLE, LANG_SELECT_CREATURE, LANG_YOU_ALREADY_HAVE_PET, M_PI, PET_SAVE_AS_CURRENT, Player::PetSpellInitialize(), ChatHandler::PSendSysMessage(), REACT_DEFENSIVE, Position::Relocate(), Pet::SavePetToDB(), ChatHandler::SendSysMessage(), Unit::SetMinion(), Creature::SetReactState(), ChatHandler::SetSentErrorMessage(), Object::SetUInt32Value(), Object::ToCreature(), and UNIT_FIELD_LEVEL.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 893 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), LANG_SELECT_CREATURE, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and Unit::TextEmote().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 913 of file cs_npc.cpp.
References FOLLOW_MOTION_TYPE, Unit::GetMotionMaster(), MotionMaster::GetMovementGenerator(), MovementGenerator::GetMovementGeneratorType(), WorldObject::GetName(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), LANG_CREATURE_NOT_FOLLOW_YOU, LANG_CREATURE_NOT_FOLLOW_YOU_NOW, LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), MotionMaster::Remove(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 948 of file cs_npc.cpp.
References ObjectGuid::Empty, ObjectAccessor::FindPlayerByName(), ChatHandler::getSelectedCreature(), ChatHandler::HasLowerSecurity(), LANG_SELECT_CREATURE, LANG_UNIVERSAL, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and Unit::Whisper().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 970 of file cs_npc.cpp.
References EMOTE_ONESHOT_SHOUT, ChatHandler::getSelectedCreature(), Unit::HandleEmoteCommand(), LANG_SELECT_CREATURE, LANG_UNIVERSAL, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and Unit::Yell().
Referenced by GetCommands().