• 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!

Lua Add sleep function

Nekiro

Legendary OT User
TFS Developer
Joined
Sep 7, 2015
Messages
2,737
Solutions
127
Reaction score
2,205
Hello, how to add sleep function to this script:
Code:
function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
        player:say('TEST MESSAGE.', TALKTYPE_MONSTER_SAY)
    end

I want to execute this lua only once on every player
 
Last edited:
Just an example, I made on my cellphone.
Code:
local once = 30000
if player:getStorageValue(once) =~ 1 then
     player:setStorageValue(once, 1)
     ----- function that will be executed once
 
Back
Top