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!
This command will allow GM's to easier follow other players as they walk around the map.
Usage:
/stalk Colandus (enable stalking on player Colandus)
/stalk stop (stop stalking)
In data/talkactions/talkactions.xml add:
<talkaction words="/stalk" script="stalk.lua" separator=" " />
In...
Hey. This is a revised version of my old mapArea iterator. This simplifies looping through areas.
My old iterator was a bit more confusing for developers who might have wanted to edit the iterator function itself. This time it's using coroutines so the function should be very easily...
Hey. This code will allow GM's to run with CTRL. It has some special features too, unlike the regular ones.
Features
Ghost while running. Because I believe it looks ugly and not serious to run through walls in front of regular players, and also GM's running in general (in front of players), I...
-----------------
-- By Colandus --
_CONT = {}
function continue(delay, n, ...)
local func = debug.getinfo(2).func
if(not _CONT[func]) then
_CONT[func] = true
addEvent(repeatContinue, delay, func, delay, n, ...)
end
end
function repeatContinue(func, delay, n, ...)...
Teleport players from a certain area to a new position... Also has the option to teleport offline players.
Usage is simple:
doTeleportPlayersFromArea(fromPos, toPos, newPos, offlinePlayers --[[ = false]])
set offlinePlayers to true to enable offline players teleport!!
do
-- Function by...
A spell from my old server (Original Rox0r + TheOTServer) used by Mages.
local repeatAmount = 3
local deathFlamesArea = {
createCombatArea({
{0, 1, 0},
{1, 2, 1},
{0, 1, 0}
}),
createCombatArea({
{0, 1, 1, 1, 0},
{1, 1, 0, 1, 1},
{1...
A spell from my old server (Original Rox0r + TheOTServer) used by Knights.
local spinAreas = {
createCombatArea({
{2, 1}
}),
createCombatArea({
{2, 0},
{0, 1}
}),
createCombatArea({
{2},
{1}
}),
createCombatArea({
{0...
Hey! This great system will allow you to save "settings" into a players storage value using ONLY 1 STORAGE VALUE! However this will only store boolean values (true/false).
So, if you use storage value 82000 for your settings, then you will be able to store an infinite amount of settings in just...
Functions used to repeat an event certain amount of times...
Functions can be found here: http://otland.net/f139/use-addevent-properly-loops-50914/ (waste to rewrite them, if they're there) :D
They'll be more noticable here ;)
Use addEvent properly with loops (+ XTRA FUNCTION)
Hello...
I've seen quite a lots of scripts looping addEvent in a bad way. This will most likely cause your server to lag!
Have you ever noticed that you made a spell with over 30 "animated" effects that will lag your server? Well, one reason...
-- Returns the top item on a tile.
function getTopItem(pos)
pos.stackpos = 1 + getTopCreature(pos).itemid
return getTileThingByPos(pos)
end
-- Teleport a creature with effects, invisible players will not show effects!
function doTeleportCreature(cid, pos, pushmove)
if(not...
local config = {
-- level needed to make the quest
level = 20,
-- if players should be able to do the quest unlimited amount of times (not conflicting quest rewards)
redo = {
status = true, -- true = unlimited, false = once
storageValue = 4535 -- only if status...
Class for "multi quests" :)
Note: The code is untested (cookie for whoever tests it for me!)
missionQuest = {}
missionQuest.__index = missionQuest
function missionQuest.new(doneStorage, confirmedStorage)
if(type(doneStorage) ~= 'number') then
return FALSE, error("missionQuest...
function getPlayerLastLogin(cid)
local lastLogin = getPlayerStorageValue(cid, 45345)
if(lastLogin < 0) then
doPlayerUpdateLastLogin(cid)
return os.time()
end
return lastLogin
end
function doPlayerUpdateLastLogin(cid)
setPlayerStorageValue(cid, 45345...
Hey I made this for my 0.2 server as I didn't feel for updating to 0.3 :D
However, the case was that I had made some scripts for my other server which is 0.3 and I didn't feel for remaking them to 0.2 sql functions~
Here I made this class so you can use 0.3 db crap in ur 0.2 serv
Make new...
Hey there ;)
I made this for a script :p It's very simple to add more date formats, currently its only days, hours, minutes and seconds.
UPDATED 2017-02-15
Place this function in data/lib/functions.lua:
function timeString(timeDiff, roundVal, roundUpVal)
if roundVal and roundVal <= timeDiff...
Use this function to check whether a position is valid or not.
TFS 0.3+ put in data/lib/functions.lua
TFS 0.2 or other put in data/global.lua
do
-- Function by Colandus!
local validPositionKeys = {"x", "y", "z", "stackpos"}
function isPosition(pos)
local keyAmount =...