1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-16 12:27:45 +00:00

Fixed Enemy0 Id and added EventNotices

This commit is contained in:
Pinapelz 2023-02-10 19:56:51 -08:00
parent b72527ce60
commit d6a1911551

View file

@ -41,7 +41,7 @@ private:
static constexpr auto Actor0 = 1003601; static constexpr auto Actor0 = 1003601;
static constexpr auto Actor1 = 1001024; static constexpr auto Actor1 = 1001024;
static constexpr auto Actor2 = 1000972; static constexpr auto Actor2 = 1000972;
static constexpr auto Enemy0 = 324; static constexpr auto Enemy0 = 563;
static constexpr auto Item0 = 2000454; static constexpr auto Item0 = 2000454;
public: public:
@ -82,10 +82,15 @@ public:
quest.setUI8AL( currentKC ); quest.setUI8AL( currentKC );
if( currentKC >= 4 ) if( currentKC >= 4 )
{
eventMgr().sendEventNotice( player, getId(), 1, 2, currentKC + 1, 4 );
quest.setSeq( SeqFinish ); quest.setSeq( SeqFinish );
}
else else
{
eventMgr().sendEventNotice( player, getId(), 1, 2, currentKC, 4 ); eventMgr().sendEventNotice( player, getId(), 1, 2, currentKC, 4 );
} }
}
private: private:
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
@ -126,6 +131,7 @@ private:
void Scene00002Return( World::Quest& quest, Entity::Player& player, const Event::SceneResult& result ) void Scene00002Return( World::Quest& quest, Entity::Player& player, const Event::SceneResult& result )
{ {
eventMgr().sendEventNotice( player, getId(), 0, 0 );
quest.setSeq( Seq2 ); quest.setSeq( Seq2 );
} }