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

    Lua Very large script, how to reduce?

    I created this rune script for my server, but there will be several others similar to this script. I would like to know how to compress this script, that is, how to reduce its size to make it more practical. How to shorten this script? --[[ Nome da runa: Esfera Flamejante Descrição: Um feitiço...
  2. A

    Lua Freeze Rune, I'm in some trouble

    Many years ago I played a little bit about creating a Tibia server, but today I don't remember almost anything. I don't particularly remember the functions. I started this script today, in fact I've been working on it for almost an hour. I'm very outdated haha I need help finishing this script...
  3. A

    Lua Problem in table

    Why don't work? dificuldade = 1 local niveis = { [1] = {chance = 1000000}, [2] = {chance = 250000}, [3] = {chance = 62500}, } for k,v in pairs(niveis) do if dificuldade == k then local random = math.random(1, 100000) -- if random...
  4. A

    TFS 1.X+ function arguments expected near ':'

    No error, but I will test with print()
  5. A

    TFS 1.X+ function arguments expected near ':'

    Now, the NPC asks if I want a fire sword. Until this part of the script, everything is OK. It was good, however, the NPC does not react when answering his question. Currently the script looks like this: local temp_key = {} local keywordHandler = KeywordHandler:new() local npcHandler =...
  6. A

    Tibia 64x64

    Broke link
  7. A

    TFS 1.X+ function arguments expected near ':'

    I've modified the script, and the error is now: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function...
  8. A

    TFS 1.X+ function arguments expected near ':'

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  9. A

    TFS 1.X+ function arguments expected near ':'

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  10. A

    Lua TFS 1.3 - Blacksmith NPC

    I need a blacksmith NPC to create some items, but for him to create the items, he will need the ingredients. In addition to needing the ingredients, he will need time to create each item, and each item will have its chance to break and fail. Example: [2392] = { name = "Fire Sword", -- What...
  11. A

    TFS 1.X+ From number to number

    How is the function to check it? example = { [Jhon] = {fromNumber = 1, toNumber = 10}, [Hanna] = {fromNumber = 11, toNumber = 15}, } Return Jhon if storage is 1, or 2, or 3, ... or 10; ... else, return Hanna if storage is 11, or 12, or 13, or 14, or 15.
  12. A

    TFS 1.X+ [Warning - ScriptingManager::loadScriptSystems] Can not load data/global.lua

    When I remove the funcion 'obtEstima(quem)' from global.lua, then start the server ... 1591283971 The problem is in '=> X and <= Y' How to make it possible: reputation = { [Neutral] = {minStorage = 12000, maxStorage = 20000}, [Aggressive] = {minStorage = 8000, maxStorage = 11999}...
  13. A

    TFS 1.X+ [Warning - ScriptingManager::loadScriptSystems] Can not load data/global.lua

    error: global.lua: function obtEstima(quem) local valorEstima = quem:getStorageValue(ESTIMA) if (valorEstima => 12000 and <= 20000) then return "Neutro" -- neutral elseif (valorEstima => 8000 and <= 11999) then return "Agressivo" -- aggressive elseif...
  14. A

    TFS 1.X+ attempt to index global 'vocation' (a nil value)

    local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) local function removerExaustao(playerID) local player = Player(playerID)...
  15. A

    TFS 1.X+ Attempt to compare number with nil stack traceback

    -- Mining Skill by Ramirow -- Skill System created by Codex NG -THANKS! (https://otland.net/members/codex-ng.213653/) -- For TFS version 1.1 local name = "Mining" -- Name of the Custom Skill local storage = SKILL_MINERADOR -- Storage used to store Custom Skill Levels local minutes = 1 --...
  16. A

    TFS 1.X+ Pick for mining system

    Nice, i've tested and worked!
  17. A

    TFS 1.X+ Pick for mining system

    I made minor modifications to the script, and tried to add the function to remove the stone, but it is not working. Currently the script looks like this: local config = { quarrytype = 19959, -- What is the identity of our stone? hibernate = 20 * 60 * 1000, -- How long...
  18. A

    TFS 1.X+ Pick for mining system

    I've edited the script, and now I've the problem: Script: local stone_id = 19959 function vinteMinutos(toPosition) -- Recreate the stone after 20 minutes. Game.createItem(stone_id, 1, toPosition) return true end function vinteVezes(playerID, targetID, toPosition) -- Repeat this...
  19. A

    TFS 1.X+ Pick for mining system

    I need to adapt this code to be used with a pick. I also need the character to be unable to move for twenty seconds, unable to use spells, unable to attack, and finally, unable to leave the game ... And one more thing ... When the stone is mined, I need another one to appear at the site after...
  20. A

    TFS 1.X+ Addevent - Error!

    Very good, I tested it and it worked.
Back
Top