diff --git a/.gitignore b/.gitignore index 548213a..9d3d36d 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,6 @@ /src/server/scripts/Custom/* !/src/server/scripts/Custom/README.md -/*.override.yml /*.override.yaml !.gitkeep diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..fc3d2e1 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,4 @@ +services: + ac-worldserver: + volumes: + - ./lua_scripts:/azerothcore/lua_scripts \ No newline at end of file diff --git a/lua_scripts/hello_world.lua b/lua_scripts/hello_world.lua new file mode 100644 index 0000000..44a1e42 --- /dev/null +++ b/lua_scripts/hello_world.lua @@ -0,0 +1,7 @@ +local PLAYER_EVENT_ON_LOGIN = 3 + +local function OnLogin(event, player) + player:SendBroadcastMessage("Eluna greetings you") +end + +RegisterPlayerEvent(PLAYER_EVENT_ON_LOGIN, OnLogin) \ No newline at end of file