From def314751e7fc9f341de2388da544ac2b3a7c395 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 20 Feb 2024 13:32:55 -0300 Subject: [PATCH] chore: change name lock to core --- .../scripts/creaturescripts/player/name_lock.lua | 1 + 1 file changed, 1 insertion(+) rename data-otservbr-global/scripts/creaturescripts/players/namelock.lua => data/scripts/creaturescripts/player/name_lock.lua (99%) diff --git a/data-otservbr-global/scripts/creaturescripts/players/namelock.lua b/data/scripts/creaturescripts/player/name_lock.lua similarity index 99% rename from data-otservbr-global/scripts/creaturescripts/players/namelock.lua rename to data/scripts/creaturescripts/player/name_lock.lua index c34eab6f181..322e8d135b8 100644 --- a/data-otservbr-global/scripts/creaturescripts/players/namelock.lua +++ b/data/scripts/creaturescripts/player/name_lock.lua @@ -3,6 +3,7 @@ function CheckNamelock(player) if not namelockReason then return true end + player:setMoveLocked(true) player:teleportTo(player:getTown():getTemplePosition()) player:sendTextMessage(MESSAGE_ADMINISTRADOR, "Your name has been locked for the following reason: " .. namelockReason .. ".")