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

    TFS 1.X+ Where is floorchange handled?

    I found where the issue was. After the position updates in the sources to constexpr some of the values were added backwards. In tools.cpp Direction getDirectionTo(const Position& from, const Position& to) int32_t x_offset = to.getOffsetX(from); int32_t y_offset = to.getOffsetY(from)...
  2. Itutorial

    TFS 1.X+ Where is floorchange handled?

    Where in the sources is floorchange handled? It seems in my 1.4 version after the player moves up or down stairs their direction is opposite from what it should be.
  3. Itutorial

    OTClient Otclientv8 error when floors are above player

    Yes, and I am pretty certain it has to do with this: otland.net/threads/tutorial-adding-more-tiles-to-game-window-updated-7-6-2018.228243/ I can't see where the problem is though and maybe someone has had it happen already. 1727190468 nvm i figured out what it was. Just sending too much item...
  4. Itutorial

    OTClient Otclientv8 error when floors are above player

    Really weird problem here and it seems to have come out of nowhere.. If I have floors above my player I get this error: There are no items on the floor above that aren't in places where this error doesn't occur. Any ideas?
  5. Itutorial

    Banshee Quest lever

    Perhaps your storage value is incorrect for the player you are trying to test with. You should use prints to see what your code is doing. try adding: print("Started") under the function onUse line so you can make sure the code is actually executing.
  6. Itutorial

    OTClient Where are otclient's tooltips handled?

    So as an example. I want to only have Legendary Stick purple. Not the stats.
  7. Itutorial

    OTClient Where are otclient's tooltips handled?

    I know how to use the tooltips but I cannot find where the code to display the tool tip is. Also, if someone knows how I can add text color to the tooltip that would be a bonus. Thanks for any help. https://otland.net/threads/tool-tip.262132/#post-2535347 I think I might be dumb early in the...
  8. Itutorial

    Solved Help with corpse (onDeath) TFS 1.0

    Thank you for taking the time to write all this out.. I did find out though that I can just use the default onDropLoot monster event in the data/scripts/events/monster folder. Makes it a lot easier to work with. In this case I needed to modify all monsters drops so this works for me. If I ever...
  9. Itutorial

    C++ Sending custom attributes to client

    Yeah I just didn't want to have to recode a bunch of stuff. The client was already set up to handle all the information and use it as I want too but the server wasn't. Now it is and I can utilize all the functionality the client already came with. Thanks for the congrats. It is a key thing to...
  10. Itutorial

    Solved Help with corpse (onDeath) TFS 1.0

    I have this same problem. I have tried using addEvent as well. Nothing seems to be working. I can not get items out of a corpse for the life of me. What do I need to do??? This is my code. line 32 prints 0 line 33/34 do not print at all local RarityDrops = CreatureEvent("rarity_drops")...
  11. Itutorial

    Crash bug

    Has anyone figured out what was causing this? It still seems to be in my sources. It has to do with decaying items. Whenever I kill a monster it crashes the server and has Game::checkDecay() written all over it. Specifically when it is checking for the attribute for decay and setting it. Can...
  12. Itutorial

    C++ Sending custom attributes to client

    I know I am close to getting this because I can std::cout << attr->value and get the correct value for my custom attribute on the item. For some reason I cannot for the life of me get the value out of it when sending it to the client though. I can't just use attr->value.. I tried to copy how the...
  13. Itutorial

    C++ Sending custom attributes to client

    How can I do this? This is what I have so far Server Side: void NetworkMessage::addItem(const Item* item) // Send custom attributes to client. Item* tmpItem = item->clone(); add<uint16_t>(CUSTOM_ATTR_LAST - 1); // Send size of custom attributes for (uint16_t key = CUSTOM_ATTR_RARITY; key <...
  14. Itutorial

    Compiling Luavarient errors after adding .clang-format

    Kind of shot myself in the foot. I have upgraded tfs 1.4/1098 to current tfs sources as much as possible. I just added the "new" .clang-format file and it broke my luavariant.h file somehow or at least thats what it seems to be. Does anyone have an idea what it could be? #ifndef...
  15. Itutorial

    trying to put only 1 skill for melee.

    check post date
  16. Itutorial

    trying to put only 1 skill for melee.

    You should still have weapon types. Idk why exori hur would have any issue. You should be able to have sword, axe, club in items.xml. They should all be linked to the new skill_melee. Then exori hur would be fine. You just determine the weapon type as normal again in items.xml.
  17. Itutorial

    TFS 1.X+ Vocation Level Up Item Reward

    You need to add the vocations here: local vocations = { [1] = rewards.SORCERER, -- Sorcerer [2] = rewards.DRUID, -- Druid [3] = rewards.PALADIN, -- Paladin [4] = rewards.KNIGHT -- Knight } If you use only the standard rl vocations you can change this local vocationId...
  18. Itutorial

    RevScripts Problem after adding movement memory leak fix

    nvm https://github.com/otland/forgottenserver/commit/d59a5cbb1275fdf1c8cfedc7e2c0aa19ade176be
  19. Itutorial

    RevScripts Problem after adding movement memory leak fix

    Unfortunately no. Thanks for the suggestion though.
  20. Itutorial

    Over flow, infinite loop

    This is not TFS 1.2 I dont think anyway. but maybe you can change this: Line 108-110 if not tile or not tile:getGround() then creature:moveRel(fromPosition.x, fromPosition.y, fromPosition.z) return true end
Back
Top