Awesomedudei
Revolutionot.com
Hello, i've got this problem with a raid script not working properly.
It was working before moving to ubuntu but now it just wont.
innocence.lua from data/raids/scripts/
Scripts that spawns a Teleport from like an Event or a creaturescript works 100% of the time.
But when it is from raid/scripts, it just doesn't?
And yes i do have the function doCreateTeleport in compat.
Any help is very appreciated!
It was working before moving to ubuntu but now it just wont.
Lua:
Oct 04 15:21:20 vps-******** tfs[64252]: > Broadcasted message: "Innocence has returned to his dungeon.".
Oct 04 15:21:22 vps-******** tfs[64252]: Lua Script Error: [Raid Interface]
Oct 04 15:21:22 vps-******** tfs[64252]: data/raids/scripts/innocence.lua:onRaid
Oct 04 15:21:22 vps-******** tfs[64252]: data/raids/scripts/innocence.lua:11: attempt to call global 'doCreateTeleport' (a nil value)
Oct 04 15:21:22 vps-******** tfs[64252]: stack traceback:
Oct 04 15:21:22 vps-******** tfs[64252]: [C]: in function 'doCreateTeleport'
Oct 04 15:21:22 vps-******** tfs[64252]: data/raids/scripts/innocence.lua:11: in function <data/raids/scripts/innocence.lua:10>
innocence.lua from data/raids/scripts/
Lua:
local function deleteTeleport(tp)
local teleport = getTileItemById(tp, 11796).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(tp, CONST_ME_POFF)
end
return true
end
function onRaid()
doCreateTeleport(11796, Position(1747, 3231, 7), Position(1119, 1676, 7))
addEvent(function()
deleteTeleport(Position(1119, 1676, 7))
end, 6 * 60 * 60 * 1000)
end
Scripts that spawns a Teleport from like an Event or a creaturescript works 100% of the time.
But when it is from raid/scripts, it just doesn't?
And yes i do have the function doCreateTeleport in compat.
Any help is very appreciated!
Last edited: