• 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. M

    Lua Attempt to index local 'killer_' (a nil value)

    I'm having this problem when I summon some monster to help me kill the algorithm's creature. This is the problem that occurs: I will warn you that this is an onDeath function And here is a part of the algorithm: for cid, damage in pairs(creature:getDamageMap()) do -- The 'killer_'...
  2. M

    Lua Collect all ids of a column located within a database table

    Hello World! I created an auxiliary table for my database called 'test_server_storage'. In this table there are two columns. The 'player_id' column and the 'item_id' column. I'm trying to collect all ids that are in the columns called 'item_id' of a certain player, in this case 'player_id'. And...
  3. M

    How to return all killers?

    I'm making a script, but the algoritm is returning only one killer. I want to return all killers: local drop = { [1] = { itemId = 3423, desc = "blessed shield", chance = 20 }, [2] = { itemId = 3278, desc = "magic longsword", chance = 20 }, [3] = { itemId = 3390, desc = "horned...
  4. M

    OTClient OtclientV8 for server 12.91

    I downloaded the latest version of OtclientV8, I'm trying to use it on a server version 12.91, but it asks for .spr and .dat files.
  5. M

    OTClient I am not receiving packets from the server

    I have a problem with my Otclient. It is not receiving packets from the server. An example is the amount of money my character has: When I talk to an NPC and ask to buy something, he says my character has no money. When i open the terminal: 1675371037 I'm using Mehah Otclient...
  6. M

    Lua Teleport character if the bodies are in the correct places.

    I need help shortening the script. I know that there is a possibility to do it by loop, but I don't know how. I need this algorithm to scan three bodies at three specific positions. If all three bodies are in the correct position, the script will work. local config = { goToPosition = { x =...
  7. M

    Lua How to add a focus by NPC?

    In this algorithm, I check if the NPC is focusing on myself: if not npcHandler:isFocused(cid) then return false end My doubt is: How to add a focus to my character? Which function to use? @EDIT: I searched within my server's NPC system and found the answer, so in case anyone has the same...
  8. M

    Old Rope System

    Do you remember when people could use the rope to pull other people as well as objects? Or better yet. Do you remember when people could use rope to pull monsters? This is a script I made based on Tibia's old rope system. local holeId = { 294, 369, 386, 370, 385, 394, 411, 412, 413, 432, 433...
  9. M

    OTClient Character above the tree, and blinking sprites

    Hi, i've compiled the mehah/otclient and when i tried to use 8.60 sprites, then the character stood on top of the tree, and in addition to this problem, some trees flicker
  10. M

    OTClient How to make a hud in otui

    I've been trying to show the character's status in a different way for days The first part of the challenge is ready, I studied and understood how the extendedOpCode works I'm already managing to get the server to return the value of the packet, and with that I'm printing it in the terminal for...
  11. M

    Lua How to use addEvent in TFS 1.5?

    I'm trying this way, but I can't and there are no errors either: addEvent(player:eventSetStorageValue, 1000, EAT_EXHAUST_STORAGE_ID, 0) eventSetStorageValue: function Player.eventSetStorageValue(self, storage, value) if self:isPlayer() then self:setStorageValue(storage, value)...
  12. M

    OTClient How to receive information from the server to the otclient?

    Hello dear friends! I managed to create a window that shows my character's attributes, but I don't know how to make the values of these attributes appear. Here is the script I created for my Otclient: attributesWindow = nil attributesButton = nil function init() connect(LocalPlayer, {...
  13. M

    OTClient Unable to send extended opcode

    I'm trying to learn how to use extended opcode on my TFS 0.4, but I'm having the following problem: ERROR: Unable to send extended opcode 56, extended opcodes are not enabled on this server. File from Otclient: food_eater.lua: foodeaterButton = nil foodeaterWindow = nil local EAT_OPCODE = 56...
  14. M

    OTClient Status bar with extendedOpCode

    I need to create a status bar to show some specific storages. I don't understand about Otclient and my TFS version is 0.4, so my TFS supports extendedOpCode. My idea is to create an icon in Otclient, and, when clicking on the icon, a window will open showing the storages that I define. Show...
  15. M

    Lua Help simplifying the script

    I'm creating a script, but I will have to do a lot of repetitions. For that I need to understand how to create a loop and make my work easier function onUse(cid, item, fromPosition, itemEx, toPosition) -- Trees -- Stones -- Corpses if itemEx.itemid == 2813 then -- Dead Rat...
  16. M

    C++ Your C++ compiler does not support C++11.

    When I open the TFS 0.4 project in Visual Studio, the following message appears: FindCXX11.cmake: if(__FIND_CXX11_CMAKE__) return() endif() set(__FIND_CXX11_CMAKE__ TRUE) include(CheckCXXCompilerFlag) enable_language(CXX) check_cxx_compiler_flag("-std=c++11" COMPILER_KNOWS_CXX11)...
  17. M

    OTClient Attributes window for Otclient

    First, hello everyone, how are you? Can someone help me with an Otclient mod to add a window like the one in the image below? When the person clicks the + sign, he will automatically make a talkaction. I need the location where "Available Points" appears to be configurable to show the value...
  18. M

    Lua I am not able to query the database

    I have a problem with my script Whenever I use the !shop command, the result of my Tibia Coins increases. I don't understand. Maybe some problem getting the value from the database? For example, when I use the !shop command, trim the value 15 the first time, if I use the command again, 17...
  19. M

    Solved Old Spawn System

    I need to change my script. I need monsters not spawn with players on screen. Exactly as it was in previous versions of Tibia. What do I need to change? spawn_monster.cpp: /** * The Forgotten Server - a free and open-source MMORPG server emulator * Copyright (C) 2019 Mark Samman...
  20. M

    Lua Problem with getSlotItem

    local removeBagWeapon = MoveEvent() function removeBagWeapon.onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end local weaponsId = { 3270, 3291, 3293, } if...
Back
Top