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

    teleporting Chest?

    Looking at data/talkactions/scripts/create_item.lua, it looks like Player:addItem() returns nil if it didn't add the item and the added item's userdata or a table of userdata values on success, so you could do like so: local c = { itemId = 2148, amount = 1, newPos = {x = 677, y = 639, z = 7}, }...
  2. forgee

    TL:DR version of: The Monks and the sound.

    Then tell me how I can become a monk.
  3. forgee

    [10.77][TFS 1.2] ORTS, a real map project

    https://otland.net/threads/video-tutorial-from-nothing-to-a-fully-working-ot-server-website-and-shop-system.166818/
  4. forgee

    Lua addEvent(callback, time, ...)

    It's not safe to pass a userdata value to addEvent. If the object linked to that userdata, in this case the creature, doesn't exist any more, ex. player logged out, when the event callback is fired, the server will crash. Best practice is to pass the creature id to addEvent and construct it...
  5. forgee

    Znote AAC 1.4 - [TFS 0.2.13+] & [TFS 0.3.6+/0.4]

    A simple way is to go to yourdomain/credits.php, if you see a list of GitHub contributors with avatars, you have cURL enabled. I have never set up PayPal myself, so I can't help much more than that I'm afraid.
  6. forgee

    Solved NPC's gives person 2 golden nuggets and other Error! :)

    It's this line: doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect) coin.to for crystal coins is 2157 (I'm assuming golden nugget), but there is no field in the table with that index. Either you use the effect (textcolor) from the coin you used, coin.effect, or add golden nugget to...
  7. forgee

    Solved NPC's gives person 2 golden nuggets and other Error! :)

    Which version of TFS are you using? The error says it's in changegold.lua, not Changenugget.lua, and there is no line 26 in that script. Looks like Changenugget.lua is for changing nuggets to crystal coins and not the other way around. Could you post data/actions/scripts/other/changegold.lua?
  8. forgee

    How popular are you?

    11/10
  9. forgee

    Problem Start Server Linux

    > ERROR: Failed to connect to database. Do you have a MySQL server running and if so, have you set the username and password in config.lua? https://github.com/otland/forgottenserver/blob/master/config.lua#L59-L64
  10. forgee

    Lua AddEvent - Callback parameter should be a function.

    The function placeStone is defined as function placeStone(placeStone, item, cid) taking 3 parameters, placeStone(unused), item(unused) and cid. In addEvent, as pointed out by @whitevo, the arguments are in the wrong order, but aside from that you're only passing item and cid. This results in...
  11. forgee

    Znote AAC 1.4 - [TFS 0.2.13+] & [TFS 0.3.6+/0.4]

    I'm writing this on my phone, so bear with me (I can't seem to make a new line so sorry about that). Find header and footer (no # or .) and add min-width: 1000px; to both. Leave width as it is, just add min-width.
  12. forgee

    Compiling TFS 1.1 on Raspberry Pi or Debian 7

    So not the RAM. Looks like the same error as these: https://github.com/otland/forgottenserver/issues/1325 https://github.com/otland/forgottenserver/issues/1404 https://github.com/otland/forgottenserver/issues/1400 Seems to be something to do with Cotire. There are some suggested solutions, see...
  13. forgee

    Compiling TFS 1.1 on Raspberry Pi or Debian 7

    Looks like you might be running out of RAM. Could you provide some more information? What system are you working with? Are you using a Rapberry Pi or a regular PC with Debian? How much RAM do you have? You can run the command 'free -m' to see how much free RAM you have. I don't know how much...
  14. forgee

    Linux [Debian 7] Error compiling tfs

    https://otland.net/threads/compiling-tfs-1-1-on-raspberry-pi-or-debian-7.229256/ Just ignore the stuff about Raspberry Pi and start from where it says "We need to get gcc from the jessie repositories".
  15. forgee

    Linux Website smtp issue

    I'm pretty sure you can't use Google's smtp server with a Yahoo account. You don't usually include the ssl protocol prefix in the URL either, but I can't say for sure. http://support.sliqtools.co.uk/kb/a32/smtp-email-settings-to-send-from-yahoo-email-addresses.aspx Try smtp.mail.yahoo.co.uk
  16. forgee

    Lua TFS 1.0 balance teams

    I would use variables containing numbers instead of 'blue' and 'red'. Something like this: local BLUE, RED = 1, 2 setPlayerStorageValue(cid, configRushEvent.storages.player, doCountPlayersRushEvent()[3] >= doCountPlayersRushEvent()[2] and BLUE or RED) function doCountPlayersRushEvent()...
  17. forgee

    Lua TFS 1.0 balance teams

    In TFS 1+ storage values may only be numbers, so you can't set the storage to 'red' or 'blue'. Any string seems to result in the value being set to 0.
  18. forgee

    Critical System tfs 1.0

    Actually it was originally called onChangeHealth in TFS 1.0: https://github.com/otland/forgottenserver/commit/4343f34041ad735e799dafe13bf231d27f9ff62b#diff-998806a0c9368f2516d632e390ab82fe @secondlife seems like your build is quite old. If you want to stay with 1.0 you should use this...
  19. forgee

    Solved Movements.xml stepIn trap, nil value, creature not found.

    I'm very bad with old TFS revisions but I only re-arranged the code you had. It should hit any player standing on the area when the timer ends. I would probably put the distance effect in the addEvent function too so the animation is also delayed the same amount as the damage, but that's up to...
  20. forgee

    Solved dir /b /aa

    As @dominique120 suggested, this works fine on Ubuntu 14.04: local tmp = assert(io.popen('find . -maxdepth 1 -type f', 'r')) for line in tmp:lines() do print(line) end tmp:close() Replace the dot with the path you want to search.
Back
Top