![]() |
TrinityCore
|
Inheritance diagram for npc_commandscript:Public Member Functions | |
| npc_commandscript () | |
| std::span< ChatCommandBuilder const > | GetCommands () const override |
Public Member Functions inherited from CommandScript | |
| ~CommandScript () | |
Public Member Functions inherited from ScriptObject | |
| ScriptObject (ScriptObject const &right)=delete | |
| ScriptObject (ScriptObject &&right)=delete | |
| ScriptObject & | operator= (ScriptObject const &right)=delete |
| ScriptObject & | operator= (ScriptObject &&right)=delete |
| std::string const & | GetName () const |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
| CommandScript (char const *name) noexcept | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) noexcept | |
| virtual | ~ScriptObject () |
Definition at line 62 of file cs_npc.cpp.
|
inline |
Definition at line 65 of file cs_npc.cpp.
|
inlinestatic |
Definition at line 1205 of file cs_npc.cpp.
References _ShowLootCurrencyEntry(), _ShowLootEntry(), _ShowLootTrackingQuestCurrencyEntry(), LootItem::count, Currency, ObjectAccessor::FindConnectedPlayer(), WorldObject::GetName(), LootItem::is_looted, Item, LootItem::itemid, LANG_COMMAND_NPC_SHOWLOOT_SUBLABEL, ChatHandler::PSendSysMessage(), Trinity::StringFormat(), TrackingQuest, and LootItem::type.
Referenced by _ShowLootContents().
|
inlinestatic |
Definition at line 1236 of file cs_npc.cpp.
References _IterateNotNormalLootMap(), _ShowLootCurrencyEntry(), _ShowLootEntry(), _ShowLootTrackingQuestCurrencyEntry(), Currency, Loot::GetPlayerFFAItems(), Loot::gold, GOLD, Item, Loot::items, LANG_COMMAND_NPC_SHOWLOOT_LABEL, LANG_COMMAND_NPC_SHOWLOOT_LABEL_2, LANG_COMMAND_NPC_SHOWLOOT_MONEY, ChatHandler::PSendSysMessage(), SILVER, and TrackingQuest.
Referenced by HandleNpcShowLootCommand().
|
inlinestatic |
Definition at line 1176 of file cs_npc.cpp.
References ChatHandler::GetSessionDbcLocale(), ITEM_QUALITY_POOR, ItemQualityColors, LANG_COMMAND_NPC_SHOWLOOT_CURRENCY, CurrencyTypesEntry::Name, ChatHandler::PSendSysMessage(), CurrencyTypesEntry::Quality, and sCurrencyTypesStore.
Referenced by _IterateNotNormalLootMap(), and _ShowLootContents().
|
inlinestatic |
Definition at line 1164 of file cs_npc.cpp.
References ItemTemplate::GetName(), ItemTemplate::GetQuality(), ChatHandler::GetSessionDbcLocale(), ITEM_QUALITY_POOR, ItemQualityColors, LANG_COMMAND_NPC_SHOWLOOT_ENTRY, ChatHandler::PSendSysMessage(), and sObjectMgr.
Referenced by _IterateNotNormalLootMap(), and _ShowLootContents().
|
inlinestatic |
Definition at line 1188 of file cs_npc.cpp.
References ObjectMgr::GetLocaleString(), Quest::GetLogTitle(), ChatHandler::GetSessionDbLocaleIndex(), LANG_COMMAND_NPC_SHOWLOOT_TRACKING_QUEST, LOCALE_enUS, ChatHandler::PSendSysMessage(), sObjectMgr, and STRING_VIEW_FMT_ARG.
Referenced by _IterateNotNormalLootMap(), and _ShowLootContents().
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 67 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 123 of file cs_npc.cpp.
References Unit::CleanupsBeforeDelete(), Creature::CreateCreature(), Creature::CreateCreatureFromDB(), Map::GetId(), WorldObject::GetMap(), WorldSession::GetPlayer(), Position::GetPosition(), ChatHandler::GetSession(), Creature::GetSpawnId(), WorldObject::GetTransOffsetO(), WorldObject::GetTransOffsetX(), WorldObject::GetTransOffsetY(), WorldObject::GetTransOffsetZ(), WorldObject::GetTransport(), SpawnData::id, PhasingHandler::InheritPhaseShift(), Position::Relocate(), Creature::SaveToDB(), sObjectMgr, SpawnMetadata::spawnGroupData, SpawnMetadata::spawnId, and SpawnData::spawnPoint.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1335 of file cs_npc.cpp.
References FLAG_IDLE_IN_FORMATION, FLAG_MEMBERS_ASSIST_MEMBER, Position::GetExactDist2d(), Creature::GetFormation(), CreatureGroup::GetLeaderSpawnId(), WorldSession::GetPlayer(), Position::GetRelativeAngle(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), Creature::GetSpawnId(), LANG_SELECT_CREATURE, M_PI, ChatHandler::PSendSysMessage(), Creature::SearchFormation(), ChatHandler::SendSysMessage(), PreparedStatementBase::setFloat(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sFormationMgr, UI64FMTD, WORLD_INS_CREATURE_FORMATION, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 218 of file cs_npc.cpp.
References LANG_COMMAND_CREATGUIDNOTFOUND, LANG_WAYPOINT_ADDED, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sObjectMgr, WAYPOINT_MOTION_TYPE, WORLD_UPD_CREATURE_MOVEMENT_TYPE, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1057 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 170 of file cs_npc.cpp.
References VendorItem::BonusListIDs, VendorItem::ExtendedCost, ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), ItemTemplate::GetId(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), VendorItem::incrtime, VendorItem::item, ITEM_VENDOR_TYPE_ITEM, LANG_COMMAND_NEEDITEMSEND, LANG_ITEM_ADDED_TO_LIST, LANG_SELECT_CREATURE, VendorItem::maxcount, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sObjectMgr, Trinity::Tokenize(), and VendorItem::Type.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1413 of file cs_npc.cpp.
|
inlinestatic |
Definition at line 302 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 339 of file cs_npc.cpp.
References ItemTemplate::GetDefaultLocaleName(), Object::GetEntry(), ItemTemplate::GetId(), ChatHandler::getSelectedCreature(), Unit::IsVendor(), ITEM_VENDOR_TYPE_ITEM, 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 1140 of file cs_npc.cpp.
References Creature::AI(), Unit::ClearUnitState(), CreatureAI::EnterEvadeMode(), ChatHandler::getSelectedCreature(), Unit::IsAIEnabled(), Unit::IsPet(), LANG_CREATURE_NOT_AI_ENABLED, LANG_SELECT_CREATURE, Other, ChatHandler::PSendSysMessage(), ChatHandler::SetSentErrorMessage(), and UNIT_STATE_EVADE.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 452 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 471 of file cs_npc.cpp.
References Creature::AI(), CreatureTemplate::CreatureImmunitiesId, DescribeReactState(), SpawnGroupTemplateData::flags, CreatureTemplate::flags_extra, Creature::GetAIName(), Unit::GetArmor(), Unit::GetCreateHealth(), Creature::GetCreatureData(), Creature::GetCreatureDifficulty(), SpellMgr::GetCreatureImmunities(), Map::GetCreatureRespawnTime(), Creature::GetCreatureTemplate(), Creature::GetCurrentEquipmentId(), Unit::GetDisplayId(), Object::GetDynamicFlags(), Object::GetEntry(), Unit::GetFaction(), GameTime::GetGameTime(), BaseEntity::GetGUID(), Unit::GetHealth(), WorldObject::GetInstanceId(), Unit::GetLevel(), WorldObject::GetMap(), Unit::GetMaxHealth(), Creature::GetMovementTemplate(), WorldObject::GetName(), Unit::GetNativeDisplayId(), Unit::GetNpcFlags(), Unit::GetNpcFlags2(), Creature::GetOriginalEquipmentId(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Creature::GetReactState(), Creature::GetRespawnCompatibilityMode(), Creature::GetRespawnDelay(), Creature::GetRespawnTimeEx(), Creature::GetScriptName(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), Creature::GetStringId(), Trinity::GetTypeName(), SpawnGroupTemplateData::groupId, Unit::HasNpcFlag(), Unit::HasNpcFlag2(), Unit::HasUnitFlag(), Unit::HasUnitFlag2(), Unit::HasUnitFlag3(), Map::IsSpawnGroupActive(), LANG_COMMAND_RAWPAWNTIMES, LANG_NPCINFO_ARMOR, LANG_NPCINFO_CHAR, LANG_NPCINFO_DUNGEON_ID, LANG_NPCINFO_DYNAMIC_FLAGS, LANG_NPCINFO_EQUIPMENT, LANG_NPCINFO_FLAGS_EXTRA, LANG_NPCINFO_HEALTH, LANG_NPCINFO_LEVEL, LANG_NPCINFO_LOOT, LANG_NPCINFO_MECHANIC_IMMUNE, LANG_NPCINFO_MOVEMENT_DATA, LANG_NPCINFO_NPC_FLAGS, LANG_NPCINFO_PHASES, LANG_NPCINFO_POSITION, LANG_NPCINFO_REACTSTATE, LANG_NPCINFO_UNIT_FIELD_FLAGS, LANG_NPCINFO_UNIT_FIELD_FLAGS_2, LANG_NPCINFO_UNIT_FIELD_FLAGS_3, LANG_OBJECTINFO_AIINFO, LANG_OBJECTINFO_AITYPE, LANG_OBJECTINFO_STRINGIDS, LANG_SELECT_CREATURE, LANG_SPAWNINFO_COMPATIBILITY_MODE, LANG_SPAWNINFO_GROUP_ID, CreatureDifficulty::LootID, Unit::m_unitData, SpawnGroupTemplateData::name, CreatureDifficulty::PickPocketLootID, PhasingHandler::PrintToChat(), ChatHandler::PSendSysMessage(), Script, secsToTimeString(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), ShortText, CreatureDifficulty::SkinLootID, sObjectMgr, Spawn, SpawnMetadata::spawnGroupData, STRING_VIEW_FMT_ARG, Trinity::StringFormat(), Template, CreatureMovementData::ToString(), ObjectGuid::ToString(), EnumUtils::ToTitle(), and UI64LIT.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 618 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::setUInt64(), sObjectMgr, WORLD_UPD_CREATURE_POSITION, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 571 of file cs_npc.cpp.
References Field::GetFloat(), WorldLocation::GetMapId(), WorldSession::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ChatHandler::GetSession(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt64(), 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 668 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 931 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 242 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 434 of file cs_npc.cpp.
References Creature::AI(), Creature::GetAIName(), BaseEntity::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 257 of file cs_npc.cpp.
References ChatHandler::getSelectedUnit(), BaseEntity::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 369 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 407 of file cs_npc.cpp.
References Object::GetEntry(), ChatHandler::getSelectedCreature(), LANG_SELECT_CREATURE, LANG_VALUE_SAVED_REJOIN, Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllNpcFlags2(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), WORLD_UPD_CREATURE_NPCFLAG, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 278 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::SetLevel(), ChatHandler::SetSentErrorMessage(), sWorld, and Creature::UpdateLevelDependantStats().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1383 of file cs_npc.cpp.
References BaseEntity::GetGUID(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), LANG_SELECT_CREATURE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sObjectMgr, ObjectGuid::ToString(), and UI64FMTD.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 684 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(), 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 721 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(), UI64LIT, and WAYPOINT_MOTION_TYPE.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 845 of file cs_npc.cpp.
References PhasingHandler::AddPhase(), ChatHandler::getSelectedCreature(), Unit::IsPet(), LANG_PHASE_NOTFOUND, LANG_SELECT_CREATURE, PhasingHandler::ResetPhaseShift(), Creature::SaveToDB(), ChatHandler::SendSysMessage(), WorldObject::SetDBPhase(), and ChatHandler::SetSentErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 819 of file cs_npc.cpp.
References PhasingHandler::AddPhaseGroup(), ChatHandler::getSelectedCreature(), Unit::IsPet(), LANG_SELECT_CREATURE, PhasingHandler::ResetPhaseShift(), Creature::SaveToDB(), ChatHandler::SendSysMessage(), WorldObject::SetDBPhase(), and ChatHandler::SetSentErrorMessage().
|
inlinestatic |
Definition at line 914 of file cs_npc.cpp.
References ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), LANG_COMMAND_SPAWNTIME, ChatHandler::PSendSysMessage(), Creature::SetRespawnDelay(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), WORLD_UPD_CREATURE_SPAWN_TIME_SECS, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 872 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::setUInt64(), PreparedStatementBase::setUInt8(), Creature::SetWanderDistance(), UI64LIT, WORLD_UPD_CREATURE_WANDER_DISTANCE, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1292 of file cs_npc.cpp.
References _ShowLootContents(), Object::GetEntry(), WorldObject::GetName(), ChatHandler::getSelectedCreature(), Unit::isDead(), Loot::isLooted(), Unit::IsPet(), LANG_COMMAND_NOT_DEAD_OR_NO_LOOT, LANG_COMMAND_NPC_SHOWLOOT_HEADER, LANG_COMMAND_NPC_SHOWLOOT_LABEL_2, LANG_SELECT_CREATURE, Creature::m_loot, Creature::m_personalLoot, Trinity::Containers::MapValue, CharacterCacheEntry::Name, ChatHandler::PSendSysMessage(), sCharacterCache, ChatHandler::SetSentErrorMessage(), and Trinity::StringFormat().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 1080 of file cs_npc.cpp.
References Map::AddToMap(), Player::CanTameExoticPets(), CONTACT_DISTANCE, Unit::CreateTamedPetFrom(), CreatureTemplate::Entry, WorldObject::GetClosePoint(), Unit::GetCombatReach(), Creature::GetCreatureDifficulty(), Creature::GetCreatureTemplate(), 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(), Pet::SendNewlyTamed(), ChatHandler::SendSysMessage(), Unit::SetMinion(), Creature::SetReactState(), ChatHandler::SetSentErrorMessage(), and Object::ToCreature().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 958 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 978 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 1013 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 1035 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().