• 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

    RevScripts onKill event

    I'm a little rusty, can anyone help me improve this code? What is happening is that if the second onwards kills the monster he is inserting it several times in the table, and I need to block to insert only once. function killMonsterHunter.onKill(creature, target) local monster =...
  2. darkmu

    C++ debug a specific bag

    When players are getting the initial reward (druid, sorc , knight or paladin) some are taking debug only on the bag they are using, in case if they removed their bag for a new one it doesn't happen anymore. You see a backpack (Vol:20). Imbuements: (Empty Slot). It weighs 551.06 oz. Item ID...
  3. darkmu

    Lua check action id onCastSpell()

    TFS 1.4 I'm trying to validate when attacking a rune, check if the rune has the actionID, if it has its attack it will get stronger, can anyone help me? local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT...
  4. darkmu

    Compiling ubuntu 18.04

    terminate called after throwing an instance of 'std::invalid_argument' what(): stoi Aborted does anyone know how i can fix it?
  5. darkmu

    Lua remove player in boss room

    What is happening is that this function is removing players out of nowhere when they rotate the bosses on my server, as I have an area only of bosses so they can do several, and when a certain boss arrives it simply throws them out of the room . local config = { bossPosition = Position(532...
  6. darkmu

    otservlist it's not loading everything

    Can anyone tell me if this is the only place here?
  7. darkmu

    Windows client 10x not loging

    Ubuntu 18.04 Tfs 1.x Proxy System Cloudflare. Tibia 12.86 My OTC clients, 12X are coming in normally, but always my 10x it just shows the character list and doesn't come in, could anyone give me some suggestion of what it could be? The same IP I'm using on OTC I use on 10X.
  8. darkmu

    Lua batlefield 4x but 2x

    I'm using this system, but I've reviewed them 4 times and only 2, but I'm having some errors. https://otland.net/threads/tfs-1-x-battlefield-event-4-teams-version.270998/ local function getLowSize(tb) local temp = {} for i = 1, #tb do temp[i] = {team = i, size = tb[i].size} end...
  9. darkmu

    OTClient mount limit

    I can only see up to this mount, but my server is on version 12.71 and on the other clients I can see all the mounts. Client 12.71 (CIPSOFT) Does anyone know how I can add more mount in otc?
  10. darkmu

    Lua isInArray problem ! (Example: dwarf name, tortoise)

    This is my table: TFS 1.X [120] = { killsRequired = 210, raceName = "Tortoises", creatures = {"tortoise, thornback tortoise"}, rewards = { {type = "experience", value = 15750}, {type = "money", value = 6500}, {type...
  11. darkmu

    OTClient sell all when disconnect (bugl)

    TFS 1.X Can anyone help with this solution? The player is going to the NPC (hi, trade) and disconnecting wifi and connecting very fast this makes him able to infinitely buy/sell all items using "sell all". local keywordHandler = KeywordHandler:new() local npcHandler =...
  12. darkmu

    Lua addevent debbug

    What is happening is that if they pull the switch and people leave the waiting room it just crashes the server, does anyone know a solution for this? local t = { Position(299, 219, 10), -- Alavanca } local function backLever() local tile = t[1]:getTile() local alavanca =...
  13. darkmu

    Lua manipulating os.time()

    I'm trying to make a system that he will be signaling the time for the next opening of the castle, could someone help me with this solution? TFS 1.X local warCastle = { ['Sunday'] = { timeOpen = '22:00' }, ['Tuesday'] = { timeOpen = '22:00' }, ['Friday'] = { timeOpen = '22:00' }, }...
  14. darkmu

    Lua bad argument #1 to 'pairs' (table expected, got number)

    I'm using the same script on windows (test server) and on my server (linux), but when I kill the dungeon monsters on the linux server, it keeps giving this error, does anyone know how to solve it? Lua Script Error: [CreatureScript Interface]...
  15. darkmu

    Lua how to access the table array?

    I want to try to access the table according to the name of the monster it will respawn in a certain area. config = { [{'demon, demon skeleton'}] = { fromPositionArea = Position(1001, 780, 7), -- fromPosition toPositionArea = Position(1097, 871, 7), -- toPosition }...
  16. darkmu

    Lua string manipulating

    Would you like to know how I make a function get my mount's name from an item description? TFS 1.X Mount: Cavalinho by [ADM] Veteranos but this name "Cavalinho" is dynamic or it can change always, is there a possibility? I would only need to return the name "Cavalinho"
  17. darkmu

    Lua kill boss points duplicate

    FOR TFS 1.X What is happening and that sometimes when the boss is killed by a lot of people, he is sending several boss points, where did I go wrong? -- ALTER TABLE `players` ADD `boss_points` INT(6) DEFAULT 0 function addPontosBoss(playerID, pontos) local resultId =...
  18. darkmu

    Lua player:addItem not accepting pagination

    The function to add item to the player is not respecting my backpack with pagination. TFS 1.3 instead of going to the second page of my backpack it just falls to the floor.
  19. darkmu

    Lua when the player dies he loses the condition

    When the players use the potion, when they die automatically they lose the condition, does anyone know how I can solve this? local critical = Condition(CONDITION_ATTRIBUTES) critical:setParameter(CONDITION_PARAM_TICKS, 30 * 60 * 1000)...
  20. darkmu

    Lua add loot corpse monster

    https://otland.net/threads/tfs-1-1-extra-loot-system.230102/ I'm trying to adapt the script above so that instead of the items go to the player, in which case I would add the item to the animal's body, could you help me? local extra_loot = { {hasName = {"infernal demon", "infernal...
Back
Top