diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index e122a4b8a..c7af57942 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -161,7 +161,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) player->getCell()->getDescription().c_str()); myPacket->Send(player, true); //send to other clients - Script::Call(player->getId()); + Script::Call(player->getId()); } else { @@ -188,7 +188,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -201,7 +201,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -214,7 +214,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); } break; @@ -226,7 +226,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) myPacket->Read(player); myPacket->Send(player, true); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } @@ -236,7 +236,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_INVENTORY\n"); myPacket->Read(player); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } @@ -246,7 +246,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_SPELLBOOK\n"); myPacket->Read(player); - Script::Call(player->getId(), player->spellbookChanges.action); + Script::Call(player->getId(), player->spellbookChanges.action); break; } @@ -256,7 +256,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) DEBUG_PRINTF("ID_GAME_JOURNAL\n"); myPacket->Read(player); - Script::Call(player->getId()); + Script::Call(player->getId()); break; } diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 1b85a79db..2e726ecfd 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -106,15 +106,15 @@ public: {"OnPlayerDisconnect", Function()}, {"OnPlayerDeath", Function()}, {"OnPlayerResurrect", Function()}, - {"OnPlayerChangeCell", Function()}, + {"OnPlayerCellChange", Function()}, {"OnPlayerCellLoad", Function()}, - {"OnPlayerChangeAttributes", Function()}, - {"OnPlayerChangeSkills", Function()}, - {"OnPlayerChangeLevel", Function()}, - {"OnPlayerChangeEquipment", Function()}, - {"OnPlayerChangeInventory", Function()}, - {"OnPlayerChangeSpellbook", Function()}, - {"OnPlayerChangeJournal", Function()}, + {"OnPlayerAttributesChange", Function()}, + {"OnPlayerSkillsChange", Function()}, + {"OnPlayerLevelChange", Function()}, + {"OnPlayerEquipmentChange", Function()}, + {"OnPlayerInventoryChange", Function()}, + {"OnPlayerSpellbookChange", Function()}, + {"OnPlayerJournalChange", Function()}, {"OnObjectPlace", Function()}, {"OnObjectDelete", Function()}, {"OnPlayerSendMessage", Function()},