Ayuda con autoloot

Kio Comanda

Member
Messages
8
Points
128
buenas gente alguien me podria pasar un autoloot que sea compatible con este canary, ya que cuando uso el otc y digo !autoloot on no me sube los items a la bp.

[2025-09-09 23:05:14.717] [info] Canary - Version 2.6.1
[2025-09-09 23:05:14.719] [info] Compiled with Microsoft Visual Studio 1935, on May 31 2023 15:50:39, for platform x64

[2025-09-09 23:05:14.719] [info] Linked with LuaJIT 2.1.0-beta3 for Lua support
[2025-09-09 23:05:14.720] [info] A server developed by: OpenTibiaBR Organization
[2025-09-09 23:05:14.720] [info] Visit our website for updates, support, and resources: https://docs.opentibiabr.com/
[2025-09-09 23:05:14.723] [info] Loading config.lua
[2025-09-09 23:05:14.723] [info] Server protocol: 13.16 and 10x allowed!
 
buenas gente alguien me podria pasar un autoloot que sea compatible con este canary, ya que cuando uso el otc y digo !autoloot on no me sube los items a la bp.

[2025-09-09 23:05:14.717] [info] Canary - Version 2.6.1
[2025-09-09 23:05:14.719] [info] Compiled with Microsoft Visual Studio 1935, on May 31 2023 15:50:39, for platform x64

[2025-09-09 23:05:14.719] [info] Linked with LuaJIT 2.1.0-beta3 for Lua support
[2025-09-09 23:05:14.720] [info] A server developed by: OpenTibiaBR Organization
[2025-09-09 23:05:14.720] [info] Visit our website for updates, support, and resources: https://docs.opentibiabr.com/
[2025-09-09 23:05:14.723] [info] Loading config.lua
[2025-09-09 23:05:14.723] [info] Server protocol: 13.16 and 10x allowed!

Hola,

Canary ha subido un autoloot por talkaction aqui
El link viene de aqui
 
alguien sabe por que me sale este error ?

[2025-10-09 20:26:06.856] [error] Lua script error:
scriptInterface: [Scripts Interface]
scriptId: [C:\CLIENTS TIBIA\otserv\data-otservbr-global\scripts\talkactions\player\small_autoloot.lua]
timerEvent: []
callbackId:[]
function: []
error [...vbr-global\scripts\talkactions\player\small_autoloot.lua:77: attempt to call global 'EventCallback' (a nil value)
stack traceback:
[C]: in function 'EventCallback'
...vbr-global\scripts\talkactions\player\small_autoloot.lua:77: in main chunk]
[2025-10-09 20:26:06.856] [error] C:\CLIENTS TIBIA\otserv\data-otservbr-global\scripts\talkactions\player\small_autoloot.lua
[2025-10-09 20:26:06.856] [error]
 
alguien sabe por que me sale este error ?

[2025-10-09 20:26:06.856] [error] Lua script error:
scriptInterface: [Scripts Interface]
scriptId: [C:\CLIENTS TIBIA\otserv\data-otservbr-global\scripts\talkactions\player\small_autoloot.lua]
timerEvent: []
callbackId:[]
function: []
error [...vbr-global\scripts\talkactions\player\small_autoloot.lua:77: attempt to call global 'EventCallback' (a nil value)
stack traceback:
[C]: in function 'EventCallback'
...vbr-global\scripts\talkactions\player\small_autoloot.lua:77: in main chunk]
[2025-10-09 20:26:06.856] [error] C:\CLIENTS TIBIA\otserv\data-otservbr-global\scripts\talkactions\player\small_autoloot.lua
[2025-10-09 20:26:06.856] [error]

El error que te aparece, es debido a que el servidor que usas no tiene EventCallback, pero los ultimos canary lo deben de tener.
Hay remedio, y no es bien complicado:

Linea 77 que dice; local ec = Eventcallback
Hasta la linea 96 que dice ec:register()
Entre esas lineas copia de la linea 84 hasta la linea 94.

