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

Recent content by ohman

  1. ohman

    Lua Calculate Consecutive Login Days

    Thank you for your responses! Just one question. If I extract the day of the year, for example, 239 which is today, it's easy to check if it's the next day or if a day has been missed. But what happens on January 1st? From 365 to 1, the the streak is broken? The difference is bigger than 1. Or...
  2. ohman

    Lua Calculate Consecutive Login Days

    What is the best way to calculate the number of consecutive days a player has logged in? Logging the date, etc., seems complicated considering leap years, new years, and so on. The idea is to use this for a daily reward system via a login event. Thanks!
  3. ohman

    C++ Adding Reward chest on BTS Server

    Hey! I’m currently working on a boss reward system for BTS. I’m on vacation right now but I hope to be done soon 😊
  4. ohman

    C++ setCustomAttribute in source

    Hey! :) I'm currently working on a project where I need to set a custom attribute in the source code and then access it in Lua. Here's what I've done so far: In Source Code: newItem->setIntAttr(ITEM_ATTRIBUTE_CORPSEOWNER, 321); newItem->setCustomAttribute("TEST", "123"); In Lua...
  5. ohman

    Black Tek Server Pre-Release

  6. ohman

    Lua How to access ”item” object across events?

    Thank you for all the answers! It was more advanced than I thought. Unfortunately, it doesn't work with itemid. I am in the process of creating a script for imbuing, where one uses their item on a stone ("shrine"). It is crucial that it is exactly the item that was chosen initially, as it could...
  7. ohman

    Lua How to access ”item” object across events?

    Hey! How do I transfer the object “item” between an onUse action that contains “item” and a modalWindow event? I need to have the ability to remove the used item in the event. Is it possible? Thanks 😊
  8. ohman

    Solved Error compiling v1.4 in core.h

    From compiling instructions: Visual Studio 2022 Community (compiler, make sure to install with the English language pack
  9. ohman

    TFS 1.X+ tfs 1.5 rook system

    Hey! Where did you find this rook system? Thanks
  10. ohman

    Server does not launch!

    Move the files in the output dir to the main folder (Where config.lua is)
  11. ohman

    Solved poison field bugged

    Maybe this will help https://github.com/otland/forgottenserver/commit/fa9e9e30d0ed16c3f12ad656c687750a102ce705
  12. ohman

    Does anyone want an updated TFS 1.4.x+

    This is fantastic! Can't wait! I'm also interested in downloading and trying it. Windows 10, unfortunately.
  13. ohman

    CURRENT TFS WITH OTCLIENT V8

    That sounds awesome! When do you think he will release it? And where? Edit: Found the post. https://otland.net/threads/does-anyone-want-an-updated-tfs-1-4-x.288450/
  14. ohman

    Exp stages both in config.lua and stages.xml - Why?

    Hi! Why does stages.xml exist if the stages are changed in config.lua? Am I missing something?
  15. ohman

    Lua While targetting x monster

    Hello! I'm working on a script to determine if the player is targeting a specific monster. Currently, my script can detect when the attack on a monster begins, but it doesn't recognize when the attack stops. Does anyone have any ideas on how to do this? Thanks in advance! local ec =...
Back
Top