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

    Daily Reward TFS 1.3 by Snavy error

    attemp to call field 'pack' (a nil value) I should've provided you this link instead, pack function is added here: https://github.com/otland/forgottenserver/pull/3329/files
  2. Snavy

    TFS 1.X+ gdb error - server crashing

    Check last modified date: ls -alt
  3. Snavy

    Daily Reward TFS 1.3 by Snavy error

    Does not seem to be up to date with the latest version. https://github.com/otland/forgottenserver/blob/master/data/scripts/lib/event_callbacks.lua @Musaab .. However, if you wish to continue with the old version that you currently have, you can move the following part: if...
  4. Snavy

    Daily Reward TFS 1.3 by Snavy error

    🤔 show data/scripts/lib/event_callbacks.lua
  5. Snavy

    TFS 1.X+ gdb error - server crashing

    Im guessing you've called player:sendTextMessage somewhere with invalid parameters. player = 0x7fffdf605a60 parameters = 3 message = { type = MESSAGE_STATUS_CONSOLE_BLUE, text = "[RANDOM BOSS]: Boss dissapears in 2 minutes if not killed.", position = {x = 0, y = 0, z = 0 '\000'}...
  6. Snavy

    Lua Snavy & Levi - Free Scripting Service - TFS 1.3

    Obtainable random reward every 24h: ---[ CUSTOM FUNCTIONS ]--- local function getTableLength(t) local count = 0 for k, v in pairs(t) do count = count + 1 end return count end local function secondsToReadable(s) local hours = math.floor(s / 3600) local minutes =...
  7. Snavy

    Solved Search character name error !

    Which aac & version?
  8. Snavy

    Lua Clickable item if you have a certain storage value

    Since both STORAGE_CHEST_OPENED and STORAGE_PERMISSION seem to be using the same key 50039, I removed one of them. Assuming players have to complete some other task and get atleast storage value 1 before using this chest: local config = { STORAGE_CHEST_OPENED = 50039, itemId =...
  9. Snavy

    Lua Clickable item if you have a certain storage value

    Permissions should be given when value of 50039 is 3 ? I don't think I understand what you are saying. The following line is only going to allow you if you have 4+ if player:getStorageValue(config.STORAGE_PERMISSION) <= 3 then if you want it to allow when you have 3 then change <= 3 to < 3
  10. Snavy

    Lua Clickable item if you have a certain storage value

    if you wanna use actionid replace a:id(36292) -- use item id with a:aid(36292) -- use actionid
  11. Snavy

    Lua Clickable item if you have a certain storage value

    Improved readability
  12. Snavy

    Lua Clickable item if you have a certain storage value

    local storageValue = 50033 local reward = {2160, 10} local a = Action() function a.onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) if player:getStorageValue(storageValue) <= 0 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You don\t have the storage.')...
  13. Snavy

    TFS 1.X+ [tfs 1.3] How to get all tiles with aid between 2 distances?

    🤔 local config = { actionid = 12345 } ----[ HORIZONTAL LINE ]---- local posA = Position(1000, 1000, 7) local posB = Position(1005, 1000, 7) for x = posA.x, posB.x do local tile = Tile(x, posA.y, posA.z) if not tile then return end local ground = tile:getGround() if...
  14. Snavy

    Action [1.3] Minecraft style crafting-table 🛠

    How to setup Create 3x3 areas place a lever on the desired side of the area. (North, West, South or East). set actionid according to where the lever is relative to the center of the area. These actionIDs can be configured in the config part. global.lua data/scripts/craftingtable.lua...
  15. Snavy

    [Warning - Monster::Monster] Unknown event name

    Assuming you're on linux. Use the following to see where that is used: $ cd data/monster $ grep -Ril "incendio" ./
  16. Snavy

    MoveEvent [1.3] Snek 🐍

    🤔 Have you confirmed that all positions are correct? try this instead : local headPosition = Position( config.SNAKE_SPAWN_POS.x, config.SNAKE_SPAWN_POS.y, config.SNAKE_SPAWN_POS.z )
  17. Snavy

    MoveEvent [1.3] Snek 🐍

    That happens when headPosition is wrong. I don't remember why I used control pos to calculate where snake would spawn while having it in config already 🤦‍♂️ try changing local headPosition = Position( config.CONTROL_POS.x - 1, config.CONTROL_POS.y - 1...
  18. Snavy

    MoveEvent [1.3] Snek 🐍

    Have you added invisible tile above snake area? (CONTROL_POS)
  19. Snavy

    Lua Help

    change memoryShards:id(shardIds) to memoryShards:id(unpack(shardIds))
Back
Top