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

    Tfs. 1.2 getAttack()

    Guys, how do I get the physical attack of the sword for example after it has been added Attribute. I'm using it this way below but it takes the base item as a reference. function onCastSpell(creature, var) local player = Player(creature) local leftHand2 =...
  2. L

    CreatureEvent [TFS 1.1] Random Item Stats

    for show the name "prefix = 'rare', prefix = 'epic', prefix = 'legendary'," when kill the mob what i need do? Im kill the mob and same name "rare" show even if i drop an epic item.
  3. L

    TFS 1.2 Get Element Damage

    But work for physical attack, if i chance leftHand:setAttribute('elementDamage' , (item + 20)) for leftHand:setAttribute('attack' , (item + 20)) it work. But your code doesn't work for TFS 1.2. Would you have another way to do it?
  4. L

    TFS 1.2 Get Element Damage

    Anyone know why dont work my spell? I am trying to add more elemental damage to the item. function onCastSpell(creature, var) local player = Player(creature) local leftHand = player:getSlotItem(CONST_SLOT_LEFT) local leftHand2 =...
  5. L

    TFS 1.2 function doAreaCombatCondition

    Yes i have this in combat.lua.
  6. L

    TFS 1.2 function doAreaCombatCondition

    I get this error in the example. Lua Script Error: [Spell Interface] data/spells/scripts/attack/teste.lua:onCastSpell data/spells/scripts/attack/teste.lua:19: attempt to call method 'getPosition' (a nil value) stack traceback: [C]: in function 'getPosition'...
  7. L

    TFS 1.2 function doAreaCombatCondition

    I am trying to use this function "doAreaCombatCondition(cid, pos, area, condition, effect)" is crashing the server. Have another similar function for add Condition in area? I thought of selecting the creature by Tile and then add for "doAddCondition(cid, condition)" but dont work.
  8. L

    TFS 1.2 block Spell in pz

    Thanks Sleet for try help. Well, neither of these solutions work. My spell.xml it's according to your file. I think I have other methods to solve but I do not know. this way down I know how to put however I have to put "tile" as the coordinate. The spell above is in area I do not know how it...
  9. L

    TFS 1.2 block Spell in pz

    Anyone know how to put this spell to not use it in pz area? https://otland.net/threads/tfs-1-2-ultimate-eplosion-poison-storm.243497/
  10. L

    Tfs 1.2 LoopCount Error

    Hi Zetibia, I try add this above "position:sendDistanceEffect(alvopos, efeito" and not work. I think after this function starts "for i = 1, loopCount do" no stop. if not Creature(alvo) then return false end
  11. L

    Tfs 1.2 LoopCount Error

    Hi guys, I make one spell script with LoopCount but if select the target and deselect, the loop get error because no have target more. How can I fix this part? Spell. local function sendHealingEffect(cid, position, loopCount) local player = Player(cid) local alvo = player:getTarget()...
  12. L

    TFS 1.2 Immunity Condition

    What would be the best way to build a spell for the player to get immunity condition? Ex. in x seconds the player will be immune to drunk condition.
  13. L

    TFS 1.2 Player:onMoveItem

    I replace for this code function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) if toPosition.x ~= CONTAINER_POSITION then return true end if item:getTopParent() == self and bit.band(toPosition.y, 0x40) == 0 then local itemType...
  14. L

    TFS 1.2 Player:onMoveItem

    Anyone know why is this error happening? I moved the bow from the right hand to the left and it appeared this error, the opposite does not happen error. Lua Script Error: [Event Interface] data/events/scripts/party.lua:Player@onMoveItem data/events/scripts/player.lua:119: attempt to call...
  15. L

    TFS 1.2 Spell

    Is it possible to make a spell to stop monster attack (only your physical attack) for x seconds?
  16. L

    Tiles Spell Tfs 1.2

    cool, i did not know this code thank you very much.
  17. L

    Tiles Spell Tfs 1.2

    @Stigma, to remove the overlap of players or monsters I would put what code?
  18. L

    Tiles Spell Tfs 1.2

    nice, ur script is alot better. i will try make others like it. thanks for help, Like+.
  19. L

    Tiles Spell Tfs 1.2

    very good it work, have 2 Details, 1 - the spell is to target 2 - this part addEvent(Position.sendMagicEffect, 3500, pos, CONST_ME_INSECTS) are only one wall with effect.
  20. L

    Tiles Spell Tfs 1.2

    now got, Lua Script Error: [Spell Interface] data/spells/scripts/attack/prisao_ossos.lua:onCastSpell data/spells/scripts/attack/prisao_ossos.lua:9: attempt to call method 'isWalkable' (a nil value) stack traceback: [C]: in function 'isWalkable'...
Back
Top