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!
Tibia 8.60
Version: 0.3.6 ~ 0.4x
can someone tell me if there is a function that return GUILD ID an offline players?
exemple: "getPlayerGuildId" but offline.
[ + ] Description: Autoloot remade for OTX VERSION and added some other functions that I will be explaining throughout the topic.
[ + ] Command image:
[ + ] Bugs:
[ - ] Warn BP slot and Gols Bank Colleting Fixed's
[ + ] Features:
[ - ] You can activate or deactivate the autoloot as often...
Can anyone help me with this error:
attempt to call global 'getTileThingByPos'
function:
function corpseRetireItems(cid, pos)
local check = false
for i = 0, 255 do
pos.stackpos = i
tile = getTileThingByPos(pos)
if tile.uid > 0 and isCorpse(tile.uid) then...
CreatureScript
npc_shop.lua
function onLogin(cid)
if getPlayerStorageValue(cid, _config_npc_shop.WithDraw_storage) == -1 then
setPlayerStorageValue(cid, _config_npc_shop.WithDraw_storage , 0)
end
local query = db.getResult("SELECT `id`, `item_id`, `count` FROM `shop_npc`...
this script work on TFS 1.1:
function Creature:onTargetCombat(target)
if not self then return true end
if self:isPlayer() and target:isPlayer() then
if self:getStorageValue(_Lib_Battle_Info.TeamOne.storage) >= 1 and target:getStorageValue(_Lib_Battle_Info.TeamOne.storage) >= 1 or...
This function return return huge numbers with points
function getMilharNumber(n)
return tostring(math.floor(n)):reverse():gsub("(%d%d%d)","%1."):gsub(",(%-?)$","%1"):reverse()
end
exemple:
function getMilharNumber(n) -- critico/vodkart
return...
Query: SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `g`.`id` > 0...
Hello, i use this system: https://otland.net/threads/mod-random-item-stats.130295/
how to put for this system drop items with ML?? someone has already edited this system?
My Serve is 8.6 tfs
Description: is a command to send items directly to the depot of the player, even though he is online or offline!
Tested: in Sqlite version, do not know if it supports version Mysql / Sql
additemdepot.lua
function doPlayerAddDepotItems(pid, item, count) --By magus and edited by vodkart...
Description: Is to delete houses from inactive players, meaning that the player does not log in "X" days lose your house!
houseclean.lua
function onTimer()
local days = 15*24*60*60
doSaveServer()
local query = db.getResult("SELECT `owner`,`id` FROM `houses`;")
if (query:getID() ~= -1)...
Tested: 8.6+
Is a code you put an area, and that area give more exp if the player kill a monster... can be used for VIP area.
data/creaturescripts/scripts
area_exp.lua
function onKill(cid, target)
local exp_area ={
{from = {x=1014,y=1016,z=7},to = {x=1017,y=1019,z=7}, exp =...
Tested on server's 9.6+
OBS:
open talkaction.xml and remove these commands(if have):
/ban
/unban
/baninfo
to avoid conflicts
----------------------- installation -------------------------
execute this query in your db
CREATE TABLE ban_table (
id INTEGER NOT...
About: has two functions return the players of a certain guild, one serves only to pick up a guild of players who are online and the other returns all players even if you are offline.
function getGuildMembersOnline(GuildId)
local players = {}
for _, pid in pairs(getPlayersOnline()) do...
Olá fiz este tópico para mostrar um npc que eu estive desenvolvendo hoje, é um npc de auction, vou explicar com algumas screen's:
*Suporta servidores Sqlite e MySql*
O Npc basicamente funciona da seguinte maneira, você "deposita" alguns items neste npc e durante "X" dias ele vende para...
About: I created this function because the function 'getItemIdByName(name)' no has the parameter 'false' to not display the error in console.
function ExistItemByName(name) -- by vodka
local items = io.open("data/items/items.xml", "r"):read("*all")
local get = items:match('name="' ...
About: The function is to remove amount frags(Player)
function doPlayerRemoveFrag(cid, count) -- by vodka
local query,t,k = db.getResult("SELECT `kill_id` FROM `player_killers` WHERE `player_id` = "..getPlayerGUID(cid)),{},0
if (query:getID() ~= -1) then
repeat
local gs =...
About: function to check how many free slots the bag has
function getContainerSlotsFree(container) -- by vodka
return getContainerCap(container)-getContainerSize(container)
end
function getAllContainerFree(container) -- by vodka
local containers,soma = {},0
for i = 0...