|
|
|
@ -537,9 +537,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case ID_CONTAINER:
|
|
|
|
|
case ID_OBJECT_HEALTH:
|
|
|
|
|
{
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_CONTAINER from %s",
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_OBJECT_HEALTH from %s",
|
|
|
|
|
player->npc.mName.c_str());
|
|
|
|
|
|
|
|
|
|
myPacket->Read(baseEvent);
|
|
|
|
@ -548,26 +548,30 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case ID_OBJECT_HEALTH:
|
|
|
|
|
case ID_DOOR_STATE:
|
|
|
|
|
{
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_OBJECT_HEALTH from %s",
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_DOOR_STATE from %s",
|
|
|
|
|
player->npc.mName.c_str());
|
|
|
|
|
|
|
|
|
|
myPacket->Read(baseEvent);
|
|
|
|
|
myPacket->Send(baseEvent, true);
|
|
|
|
|
|
|
|
|
|
Script::Call<Script::CallbackIdentity("OnDoorState")>(
|
|
|
|
|
player->getId(),
|
|
|
|
|
baseEvent->cell.getDescription().c_str());
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case ID_DOOR_STATE:
|
|
|
|
|
case ID_CONTAINER:
|
|
|
|
|
{
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_DOOR_STATE from %s",
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_CONTAINER from %s",
|
|
|
|
|
player->npc.mName.c_str());
|
|
|
|
|
|
|
|
|
|
myPacket->Read(baseEvent);
|
|
|
|
|
myPacket->Send(baseEvent, true);
|
|
|
|
|
|
|
|
|
|
Script::Call<Script::CallbackIdentity("OnDoorState")>(
|
|
|
|
|
Script::Call<Script::CallbackIdentity("OnContainer")>(
|
|
|
|
|
player->getId(),
|
|
|
|
|
baseEvent->cell.getDescription().c_str());
|
|
|
|
|
|
|
|
|
|