mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
Added EXP GM Command
Added the EXP Command for GM's in the GM Packet Handler
This commit is contained in:
parent
ceb960df09
commit
6e87892d2c
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,7 @@ enum GmCommand
|
|||
Mp = 0x0065,
|
||||
Tp = 0x0066,
|
||||
Gp = 0x0067,
|
||||
EXP = 0x0068,
|
||||
|
||||
Item = 0x00C8,
|
||||
Gil = 0x00C9,
|
||||
|
@ -189,6 +190,12 @@ void Core::Network::GameConnection::gm1Handler( const Packets::GamePacket& inPac
|
|||
pPlayer->sendNotice( "Gp for " + targetPlayer->getName() + " was set to " + std::to_string( param1 ) );
|
||||
break;
|
||||
}
|
||||
case GmCommand::EXP:
|
||||
{
|
||||
targetPlayer->gainExp(param1);
|
||||
pPlayer->sendNotice(std::to_string(param1) + " EXP was added to " + targetPlayer->getName());
|
||||
break;
|
||||
}
|
||||
case GmCommand::Sex:
|
||||
{
|
||||
targetPlayer->setLookAt( CharaLook::Gender, param1 );
|
||||
|
|
Loading…
Add table
Reference in a new issue