• 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. 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...
  2. 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...
  3. 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 =...
  4. 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...
  5. 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...
  6. 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()...
  7. 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...
  8. 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...
  9. 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}, }...
  10. 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...
  11. 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