mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
Added lua scripts
This commit is contained in:
commit
ff39dff7e4
5972 changed files with 1951753 additions and 0 deletions
9
Scripts/Example Scripts/example_player_chat_command.lua
Normal file
9
Scripts/Example Scripts/example_player_chat_command.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
local ChatPrefix = "#example"
|
||||
|
||||
local function ChatSystem(event, player, msg, _, lang)
|
||||
if (msg:find(ChatPrefix) == 1) then
|
||||
player:SendNotification("Example Chat Command Works")
|
||||
end
|
||||
end
|
||||
|
||||
RegisterPlayerEvent(18, ChatSystem)
|
||||
Loading…
Add table
Add a link
Reference in a new issue