From bf6283a63e7fc787d80089566cdacf5661240312 Mon Sep 17 00:00:00 2001 From: sindoring Date: Thu, 21 Aug 2025 01:07:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B=20elu?= =?UTF-8?q?na=20=D0=B2=20=D0=B4=D0=BE=D0=BA=D0=B5=D1=80=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D0=B9=D0=BD=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - docker-compose.override.yml | 4 ++++ lua_scripts/hello_world.lua | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 docker-compose.override.yml create mode 100644 lua_scripts/hello_world.lua 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