Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
🐍 Snek For TFS 1.3 🐍
How to play:
(CTRL + Arrows) to move snake.
map setup
data/scripts/snake.lua
local config = {
-- Don't change ( unless you know what you're doing )
TILE_CUSTOMATTR_KEY = "snakeScore",
-- Where players will be kicked after finishing the game...
try
local config = {
TILE_ACTION_ID = 12345,
ITEMID = 37420,
LEVEL = 200,
STORAGE = 284701
}
local me = MoveEvent('scriptNameHere')
function me.onStepIn(player, item, position, fromPosition)
local itemCount = player:getItemCount(config.ITEMID)
if not itemCount or...
global.lua
CHAT_CHANNEL_ID_BEGIN = 153810
data/scripts/mutechannel.lua
Note you need to add the following lines in each channel file:
data/chatchannels/scripts/<channelName>.lua
You can use storage to check if the time has expired.
onUse
-> add player storage conditionTime + os.time()
onLogin
-> set condition again if StorageConditionTime > os.time()
try
local cEvent = CreatureEvent("killBoss")
function cEvent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
for cid, _ in pairs(creature:getDamageMap()) do
local creature = Player(cid)
if creature then...
local config = {
largeStone = 1304,
smallStones = 1336
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if not target:isItem() then
return true
end
if not (target:getId() == config.largeStone) then
player:say("You can't break...
Which TFS version are you using?
https://github.com/otland/forgottenserver/blob/fcd6b2d3a01c457753ee9461e3238494f0abb179/src/events.cpp#L83-L86
Looks like older versions don't have this.
1.2
https://github.com/otland/forgottenserver/blob/1.2/src/events.cpp#L74
1.1...