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

    otclient v8 compile problem

    Can't tell much without the source code, if you could provide with the link to the repo it'd be helpful. What I'd do is to look at other otclients to see the code there and compare: https://github.com/mehah/otclient/blob/main/src/framework/net/connection.cpp...
  2. L

    Raid on tfs 1.2 system

    It's up to you, use onTime or onThink and somehow organize it whatever you like. Example: <globalevent name="Rats" time="04:00:00" script="rat_raid.lua" /> local days = { 'Monday', 'Sunday' } function onTime(interval) local day = os.date('%A') if table.contains(days, day) then...
  3. L

    I have many errors when compiling this server.. what am I doing wrong?

    Try with vcpkg instead: https://github.com/xmish/SabrehavenServer/commit/413d6fbb49a17f5cc4991c5c00c06768e3b9ca77
  4. L

    Raid on tfs 1.2 system

    You can use globalevents to execute it with: Game.startRaid(raidName)
  5. L

    RevScripts tfs 1.4+ Stand on item xxx and get constanly hp/mp healed

    You shouldn't pass disposable objects (userdata) like creature to addEvent Try execute this script and immediately logout/klick that player to make event execute once player is no longer there. with config.lua like: warnUnsafeScripts = false convertUnsafeScripts = false Results might surprise...
  6. L

    error in console while using potions

    Line 199:208 local tile = Tile(toPosition) if tile then for i, item in ipairs(tile:getItems()) do local targetItemType = ItemType(item:getId()) if targetItemType and targetItemType:getType() == ITEM_TYPE_TELEPORT then return false end end...
  7. L

    TFS 1.X+ ranking.php for storage/resets

    So basically something like that but if you want to combine that with highscore you need to add default sort and join to player_storage: SELECT p.name, ps.value AS resets, p.vocation, p.level FROM players p LEFT JOIN player_storage ps ON ps.player_id = p.id AND ps.key = 378378 ORDER BY ps.value...
  8. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    Seems like you missed most important part of that PR, you have an issue in iomarket.cpp https://github.com/otland/forgottenserver/pull/4491/files#diff-4bf12ec78d7635eb24c3a3f9529ab043b0ef33abc7816fdb81fc980b0fde51b8 Change use of enum values to tfs::to_underlying(value) like in PR...
  9. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    @OTAmator As error says missing type specifier, most likely it's about return type for setter (add void at the beginning) void setGroup(SpellGroup_t g)
  10. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    @OTAmator as you're doing it on mac OS, you're probably doing it with cmake so add this into your CMakeLists https://github.com/otland/forgottenserver/blob/master/CMakeLists.txt#L74C1-L74C27 set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) It's TFS1.5-Downgrades so change 17 to...
  11. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    @OTAmator It's about C++ standard, try with /std:c++20 .clang-format Standard: c++20
  12. L

    Error during compilation in visual studio (error C2338)

    @OTAmator fmt::underlying was introduced in 9.x.x version of fmt. Check this out: https://otland.net/threads/26-08-2023-tfs-nekiro-7-72-fmt-lib-problem.286038/#post-2731616 Check installed version with: vcpkg list fmt:x64-windows 9.1.0#1 Formatting...
  13. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    As it's mention in the PR comments (link: PR comments), solution proposed by MillhioreBT relays on fmt::underlying, which could be found in FMT version 9.x.x. (see: fmt docs) And that's the version that's not available for Ubuntu 20.04 LTS / 22.04 LTS (long term support)...
  14. L

    26.08.2023 TFS NEKIRO 7.72 <fmt> lib problem

    @Fabi Marzan Yeah, that's right but I'd go with the solution that's been merged to tfs instead of proposal that's been rejected. Speaking of to_underlying part of this PR: https://github.com/otland/forgottenserver/pull/4491/files
  15. L

    Lua [SQLite] -=[TFS]=- [ACTION] 0.4 8.60 I bet 2k VIP coins and I don't win the 12 items

    Get your code formatted, once it's clear to read you'd understand how simple it actually is. Assuming you know english you should be able to read most of the flow easilly. You can easilly test your algorithm ideas here: https://www.lua.org/cgi-bin/demo Lookup how server' lua functions work in...
  16. L

    TFS 1.X+ TFS 1.X instruction - how add actions in script folder etc.

    @OTcreator Most of them work, there's a partial compatibility thanks to: https://github.com/otland/forgottenserver/blob/master/data/lib/compat/compat.lua
  17. L

    C++ High CPU Usage classicAttackSpeed

    @Addams Change this: g_scheduler.addEvent(createSchedulerTask(EVENT_CHECK_CREATURE_INTERVAL, [this, nextIndex]() { checkCreatures(nextIndex); })); to: g_scheduler.addEvent(createSchedulerTask(EVENT_CHECK_CREATURE_INTERVAL, std::bind(&Game::checkCreatures, this, nextIndex)));
  18. L

    Lua [SQLite] -=[TFS]=- 0.4 8.60 Is not working command !desbug and buy item free condition VIP LVL 717217 and Premium

    local gold_cost = 0 function onSay(cid, words, param) if getPlayerLevel(cid) >= 717217 and getPlayerStorageValue(cid, 13545) == 1 and isPremium(cid) then if doPlayerRemoveMoney(cid, gold_cost) then doPlayerAddItem(cid, 5805, 1) doCreatureSay(cid, "Você comprou um item para...
  19. L

    Lua [SQLite] -=[TFS]=- 0.4 8.60 How can I fix this script with problem in storage vip

    It looks more like a timestamp, You should calculate diff between now and that. local vipEndTime = getPlayerStorageValue(cid, 13545) local vipSeconds = math.max(0, vipEndTime - os.time()) local days = math.ceil(vipSeconds / 86400)
  20. L

    Lua -=[TFS]=- 0.4 8.60 how can i fix this script

    There's no such function in TFS 0.4 as getPlayerCap, there's also no setPlayerCap (use doPlayerSetMaxCapacity instead). You could try to extend it: enum PlayerInfo_t n { ... PlayerInfoCap } //getPlayerCap(cid) lua_register(m_luaState, "getPlayerCap", LuaInterface::luaGetPlayerCap)...
Back
Top