• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Z

    player:getItemById tfs 1x

    Hi, I don't know what u are trying to do, but to get a name of a item and id, just use this: local item = player:getItemById(2160, true) --Check if player have item with id 2160 if item then --if item exist print item name and item id print("Item Name = "..item:getName()) print("Item Id...
  2. Z

    TFS 1.X+ Nead help with npc bank module [TFS 1.2]

    Hi, Try this one: 1.3 Bank NPC
  3. Z

    Programmer Paid Job - Write Tutorial

    Take a look: Lua book by Delusion
  4. Z

    OnAdvance give permanent bonus is possible?

    Hi, I did the code rushy, can be better. I tryed to comment the code, to you understand what im doing. Try this: data/creaturescripts/scripts/bonuslevel.lua: local config = { --avaliable bonus --["bonusName"] = {min = Min Bonus Value, max = Max Bonus Value} bonus = { ["hp"]...
  5. Z

    TFS 1.X+ save lagging server for 3 to 4 seconds

    Maybe: Server lags when login/logout with a lot of items - time to fix it! (https://otland.net/threads/server-lags-when-login-logout-with-a-lot-of-items-time-to-fix-it.266112/) I don't tested yet, but i think Will be better, take a look...
  6. Z

    [TFS 1.X] Flexible spells lib + Spell Level System (configurable with growing areas, damage etc)

    Nice system! I was thinking to do something like that, i only don't like to hold that info in storages, i think using Storing Info(Players and Items) with a global table to hold the spells levels and tries is better, just need to load in login and save in logout. Thanks for share!
  7. Z

    Lua Question about anti mc

    You are wrong. With this playersByIp[i]:getTarget() == target i check if have a player in playersByIp table that is attacking the target(that have to be a Player, because i check in line 3 with target:isPlayer())
  8. Z

    Lua Question about anti mc

    Try this: Put Game.getPlayersByIPAddress in you lib/core/game.lua if you don't have the function. function Game.getPlayersByIPAddress(ip, mask) if not mask then mask = 0xFFFFFFFF end local masked = bit.band(ip, mask) local result = {} local players, player = Game.getPlayers()...
  9. Z

    Lua Question about anti mc

    Always post your server version... This is for TFS 1.x: In events/scripts/creature.lua: function Creature:onTargetCombat(target) if self and target then if self:isPlayer() and target:isPlayer() then if self:getIp() == target:getIp() then return...
  10. Z

    [Suggestion] Lua-Generated Item Descriptions

    Nice release. I watched you write this code, I was thinking if you would release the code, as Animera said, with this, the upgrade systems will be much more cleaner. Thanks for sharing, your job here in Otland is great!
  11. Z

    Lua Help optimizing script

    --Added bubble effects --Removed msg that already opened a shell when its already open Anything missing? --Edited only the script that don't show the text to all spectators. Tell me which one are you using... --configuration table local config = { cooldownTime = 72000, --time in seconds...
  12. Z

    Lua Help optimizing script

    To do this: "the text is displayed on the item position not on player position" You can use Animated Text to 1.x but using this, will only work in OTC, in normal Tibia Client will crash. Then i need to use Game.getSpectators to do what you asked for. But i think we should use...
  13. Z

    Lua Help optimizing script

    You mean update to revscripts for 1.3? I can adjust for what you want, but will be in 1.2. Let me know, when i get home i can do...
  14. Z

    CreatureEvent [TFS 1.2] Task System

    Hi, Try set line 6 debug = true -- Debug mode for developers to false...
  15. Z

    Lua Find item with action id on map

    I don't think so. You can look full map but it will not be a nice way. If i have to do something like that, when i spawn the item, i store the item userData in a global table with the Position(x,y,z) as index, then if i need to find the item, just look if the index exist... function...
  16. Z

    GlobalEvent Shop system problem

    Read you error msg: Table 'z_ots_comunication' doesn't exist You trying to access a table that don't exist. Run this SQL command to create the table that was missing: CREATE TABLE "z_ots_comunication" ( "id" INTEGER PRIMARY KEY NOT NULL, "name" VARCHAR(255) NOT NULL, "type"...
  17. Z

    TFS 1.X+ tfs 1.3 bug magicwall (when server is NO PVP)

    Hi, Are you sure that is the same itemId created when you change the world type? Items.xml: <item id="1497" article="a" name="magic wall"> <attribute key="type" value="magicfield" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="20" />...
  18. Z

    TFS 1.X+ block or delete certain items from monsters loot

    Try this, not tested: local blockedItensIds = {2365, 2392} function Container:getAllItems() local list = {} for index = 0, (self:getSize() - 1) do local item = self:getItem(index) if item then table.insert(list, item) if item:isContainer() then...
  19. Z

    need help with summon boss lever

    local config = { storage = 40000, --global storage index interval = 60, -- delay in minutes to summon } function onUse(cid, item, fromPosition, itemEx, toPosition) local fromPos = {x = toPosition.x - 10, y = toPosition.y - 10, z = toPosition.z} local toPos = {x = toPosition.x + 10, y =...
Back
Top