Search results

  1. Evil Hero

    TFS 1.X+ Code not adding item to the selected container

    You need to push on the item.uid of the container and at the end inside moveTo you just push Container(container[i].uid) which should now result in the right container
  2. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    monster.events = { "nameofevent1", "nameofevent2" } this will register the event to the monster or use MonsterType("name"):registerEvent("eventName") I'd rather not try to include the event itself into the monster file as the loading order of script systems might be a problem, you can...
  3. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Can you elaborate that idea a bit more, I don't really get it and also this thread is only for tfs 1.3 master branch which contains revscriptsys
  4. Evil Hero

    Lua Revscriptsys anti-trasher not working

    You are probably missing this commit https://github.com/otland/forgottenserver/commit/77a95e6f598b3b96d0c52c728c7d3adeb289de6d
  5. Evil Hero

    TFS 1.X+ OnEquip Lua Function

    not every event needs a return value but you are always safe to go with putting a return true at the end, unless in this example ofc if you wouldn't want the player to be able to equip the item, then you'd return false. Edit: You can take this for better reference otland/forgottenserver...
  6. Evil Hero

    TFS 1.X+ OnEquip Lua Function

    You have no return value set for it, you either have tu return false (not be able to equip) or return true (able to equip it) in order for it to work correctly. function onEquip(player, item, slot) print(item:getDescription()) return true end
  7. Evil Hero

    Issues compiling TFS 1.2/1.3

    In powershell cd vcpkg then run the vcpkg install boost-filesystem:x64-windows again that should work now.
  8. Evil Hero

    Issues compiling TFS 1.2/1.3

    Are you sure you installed everything right with vcpkg? You might want to follow this tutorial again, as it doesn't seem that filesystem was included. Edit: or just run in powershell: vcpkg install boost-filesystem:x64-windows this will solve your issue.
  9. Evil Hero

    Issues compiling TFS 1.2/1.3

    https://otland.net/threads/error-installing-vcpkg.264637/post-2557654
  10. Evil Hero

    FINALLY: OTServBR Global released protocol 12

    Well done guys :D
  11. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    1) for k,v in pairs(table) do tileStepIn2:aid(k) end repeat that with the other tables aswell. 2) I havn't added that yet it seems, open an issue on github so I don't forget about adding it.
  12. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    He's using OTServBR, I just noticed they have a missing line, that's why it's not working under line 16824 (luascript.cpp) paste this globalevent->setInterval(getNumber<uint32_t>(L, 2)); @Evil Puncker
  13. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Yes skillSword is not implemented yet, this will take it's place once itemType gets a revamp and attributes as a metatable gets introduced (after 1.3 release) Actually it's currently a mix of both, it's just missing everything which is related to attributes (absorb, skill, etc.) You can basicly...
  14. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Well done, this just shows how lightweight and powerfull Revscriptsys can be ;)
  15. Evil Hero

    [TFS 1.3] [Revscriptsys] Free Lua scripting service - Post your requests! Let's learn it together!

    Yes you can do sub folder structure there aswell, it's supported
  16. Evil Hero

    Linux ERROR: Missing RSA private key footer.

    sounds like you have a malformed key.pem file, it's missing -----END RSA PRIVATE KEY----- at the end of the file, either add that or download the file from new again.
  17. Evil Hero

    TFS 1.X+ [Warning - Actions::registerLuaEvent] Duplicate registered item with id: X in range from id: Y, to id: Z

    Revscriptsys is a drag and drop self registering system for scripts, you just have to remove the spellbook.lua file out of that directory and it wont be registered twice or loaded again. Edit: if you want more informations about revscriptsys Revscriptsys · Issue #2555 · otland/forgottenserver...
  18. Evil Hero

    TFS 1.X+ [Warning - Actions::registerLuaEvent] Duplicate registered item with id: X in range from id: Y, to id: Z

    Data/scripts/actions/spellbook.lua It's already implemented from revscriptsys, that's why it shows it's registered twice
  19. Evil Hero

    TFS 1.X+ Tfs 1.3 Cannot open include file: 'lua.hpp': No such file or directory

    https://otland.net/threads/error-installing-vcpkg.264637/#post-2557654
  20. Evil Hero

    TFS 1.X+ Tfs 1.3 downgraded by Nekiro to 8.6 (Cannot open include file: 'boost/asio)

    tfs 1.3 doesn't support tfs-sdk anymore, it has been deprecated. You have to follow this tutorial otland/forgottenserver (https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-%28vcpkg%29) to compile on windows.
Top