mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 00:47:45 +00:00
Update GaiUsb914.cpp
This commit is contained in:
parent
eb6f7777e8
commit
2bb30ecb3e
1 changed files with 6 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
// In order for this script to be loaded, move it to the correct folder in <root>/scripts/
|
||||
|
||||
#include "Manager/EventMgr.h"
|
||||
#include <Actor/BNpc.h>
|
||||
#include <Actor/Player.h>
|
||||
#include <ScriptObject.h>
|
||||
#include <Service.h>
|
||||
|
@ -36,8 +37,8 @@ private:
|
|||
|
||||
// Entities found in the script data of the quest
|
||||
static constexpr auto Actor0 = 1006461;//Cid
|
||||
static constexpr auto Enemy0 = 114;//Ice Sprite (INCORRECT: 132)
|
||||
static constexpr auto Item0 = 2000732;//Ice Sprit Core (UI8BH)
|
||||
static constexpr auto Enemy0 = 114; //Ice Sprite (INCORRECT: 132)
|
||||
static constexpr auto Item0 = 2000732; //Ice Sprit Core (UI8BH)
|
||||
static constexpr auto LocAction1 = 990;
|
||||
static constexpr auto LocAction2 = 80;
|
||||
static constexpr auto LocAction3 = 81;
|
||||
|
@ -70,9 +71,9 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void onBNpcKill( World::Quest& quest, uint16_t nameId, uint32_t entityId, Entity::Player& player ) override
|
||||
void onBNpcKill( World::Quest& quest, Entity::BNpc& bnpc, Entity::Player& player ) override
|
||||
{
|
||||
switch( nameId )
|
||||
switch( bnpc.getBNpcNameId() )
|
||||
{
|
||||
case Enemy0:
|
||||
{
|
||||
|
@ -142,7 +143,7 @@ private:
|
|||
|
||||
if( result.getResult( 0 ) == 1 )
|
||||
{
|
||||
player.finishQuest( getId(), result.getResult(1) );
|
||||
player.finishQuest( getId(), result.getResult( 1 ) );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue