• 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

    server side 'cam system' compatible with OTCv8 as .cam file player

    https://en.cppreference.com/w/cpp/io/basic_ofstream #include <fstream>
  2. L

    Error mysql in my console

    Its a deprecation warning only, not an error Note Beginning with MySQL 8.0.34, the automatic reconnection feature is deprecated. The related MYSQL_OPT_RECONNECT option is still available but now returns a deprecation warning to the standard error output if your application calls the...
  3. L

    problem compiling source 1.4x

    So then it’s not 1.4x as title says. It’s a latest version of tfs. Looking at the latest master it seems like everything compiles (github actions checks). Try switching vcpkg in settings, remove cached libs from vcpkg installed directory and let it do it again.
  4. L

    problem compiling source 1.4x

    Fmt udpate had a breaking change, try to apply these changes (part with tfs::to_underlying) https://github.com/otland/forgottenserver/commit/61452aa5dc2c8d3ff345e627295eef06d8aafa8a
  5. L

    TFS 1.X+ Mysql crash

    Youre using some WAMP solution, you could try to export DB and host MariaDB separatelly for tests, connect to it with e.g. DBeaver and import the db there.
  6. L

    TFS 1.X+ Mysql crash

    I'd try with MySQL update as they fixed some crash bug in 8.0.32 and you're on 8.0.31, see release notes: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-32.html
  7. L

    Lua [TFS 0.X] NPC - Correct doRemoveMoney

    Remove money count getPlayerItemCount & doPlayerRemoveItem for ID's: 2148 gold coins 2152 platinum coins 2160 crystal coins And replace that with: doPlayerRemoveMoney(cid, money) Example: if doPlayerRemoveMoney(cid, 400000) then local reward = doPlayerAddItem(cid, 5758, 1)...
  8. L

    New money tfs 0.4

    What for? Why use another script for something as simple. Keep the things simple and organized. @potinho Did you even defined value for that const ITEM_RUBY_COIN? data/lib/000-constant.lua ITEM_GOLD_COIN = 2148 ITEM_PLATINUM_COIN = 2152 ITEM_CRYSTAL_COIN = 2160 ITEM_RUBY_COIN = 2157 Edit...
  9. L

    Custom Combo Monster Attack!

    @zezin009 Maybe put # at the begining like on current tfs ###1 (not sure if it works for OTClient) and set needlearn="1": https://github.com/otland/forgottenserver/blob/master/data/spells/spells.xml#L764
  10. L

    Lua LUA X CPP++ debugging

    If you're on Windows I'll start from Microsoft Visual Studio, here's some beginner-level introduction to concept of Lua stack: Useful links: https://www.lua.org/pil/contents.html https://www.lua.org/demo.html
  11. L

    Creature Script problem

    @jareczekjsp Use the [ CODE ] blocks instead so the code is formatted with indentations. The problem is that you posted different script, this one seems okay. You created some timer event that executes corpseRetireItems function in which I guess you're performing...
  12. L

    Lua Task system TFS 1.2 count party

    @shakal1994 a ye that depends on the distro, some of them return leader as a member and some don’t. Add some debug print’s to check which condition’s are met.
  13. L

    Lua Task system TFS 1.2 count party

    @kubernik Good catch
  14. L

    Lua Task system TFS 1.2 count party

    After quick chat It turned out it was meant to work for all party member (or player) that dealt any damage: mostDamageCreature is to execute it once only for mostDmgCreature and not to execute it once again for lastHitCreature I still got some doubts about that approach as it looks a bit hacky...
  15. L

    RevScripts Monsters respawns from x/y/z to x/y/z

    I belive TFS checks monsterType:isIgnoringSpawnBlock() on spawn so you could create some monsters that ignore spawn block with attribute ignorespawnblock <flags> <flag ignorespawnblock="1" /> </flags> or in LUA: local mType = Game.createMonsterType("example") local monster = {}...
  16. L

    Lua Task system TFS 1.2 count party

    Hmm, maybe try this "trick" (not tested): local damageMap = target:getDamageMap() local mostDamageCreature local maxTotal = 0 for pid, dmg in pairs(damageMap) do if dmg.total > maxTotal then maxTotal = dmg.total mostDamageCreature = pid end end if player ~=...
  17. L

    OTClient rule violation no work; tfs 1.5 otv8

    Typo in query, use: INSERT INTO `player_namelocks` (`player_id`, `reason`, `namelocked_at`, `namelocked_by`) VALUES ({:d}, {:s}, {:d}, {:d})
  18. L

    xampp problem with htdocs, how can i fix it ?

    Show results of (but seems like you get a deprecation warning as you're on PHP 8.x): <?php phpinfo(); ?> I'd go with nginx + php-fpm
  19. L

    [TFS 1.5]store stuff limit remover

    static constexpr int32_t NETWORKMESSAGE_MAXSIZE = 65500; Message shouldn’t exceed this limit. As it’s unknown what’s that 50 in the message I’d not change that too.
  20. L

    [TFS 1.5]store stuff limit remover

    Has anyone the code for the client so I could check how this expects it to be formatted? And what’s the 50 in the context of the client. Opcode is 201, so what’s that 50?
Back
Top