mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
vip improvements
This commit is contained in:
@@ -54,6 +54,8 @@ public:
|
||||
void sendTurnEast();
|
||||
void sendTurnSouth();
|
||||
void sendTurnWest();
|
||||
void sendAddVip(const std::string& name);
|
||||
void sendRemoveVip(int id);
|
||||
|
||||
private:
|
||||
void sendLoginPacket(uint32 timestamp, uint8 unknown);
|
||||
|
@@ -157,3 +157,19 @@ void ProtocolGame::sendTurnWest()
|
||||
oMsg.addU8(Otc::ClientRotateWest);
|
||||
send(oMsg);
|
||||
}
|
||||
|
||||
void ProtocolGame::sendAddVip(const std::string& name)
|
||||
{
|
||||
OutputMessage oMsg;
|
||||
oMsg.addU8(Otc::ClientAddBuddy);
|
||||
oMsg.addString(name);
|
||||
send(oMsg);
|
||||
}
|
||||
|
||||
void ProtocolGame::sendRemoveVip(int id)
|
||||
{
|
||||
OutputMessage oMsg;
|
||||
oMsg.addU8(Otc::ClientRemoveBuddy);
|
||||
oMsg.addU32(id);
|
||||
send(oMsg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user