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