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

script

  1. potinho

    Lua [TFS 0.X] Talkaction that sends items to the Depot

    I need a talkaction that sends a certain item (my choice) to the DP of all players (online and offline). I've tested some but they have some bugs or don't work. can you help me? Talkaction example: /additem 2160,10 Add 10 crystal coins (id 2160) for all players.
  2. volcomfaria

    Lua How to format gold coins

    Hey guys! I wanted to know how I could format a quantity of gold coins and show a message with the amount separating the "kk", "k", "gold coins". Exemple: number: 1255100 The message that will appear : "1kk, 255k and 100 gold coins." I've been trying for a while but with no success. Thanks...
  3. volcomfaria

    Lua how to add the weight of all items

    Hey guys! I would like to know how to add the weight of all items. Can someone help me? In case I'm trying to do in this script: function onUse(player, item, fromPosition, target, toPosition, isHotkey) local items = {} if player:getVocation():getId() == 1 then items =...
  4. Cebal

    Lua [tfs 1.3] combine 2 items NPC

    Hello guys! Maybe someone will be able to help with with a pretty simple script. Im looking for NPC which can combine 2 specific items to 1 other item. It would be nice to have an option to talk to this NPC and if I have 20 of each items I could exchange 20 at once, or less. Thanks!
  5. potinho

    Lua [TFS 0.3.7] Mana rune Show healing quantity

    Hello guys, i want to do something on my server: when i use UH rune, it shows quantity of healing (in the case bellow 2748), i want to mana rune shows too. ultimate healing rune.lua local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)...
  6. potinho

    Lua [TFS 0.X] Talkaction to eat food and cast spell

    I played a very interesting server (tibia-old.com) that had a talkaction system that worked like this: !auto >> 20:26 Parameters are necessary: !auto spellwords, requiredManaToUse>. Use <!auto off> or <!auto exura, 25> for example. !auto exura,2000 >> 20:27 You are also automatically eating...
  7. potinho

    TFS 0.X Autoloot MOD - Issue with Stone Skin Amulet

    I have an autoloot MOD that seems to work fine, but I discovered a problem: when I kill a monster and it drops an SSA, if I don't have the autoloot turned on it comes with 5 charges. If autoloot is enabled, it only comes with one charge, how do I fix this? autoloot.xml <?xml version="1.0"...
  8. potinho

    Lua [TFS 0.3.7] NPC that sells item for different coin.

    I have a custom coin on my server (ID 5263) i want to create a NPC who sell some stuffs by this coin. IDs of some those itens: 5271, 5272, 5273, etc.
  9. potinho

    Lua [TFS 0.3.7] Exclusive use for first player

    Hello everyone, everything good? I created an outfit mechanic for my old server, where when using an item the player gets a specific looktype. The problem is, since the item cannot be removed, it can be loaned to anyone. Is there a way for the item to be exclusive to the first player who uses...
  10. potinho

    Save backpack organization

    Is there any way, in OTCv8, to save the organization of the player's backpacks, so he doesn't need to open them all again when logging in? If so, could you show me how to do it? I dont know if a relevant information, but im using OTX 2 (TFS 0.3.7).
  11. potinho

    TFS 0.X Autoloot Problem

    Hello everyone, everything good? I would like to help you guys with a problem: I have an autoloot script that works very well, but I discovered a problem: one player didn't sell the loot he collected for a few days and his loot backpack reached 99000oz. After killing an animal (I think because...
  12. D

    sqm which adds effect to the player when passing by

    I need to change this script so that the player gains an effect when stepping on 2 different sqm and when the player dies or disconnects, the effect is removed. The script to be changed below | | V effect.lua local effect = 30 -- Effect that...
  13. D

    I need to remove the outfit change from this script.

    I need to remove the outfit change from this script -- OutFit Type / Color TEAMS_SET = { {lookType = 128, lookHead = 0, lookAddons = 3, lookLegs = 76, lookBody = 94, lookFeet = 0}, -- Team I OutFit {lookType = 128, lookHead = 0, lookAddons = 3...
  14. potinho

    TFS 0.X Exp Scroll - Not Working

    Hi guys, I have two exp scroll, one that is sold on the website (1.5 exp) and another in game (1.3 exp). What is sold on the site is not working after the character logs out and comes back, could you help me? EXP Scroll who works: Exp Scroll who not working after logout and login in...
  15. potinho

    TFS 0.X Action - Restrict use item by storage value

    Hi guys, I have this action local config = { effectonuse = 28, -- effect (/z) levelsdodge = 100, --- Maximum dodge you can use storagedodge = 48902 -- storage verification } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid...
  16. potinho

    TFS 0.X Dodge System - not working

    Im using this Dodge System https://otland.net/threads/dodge-system-tfs-0-3-6.250605/ But im taking hit from monsters when "Dodge" message apppears, i put to print result on console and the result is the hit im taking: local lvldodge = 48902 local percent = 1 function onStatsChange(cid...
  17. potinho

    TFS 0.X Upgrade Staff - Prevent use itself

    Hello guys, I have a working script for an upgrade staff (upgrade system), the item has the ID 5114 and I want it to be impossible for players to use it on it, could you help me? function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then return...
  18. potinho

    TFS 0.X Manarune Problem

    I have a manarune script that works fine, but there's a problem: if I use the rune on me it works as expected, but if I click on the rune and on another player (to add mana to the other player) it gets added to myself (character who uses the rune). local combat = createCombatObject()...
  19. potinho

    Lua [TFS 0.3.6] City Guide - doPlayerAddMapMark

    Hello everyone, everything good? I tried using the guide script below, which would help me a lot. But when the NPC mark the position on the map, it gives the error below on my console. can you help me? https://otland.net/threads/city-guide-adding-mapmarks-to-locations.166422/ npcguide.lua...
  20. potinho

    Lua [0.X]Temple TP Script

    Hello guys, I have this teleport script to the temple, but I would like to improve it: cooldown (in hours) put message on screen when using Item disappears when used can you help me? function onUse(cid, item, frompos, item2, topos) ppos = getPlayerPosition(cid) temple =...
Back
Top