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

Search results

  1. Critico

    Lua TFS 0.x - Get guild ID from offline Player

    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.
  2. Critico

    [OTX] New Auto Loot Unlimited Edition 2.0

    [ + ] 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...
  3. Critico

    Lua [8.6] attempt to call global 'getTileThingByPos'

    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...
  4. Critico

    NPC Npc Auction [8.6]

    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`...
  5. Critico

    Solved [TFS 1.1] Function doPlayerSendMailByName

    What function replace the 'doPlayerSendMailByName' role in TFS 1.1+ Thanks :)
  6. Critico

    Lua [TFS 1.0] Function onTargetCombat ?

    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...
  7. Critico

    Lua Catapult Problem

    I need to increase the sqm of this script, over 14 bugs... local config = { catapults = { [6801] = "sul", [6802] = "norte", }, distance = 14, -- max 14 sqm's directions = { ["norte"] = 0, ["leste"] = 1, ["sul"] = 2, ["oeste"] = 3...
  8. Critico

    Solved Function onCombat(player, target) TFS 1.1

    Hello! exist this function: onCombat(player, target) for TFS 1.1? if not exist, what function should I use?
  9. Critico

    [Function] Number Separator

    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...
  10. Critico

    ERRO GESIOR TFS 1.0

    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...
  11. Critico

    Lua Random Item Stats With ML Attributes

    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
  12. Critico

    TalkAction Add Items Depot from player [Online/Offline]

    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...
  13. Critico

    GlobalEvent House Clean

    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)...
  14. Critico

    CreatureEvent Extra Area Experience

    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 =...
  15. Critico

    TalkAction Ban System 9.6+ [Only Lua]

    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...
  16. Critico

    [Function] Getguildmembers Online/offline

    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...
  17. Critico

    Auction Npc

    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...
  18. Critico

    [LUA] function ExistItemByName(name) [9.6+]

    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="' ...
  19. Critico

    [Lua] doPlayerRemoveFrag(cid, count)

    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 =...
  20. Critico

    [LUA] getContainerSlotsFree/getAllContainerFree

    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...
Back
Top