• 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

    OTClient GameExtendedOpcode otv8 tfs 1.5

    You have to do a "ping pong" with packet. The Otclient needs to send a packet to the server, and then the server needs to send a reply packet to the Otclient. 1670594030 This is a script example made for Otclient to send and receive a packet from the server. This packet will receive the value of...
  2. M

    Lua [TFS 0.X] Self destruction spell

    As we talked on Discord, and you said there's no need to use addEvent, so: local combatDamage = createCombatObject() setCombatParam(combatDamage, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combatDamage, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) local combatDamageArea =...
  3. M

    Lua [TFS 0.X] Self destruction spell

    If you want to do creature disappear, try this: local warn = true local combatDamage, warning = createCombatObject(), createCombatObject() setCombatParam(combatDamage, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combatDamage, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)...
  4. M

    Lua [TFS 0.X] Self destruction spell

    Try: local warn = true local combatDamage, warning = createCombatObject(), createCombatObject() setCombatParam(combatDamage, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combatDamage, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) setCombatParam(warning, COMBAT_PARAM_TYPE...
  5. M

    Lua [TFS 0.X] Self destruction spell

    Try this: local warn = true local combatDamage, warning = createCombatObject(), createCombatObject() setCombatParam(combatDamage, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combatDamage, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) setCombatParam(warning, COMBAT_PARAM_TYPE...
  6. M

    TFS 0.X How to improve my script?

    Ideally, you organize the algorithm of your scripts in this way: local blueTeam, redTeam = 101, 102 local scores = { [1] = { team = blueTeam }, [2] = { team = redTeam }, } ----- Init ----- function onThink(interval, lastExecution, thinkInterval) ---- Blue Team lead ----- if...
  7. M

    TFS 0.X How to improve my script?

    function onStartup() setGlobalStorageValue(101, 0) setGlobalStorageValue(102, 0) return true end
  8. M

    Lua TFS 1.3 Fishing script

    https://otland.net/threads/nostalrius-fishing-rod-script.264230/ https://otland.net/threads/simple-fishing-system-request.254209/
  9. M

    Old Rope System

    Do you remember when people could use the rope to pull other people as well as objects? Or better yet. Do you remember when people could use rope to pull monsters? This is a script I made based on Tibia's old rope system. local holeId = { 294, 369, 386, 370, 385, 394, 411, 412, 413, 432, 433...
  10. M

    TFS 0.X How to improve my script?

    You need to set global storage value to 0 always your server startup. Make a file into globalevents to this lua script: local blueTeam, redTeam = 101, 102 local scores = { [1] = { team = blueTeam }, [2] = { team = redTeam }, } function onStartup() for i = 1, #scores do...
  11. M

    Lua STOP WALK (CID) - how do this?

    I have developed a script option for creatuscripts: local config = { stor = 123456, msg = true, txt = "You cannot walk.", type = 21, } local function getSpeed(cid, level) return (220 + (2 * (level - 1))) end local function canWalk(cid) if isPlayer(cid) then if...
  12. M

    Lua STOP WALK (CID) - how do this?

    Movements
  13. M

    Lua Need script when move item start decay

    Not sure if it will work, but give it a try. If any errors occur, please let us know: local config = { actionId = 1234, itemId = 2377, -- two handed sword transformTo = 2393, -- giant sword time = 30 * 1000, -- decay time } local moveItem = MoveEvent() function...
  14. M

    Lua teach me upgrade npc with an example to tfs 1.5

    Yes, but it is correct to add the word "cid" instead of the number 1.
  15. M

    Lua teach me upgrade npc with an example to tfs 1.5

    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function...
  16. M

    Lua TFS 1.2 NPC focus

    Where's your script?
  17. M

    lua script "onSay"/talkaction - TFS 1.2

    Oops, I got confused, I created a repeating structure, but there is no need. Try it this way: config = { outfit = { ["slayer"] = { looktype_m = 137, looktype_f = 149, stor = 652000 }, ["archer"] = { looktype_m = 138, looktype_f = 150, stor = 652001 }, ["wizzard"] = {...
  18. M

    lua script "onSay"/talkaction - TFS 1.2

    Try this: outfit = { [1] = { name = "slayer", looktype_m = 137, looktype_f = 149, stor = 652000 }, [2] = { name = "archer", looktype_m = 138, looktype_f = 150, stor = 652001 }, [3] = { name = "wizzard", looktype_m = 139, looktype_f = 151, stor = 652002 }, } function onSay(player...
  19. M

    Lua TFS 1.4 OnStepIn

    Try this: function onStepIn(creature, item, position, fromPosition) addEvent(function() item:getPosition():sendMagicEffect(5) end, 5000) return true end
  20. M

    Lua STOP WALK (CID) - how do this?

    This solution isn't exactly what you asked for, but it will work. local config = { storage = 123456, msg = true, txt = "You cannot walk.", type = 21, } function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, config.storage) < 1 then...
Back
Top