1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 02:57:45 +00:00

Merge branch 'lolcustomsubcommand' into develop_5.5x

This commit is contained in:
Rey 2021-08-31 13:29:48 -05:00
commit b46e7c2708

View file

@ -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, &param2, &param3);
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 );