5lave Ots
Active Member
hello outlanders,
I wonder to know what is that error using windows tfs 0.4 tibia 860
when tfs starts to load the globalevents I got this error
[17:54:03.781] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/staminaquest.lua)
[17:54:03.781] data/globalevents/scripts/staminaquest.lua:136: unexpected symbol near '┬'
and this is the code
this should remove some walls from some positions, then create others, remove them after x delay and create others...and so on
REP++
I wonder to know what is that error using windows tfs 0.4 tibia 860
when tfs starts to load the globalevents I got this error
[17:54:03.781] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/staminaquest.lua)
[17:54:03.781] data/globalevents/scripts/staminaquest.lua:136: unexpected symbol near '┬'
and this is the code
Lua:
function del(pos, id)
local thing = getTileItemById(pos, id).uid <<--this is line 136
if thing > 0 then
doRemoveItem(thing)
end
end
function onThink(interval, lastExecution)
local poss1 = {
{x = 1012, y = 997, z = 7},
{x = 1015, y = 1006, z = 7}
}
if getGlobalStorageValue(str) == 1 then -- remove 3rd walls and create first walls line
setGlobalStorageValue(str, 2)
for i = 1, #poss3 do --remove 3rd walllls
del(poss3[i], wall_id)
end
for i = 1, #poss1 do --create 1st walls
reset_walls(poss1[i], wall_id)
end
return true
REP++