• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[houses] aleta sio - aleta som

Methemia

Member
Joined
Feb 1, 2015
Messages
64
Reaction score
11
Aleta sio
Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/house/edit_guest_list.lua:onCastSpell
data/spells/scripts/house/edit_guest_list.lua:7: attempt to call method 'canEditAccessList' (a nil value)
stack traceback:
        [C]: in function 'canEditAccessList'
        data/spells/scripts/house/edit_guest_list.lua:7: in function <data/spells/scripts/house/edit_guest_list.lua:1>
script:
function onCastSpell(player, variant)
local house = player:getTile():getHouse()
if not house then
return false
end

if house:canEditAccessList(GUEST_LIST, player) then
player:setEditHouse(house, GUEST_LIST)
player:sendHouseWindow(house, GUEST_LIST)
else
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
player:getPosition():sendMagicEffect(CONST_ME_POFF)
end
return true
end


Aleta som

Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/house/edit_subowner_list.lua:onCastSpell
data/spells/scripts/house/edit_subowner_list.lua:7: attempt to call method 'canEditAccessList' (a nil value)
stack traceback:
        [C]: in function 'canEditAccessList'
        data/spells/scripts/house/edit_subowner_list.lua:7: in function <data/spells/scripts/house/edit_subowner_list.lua:1>

function onCastSpell(player, variant)
local house = player:getTile():getHouse()
if not house then
return false
end

if house:canEditAccessList(SUBOWNER_LIST, player) then
player:setEditHouse(house, SUBOWNER_LIST)
player:sendHouseWindow(house, SUBOWNER_LIST)
else
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
player:getPosition():sendMagicEffect(CONST_ME_POFF)
end
return true
end

TFS 1.3 - OTX 10.00+

can you help me?
 
Aleta sio
Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/house/edit_guest_list.lua:onCastSpell
data/spells/scripts/house/edit_guest_list.lua:7: attempt to call method 'canEditAccessList' (a nil value)
stack traceback:
        [C]: in function 'canEditAccessList'
        data/spells/scripts/house/edit_guest_list.lua:7: in function <data/spells/scripts/house/edit_guest_list.lua:1>
script:
function onCastSpell(player, variant)
local house = player:getTile():getHouse()
if not house then
return false
end

if house:canEditAccessList(GUEST_LIST, player) then
player:setEditHouse(house, GUEST_LIST)
player:sendHouseWindow(house, GUEST_LIST)
else
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
player:getPosition():sendMagicEffect(CONST_ME_POFF)
end
return true
end


Aleta som

Code:
Lua Script Error: [Spell Interface]
data/spells/scripts/house/edit_subowner_list.lua:onCastSpell
data/spells/scripts/house/edit_subowner_list.lua:7: attempt to call method 'canEditAccessList' (a nil value)
stack traceback:
        [C]: in function 'canEditAccessList'
        data/spells/scripts/house/edit_subowner_list.lua:7: in function <data/spells/scripts/house/edit_subowner_list.lua:1>

function onCastSpell(player, variant)
local house = player:getTile():getHouse()
if not house then
return false
end

if house:canEditAccessList(SUBOWNER_LIST, player) then
player:setEditHouse(house, SUBOWNER_LIST)
player:sendHouseWindow(house, SUBOWNER_LIST)
else
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
player:getPosition():sendMagicEffect(CONST_ME_POFF)
end
return true
end

TFS 1.3 - OTX 10.00+

can you help me?

How old is your source code?
Nil means it dosn't exist, so check your source code if you even have the function.
Otherwise update your server to a later version (just checked and they have that function in the latest "10.9" datapack.
 
Back
Top