• 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

    Loot in Tibia?

    I learned a lot with this: Move loot mechanism to Lua, in this pull request the mechanism is moved from C++ to Lua, looking the files changes you can have a idea how it works, hope help you.
  2. Z

    TFS 1.X+ Copy Table in right way

    Oh, thanks for help. The function that u sended is the same that im using, but mine is recursive.
  3. Z

    TFS 1.X+ Copy Table in right way

    Hello, I realized that if i copy table1, to another table2 field, make changes in table2, table1 will be changed too. I had same problem using C# sometime ago. I want to know WHY its happen and if have some way to avoid that(im using a function to copy that is avoiding it, just wanting to know...
  4. Z

    Quick item editor issue/question.

    In client folder. U need to use another program to edit, what is your protocol version? Look for ObjectBuilder to your version.
  5. Z

    Quick item editor issue/question.

    Hi, You need to change this attribute in .dat file too. The .otb file is for server and .dat for client. Both must have same attributes.
  6. Z

    onDeath script 1.2

    He need to check If killer is monster too
  7. Z

    C++ Creature:CastSpell check if need target

    Hello, Im using this function to do a Creature cast a spell, but if the spell have needtarget="1"(Energy Strike, Fire Strike, Brutal Strike) in spells.xml and the creature don't have target, the code still cast the spell and return true, and i need it don't cast the spell and return false. I...
  8. Z

    TFS 1.X+ Handler Pet Cooldown

    Hello, Im developing a pet system, and the pets will have skills. I was thinking of how to do the cooldown of skills. When the pet is summoned and cast a spell, will start the countdown to be possible cast again, but in meanwhile if i unsummon the pet, the countdown need to be freezed, and only...
  9. Z

    C++ Send Lua Table Type in Opcode

    I don't realized, thanks, i will change back!
  10. Z

    C++ Send Lua Table Type in Opcode

    U mean NetworkMessage right? I was reading about it, when Delusion sended this function serialize(). I definitly will learn more about it, appears to be a great feature, thanks for answer. Using the serialize() function i got a error with table.size(s) i don't have this function on my server...
  11. Z

    C++ Send Lua Table Type in Opcode

    Hello, Im using opcode to pass info from server to client, but i need to pass a table. I tryed transform the table in string(opcode only accept strings) and transform back to table in client side, but don't worked. I need change opcode to send table type variable too, i think with table i can...
  12. Z

    C++ Monster Nickname

    When u change the monster name with the function, if have players in area, those players don't have the monster name updated, to solve this, before u change the monster name, teleport away from any players, and teleport back to right position. local farAwayPosition = {x = 1, y = 1, z = 7}...
  13. Z

    C++ Monster Nickname

    Sorry, english is not my main language. My problem is solved, but the code in the URL that i sended in first post have a bug(creatures with name changed, don't are updated for players in area). For me, don't really matter, because i can solve the problem with Lua. Would be great have the code...
  14. Z

    C++ Monster Nickname

    Yeah, thats solved my problem. I mean the update for players in area in C++ code.
  15. Z

    C++ Monster Nickname

    Then don't have "needing" for the code, would be great if works without tricks, but don't matter if is working, if i select as best answer the thread will be closed? Maybe in future someone do the changes to update name to players in area. Thanks for always help!
  16. Z

    C++ Monster Nickname

    Hello, Im needing a function to change the monster name when summoned, i found this: SetCreatureName, but it need some changes, which i don't know how to do, then i asking for help. In the post, in comments some people said that have a bug, when we change the monster name with players in area...
  17. Z

    TFS 1.X+ Question about Storing Info

    Thanks for help! U are awesome!
  18. Z

    TFS 1.X+ Question about Storing Info

    Yeah, make sense and how about the save info method? U would do in another way?
  19. Z

    TFS 1.X+ Question about Storing Info

    Hello, I'm developing a pet system, and don't sure how to store player pet info, i think using Storing Info to store a table with all pet info and request the data in onLogin and store in a global table like: PETS = {[playerGuid] = StoringInfoRequestedData} function Player:requestPetInfo()...
  20. Z

    [Tool] OTUI Editor

    Really nice Job! Thanks for contribute, im sure will help many people!
Back
Top