1
Fork 0
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:
Rey 2021-08-08 13:39:13 -05:00
parent 40ecbb8765
commit baee69a007

View file

@ -462,6 +462,19 @@ void Sapphire::World::Manager::DebugCommandMgr::set( char* data, Entity::Player&
} }
player.setVisualEffect( id ); 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, &param2, &param3);
player.eventStart(player.getId(), eventId, Event::EventHandler::Talk, 0, 0);
player.playScene(eventId, sceneId, inputFlags, param2, param3, nullptr);
}
else else
{ {
player.sendUrgent( "{0} is not a valid SET command.", subCommand ); player.sendUrgent( "{0} is not a valid SET command.", subCommand );