Core/Scripts: Add OnPlayerLogin, OnPlayerLogout, OnPlayerCreate and OnPlayerDelete

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-09-15 13:23:07 +02:00
1 parent 9d9f18f9d2
commit cc3d4cc823
4 files changed
+39 -3

No files matched your search

+1
View File
@@ -479,6 +479,7 @@ void WorldSession::LogoutPlayer(bool Save)
CharacterDatabase.PExecute("UPDATE characters SET online = 0 WHERE account = '%u'",
GetAccountId());
sLog.outDebug("SESSION: Sent SMSG_LOGOUT_COMPLETE Message");
sScriptMgr.OnPlayerLogout(GetPlayer());
}
m_playerLogout = false;