[DiscordArchive] <@216234897390436353> what are the new conversation changes?
[DiscordArchive] <@216234897390436353> what are the new conversation changes?
Archived author: Malcrom • Posted: 2023-06-22T15:30:06.717000+00:00
Original source
Good
Archived author: ModoX • Posted: 2023-06-22T15:30:21.648000+00:00
Original source
```c
void OnConversationStart(Conversation* conversation) override
{
LocaleConstant privateOwnerLocale = LOCALE_enUS;
if (Player* owner = ObjectAccessor::GetPlayer(*conversation, conversation->GetPrivateObjectOwner()))
privateOwnerLocale = owner->GetSession()->GetSessionDbLocaleIndex();
if (Milliseconds const* teleportLineStartTime = conversation->GetLineStartTime(privateOwnerLocale, CONV_LINE_VANESSA_TELEPORT))
_events.ScheduleEvent(EVENT_VANESSA_TELEPORT, *teleportLineStartTime);
}
```
Archived author: ModoX • Posted: 2023-06-22T15:30:37.121000+00:00
Original source
you can do something like that when pr is merged
Archived author: ModoX • Posted: 2023-06-22T15:30:48.671000+00:00
Original source
that would create timer based on private object owner locale
Archived author: ModoX • Posted: 2023-06-22T15:30:54.823000+00:00
Original source
so the npc always ports at proper timing
Archived author: Malcrom • Posted: 2023-06-22T15:32:00.390000+00:00
Original source
How is one to know they have to do it differently for a language you do not use?
Archived author: ModoX • Posted: 2023-06-22T15:41:21.737000+00:00
Original source
if its timing perfect when speechbubble appears above an npcs head
Archived author: ModoX • Posted: 2023-06-22T15:41:57.382000+00:00
Original source
e.g. here <https://youtu.be/XKy9ihJ8pY4?t=56>
Archived author: Malcrom • Posted: 2023-06-22T15:46:20.385000+00:00
Original source
Nice work