1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

[ Quest ] Now they work fine

This commit is contained in:
Dantestyle 2018-06-12 23:57:36 +02:00
parent f06638a7ed
commit 12ab33d5d1
3 changed files with 13 additions and 13 deletions

View file

@ -41,7 +41,7 @@ public:
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( actorId );
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == ACTOR0 )
{

View file

@ -56,7 +56,7 @@ class ManSea003 : public EventScript
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( actorId );
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
if( actor == Actor0)
{

View file

@ -56,7 +56,7 @@ public:
void onTalk(uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
auto actor = Event::mapEventActorToRealActor( actorId );
auto actor = Event::mapEventActorToRealActor( static_cast< uint32_t >( actorId ) );
auto currentCC = player.getQuestUI8AL( getId() );
if( actor == Actor0 )
@ -151,6 +151,8 @@ private:
if( currentCC + 1 >= 6 )
{
player.updateQuest( getId(), SeqFinish );
player.setQuestUI8BH(getId(), currentCC + 1);
player.setQuestUI8AL(getId(), currentCC + 1);
}
else
{
@ -327,8 +329,6 @@ private:
{
Scene00017( player );
}
else
Scene00015( player );
} );
}