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

    Solve my servers performance issue

    Okay, and do you have any limit set for how fast a player may attack? You can also try modifying Player::doAttacking (to something like this): void Player::doAttacking(uint32_t) { uint32_t delay = getAttackSpeed(); if (lastAttack == 0) { lastAttack = OTSYS_TIME() - delay - 1...
  2. Ninja

    Solve my servers performance issue

    Could it be that your server is using classicAttackSpeed?
  3. Ninja

    OTC open containers limit, is that OTC or server sided?

    Try increasing the following value: otland/forgottenserver & otland/forgottenserver
  4. Ninja

    OTClient Button Position

    You can centralize a button in a panel with horizontalCenter/verticalCenter. anchors.horizontalCenter: parent.horizontalCenter
  5. Ninja

    Unban

    Greetings, Your main account received 3 warning points over the course of two months, and each one of them were given to you because you attempted to sell data packs/scripts/or whatever it was that you tried to sell by posting in other user's support/request threads (as far as I can see at...
  6. Ninja

    Ban - Vote!

    Since most of the voters (88.9%) seems to be in favor of banning you (not really a deciding factor), I think it's time for us to let you go. Knowing you, you'll probably be back within a day or two even though you so much despise this community. Best of luck on your future endeavours! P.S. If...
  7. Ninja

    Block Renegeration

    Here you go (Moving this thread to Requests by the way) :p condition.cpp bool ConditionRegeneration::executeCondition(Creature* creature, int32_t interval) { internalHealthTicks += interval; internalManaTicks += interval; if (creature->hasRegenerationBlocked() ||...
  8. Ninja

    Lua NPC problem.

    You need to register the callback: npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
  9. Ninja

    TFS 1.X+ Help with refactoring code

    You could take advantage of Position.getNextPosition.local combat = Combat() combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) local function movePlayer(cid, direction, executions, maxExecutions) local player = Player(cid) if not player then return end local position...
  10. Ninja

    Lua [TFS 1.2] Crystal Coin -> Gold Nugget

    I have now tested the snippet above, and unfortunately I do not end up with the same result as you do (I received a gold nugget and 50CC).
  11. Ninja

    Lua [TFS 1.2] Crystal Coin -> Gold Nugget

    You must have added some faulty code to your NPC system in that case. Can you verify whether it adds an extra 100CC if you call Player.addMoney directly?
  12. Ninja

    Lua [TFS 1.2] Crystal Coin -> Gold Nugget

    Try changing uint32_t crystalCoins = money / 10000; if (crystalCoins != 0) { Item* remaindItem = Item::CreateItem(ITEM_CRYSTAL_COIN, crystalCoins); ReturnValue ret = internalAddItem(cylinder, remaindItem, INDEX_WHEREEVER, flags); if (ret != RETURNVALUE_NOERROR) {...
  13. Ninja

    TFS 1.X+ Make 2nd player optional on quest

    You already have all the tools you need, all you have to do is rearrange the content of the 1st for loop. for i = 1, #config.playerPositions do playerTile = Tile(config.playerPositions[i]):getTopCreature() if not playerTile or not playerTile:isPlayer() then...
  14. Ninja

    C++ How to save the server before it crashes? [ANTI ROLLBACK]

    If you by any chance use gdb, you can call a function (i.e. call g_game.saveGameState()) upon catching a segmentation fault. However this will only work if the executable is built with debug symbols.
  15. Ninja

    rme macos problem

    You should be able to access the folder by opening ~/Library/Application Support/.rme or by clicking on About (Extensions should be listed there) in the application itself.
  16. Ninja

    ninjalulz tfs visual error

    I sincerely hope that people stop using that downgrade in a near future (one can only hope) but, oh well! :p It does seem like addCommandTag & resetCommandTag (game.cpp#L4195-L4208 & game.h#L438-L439) is in fact members of the Game class. Have you modified the source code in any fashion?
  17. Ninja

    item fromPosition - slot? TFS 1.X

    Greetings, You may be able to achieve that by taking advantage of fromCylinder & toCylinder (Arguments available for the Player event onMoveItem).
  18. Ninja

    TFS 1.X+ Prevent Entering houses

    It can be prevented by removing the following snippet from house.cpp (or by removing the flag CanEditHouses from the GM/CM group): otland/forgottenserver
  19. Ninja

    C++ parsing groupID(TFS)

    I would like to think that you're making this more complicated than it needs to be. You can send a player's group ID through sendBasicData (TFS), and pick it up with parsePlayerInfo (OTC). Don't forget to add an enum for the group IDs ;)
  20. Ninja

    TFS 1.X+ Compilling TFS on debug mode

    You can specify the build type when you generate the build files with CMake. I personally would go for RelWithDebInfo instead of Debug. cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
Back
Top