![]() |
TrinityCore
|
Inheritance diagram for wp_commandscript:Public Member Functions | |
| wp_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 |
Static Public Member Functions | |
| static bool | HandleWpAddCommand (ChatHandler *handler, Optional< uint32 > pathid) |
| static bool | HandleWpLoadCommand (ChatHandler *handler, uint32 pathid) |
| static bool | HandleWpReloadCommand (ChatHandler *handler, uint32 id) |
| static bool | HandleWpUnLoadCommand (ChatHandler *handler) |
| static bool | HandleWpModifyCommand (ChatHandler *handler, Variant< EXACT_SEQUENCE("del"), EXACT_SEQUENCE("move")> show) |
| static bool | HandleWpShowCommand (ChatHandler *handler, Variant< EXACT_SEQUENCE("off"), EXACT_SEQUENCE("on"), EXACT_SEQUENCE("info")> show, Optional< uint32 > pathid) |
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 () |
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 46 of file cs_wp.cpp.
References HandleWpAddCommand(), HandleWpLoadCommand(), HandleWpModifyCommand(), HandleWpReloadCommand(), HandleWpShowCommand(), HandleWpUnLoadCommand(), rbac::RBAC_PERM_COMMAND_WP_ADD, rbac::RBAC_PERM_COMMAND_WP_LOAD, rbac::RBAC_PERM_COMMAND_WP_MODIFY, rbac::RBAC_PERM_COMMAND_WP_RELOAD, rbac::RBAC_PERM_COMMAND_WP_SHOW, and rbac::RBAC_PERM_COMMAND_WP_UNLOAD.
|
inlinestatic |
Add a waypoint to a creature.
The user can either select an npc or provide its GUID.
The user can even select a visual waypoint - then the new waypoint is placed after the selected one - this makes insertion of new waypoints possible.
eg: .wp add 12345 -> adds a waypoint to the npc with the GUID 12345
.wp add -> adds a waypoint to the currently selected creature
| pathid | (optional) |
Definition at line 84 of file cs_wp.cpp.
References AsUnderlyingType(), Unit::GetDisplayId(), Position::GetOrientation(), ChatHandler::GetPlayer(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ChatHandler::getSelectedCreature(), Creature::GetWaypointPathId(), None, ChatHandler::PSendSysMessage(), PreparedStatementBase::setFloat(), PreparedStatementBase::setNull(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), sWaypointMgr, Walk, WORLD_INS_WAYPOINT_PATH, WORLD_INS_WAYPOINT_PATH_NODE, WORLD_SEL_WAYPOINT_PATH_NODE_MAX_NODEID, WORLD_SEL_WAYPOINT_PATH_NODE_MAX_PATHID, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 156 of file cs_wp.cpp.
References Object::GetEntry(), Unit::GetMotionMaster(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), MotionMaster::Initialize(), LANG_SELECT_CREATURE, LANG_UNIVERSAL, Creature::LoadPath(), ChatHandler::PSendSysMessage(), Unit::Say(), ChatHandler::SendSysMessage(), Creature::SetDefaultMovementType(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sWaypointMgr, WAYPOINT_MOTION_TYPE, WORLD_INS_CREATURE_ADDON, WORLD_SEL_CREATURE_ADDON_BY_GUID, WORLD_UPD_CREATURE_ADDON_PATH, WORLD_UPD_CREATURE_MOVEMENT_TYPE, and WorldDatabase.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 272 of file cs_wp.cpp.
References EXACT_SEQUENCE, Unit::GetDisplayId(), Object::GetEntry(), BaseEntity::GetGUID(), ChatHandler::GetPlayer(), Position::GetPosition(), ChatHandler::getSelectedCreature(), WaypointNode::Id, WaypointPath::Id, LANG_WAYPOINT_CHANGED, LANG_WAYPOINT_REMOVED, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sWaypointMgr, and VISUAL_WAYPOINT.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 218 of file cs_wp.cpp.
References ChatHandler::PSendSysMessage(), and sWaypointMgr.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 333 of file cs_wp.cpp.
References EnumFlag< T >::AsUnderlyingType(), AsUnderlyingType(), EXACT_SEQUENCE, WaypointPath::Flags, Unit::GetDisplayId(), Object::GetEntry(), BaseEntity::GetGUID(), ChatHandler::GetPlayer(), ChatHandler::getSelectedCreature(), Creature::GetWaypointPathId(), WaypointNode::Id, WaypointPath::Id, ObjectGuid::IsEmpty(), LANG_SELECT_CREATURE, LANG_WAYPOINT_CREATSELECTED, LANG_WAYPOINT_VP_ALLREMOVED, LANG_WAYPOINT_VP_SELECT, WaypointPath::MoveType, WaypointPath::Nodes, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sWaypointMgr, and VISUAL_WAYPOINT.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 228 of file cs_wp.cpp.
References Unit::GetMotionMaster(), ChatHandler::getSelectedCreature(), Creature::GetSpawnId(), IDLE_MOTION_TYPE, MotionMaster::Initialize(), LANG_UNIVERSAL, Creature::LoadPath(), MotionMaster::MoveTargetedHome(), CreatureAddon::PathId, ChatHandler::PSendSysMessage(), Unit::Say(), Creature::SetDefaultMovementType(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sObjectMgr, Creature::UpdateCurrentWaypointInfo(), WORLD_DEL_CREATURE_ADDON, WORLD_UPD_CREATURE_MOVEMENT_TYPE, and WorldDatabase.
Referenced by GetCommands().