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

    How to create a lever with time? (exausted)

    In my code, clicking on the lever removes a stone, and the stone comes back in 10 seconds, but if you keep clicking on the lever an error occurs, I would need the lever works again only after 10 seconds. if the player clicks before 10 seconds the lever would not perform any function. (my distro...
  2. Snavy

    [TFS 1.3] Script Optimization - Mount taming

    Hello, OT Plebs. I have written a script for taming mounts and I would like to receive some feedback and maybe optimize it [a bit] with your help. Here's the code: <action itemid="13307" script="mounts/tame.lua"/> <action itemid="13538" script="mounts/tame.lua"/> local config = {...
  3. H

    !pvp on/off

    Good evening, can anyone help me? I'm in need of a script for the player to choose whether it wants to be PVP or NOPVP. I tried to use this one ---> TalkAction - !pvp - own world type! : ) (https://otland.net/threads/pvp-own-world-type.31889/) , but it is giving this error: INVALID EVENT...
  4. H

    Lua I Need help in the script

    Hello Guys, someone can help me? function onStepIn (creature, item, position, fromposition) local player = creature:getplayer() if not player then return end if creature:getplayer player:teleportTo(Position(32722, 32242, 8)...
  5. B

    Help with Images in-game Store 11.xx

    Hello community. Anybody knows how to make appear the little image left on Category_Name? The biggest one is showing normally. Please, if someone can help me. Thanks!
  6. Ashtar

    ShadowRealm Hiring Experienced OTC developer

    What are we looking for? We currently look for a serious, trustworthy experienced c++, Lua programmer with proper understanding of OTC functionality with the ability of editing or developing modules, internal functions and visual features. Requierements: 1. Time availability: For us it is...
  7. massuco

    Solved Stackable Manafluids on 7.72 OTHire

    I was trying to make vials stackable on 7.72 and I preferred to add 2 new items, one manafluid and one empty vial and I got this action script that works like a manafluid, all is working good. but... The problem is that player can use mana fluid on each other, how i can make it no usable on...
  8. Berciq

    Lua TFS 1.3 NPC reward for few ingredients

    Hey supprorters, I have dull problem, I just don't know how to connect all 5 requirements for reward in code line I was always editing script that checks if the item count is higher than 0. Now when I want 5 items to get one reward I don't know how to make them all work together and remove them...
  9. S

    Lua new scripts randomly crash server

    Hello, at the beginning I want to apologize to you for my English, I helped translator.. I need help to detect problem of random server crash, i adding 2 new spells and one weapon probably one or all of them is a problem.. all of them use addEvent() storageReseter.lua - used to reset storage...
  10. -vG

    Lua Npc buy with backpack

    Hello people, when buying rune pack he buys only 20 each packet being 100 runes how can I fix it? TFS 0.3.7 version 8.60 lib -> npc.lua function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount, subType, ignoreCap, inBackpacks, backpack = amount...
  11. S

    TFS 1.X+ player add item

    Hi i'm having some trouble with the lua function player:addItem, if the user have the main backpack full, the item dosent appear in the ground or in the other backpacks
  12. GOD Jose

    TFS 1.X+ Prefix + Name

    Hello Otlanders I'm looking the best way to implement this "prefix" for each vocation. Note: Can be applied for other things like loyalty, or some stuff to show. Example: Character Name: Demos With prefix should be Character Name: [RP] Demos This kind of prefix used to be old war...
  13. Kodak

    Lua Lever Script Problem

    So I'm working on fixing an ORTS issue I've ran into with the Third Seal of the Banshee quest. The levers don't move, have proper uid, but are not working. I've messed with it and can't figure it out. Searched around some, nothing I could find on OTland, but there was a report on the ORTS GitHub...
  14. -vG

    Attack Time

    How can I increase attack time? because when the character attacks the hits are very fast How could I increase this time? TFS 0.4
  15. Kodak

    Lua Equipment from Level Advance

    So I wrote this script using some info I found here on the forums. In theory, it should work as, If Level 20 & No storage value then If Knight/Elite Knight then If Axe > then Sword & Club, give axe weapon Else if Sword > Axe & Club then give sword weapon Else if Club > Sword & Axe then give...
  16. DemShion

    TFS 1.X+ getNextPosition guidance required

    Hello im trying to use the getNextPosition function without success, heres my code: function doCharge(cid, targetcid, index) local creature = Creature(cid) local target = Creature(targetcid) local pathToObj = creature:getPathTo(target:getPosition(), 0, 1, true, true) if...
  17. Asheex

    A script that changes the player's ID Group after use

    Hello, I need a script that will change the player ID group after using the item. For example, after using an item with ID 1750 ID, the group from the player will change to Tutor. So from Group 1 to 2 I need a script that will change player group 1 to tutor group 2 Automatically: <group...
  18. S

    Lua Double exhaust rune

    Hello, is it possible to create a rune which reduces the exhaustion of each type by half for a certain time without source code? If possible, please tell me which set of functions to use to achieve the goal. I'm using TFS 1.2 Thank you for all the answers!
  19. P

    Lua error console npc

    I used OTX2 (Tfs 0.3.7) and not working this script [2/10/2018 1:52:52] [Error - NpcScript Interface] [2/10/2018 1:52:52] data/npc/scripts/simple_task.lua:onCreatureSay [2/10/2018 1:52:52] Description: [2/10/2018 1:52:52] data/lib/100-shortcut.lua:260: attempt to index a boolean value...
  20. villelagui

    NPC Bless Talk

    So, i have all bless npcs on my server, the bless system changes the price depending on the level, till this point it's working great, but the npc always says the wrong price but charges the right one, wanted to know if i can make a math with the basecost + (value per level starting from 30...
Back
Top