chucky91
Advanced OT User
I do not understand these functions, neither works, does not check if it's daylight.
getWorldLight() == false
getTibianTime() >= 18
getTibianTime() <= 6
getWorldLight() == false
getTibianTime() >= 18
getTibianTime() <= 6
Code:
if player:getStorageValue(EnterFalcons) >= 1 and isNight() == true then
target:getPosition():sendMagicEffect(CONST_ME_POFF)
player:teleportTo(config.positions)
player:getPosition():sendMagicEffect(CONST_ME_ENERGYAREA)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Once more you mix the chalk with a drop of your blood and bit of water and renew the symbol on the floor...")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Nothing happens. Maybe it's still too early in the day to do something like this.")
end