Aleta sio
script:
Aleta som
TFS 1.3 - OTX 10.00+
can you help me?
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>
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
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
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?