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

    Dodge script by Sarah, how enable for monsters damage too?

    Maybe add logic to handle damage from creatures, though I haven't tested anything: -- Dodge System local config = { -- Dodge Stone Setting maxDodgeChance = 5, maxDodgeAmount = 8, maxLevel = 10, -- Buy Dodge Stone Settings dodgeItemId = 11106, dodgeItemCount = 1...
  2. Lleywyn

    OTS Guide - open source documentation and guide for newcomers

    Run this in your terminal: sudo iptables -A INPUT -p tcp --dport 7171 -j ACCEPT sudo iptables -A INPUT -p udp --dport 7171 -j ACCEPT sudo iptables -A INPUT -p tcp --dport 7172 -j ACCEPT sudo iptables -A INPUT -p udp --dport 7172 -j ACCEPT Then run: ./theforgottenserver Verify ports / Check...
  3. Lleywyn

    C++ light on floor

    Theoretically, you would do as follows: -------------------------------------------------------------- TFS 1.5 "Tile" Class: // tile.h class Tile { public: Tile(bool allowLightToPass = false); bool allowsLightToPass() const { return allowLightToPass; } private: bool...
  4. Lleywyn

    TFS 0.X -=[TFS]=- 0.3.6 8.60 - PROBLEM CRITICAL ATK BOOST STONES

    Attack Boost: local lvlcrit = 48904 local multiplier = 1.5 function onCombat(cid, target) if isPlayer(cid) and isCreature(target) then local criticalChance = getPlayerStorageValue(cid, lvlcrit) or 0 local chance = math.random(1, 1000) -- Random number between 1 and 1000...
  5. Lleywyn

    TFS 1.X+ TFS 1.x Party adjustements

    party.cpp: bool Party::canUseSharedExperience(const Player* player) const { if (memberList.empty()) { return false; } uint32_t highestLevel = leader->getLevel(); for (Player* member : memberList) { if (member->getLevel() > highestLevel) { highestLevel...
  6. Lleywyn

    TFS 1.X+ TFS 1.x Party adjustements

    I see, doesn't look like there's anything to change in player.cpp so try this: party.cpp bool Party::leaveParty(Player* player) { if (!player) { return false; } if (player->getParty() != this && leader != player) { return false; } if...
  7. Lleywyn

    Lua [TFS 1.6+] Converting NPC's (Jiddos system) into new NPC System (Evil Heros system)

    Interesting, so something like this could be an example: local npc1Type = Game.createNpcType("NPC1") npc1Type:defaultBehavior() function npc1Type:onThinkCallback() -- Custom thinking logic for NPC1 -- Example: NPC1 initiates conversation about the time every 2 minutes if os.time()...
  8. Lleywyn

    TFS 1.X+ TFS 1.x Party adjustements

    Sorry, if I'm being honest I have absolutely no idea what version I was using but it definitely was not TFS 1.2. Try this: bool Party::leaveParty(Player* player, bool forceRemove /* = false */) { if (!player) { return false; } if (player->getParty() != this && leader !=...
  9. Lleywyn

    C++ Error compiling TFS 1.5 downgrade Ubuntu 22.04

    Try to send this to your terminal: export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH Then test. If it works, edit your bashrc to include that line so it runs every time you need it to.
  10. Lleywyn

    TFS 1.X+ TFS 1.x Party adjustements

    Edit the source. party.cpp: bool Party::leaveParty(Player* player) { if (!player || player->getParty() != this) { return false; } // Remove or comment out the battle check // if (player->isInBattle()) { // player->sendTextMessage(MESSAGE_INFO_DESCR, "You cannot...
  11. Lleywyn

    Windows problem trying to go to xampp/security folder in browser

    Make sure that your hosts file is correct. That's always an oversight that people tend to forget about or lose track of. C:\Windows\System32\drivers\etc\hosts 127.0.0.1 localhost 127.0.0.1 forgottennot.online 127.0.0.1 forgottennot.ddns.net 127.0.0.1...
  12. Lleywyn

    Lua [TFS 1.6+] Converting NPC's (Jiddos system) into new NPC System (Evil Heros system)

    Now we have to figure out how to make them talk to one another and be set on a schedule where they do things / go places at a particular time of day. I feel like it's possible, but I don't know how to start. A good place to start would be "onThink" "getWorldHour" and "addEvent". I guess you...
  13. Lleywyn

    Lua [TFS 1.6+] Converting NPC's (Jiddos system) into new NPC System (Evil Heros system)

    --- You could make it more simple by implementing helper functions, enhanced callback functions for logic improvements, and loops for dynamic interactions that provide an easier path for scalability. Though, I haven't written OT Lua in half a decade, so cut me some slack if I'm being an idiot...
  14. Lleywyn

    the end of otservers

    Exactly this. It's highly likely that a significant number of people who played or created OTs found their way into programming or related fields. The experience of customizing game servers, scripting events, and interacting with the community could have sparked an interest in coding and...
  15. Lleywyn

    Compiling How to compile Ezzz's Map Editor?

    @StreamSide provides a link to their compiled executable in the referenced post that @Addams mentioned. To answer your question, though, since you did not ask for the compiled executable but rather "how to compile it", here's some general steps: Open the project in Visual Studio. Select the...
  16. Lleywyn

    the end of otservers

    Check out my signature. It's more than the game; it's the journey we share. It fostered a community that provided lasting friendships and valuable lessons. Even when everyone has left, every server is offline and all code is gone, we will never forget the memories and experiences that led us here.
  17. Lleywyn

    TFS 0.X I don't want the player to throw items at top

    You can modify the onAddItem function to check if the item is being placed on the designated table tile. If it is, you can prevent the item from being placed and return it to the player's inventory. Try this: local config = { itemIds = {2445, 2550, 2436, 6101, 2408, 7435, 7429, 5803}...
Back
Top