Simple find/replace. This will make sure everything is using the same clock (earth_time::clock).
19 lines
602 B
Lua
19 lines
602 B
Lua
-----------------------------------
|
|
-- ID: 6
|
|
-- Item: Noble's Bed
|
|
-----------------------------------
|
|
---@type TItemFurniture
|
|
local itemObject = {}
|
|
|
|
itemObject.onFurniturePlaced = function(player)
|
|
if player:getQuestStatus(xi.questLog.OTHER_AREAS, xi.quest.id.otherAreas.MOOGLES_IN_THE_WILD) == xi.questStatus.QUEST_AVAILABLE then
|
|
player:setCharVar('Quest[4][102]bedPlacedTime', GetSystemTime())
|
|
player:setLocalVar('Quest[4][102]mustZone', 1)
|
|
end
|
|
end
|
|
|
|
itemObject.onFurnitureRemoved = function(player)
|
|
player:setCharVar('Quest[4][102]bedPlacedTime', 0)
|
|
end
|
|
|
|
return itemObject
|