• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. M

    TFS 0.X NPC that buys and sells if you have Storage

    local itemList = { [1] = { name = "scimitar", id = 2419, price = 150 }, [2] = { name = "giant sword", id = 2393, price = 17000 }, [3] = { name = "serpent sword", id = 2409, price = 900 }, } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler)...
  2. M

    Lua [ACTION] DECAY ITEM if AID=?

    function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.actionId == 2700 and getPlayerStorageValue(cid, 2700) < 1 then doTransformItem(itemEx.uid, 2968) doDecayItem(itemEx.uid) end end 1669941377 <item id="2968" article="a" name="tree"> <attribute...
  3. M

    OTClient ERROR: Unable to send extended opcode 201, extended opcodes are not enabled on this server. otv8 tfs 1.5

    You have some module trying to send a packet to the server and the server does not recognize this packet.
  4. M

    Lua -=[TFS]=- v0.4 v8.60 [GLOBALEVENTS] Auto-Message I want to change server log to Default, with green letters HELP!

    MESSAGE_STATUS_CONSOLE_BLUE = 4, -- FIXME Blue message in the console MESSAGE_STATUS_CONSOLE_RED = 13, -- Red message in the console MESSAGE_STATUS_DEFAULT = 17, -- White message at the bottom of the game window and in the console MESSAGE_STATUS_WARNING = 18, -- Red message in game window and...
  5. M

    Spell Rune damange by level

    local config = { combat = COMBAT_ICEDAMAGE, distanceEffect = 25, rounds = 6, delay = 150, firstEffect = 38, secondEffect = 41 } local levelRange = { [1] = { minLevel = 1, maxLevel = 100, multiplier = 1.1, -- When the character is level 100...
  6. M

    Lua Regen out of battle

    Try this: local config = { option = 1, -- Try using option 1, if it fails, try using option 2 time = 5000, -- The character's life will be regenerated every 5 seconds percentage = 5, -- The character's health will be healed by 5 percent printTest = true, } function...
  7. M

    Error instaling vcpkg

    Did you try using CMD? It seems not. Try running CMD in administrator mode and try again! 1669721560
  8. M

    /save command doesn't work

    Try this: function onSay(player, words, param) if player:getAccountType() < 4 then return false end if param == "clean" then saveServer() cleanMap() else saveServer() end Game.broadcastMessage("Server is saving game.", MESSAGE_STATUS_WARNING) end If...
  9. M

    C++ DeEquip and Stackable items

    You can do this through Globalevents: local config = { gainedHealth = 500, gainedMana = 500, itemId = 2389, slot = CONST_SLOT_LEFT, } local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_STAT_MAXHITPOINTS, config.gainedHealth)...
  10. M

    Lua mission global save

    You need to reset this particular storage on each character. A tip: Do this in globalevents, in startup. Then, whenever the server starts, it will reset this storage. 1669717979 Maybe something like this: function onStartup() local storageValue = 123456 db.executeQuery("DELETE FROM...
  11. M

    Lua set playertotalmoney

    Maybe this will work: --[[ Function to remove the player's money, regardless of whether it is in the backpack or in the bank. Note: It will always give priority to the money located in the backpack. ]] function doPlayerRemoveTotalMoney(who, value) if getPlayerTotalMoney(who) >= value...
  12. M

    Lua set playertotalmoney

    I created a script with predetermined variables to do tests. In this case, bankBalance is at 20000, and playerMoney is at 9000. The problem with this script is that it will not remove from the backpack and also from the bank. He will only remove it from the backpack if he has the money...
  13. M

    Solved Problem with command !buyhouse

    I don't know what your script is, but try this one: local config = { --[[ Option 1: Attempts to remove all money from the player. Option 2: Try to remove only the money that is with the player. ]] option = 2, level = 1...
  14. M

    block dodge in item

    The message "You can't refine this item." will only appear if the item has no attack, no defense, or if it has no armor. If the item has one of these properties, the message will not appear. Try changing this part: local getItemInfo = getItemInfo(itemEx.itemid) for local getItemInfo =...
  15. M

    block dodge in item

    Try this: local config = { blocked_ids = { 7878, 2454, 7772, 7863, 7753, 7406, 7857, 7872, 7766, 7747, 7415, 7756, 7881, 7881, 7775, 8905, 8909, 8908, 8906, 8907, 2342, 2343, 8854, 8851, 10313, 2397, 7385, 8209, 5924, 10316, 9735 }, } function getItemDodgePercent(itemuid) return...
  16. M

    block dodge in item

    Try this: local blocked_ids = { 7878, 2454, 7772, 7863, 7753, 7406, 7857, 7872, 7766, 7747, 7415, 7756, 7881, 7881, 7775, 8905, 8909, 8908, 8906, 8907, 2342, 2343, 8854, 8851, 10313, 2397, 7385, 8209, 5924, 10316, 9735 } function isHandItem(uid) -- NW based on Mock uid = uid or 0 if...
  17. M

    RevScripts command

    I don't understand what you want, but let's try it this way: local test = TalkAction("!test") function Player.usingEquipment(self) self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are using equipment.") return true end function Player.notUsingEquipment(self)...
  18. M

    NO Use item in BP

    Try this: local config = { removeFromPlayer = false, -- If it is set to 'true' it will remove the item from the player, otherwise it will remove the item from where it is being used itemPosition = { x = 123, y = 456, z = 7, stackpos = 255 }, itemId = 11391, creatureType = "npc"...
  19. M

    RevScripts command

    You need to loop to check if there is any equipment in the character's slots. I recommend studying a little about loop in lua. https://www.lua.org/pil/4.3.4.html 1668955317 A little tip: i = CONST_SLOT_FIRST, CONST_SLOT_LAST
  20. M

    NO Use item in BP

    Do you have this NPC on your server data? 1668953997 I don't know if you want to summon an "npc" or a "monster", so I added both options for you. local creatureType = "monster" -- Choose betwen 'monster' or 'npc' local creatureName = "Cooking" -- This is the name of the creature that will be...
Back
Top