En visual studio code, busca dentro de tu servidor "onDropLoot", te saldra un archivo que es donde se hace el loot de los monstruos.
Dentro copia el codigo de linea 84 hasta 94, en la parte loot.

En el script original una vez copiado la parte anterior borra de la linea 77 hasta la 96, guarda el archivo.

Abre tu servidor y no deberias de tener errores y deberia de funcionar.
 

Tibia Server Lists

#1 FEATURED US Ultron OT 1,519 / 5,000 EXPStages PROTO8.6 ENGINEUltron OT RANK PTS6.6 -9% VOTES0 #2 FEATURED US Nefera 221 / 0 EXPx1 PROTO15.20 ENGINECrystal Server RANK PTS5.9 +26% VOTES0 #3 FEATURED CL ZHYRAVEX 11 / 500 EXPx5 PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.6 +100% VOTES0 #4 FEATURED ES Deixis 0 / 0 EXPStages PROTO1098 ENGINETFS RANK PTS4.1 -58% VOTES1 #5 DE DBU Online 217 / 400 EXP11 PROTO8.6 ENGINETFS 1.0 RANK PTS6.1 +1,000% VOTES0 #6 BR Exordion Legacy 66 / 2,000 EXPx2 PROTO7.72 ENGINEExordion RANK PTS5.6 +3% VOTES0 #7 MX Marlboro War 26 / 300 EXP999 PROTO8.6 ENGINETFS 0.3.7 RANK PTS5.5 -28% VOTES0 #8 BR Tibinha YurOts 30 / 150 EXPStages PROTO7.4 ENGINEYurOTS 1.5 RANK PTS5.5 +0% VOTES0 #9 ES JustRL FreeTC 1530 38 / 250 EXPx2 PROTO15.30 ENGINECrystal Server RANK PTS5.0 +21% VOTES0 #10 US Wiki Ots 54 / 1,000 EXPx9999 PROTOcustom client ENGINETFS 1.4.2 RANK PTS5.0 +100% VOTES0 #11 PL Lubelski 12 / 1,000 EXP200 PROTO7.6 ENGINELubelskiOTS 2.56.0 RANK PTS4.9 -19% VOTES0 #12 BR Turion Server 0 / 2,000 EXPx1 PROTO7.4 ENGINETurion 7.7 Project RANK PTS4.8 +100% VOTES0 #13 PL ReWar 0 / 2,000 EXPcustom PROTO8.6 ENGINEOther RANK PTS4.6 +100% VOTES0 #14 US Halera 0 / 0 EXPStages PROTO10.98 ENGINETFS 1.4.2 RANK PTS4.4 -77% VOTES0 #15 PL Velesta 0 / 1,000 EXP20 PROTO8.0 ENGINETFS 1.4.2 RANK PTS4.4 -100% VOTES0 #16 US BerethaOnline 0 / 2,000 EXPStages PROTO15.0 ENGINETFS RANK PTS4.3 -71% VOTES0 #17 ES Farlia Global 2026 0 / 333 EXPx5 PROTO15.25 ENGINEFarliaServ 1.525 RANK PTS4.0 -100% VOTES0 #18 SE MortalisOT Custom 0 / 500 EXP100x -1.2x PROTO10.98 ENGINEMortalisOT V1 RANK PTS4.0 -100% VOTES0 #19 RU Oldavia | 8.60 0 / 0 EXPx9999 PROTO8.6 ENGINETFS 1.3 RANK PTS3.8 +100% VOTES0 #20 US Rommania 0 / 3,000 EXPstages, x10 PROTO7.4 ENGINETFS 0.4 RANK PTS3.6 -93% VOTES0 #21 MX Maeli 2 / 150 EXPx10 PROTO10.98 ENGINETFS 1.4.2 RANK PTS3.5 -33% VOTES0 #22 ES DarkDragon EXPx10 PROTO8.6 ENGINECanary RANK PTS0.0 0% VOTES0
Top