mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
Added eventplay subcommand.
This commit is contained in:
parent
40ecbb8765
commit
baee69a007
1 changed files with 13 additions and 0 deletions
|
@ -462,6 +462,19 @@ void Sapphire::World::Manager::DebugCommandMgr::set( char* data, Entity::Player&
|
|||
}
|
||||
player.setVisualEffect( id );
|
||||
}
|
||||
else if (subCommand == "eventplay")
|
||||
{
|
||||
uint32_t eventId = 0;
|
||||
uint32_t sceneId = 0;
|
||||
uint32_t inputFlags = 0;
|
||||
uint32_t param2 = 0;
|
||||
uint32_t param3 = 0;
|
||||
|
||||
sscanf(params.c_str(), "%i %i %i %i %i", &eventId, &sceneId, &inputFlags, ¶m2, ¶m3);
|
||||
|
||||
player.eventStart(player.getId(), eventId, Event::EventHandler::Talk, 0, 0);
|
||||
player.playScene(eventId, sceneId, inputFlags, param2, param3, nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendUrgent( "{0} is not a valid SET command.", subCommand );
|
||||
|
|
Loading…
Add table
Reference in a new issue