Auto AFK Detector & Notifier – Client-Side Script for Louis Emulator

Started by Dorin, Jun 18, 2025, 11:17 AM

Dorin

📌 [Lua] Auto AFK Detector & Notifier – Client-Side Script for Louis Emulator

This script will detect player inactivity and automatically trigger AFK status.
It will display a warning message on screen, scale the character size, lock movement, and send a global chat message when the player goes AFK.
When the player returns (keyboard/mouse input), their status is reset and a "back from AFK" message is shown in global chat.

Screenshot_2.png

✅ Features:
• Detects inactivity (based on keypress or right-click).
• Sends global message when entering or leaving AFK.
• Locks character movement while AFK.
• Scales character (visual AFK indicator).
• Shows how long you've been AFK in minutes/seconds.




📂 Installation Path:
Data\Custom\Script\Scripts\AFKDetector.lua

💡 Lua Script:

You require the following to view this post content:
  • To see this content, please click the "-SAY THANKS-" button located on the bottom-right of this post.


🛠 Requirements:
• Louis Emulator with Lua Client scripting enabled 
• File saved in: `Data\Custom\Script\Scripts\AFKDetector.lua
• Loaded in InterfaceCore.lua or a similar loader: 
Code (lua) Select
require("Scripts\\AFKDetector")

✅ Credit:
Script concept and structure based on Louis Emulator client Lua API. 
Customized for TosaMu by Dorin.

🧪 Tested on: Louis Emulator Season 6 – Update 40


Powered by SMFPacks Ads Manager Mod