mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Base raise skill;
This commit is contained in:
parent
be9482c11f
commit
5010aed6b3
3 changed files with 38 additions and 2 deletions
18
scripts/chai/skill/cnj/skillDef_125.chai
Normal file
18
scripts/chai/skill/cnj/skillDef_125.chai
Normal file
|
@ -0,0 +1,18 @@
|
|||
// Skill Name: Raise
|
||||
// Skill ID: 125
|
||||
|
||||
class skillDef_125Def
|
||||
{
|
||||
def skillDef_125Def()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
def onFinish( player, target )
|
||||
{
|
||||
target.addStatusEffectByIdIfNotExist( 148, 60000, 0 );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
GLOBAL skillDef_125 = skillDef_125Def();
|
|
@ -114,6 +114,13 @@ namespace Core {
|
|||
FadeIn = 5,
|
||||
};
|
||||
|
||||
enum struct ResurrectType : uint8_t
|
||||
{
|
||||
None = 0,
|
||||
RaiseSpell = 5,
|
||||
Return = 8
|
||||
};
|
||||
|
||||
enum Tribe : uint8_t
|
||||
{
|
||||
Midlander = 1,
|
||||
|
|
|
@ -128,8 +128,19 @@ void Core::Network::GameConnection::actionHandler( const Packets::GamePacket& in
|
|||
}
|
||||
case 0xC8: // return dead
|
||||
{
|
||||
switch ( static_cast < ResurrectType >( param1 ) )
|
||||
{
|
||||
case ResurrectType::RaiseSpell:
|
||||
// todo: handle raise case (set position to raiser, apply weakness status, set hp/mp/tp as well as packet)
|
||||
pPlayer->returnToHomepoint();
|
||||
break;
|
||||
case ResurrectType::Return:
|
||||
pPlayer->returnToHomepoint();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
case 0xC9: // Finish zoning
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue