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

    TFS 1.X+ Interrupt corpse decay for skinning

    Hi, Change the decay of the skinned corpse to more time in items.xml. Or you can do the "decay" with addEvent: When skinned, addEvent with the interval that you desire and transform the corpse to decayed item id. Would be nice have a function to change the decayTime, decayTo for a specific item.
  2. Z

    C++ TFS 1.3 - GetGlobalStorage from C++ source

    Hi, The storages will disappear when server shutdown, create a new table on DB and use onStartup and onShutdown to save and load the storages values.
  3. Z

    TFS 1.X+ Pet system is not working right

    This event is a global event that will work for all players, i think you should change it to a creaturescript and register when player summon the pet. Sorry, i told you to do as creaturescript. My bad.
  4. Z

    TFS 1.X+ Pet system is not working right

    Hi, Use this.
  5. Z

    Disabled Cap TFS 1.3

    Maybe this? It does not disable the cap system, just give infinite cap to players too... <?xml version="1.0" encoding="UTF-8"?> <groups> <group id="1" name="player" access="0" maxdepotitems="0" maxvipentries="0" > <flags> <flag hasinfinitecapacity="1" /> </flags>...
  6. Z

    Lua delay creaturesciprt addevent

    To simplify: local rewardRoom = Position(8675, 8748, 7) local function teleportMe(cid) local player = Player(cid) if player then player:teleportTo(rewardRoom) end return true end function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified)...
  7. Z

    TFS 1.X+ Query returning false

    if not query then return false end If don't exist a result, return false. Change to return -1 to work like normal storages.
  8. Z

    TFS 1.X+ tfs 1.3open label, type a name of vocation, and press OK

    Hi, Try: data/creaturescripts/scripts/label_vocation.lua function onTextEdit(player, item, text) if item:getId() == LABEL_ITEM_ID then if Vocation(text) then player:setVocation(text) item:remove() return true else --Vocation...
  9. Z

    Lua setStorageValue after 10 seconds

    Try this: local fumar = Action() -- usar a tocha no baseado fuma ele local function decara(playerId) local player = Player(playerId) if not player then return false end player:setStorageValue(420, 0) return true end function fumar.onUse(player, item, fromPosition...
  10. Z

    OTClientV8

  11. Z

    Action [TFS 1.X] Equip hotkey system + destroy spider webs with weapon script.

    HAHAHA, i just don't know if the addItemEx will trigger the onEquip function, i hope so!
  12. Z

    Action [TFS 1.X] Equip hotkey system + destroy spider webs with weapon script.

    Nice work, i will test later. But if i have custom attributes to my items, i have to include them in the cloneStats function right? Item:clone() don't work? Something like: local newItem = item:clone() player:addItemEx(newItem,false, slot) I tested clone function and really clone the item, with...
  13. Z

    Request function TFS 1.2

    data/events/events.xml: Set enabled to 1 <event class="Creature" method="onTargetCombat" enabled="1" /> data/events/scripts/creature.lua: function Creature:onTargetCombat(target) if target:isPlayer() and self:isMonster() then target:getPosition():sendMagicEffect(6)--6 = number of...
  14. Z

    Request function TFS 1.2

    What you mean with attack YOU and PLAYER? You are not a Player? I don't understand what are you trying to do...
  15. Z

    Request function TFS 1.2

    function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) --if creature that recived the damage is a PLAYER, reduce damage to 50% if creature:isPlayer() then primaryDamage = primaryDamage * 0.5 secondaryDamage =...
  16. Z

    Lore writer for hire

    I'll save this thread link, i'll need this in a near future...
  17. Z

    TFS 1.X+ Adding Magic Level points to the player

    Hi, Try this: local magicLevelAmount = 10 --Amount to gain local skillTypeToGain = SKILL_MAGLEVEL --Skill type local requiredTries = player:getVocation():getRequiredSkillTries(skillTypeToGain, magicLevelAmount) --get required tries to reach skill level player:addSkillTries(skillTypeToGain...
  18. Z

    TFS 1.X+ Teleport player out of area after x amount of time

    Try now: local config = { room = {x = 896, y = 1048, z = 8}, kick = {x = 890, y = 1049, z = 8} } local t = { a = {x = 894, y = 1044, z = 8}, -- top left corner b = {x = 907, y = 1054, z = 8} -- bottom right corner } function onStepIn(creature, item, position, fromPosition)...
  19. Z

    A simple help

    Try this: local centerPosition = Position(100, 100, 7) local players = Game.getSpectators(centerPosition, false, true, 5, 5, 5, 5) if #players > 0 then doPlayerSendTextMessage(cid,19,"Existe um jogador dentro da arena aguarde.") return false end --C = centerPosition ; x = area to look...
Back
Top