• 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!

1.4.2

  1. srunobantana

    [TFS1.4] Teleportation System for Trade Center with Entry and Exit Portals

    Note: ChatGPT was used to format and optimize the code, as well as to add prints and comments in both Portuguese (my language) and English (forum language). Apologies for the large code; feel free to delete what you don't need. About: The player enters the portal and will always return to the...
  2. srunobantana

    [TFS 1.4.2] Installing and Compiling TFS on WSL (Windows Subsystem for Linux)

    Tutorial: Installing and Compiling TFS on WSL (Windows Subsystem for Linux) Step 1: Install WSL on Windows Open CMD in Windows as an administrator (Search for "Command Prompt" in the Start menu, right-click it, and choose "Run as administrator"). Install WSL by running the following command...
  3. Paxiz

    RevScripts Use itemid2 on itemid1 then make itemid3

    I need script: If i use item with ID 2222 on item id 1111 then i got item id 3333 But it possible if player have storage 5555 with value 3. If player dont have storage 5555 or have value 2 or lower then cancel message "You cant make it". Example: old enchant spike sword to fire spike sword but...
  4. ShadowProwl

    TFS 1.X+ MySQL errors

    I get these errors on console every few days. Can someone explain what they are and how to fix them? Should I be concerned about any of them? [Error - mysql_real_query] Query: SELECT `reason`, `expires_at`, (SELECT `name` FROM `players` WHERE `id` = `banned_by`) AS `name` FROM `ip_bans` WHERE...
  5. Obito

    Lua How to check a player's specific house by ID

    Hi, I'm trying to figure out how to check if a player has a custom house by name, not any house only a specific one, and if so, how to get the location of that house. Additionally, I need to create a custom item that only the owner of a custom house can use. Specifically, I need to be able to...
  6. Obito

    Lua Making the damage scale based on player's skill stats.

    Hello :) , I'm currently working on a script for my server and I would like to make it scale with damage. Specifically, I want the script to deal more damage as the player's stats skills increase. However, I'm not sure how to implement this. Currently, my script looks like this: local combat =...
  7. Obito

    Lua deco npc errors

    I have this deco NPC script and it gives me an error while I talk with the NPC Lua Script Error: [Npc interface] data/npc/scripts/furniture.lua:onCreatureSay LuaScriptInterface::getNumber(). Argument -1 has out-of-range value for unsigned int: -1 stack traceback: [C]: in function...
  8. Obito

    Lua buying items with znote points

    Hey everyone, I'm in need of some help with creating a script that will allow me to buy items directly without actually making a purchase. I have a table of desired items and the points that I have purchased from Znote AAC, but I need some guidance on how to create a command that will use this...
  9. Obito

    Lua Check other members of party

    Good day :), I'm working on a script for a game that involves casting a spell at a party. The idea is that the spell can only be cast if all party members are within a certain distance of the caster. This my code: local DISTANCE_SQM = 2 local combat = Combat()...
  10. Obito

    TFS 1.X+ block revealing the monster when they are in an invisible condition

    Hello! As the title suggests, I'm wondering how I can prevent monsters from being revealed when they are in an invisible condition after being hit by a spell. Additionally, I'd like to keep them invisible until the player uses the spell "utana vid" to reveal them. Currently, my approach to...
  11. Obito

    Lua Storing old outfit in some variable to cast it in another script

    Good day, I'm trying to store a variable that captures the player's "old outfit/looktype" so I can revert back to it later if needed. I have created a new condition that changes the player's outfit, but I need to keep track of the previous look. Can you help me determine the best way to store...
  12. Obito

    Lua Remove an item by count from a specific tile

    Hi, I was trying to remove an item with a heavy count of stacking items. I need to remove the item by count from the table on this element but it's not working as intended. local items_to_check = { {id = 7372, count = 2000}, } local TILE_POSITIONS = { {x = 996, y = 996, z = 7}, }...
  13. Obito

    RevScripts Print unique message from the table in default drop loot script

    I'm trying to print a unique message for the monsters that are in the table if the player killed, For example when I killed Archmage monster this error appear Lua Script Error: [Event Interface] data/events/scripts/monster.lua:Monster@onDropLoot...
  14. Obito

    TFS 1.X+ Attack speed with Lua

    Does TFS 1.4.2 have an alternative attack speed function that buffs the player's attack speed such as doPlayerAddMana(cid) for example without touching the vocation.xml?
Back
Top