• 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!

Search results

  1. Evil Hero

    TFS 1.X+ TFS 1.3 CTRL + ARROW for staff members ( NOT seeking onTurn event solutions! )

    that's already handled in internalTeleport function Tile* toTile = map.getTile(newPos); if (!toTile) { return RETURNVALUE_NOTPOSSIBLE; } Hit me up on Discord and show me how to reproduce it, might be able to find it out then Evil Hero#8530
  2. Evil Hero

    TFS 1.X+ Compiling TFS 1.3 [Windows]

    You can also use 'cmd' instead of 'PowerShell' which worked completly fine for me.
  3. Evil Hero

    TFS 1.X+ TFS 1.3 CTRL + ARROW for staff members ( NOT seeking onTurn event solutions! )

    Well I don't understand why you do not want to have it in lua. However here's what you asked for. void Game::playerTurn(uint32_t playerId, Direction dir) { Player* player = getPlayerByID(playerId); if (!player) { return; } if (player->getGroup()->access) { if...
  4. Evil Hero

    For-loop index jump

    You don't need all that loops, just go and index table values by strings, then you can skip most of it anyway local spells = { ["antidote"] = {...} -- and so on } if spells[msg:lower()] then -- found the spell end I'm on phone, else I would provide the full example
  5. Evil Hero

    Monster XML tags

    if I recall right that's what the monster does (spells) when he's on the run, like warlocks (if they're still like I recall them from back in the days) healing spells and other buffs are also considered defenses.
  6. Evil Hero

    C++ [TFS 1.2]How to create more than 31 item attributes?

    Make sure your database can handle that big data on save / load, that might be the issue
  7. Evil Hero

    PING to few locations [EUROPE].

    Germany here. 1 Ping wird ausgeführt für 108.61.209.127 mit 32 Bytes Daten: Antwort von 108.61.209.127: Bytes=32 Zeit=26ms TTL=53 Antwort von 108.61.209.127: Bytes=32 Zeit=26ms TTL=53 Antwort von 108.61.209.127: Bytes=32 Zeit=27ms TTL=53 Antwort von 108.61.209.127: Bytes=32 Zeit=30ms TTL=53...
  8. Evil Hero

    Spell Silence TFS 1.0

    You have to ckeck if target even exists after line 9, else you'll get this nil error message. if not tar then return false end
  9. Evil Hero

    New generic slot in a MiniWindow

    In otui you have it called 'partnerbag' instead of 'partnerstats' so you might want to change either
  10. Evil Hero

    New generic slot in a MiniWindow

    You might have to rename them tho, can't tell that for sure without seeing the entire changes
  11. Evil Hero

    New generic slot in a MiniWindow

    TFS 1.X+ - New slot not saving items (TFS 1.2) There are your answers
  12. Evil Hero

    TFS 1.X+ getDirection() of target - TFS1.3

    function onThink(interval, lastExecution, thinkInterval) for _, player in ipairs(Game.getPlayers()) do local target = player:getTarget() if target then if target:isPlayer() or target:isMonster() then local dirTarget = target:getDirection()...
  13. Evil Hero

    Optimizing TFS Pathfinding

    nvm been overflying your post and had a main focus on his, so I missed the main point :p just noticed that the indexing is swapped in both of the loops, makes sense now why it's tons slower. In that case jumping through arrays and altering them is ofc a lot slower then loading an array loop...
  14. Evil Hero

    Optimizing TFS Pathfinding

    As far as I understand it's a different case. In the faster example you already create the multidimensional array which means that 1000 x 1000 indices equal to 0 As you already have a pre created array and just change values it's a lot faster then create the index and re sign it's value, which...
  15. Evil Hero

    TFS 1.X+ Remove items frompos topos

    Atm you give item the reference of the table key and not the table value. Thats what the error says. for _,item in pairs .... will give you the right reference
  16. Evil Hero

    TFS 1.X+ New slot not saving items (TFS 1.2)

    I knew there was still something, I just couldn't locate it. Glad that it works now :)
  17. Evil Hero

    TFS 1.X+ New slot not saving items (TFS 1.2)

    in OTC client/const.h You have to add the slot there aswell
  18. Evil Hero

    TFS 1.X+ New slot not saving items (TFS 1.2)

    You miss the part at iologindata.cpp in bool IOLoginData::loadPlayer(Player* player, DBResult_ptr result) if (pid >= 1 && pid <= 10) { to: if (pid >= 1 && pid <= 11) { and in bool IOLoginData::savePlayer(Player* player) for (int32_t slotId = 1; slotId <= 10; ++slotId) { to: for (int32_t slotId =...
Back
Top