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

    Solved SQL - os.time() / how i use " os.time() " in mysql?[PHP]

    Thanks! Solved. PHP: $TEST = time() + 24*60*60; $SQL->query("INSERT INTO `player_storage` (`player_id` ,`key` ,`value`) VALUES ('".$player->getId()."', '999', '.$TEST.'')");
  2. milbradt

    Solved SQL - os.time() / how i use " os.time() " in mysql?[PHP]

    The lua language using : os.time() How do the same for mysql? Example in lua: getPlayerStorageValue(uid, storage, os.time() + time) In sql would it?(page php) $SQL->query("INSERT INTO `player_storage` (`player_id` ,`key` ,`value`) VALUES ('".$player->getId()."', '999'...
  3. milbradt

    Solved Limiting condition attributes(skills) [condition.cpp]

    No.. you did not understand. It is that it works for spells also If equip item or use any custom spell to remove attributes and skill be less than 10, the player can not use spells. It is a limitation in spells.cpp https://github.com/milbradt/TFS/blob/master/src/spells.cpp#L656
  4. milbradt

    Solved Limiting condition attributes(skills) [condition.cpp]

    Hello! Someone knows how can I limit the attributes of skills? For example, if I equip an item that removes 20 MagicLevel the limit prevents this and leaves the 10 minimum.
  5. milbradt

    [ModernAac] "codeigniter" Active CACHE

    @ help xD
  6. milbradt

    TFS Update to 10.8x, 10.9x series, adding missing features

    Nice work! I will follow your changes and features.
  7. milbradt

    [ModernAac] "codeigniter" Active CACHE

    https://ellislab.com/codeigniter/user-guide/database/caching.html Error:
  8. milbradt

    [ModernAac] "codeigniter" Active CACHE

    How do I enable the cache on a page specifies the modern aac? I researched a few things about the "codeigniter" I found it: $this->db->cache_on(); Anyone know how to use?
  9. milbradt

    Solved [creaturescript] onCombat or onAttack [return true only if damage]

    but as I identify when I took the target's life? only the player "X" have the registerEvent. So how do I check if his target lost life?
  10. milbradt

    Solved [creaturescript] onCombat or onAttack [return true only if damage]

    no no man .. xD This is only one example that does not exist. if "HEALTH_LOSS"(target) then This condition does not exist. I wanted to know a condition to do so.
  11. milbradt

    Solved [creaturescript] onCombat or onAttack [return true only if damage]

    Hello o/ How do I return true only if the target lose life? Ex +-: function onCombat(cid, target) if "HEALTH_LOSS"(target) then print("work") end return true end Solved. Used statsChange.. =\
  12. milbradt

    Solved Insert in table players in area ~= cid

    Thanks! Topic Solved.
  13. milbradt

    Solved Insert in table players in area ~= cid

    local player = {} for _, pid in pairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), positionTop, positionBot) then if getPlayerGUID(cid) ~= pid then table.insert(player, pid) end end end I...
  14. milbradt

    [Research] New ways of bulding Npcs

    https://github.com/orts/server/blob/master/data/npc/scripts/Chondur.lua vs http://pastebin.com/EZwyM42g I do not know if improved system performance. The look that much better...
  15. milbradt

    doCreatureSetPartyShield(cid, shield)

    According to my research, not is that part. I think it's here: https://github.com/otland/forgottenserver/blob/c4b10a905b11728522e715bd41f2493858ab0e46/src/protocolgame.cpp#L1196
  16. milbradt

    doCreatureSetPartyShield(cid, shield)

    How do I enable this feature to use in players? or.. Which files have to edit? I found a topic reporting that this function can be used only in monster: https://otland.net/threads/docreaturesetshield-cid-shield.36752/
Back
Top