mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-30 08:07:46 +00:00
more EventHelper on chat, I like them
This commit is contained in:
parent
77495fcfb9
commit
db9e2faf55
1 changed files with 12 additions and 1 deletions
|
@ -70,7 +70,18 @@ std::string Core::Event::getEventName( uint32_t eventId )
|
|||
|
||||
case Event::EventHandler::EventHandlerType::Warp:
|
||||
{
|
||||
return "ChocoboTaxi";
|
||||
auto warpInfo = pExdData->get< Core::Data::Warp >( eventId );
|
||||
if( warpInfo )
|
||||
return "WarpTaxi";
|
||||
return unknown + "ChocoboWarp"; //who know
|
||||
}
|
||||
case Event::EventHandler::EventHandlerType::Shop:
|
||||
{
|
||||
auto shopInfo = pExdData->get< Core::Data::GilShop >( eventId );
|
||||
std::string name = shopInfo->name;
|
||||
|
||||
if( shopInfo )
|
||||
return "GilShop - " + name;
|
||||
}
|
||||
default:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue