[Server] Add OnActorCellChange script callback

0.6.1
David Cernat 8 years ago
parent 6a21ec1fdc
commit 9a89284bca

@ -125,6 +125,7 @@ public:
{"OnPlayerSpellbookChange", Function<void, unsigned short>()},
{"OnPlayerJournalChange", Function<void, unsigned short>()},
{"OnActorList", Function<void, unsigned short, const char*>()},
{"OnActorCellChange", Function<void, unsigned short, const char*>()},
{"OnActorTest", Function<void, unsigned short, const char*>()},
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
{"OnObjectDelete", Function<void, unsigned short, const char*>()},

@ -17,6 +17,8 @@ namespace mwmp
{
// Send this to everyone
packet.Send(true);
Script::Call<Script::CallbackIdentity("OnActorCellChange")>(player.getId(), actorList.cell.getDescription().c_str());
}
};
}

Loading…
Cancel
Save