• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Spammed console

Xluniz

New Member
Joined
Nov 21, 2008
Messages
28
Reaction score
0
hi can anyone help plx? my console is getting spammed with
"[Error - GlobalEventsonThink] Couldn't execute event: teleport"

here's the code

globalevents.xml:
Code:
<globalevent name="teleport" interval="3" event="script" value="magic.lua"/>

magic.lua:
Code:
function onThink(interval, lastExecution)
local teleportpos1 = {x=744, y=215, z=7, stackpos=1}
local teleportpos2 = {x=744, y=213, z=7, stackpos=1}
local teleportpos3 = {x=749, y=219, z=7, stackpos=1}
    doSendAnimatedText(teleportpos1, "Monks", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos1, CONST_ME_MAGIC_GREEN)
    doSendAnimatedText(teleportpos2, "Annihilon", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos2, CONST_ME_MAGIC_GREEN)
    doSendAnimatedText(teleportpos3, "Morgaroth", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos3, CONST_ME_MAGIC_GREEN)
end

thx in advance
 
LUA:
function onThink(interval, lastExecution)
local teleportpos1 = {x=744, y=215, z=7, stackpos=1}
local teleportpos2 = {x=744, y=213, z=7, stackpos=1}
local teleportpos3 = {x=749, y=219, z=7, stackpos=1}
    doSendAnimatedText(teleportpos1, "Monks", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos1, CONST_ME_MAGIC_GREEN)
    doSendAnimatedText(teleportpos2, "Annihilon", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos2, CONST_ME_MAGIC_GREEN)
    doSendAnimatedText(teleportpos3, "Morgaroth", TEXTCOLOR_YELLOW)
    doSendMagicEffect(teleportpos3, CONST_ME_MAGIC_GREEN)
     return TRUE
end
 
Back
Top