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

    Event onStepIn not found in movements

    Hello. I'm trying to create a complete working server with latest content possible. I'm total rookie in terms of coding, so I'm basically learning while working on this project. If you want to contribute PM me. I'm not making server for money, actually I'm not gonna set up server for players...
  2. K

    Increase amount of dropped gold from monsters

    Hello! So basically when for example in mummy.xml file I have: <item id="3031" countmax="100" chance="400" /> <!-- a gold coin --> It drops a random amount of gold. Sometimes 10, 20 and sometimes 100. I want to make it dropping around 60-100 gold, but as I though and tested there is no...
  3. falls13

    help with this script

    I would like to fill the mana of the player who is using the weapon that is with this script. but it is filling that of the target. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)...
  4. M

    Knight Spell REP++

    Hey guys, if someone can help me, how can I make a spell, in which it's only available for either knight or vocation 4-8. I don`t want to write her and activate, I want her to be unique to the character without nothing to activate. Well, when the Knight's health is below 30% his total health, he...
  5. M

    Help I've not located - C++/LUA

    I know it's available in the forum. But I couldn't find... If you find or can do I'll be grateful I USE TFS 0.4 1 - Message before the monster sends spell ---- Like Gaz Haragoth... 2 - Monster Spell Disarm Player weapon, the weapon goes to backpack... 3 - Spell of the character It is not...
  6. Loremaster7

    How to do spell "ultimate explosion" with paralyze?

    "exevo gran mas vis" para "exevo gran mas ina" não funciona o paralyze ... (my distro is The OTX Server Version: (2.X.S - 4) Otserver 7.72) my code: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatFormula(combat...
  7. 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...
  8. 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 = {...
  9. 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...
  10. 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)...
  11. 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!
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. -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...
  17. 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
  18. 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...
  19. 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...
  20. -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
Back
Top