mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 22:17:45 +00:00
scripts cleanup, npc repair script and hunt board
This commit is contained in:
parent
893ebd3454
commit
394988fbb0
7 changed files with 43 additions and 5 deletions
|
@ -17,7 +17,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
player.playScene( getId(), 0, 0x2000, 0, 1, callback );
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1, callback );
|
||||
}
|
||||
|
||||
void Scene00001( Entity::Player& player, uint16_t returnScene )
|
||||
|
|
|
@ -9,7 +9,7 @@ public:
|
|||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, 0x2000, 0, 1 );
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
|
||||
}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
Scene00001( player, result.param2 );
|
||||
};
|
||||
|
||||
player.playScene( getId(), 0, 0x2000, 0, 1, callback );
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1, callback );
|
||||
}
|
||||
|
||||
// lay down
|
||||
|
|
|
@ -9,7 +9,7 @@ public:
|
|||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, 0x2000, 0, 1 );
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
|
||||
}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
|
|
19
src/servers/Scripts/common/CmnDefNpcRepair.cpp
Normal file
19
src/servers/Scripts/common/CmnDefNpcRepair.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <ScriptObject.h>
|
||||
#include <Actor/Player.h>
|
||||
|
||||
class CmnDefNpcRepair : public EventScript
|
||||
{
|
||||
public:
|
||||
CmnDefNpcRepair() : EventScript( 0xB0013 )
|
||||
{}
|
||||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
|
||||
}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
{
|
||||
Scene00000( player );
|
||||
}
|
||||
};
|
19
src/servers/Scripts/common/ComDefMobHuntBoard.cpp
Normal file
19
src/servers/Scripts/common/ComDefMobHuntBoard.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <ScriptObject.h>
|
||||
#include <Actor/Player.h>
|
||||
|
||||
class ComDefMobHuntBoard : public EventScript
|
||||
{
|
||||
public:
|
||||
ComDefMobHuntBoard() : EventScript( 0xB00CA )
|
||||
{}
|
||||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
|
||||
}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
{
|
||||
Scene00000( player );
|
||||
}
|
||||
};
|
|
@ -9,7 +9,7 @@ public:
|
|||
|
||||
void Scene00000( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 0, 0x2000, 0, 1 );
|
||||
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
|
||||
}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
|
|
Loading…
Add table
Reference in a new issue