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

    TFS 1.X+ Login Lua Script Error

    local events = { 'PlayerDeath', 'LevelSave', 'SvargrondArenaKill', 'DropLoot' } function onLogin(player) local loginStr = 'Welcome to ' .. configManager.getString(configKeys.SERVER_NAME) .. '!' if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. '...
  2. Aeronx

    TFS 1.X+ Login Lua Script Error

    local depotChest = player:getDepotChest(townIds):addItem(1987, 1) -----> local depotChest = player:getDepotChest(i):addItem(1987, 1) You are giving the value i = 1 to townId.. meaning 1-12, townId is just a table.
  3. Aeronx

    TFS 1.X+ Login Lua Script Error

    no, thats just a generic function. Parameters between [] are optional. player:getDepotChest(LOOK FOR THE DEPOT ID):addItem(1987,1)
  4. Aeronx

    TFS 1.X+ Login Lua Script Error

    As far as I can see you are missing the townIds. Also, the function is getDepotChest not Locker. player:getDepotChest(depotId[, autoCreate = false])
  5. Aeronx

    Monsters with levels [Solved]

    "Just have to insert onSpawn event on source".. That means that is not "just Lua" right? >.< also with that you wont change the name of the monster. If it was so easy there would be some systems already for monster lvl on tfs 1.x Not saying that is super hard, since im average into coding tfs...
  6. Aeronx

    Monsters with levels [Solved]

    i did it myself nowhere to find it
  7. Aeronx

    Monsters with levels [Solved]

    This is on tfs 1.2 Configurable monster range level. Configurable extra exp %. Configurable extra dmg %. Confrgurable name/description. Configurable extra loot chance.
  8. Aeronx

    Monsters with levels [Solved]

    its is, but you will need a combination of C++ code with lua scripts.
  9. Aeronx

    Solved Configuring Recover account/password

    SMTP installed? I really dont know lol! All that goes to website/db shit im a bit lost. I have a gmail account and the settings on config.php A year ago it was working perfectly, but since i've updated to the new 1.6 from znote, it stopped working. If someone could guide me a bit on the process...
  10. Aeronx

    Solved Configuring Recover account/password

    Hello Otlanders! I've been trying for days now many options to configure the automatic account/password recovery throguth email on znote. I've set all the data from my webservice into config.php Is phpmailer 100% necessary? If so, there is anything to configure about it? This is the info on...
  11. Aeronx

    Solved target name contains [tfs 1.2]

    Wow.. that's actually usefull, checking NPC. Hmm i may try myself! Thank you again sir!
  12. Aeronx

    Solved target name contains [tfs 1.2]

    @Night Wolf Thank you sir. I had an idea after reading the link that @Static_ posted, but your post helped me to understand some other concepts. Really appreciate the time you took to write the post, thank you for the lesson.
  13. Aeronx

    Solved target name contains [tfs 1.2]

    Thank you guys! that solved the issue! @Static_ Would you mind explaining or poiting me out where can I find the meaning of %a%s%d the combination with *] etc.. I am trying to learn a bit about it. Thank you for your time.
  14. Aeronx

    Solved target name contains [tfs 1.2]

    Hello guys! I've been trying all day long, searched the whole internet, but i have been totally unsuccesfull and i am on my nerves lol I have this table: local config = { ['gang member'] = {amount = 20, storage = 21901, startstorage = 45553, startvalue = 1}, ['smuggler'] = {amount =...
  15. Aeronx

    TFS 1.X+ PVP-E Where i can exit rate exp for players

    On TFS 1.x you can change config.lua to set the range of levels you want people to get experience from. This is the experience earned on real tibia for pvpe. If TFS has the same formula, based on that you have this. on data/events/player.lua if not source or source:isPlayer() then...
  16. Aeronx

    Solved :gmatch() [TFS 1.2]

    damn.. its working.. the problem was monster name was monster [1] So for more testing, i went farther. Now monster name is monster [ii. 1] so i changed the code like this local target = 'Monster [ii. 1]' local desc = target:gmatch('[ii. %d]') local lvl = tonumber(desc()) print(lvl) but it...
  17. Aeronx

    Solved :gmatch() [TFS 1.2]

    Hello otlanders! I am trying to learn a bit more here, so maybe you can instruct me. I have started working with :gmatch and for easy tests I tested it with monster names. local desc = target:getName():gmatch('%d') local lvl = tonumber(desc()) print(lvl) the targeted monster has the name...
  18. Aeronx

    TFS 1.X+ Server performance

    Well, that helped a lot guys! Really thanks for your time! My host server has 16gb ram with a huge i7, so it shouldnt be a problem. But that will help to get exact data on server process! again, thank you guys!
  19. Aeronx

    TFS 1.X+ Server performance

    Hello otlanders! I've made a little script that every second uses the DB as in global event. So my question is, would it lag or even crash the server if there are 50+ players using this global event? Is there a way to know the performance? a better way to make this? function onThink(interval)...
  20. Aeronx

    Solved Spell crashing server [TFS 1.2]

    Ohh..! I see it now! I knew it was something related to the item missing on the tile, but didnt really know how to solve the issue. Thank you very much @Ninja !
Back
Top