Saltar al contenido
KG-Emulator · Documentación

Todo lo que necesitás, paso a paso.

Encontrá una guía, explorá las categorías y consultá las instrucciones para tu servidor.

Todas las guías

701 guías · Página 69 de 71
LuaScriptMain (Events)

KGCustomEventsOpen

¿Para qué sirve? Solicita los tiempos de los eventos. Sintaxis KGCustomEventsOpen() Argumentos No recibe argumentos. Resultado Devuelve 1 si se envió la solicitud o 0 si no se pud…

LuaScriptMain (Events)

KGCustomEventInfo

¿Para qué sirve? Obtiene el nombre o tiempo restante de un evento. Sintaxis KGCustomEventInfo(eventIndex, field) Argumentos Argumento Tipo Descripción eventIndex número Número del…

LuaScriptMain (Commands)

KGCommandInfo

¿Para qué sirve? Obtiene un dato del comando indicado. Sintaxis KGCommandInfo(commandIndex, field) Argumentos Argumento Tipo Descripción commandIndex número Número del comando en …

LuaScriptMain (Commands)

KGCommandCount

¿Para qué sirve? Obtiene la cantidad de comandos disponibles. Sintaxis KGCommandCount() Argumentos No recibe argumentos. Resultado Devuelve un número. Ejemplo de uso function Ejem…

LuaScriptSQL Statement

SQL statement handle is not initialized

🆘 What does this error mean? This error appears when the server (emulator) cannot prepare an SQL query because a valid database connection was not established. 📌 Common causes # T…

LuaScriptMain User Functions

[Client] Lua User Functions

Lua User Functions These global Lua functions provide extensive access to character information, visual properties, and interaction with players and NPCs within the game client. T…

LuaScriptMain Global Character Functions

[Client] Lua Global Character Functions

Global Character Functions These global Lua functions provide extensive access to character information, visual properties, and interaction with players and NPCs within the game c…

LuaScriptMain Global Functions

[Client] Lua Global Functions

Global Client Functions These global Lua functions provide deep control over the client, allowing developers to adjust the game's visual settings, language, UI behavior, and acces…

LuaScriptMain Interface Functions

[Client] Lua Interface Functions (Render & Inputs)

Main Interface Functions These functions enable the client to render images, texts, manage player clicks, lock/unlock interfaces, handle OpenGL blending effects, and track mouse p…

LuaScriptMain Packet Functions

[Client] Main Packet Functions (LuaScript)

Main Packet Functions: The LuaScript Packet provides a set of functions designed to facilitate packet communication between the Client and GameServer. These functions allow Lua sc…