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

    OTClient Character above the tree, and blinking sprites

    I'm still having the same problem, can anyone help me? I tried using version 8.50 sprites, but Otclient still has the same problem. Note: It looks like some sort of conflict between sprite overlays, which is why they are blinking. At some point the bottom sprite is on top, and vice versa.
  2. 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
  3. M

    OTClient How to make a hud in otui

    Thank you very much for your help, I already started to practice, but I have some problems I added two images for testing but they are getting on top of each other And I need to know how to center the text on each image For example: The text of life, I need to center on the image of life. The...
  4. 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...
  5. M

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

    Finally it worked 100%! Thank you very much!! I've already taken the opportunity to organize the script in a way that is easy to read: attributesWindow = nil attributesButton = nil updateEvent = nil function toggle() if attributesButton:isOn() then attributesWindow:close()...
  6. M

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

    I made some changes to my script. At first it receives the correct value from my server, however, when it executes the "scheduleEvent" function, the value is blank. attributesWindow = nil attributesButton = nil updateEvent = nil function init() connect(LocalPlayer, {...
  7. M

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

    You added an example in the wrong script. I'm using the following script, so I don't know how to update the status: attributesWindow = nil attributesButton = nil function init() connect(LocalPlayer, { onHealthChange = onHealthChange, onStaminaChange = onStaminaChange, })...
  8. 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)...
  9. M

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

    I managed to send the information to the Otclient, that my storage Value is 90 I tested it using print() and looking at the terminal Now I need it to return only the packet for my code to work Unfortunately it is returning the protocol, opcode, and finally the packet I need Otclient to check...
  10. M

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

    I've been researching and trying to learn about it for three days, I've even accessed this link a few times... The problem is that I'm using TFS 0.4. local packet = NetworkMessage() packet:addByte(0x32) -- Extended Opcode (0x32 = 50 (in dec)) packet:addByte(0x37) -- The Opcode of this Request...
  11. 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, {...
  12. 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...
  13. 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...
  14. M

    Lua Help simplifying the script

    Wow thx!
  15. M

    Lua Help simplifying the script

    local config = { [2813] = { addItem = { chance = 75, success = {id = 2666, qty = 3}, fail = {id = 5878, qty = 1} }, doTransform = { chance = 20, success = {id = 2814} } } } function onUse(cid, item, fromPosition...
  16. 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...
  17. 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)...
  18. 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...
  19. 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...
  20. M

    Solved Old Spawn System

    Solved, thx
Back
Top