eluna-scripts/Example Scripts/ServerHooks.lua
2013-08-26 18:45:38 +02:00

74 lines
No EOL
7.6 KiB
Lua

RegisterServerHook(1, function(...) print("PLAYER_EVENT_ON_CHARACTER_CREATE", 1, ...) end )
RegisterServerHook(2, function(...) print("PLAYER_EVENT_ON_CHARACTER_DELETE", 2, ...) end )
RegisterServerHook(3, function(...) print("PLAYER_EVENT_ON_LOGIN", 3, ...) end )
RegisterServerHook(4, function(...) print("PLAYER_EVENT_ON_LOGOUT", 4, ...) end )
RegisterServerHook(5, function(...) print("PLAYER_EVENT_ON_SPELL_CAST", 5, ...) end )
RegisterServerHook(6, function(...) print("PLAYER_EVENT_ON_KILL_PLAYER", 6, ...) end )
RegisterServerHook(7, function(...) print("PLAYER_EVENT_ON_KILL_CREATURE", 7, ...) end )
RegisterServerHook(8, function(...) print("PLAYER_EVENT_ON_KILLED_BY_CREATURE", 8, ...) end )
RegisterServerHook(9, function(...) print("PLAYER_EVENT_ON_DUEL_REQUEST", 9, ...) end )
RegisterServerHook(10, function(...) print("PLAYER_EVENT_ON_DUEL_START", 10, ...) end )
RegisterServerHook(11, function(...) print("PLAYER_EVENT_ON_DUEL_END", 11, ...) end )
RegisterServerHook(12, function(...) print("PLAYER_EVENT_ON_GIVE_XP", 12, ...) end )
RegisterServerHook(13, function(...) print("PLAYER_EVENT_ON_LEVEL_CHANGE", 13, ...) end )
RegisterServerHook(14, function(...) print("PLAYER_EVENT_ON_MONEY_CHANGE", 14, ...) end )
RegisterServerHook(15, function(...) print("PLAYER_EVENT_ON_REPUTATION_CHANGE", 15, ...) end )
RegisterServerHook(16, function(...) print("PLAYER_EVENT_ON_TALENTS_CHANGE", 16, ...) end )
RegisterServerHook(17, function(...) print("PLAYER_EVENT_ON_TALENTS_RESET", 17, ...) end )
RegisterServerHook(18, function(...) print("PLAYER_EVENT_ON_CHAT", 18, ...) end )
RegisterServerHook(19, function(...) print("PLAYER_EVENT_ON_WHISPER", 19, ...) end )
RegisterServerHook(20, function(...) print("PLAYER_EVENT_ON_GROUP_CHAT", 20, ...) end )
RegisterServerHook(21, function(...) print("PLAYER_EVENT_ON_GUILD_CHAT", 21, ...) end )
RegisterServerHook(22, function(...) print("PLAYER_EVENT_ON_CHANNEL_CHAT", 22, ...) end )
RegisterServerHook(23, function(...) print("PLAYER_EVENT_ON_EMOTE", 23, ...) end )
RegisterServerHook(24, function(...) print("PLAYER_EVENT_ON_TEXT_EMOTE", 24, ...) end )
RegisterServerHook(25, function(...) print("PLAYER_EVENT_ON_SAVE", 25, ...) end )
RegisterServerHook(26, function(...) print("PLAYER_EVENT_ON_BIND_TO_INSTANCE", 26, ...) end )
RegisterServerHook(27, function(...) print("PLAYER_EVENT_ON_UPDATE_ZONE", 27, ...) end )
RegisterServerHook(28, function(...) print("PLAYER_EVENT_ON_MAP_CHANGE", 28, ...) end )
RegisterServerHook(29, function(...) print("GUILD_EVENT_ON_ADD_MEMBER", 29, ...) end )
RegisterServerHook(30, function(...) print("GUILD_EVENT_ON_REMOVE_MEMBER", 30, ...) end )
RegisterServerHook(31, function(...) print("GUILD_EVENT_ON_MOTD_CHANGE", 31, ...) end )
RegisterServerHook(32, function(...) print("GUILD_EVENT_ON_INFO_CHANGE", 32, ...) end )
RegisterServerHook(33, function(...) print("GUILD_EVENT_ON_CREATE", 33, ...) end )
RegisterServerHook(34, function(...) print("GUILD_EVENT_ON_DISBAND", 34, ...) end )
RegisterServerHook(35, function(...) print("GUILD_EVENT_ON_MONEY_WITHDRAW", 35, ...) end )
RegisterServerHook(36, function(...) print("GUILD_EVENT_ON_MONEY_DEPOSIT", 36, ...) end )
RegisterServerHook(37, function(...) print("GUILD_EVENT_ON_ITEM_MOVE", 37, ...) end )
RegisterServerHook(38, function(...) print("GUILD_EVENT_ON_EVENT", 38, ...) end )
RegisterServerHook(39, function(...) print("GUILD_EVENT_ON_BANK_EVENT", 39, ...) end )
RegisterServerHook(40, function(...) print("SERVER_EVENT_ON_NETWORK_START", 40, ...) end )
RegisterServerHook(41, function(...) print("SERVER_EVENT_ON_NETWORK_STOP", 41, ...) end )
RegisterServerHook(42, function(...) print("SERVER_EVENT_ON_SOCKET_OPEN", 42, ...) end )
RegisterServerHook(43, function(...) print("SERVER_EVENT_ON_SOCKET_CLOSE", 43, ...) end )
RegisterServerHook(44, function(...) print("SERVER_EVENT_ON_PACKET_RECEIVE", 44, ...) end )
RegisterServerHook(45, function(...) print("SERVER_EVENT_ON_PACKET_RECEIVE_UNKNOWN", 45, ...) end )
RegisterServerHook(46, function(...) print("SERVER_EVENT_ON_PACKET_SEND", 46, ...) end )
RegisterServerHook(47, function(...) print("WORLD_EVENT_ON_OPEN_STATE_CHANGE", 47, ...) end )
RegisterServerHook(48, function(...) print("WORLD_EVENT_ON_CONFIG_LOAD", 48, ...) end )
RegisterServerHook(49, function(...) print("WORLD_EVENT_ON_MOTD_CHANGE", 49, ...) end )
RegisterServerHook(50, function(...) print("WORLD_EVENT_ON_SHUTDOWN_INIT", 50, ...) end )
RegisterServerHook(51, function(...) print("WORLD_EVENT_ON_SHUTDOWN_CANCEL", 51, ...) end )
--RegisterServerHook(52, function(...) print("WORLD_EVENT_ON_UPDATE", 52, ...) end )
RegisterServerHook(53, function(...) print("WORLD_EVENT_ON_STARTUP", 53, ...) end )
RegisterServerHook(54, function(...) print("WORLD_EVENT_ON_SHUTDOWN", 54, ...) end )
RegisterServerHook(55, function(...) print("ELUNA_EVENT_ON_RESTART", 55, ...) end )
RegisterServerHook(56, function(...) print("MAP_EVENT_ON_CREATE", 56, ...) end )
RegisterServerHook(57, function(...) print("MAP_EVENT_ON_DESTROY", 57, ...) end )
RegisterServerHook(58, function(...) print("MAP_EVENT_ON_LOAD", 58, ...) end )
RegisterServerHook(59, function(...) print("MAP_EVENT_ON_UNLOAD", 59, ...) end )
RegisterServerHook(60, function(...) print("MAP_EVENT_ON_PLAYER_ENTER", 60, ...) end )
RegisterServerHook(61, function(...) print("MAP_EVENT_ON_PLAYER_LEAVE", 61, ...) end )
RegisterServerHook(62, function(...) print("MAP_EVENT_ON_UPDATE", 62, ...) end )
RegisterServerHook(63, function(...) print("TRIGGER_EVENT_ON_TRIGGER", 63, ...) end )
RegisterServerHook(64, function(...) print("WEATHER_EVENT_ON_CHANGE", 64, ...) end )
RegisterServerHook(65, function(...) print("AUCTION_EVENT_ON_ADD", 65, ...) end )
RegisterServerHook(66, function(...) print("AUCTION_EVENT_ON_REMOVE", 66, ...) end )
RegisterServerHook(67, function(...) print("AUCTION_EVENT_ON_SUCCESFUL", 67, ...) end )
RegisterServerHook(68, function(...) print("AUCTION_EVENT_ON_EXPIRE", 68, ...) end )
RegisterServerHook(69, function(...) print("GROUP_EVENT_ON_MEMBER_ADD", 69, ...) end )
RegisterServerHook(70, function(...) print("GROUP_EVENT_ON_MEMBER_INVITE", 70, ...) end )
RegisterServerHook(71, function(...) print("GROUP_EVENT_ON_MEMBER_REMOVE", 71, ...) end )
RegisterServerHook(72, function(...) print("GROUP_EVENT_ON_LEADER_CHANGE", 72, ...) end )
RegisterServerHook(73, function(...) print("GROUP_EVENT_ON_DISBAND", 73, ...) end )