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

    NPC [TFS 1.X] NPC Addons (Modal Window)

    For those who like ModalWindow, I made a system for addon. Be at the discretion of you to help improve my system, sorry I am still not so good at making perfect systems. Locate this function in your global.lua or if you don't have it, dependency on some file in your lib function capAll(str)...
  2. darkmu

    Lua upgrade system (return nill)

    BUT.. USE WITH ON SHIELD
  3. darkmu

    Lua upgrade system (return nill)

    TFS 1.3 local conf = { ["level"] = { [36038] = { [1] = {successPercent = 99, downgradeLevel = 0, lossItem = false }, [2] = {successPercent = 99, downgradeLevel = 1, lossItem = false }, [3] = {successPercent = 99, downgradeLevel = 2...
  4. darkmu

    Lua antiTrash - antiTheft system

    I tried it the first time and it worked, however, when I deactivate and activate it again, I simply try to make a query in the table player_storage does not return anything else. MY EVENTS player.lua local tilePosition = Tile(toPosition) if tilePosition then local...
  5. darkmu

    Lua OnAdvanced Skills

    I wanted instead of using the callbacks of the onAdvanced function (newLevel, oldLevel) if I can use an onAdvanced callback (newSkill, oldSkill) .. because when he goes up in skill You advanced sword fighting 51 to 52., he should be presented on the server channel.
  6. darkmu

    Lua OnAdvanced Skills

    function onAdvance(player, skill, oldLevel, newLevel) Can I get no advanced checking skills like? In my case when the player moves up I wanted to advertise on the channel .. can someone help me? TFS 1.3
  7. darkmu

    [EVENT] antiTrash - antiTheft system for houses [TFS 1.x]

    local antiTrash = true local antiTheft = true if antiTrash then local tile = Tile(toPosition) print(title) print(tile:hasFlag(TILESTATE_HOUSE)) if tile and tile:hasFlag(TILESTATE_HOUSE) then local house = tile:getHouse()...
  8. darkmu

    C++ Skull Monster 12.x

    Can I somehow enable the monsters to have skulls on them? Without the need to appear only in the Battle List, if so .. could you give me what to do? TFS 1.3 OTC & Tibia 10. TIBIA 12.X
  9. darkmu

    Lua unify in the same spell

    I wonder if you can help me unify Prince Drazzak's spell. In this case, he would randomly choose a vocation to give the maximum damage, without the need to create several separate spells for each type of vocation. TFS 1.3 local storage = 674531 local voc = {1, 5} arr = { {0, 0, 0...
  10. darkmu

    Lua Random Spawn in arena

    I looked at the zombie arena and managed to get the function they use, thank you very much function _CHAMPARENA_LH.getRandomSpawnPosition(fromPosition, toPosition) local random = math.random return Position(random(fromPosition.x, toPosition.x), random(fromPosition.y, toPosition.y)...
  11. darkmu

    Lua Random Spawn in arena

  12. darkmu

    Lua Random Spawn in arena

    I am trying to do a function to adapt my system, it is an arena and inside the arena will summon several monsters in random spaces, however I am not able to make them sum up in space and only in place. TFS 1.3 _CHAMPARENA_LH = { monsterPos = {x = 130, y = 362, z = 7}, arenaCenter...
  13. darkmu

    player attacking summon (pet)

    What is happening is that the spells in areas are attacking the pet (summon) even with an open hand, in which case I would like you to attack the summons only when the person closes the hand. TFS 1.3 creatures.lua if ((target:isMonster() and self:isPlayer() and target:getType():isPet()...
  14. darkmu

    Lua unjustified points (skulls)

    I don't have any table named killers
  15. darkmu

    Lua unjustified points (skulls)

    same thing, took out my red skull but on the next player I kill I get red skull again.
  16. darkmu

    Lua unjustified points (skulls)

    I am currently using the skull remover, but I found that it also removed all the frags from the player. But what is happening and that whenever he uses the item after he kills the next player he goes back to get skull again (red skull), is there any way I can reset his entire frag? TFS 1.3...
  17. darkmu

    Lua unpause and pause os.time() ?

    What I am wanting to do is a way to pause the os.time () count using the talkaction command as described in the code. When he uses the command "!Master off", I would have to keep the value of os.time () in a variable and as soon as he uses the other command "! Master on" he would take this...
  18. darkmu

    Lua unpause and pause os.time() ?

    local config = { [40018] = {time = 8}, [40019] = {time = 12}, [40020] = {time = 24} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local treino = config[item.itemid] if not treino then return false end if...
  19. darkmu

    Lua unpause and pause os.time() ?

    The way I'm doing it is possible to pause time ??? In case I don't know why it is returning me negative .. function onSay(player, words, param) local split = param:split(",") if split[1] == nil then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[MasterTreino]: Os comandos...
  20. darkmu

    Lua unpause and pause os.time() ?

    I was always curious to know if there is any native function in LUA or if we need to come up with a logic so that I can pause os.time upon logout and return os.time upon login. I was thinking of creating a normal storage where it will be stored the value of os.time () and an os.time (), there...
Back
Top