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

lua

  1. potinho

    Lua [TFS 0.3.7] Item that completely fills mana and life

    Hello everyone, everything good? I need a script to put in an item (action on use) that fully completes a player's mana and life (like the new tibia foods). can you help me?
  2. potinho

    TFS 0.X Upgrade System - Error sometimes

    I have one craft + upgrade system, works well but upgrade item got error sometimes in console. Can you guys please can help me to fix this? Follow files: lib\upgradesystem.lua --[[ PERFECT UPGRADE SYSTEM 2.0 Criado por Oneshot É proibido a venda ou a cópia sem os devidos...
  3. U

    GFB - DMG

    Hello, when i throw Gfb on a group of monsters they all get the same Dmg. Has anyone Ideas for a solution to make each monster receive random damage from Min, Max? Gyazo : Gyazo (https://gyazo.com/bd4f5912535be20779f58ce736e36b15) local combat = Combat()...
  4. 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...
  5. Q

    TFS 1.X+ Decrease player skill

    Hi, I'm playing with onEquip and onDeEquip methods and I want to add player a skills when he is wearing full set ( let's say leather set ) and decrease on unequiping one of the item from set. Is it possible? I was playing with : player:addSkillTries(SKILL_CLUB...
  6. potinho

    Lua NPC Guide understanding more than one word

    Good afternoon people, I'm using a script from an NPC Guide that works fine, but it only understands one word of hunt. I would like to put both singular and plural, eg ["Runes"], ["Rune]", ["Runas"], etc. I tried that way but it didn't work, could you help me? -- City Guide, adding mapmarks to...
  7. rizosoft

    Lua Task System TFS 0.2

    Hello all, reaching out looking for an experienced scripter with TFS 0.2. Yes i realise it's an old version, however we have no plans on updating as for the most part we have it just as required. The first request i make is that of a Task System, details below. Should i be lucky enough to...
  8. 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 =...
  9. Raikou

    TFS 1.X+ onKill script get's triggered more than once

    Hello all, I got a problem with getting the onKill event triggered more than once. Several checks have been done and my conclusion is that the script gets triggered several times. The script is called within the creaturescript: <event type="kill" name="Bosskill" script="Bosskill.lua"/>...
  10. Yan18

    TFS 1.X+ [TFS 1.3] - How to Get the Name of Player Summons When They Die

    Hello guys! I need a little help. I need to get the name of summons when a player summon die. I tried with onPrepareDeath and onDeath, but I haven't any results :(. How can I do that?
  11. potinho

    TFS 0.X Dark Rodo selling bp of manafluid

    Hey guys, I have a Dark Rodo on my retro server, it sells manafluids in the amount the person wants, but I would like him to sell a backpack of manafluid, could you help me do that? Here's his .LUA file. local keywordHandler = KeywordHandler:new() local npcHandler =...
  12. Syiko

    Programmer Jerop's Services

    I'm a software engineer fourth year at engineering faculty. Since ten years i am working at 860 version. I have a big database of maps / scripts / websites. I have contributed in making new scripts such as (Depot Password - Death tiles - Mount system for 860-Anti push max (ELFBOT/ Magebot) )...
  13. Alkenyx

    TFS 1.3 - Implementing Quiver Problem

    Hello Folks. I'm trying to implement a quiver for pallys but my bow don't want to shoot. https://otland.net/threads/quiver-tfs-1-x-0-x.264070/page-2 Working with TFS 1.3.
  14. potinho

    TFS 0.X VIP scroll for Acc

    Hello people, I have a VIP Scroll script that works well and suits my needs, however it only makes the player VIP, not the entire account. How to change to my VIP scroll action give vipStorage (30009) for all characters of the same acc? Im using TFS 0.4. Follow my action. local vipStorage =...
  15. Silba

    C++ [C++/Lua] Percentage level range for pvp-enforced exp instead of flat level range

    Hello I would like to modify the source code or create a script which will allow me to set the level range for pvp-enforced experience to be based on a percentage rather than the normal level range which never changes. Right now in config.lua I have expFromPlayersLevelRange = 80 and this is...
  16. Kuantikum

    OTClient Compiling

    Hello guys, Im trying to compiling OTCLIENT "edubart/otclient" and i get this erros. What I've done ? I followed the guide edubart/otclient (https://github.com/edubart/otclient/wiki/Compiling-on-Windows) Additional directores i have linked: and Log errors: Rebuild started... 1>------...
  17. G

    Lua 7.6 How to make a NPC who changes outfits for Players?

    Hello I have a problem with a Script. GM/Admins can change outfits by the command /outfit. Example: /outfit Name, 2 (Orc Warlord) Now I wanted to add a NPC who changes outfits with this command. The problem is that when the npc says this command, the server crashs. With Admin or GM it works...
  18. Codinablack

    TFS 1.3 Functions List June/2021

    Hey everyone, I know this list is long sought after, and that many people just want to tell everyone to look in luascript.cpp, but if you are like me, that is still more time and bs than its worth, I prefer an old school text or lua (syntax highlighting thank you) file with a LIST of the...
  19. M

    Use item on chest

    I'm trying to make like rl tibia, so you can use crystal sword on chest to get goolem wrench. as it working now, It removes the chest on fail/succeed. I want the chest to stay. so only the crystal sword (7449) only get removed ------------ -- Alternative to no-magic style. -- Description here...
  20. Magich

    [WIP] Lua API

    Hello there!! I'm working together with @Evil Hero on something new and thought we could share a sneak peek with the community. @Znote has also contributed to this, so I decided to use Znote AAC for the early development. If everything goes well, it should be usable in other AACs as well in the...
Back
Top