mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Send action parameter to OnPlayerChangeSpellbook
This commit is contained in:
parent
9e290ad799
commit
4e23fc0a5b
@ -236,7 +236,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
||||
DEBUG_PRINTF("ID_GAME_SPELLBOOK\n");
|
||||
myPacket->Read(player);
|
||||
|
||||
Script::Call<Script::CallbackIdentity("OnPlayerChangeSpellbook")>(player->getId());
|
||||
Script::Call<Script::CallbackIdentity("OnPlayerChangeSpellbook")>(player->getId(), player->spellbook.action);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public:
|
||||
{"OnPlayerChangeLevel", Function<void, unsigned short>()},
|
||||
{"OnPlayerChangeEquipment", Function<void, unsigned short>()},
|
||||
{"OnPlayerChangeInventory", Function<void, unsigned short>()},
|
||||
{"OnPlayerChangeSpellbook", Function<void, unsigned short>()},
|
||||
{"OnPlayerChangeSpellbook", Function<void, unsigned short, int>()},
|
||||
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
|
||||
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
|
||||
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}
|
||||
|
Loading…
x
Reference in New Issue
Block a user