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

    Amulet of Life for tfs 1.2

    Damn.. the script is not solved yet - new players can't die, they have red hp but can't die, error in console: creature script interface - onpreparedeath lua 2 attempt to index a nil value / stack traceback lua 1.
  2. zxzxzx

    DHQ for 1.2

    But if I don't try to call this function the script will work wrong? anyway I pasted your corrected script and when I pull the lever I have: error in lua 57, now lua 48 new error: lua script error main interface in a timer event called from unknown scriptfile lua 36 attempt to index local...
  3. zxzxzx

    DHQ for 1.2

    you mean don't use this? addEvent(doRemoveTeleport, 1000 * timeToRemove, item, TeleportOutPos)
  4. zxzxzx

    Amulet of Life for tfs 1.2

    xDDD ok now works great! thanks for help! ;) full code: function onPrepareDeath(player) slotItem = player:getSlotItem(CONST_SLOT_NECKLACE).itemid if slotItem == 2196 then player:addHealth(player:getMaxHealth()) player:addMana(player:getMaxMana())...
  5. zxzxzx

    Amulet of Life for tfs 1.2

    1 SlotItemid -> 2196 3
  6. zxzxzx

    Amulet of Life for tfs 1.2

    local amulet_slot = CONST_SLOT_NECKLACE --Change the slot number for amulet im to lazy to look it up function onPrepareDeath(player) slotItem = player:getSlotItem(CONST_SLOT_NECKLACE).itemid if slotItem == 2173 then player:addHealth(player:getMaxHealth()) player:addMana(player:getMaxMana())...
  7. zxzxzx

    DHQ for 1.2

    bump
  8. zxzxzx

    Amulet of Life for tfs 1.2

    I changed slot item to 8 - now no error in console but the script don't work amulet is still on the slot and when player dies skill and level go down. local amulet_slot = CONST_SLOT_NECKLACE --Change the slot number for amulet im to lazy to look it up function onPrepareDeath(player) slotItem =...
  9. zxzxzx

    Amulet of Life for tfs 1.2

    I added the lines and have an error: on prepare death CJ in function index (lua 3) attempt to index a nil value (lua 2) code: local amulet_slot = CONST_SLOT_NECKLACE --Change the slot number for amulet im to lazy to look it up function onPrepareDeath(player) slotItem =...
  10. zxzxzx

    DHQ for 1.2

    Hello! I have errors when using this dhq on tfs 1.2+ how to solve it? errors: Argument #3 is unsafe function addevent (lua 27, lua 18) main interface (lua 57, lua 52) (attempt to index local "lever" (a number value) the code: local pinkstonepos1 = {x=32670, y=32806, z=8, stackpos=1} --...
  11. zxzxzx

    Amulet of Life for tfs 1.2

    local amulet_slot = 1 --Change the slot number for amulet im to lazy to look it up function onPrepareDeath(player) slotItem = player:getSlotItem(1).itemid if slotItem == 2173 then player:addHealth(player:getHealthMax()) player:addMana(player:getManaMax()) return false end return true end
  12. zxzxzx

    Amulet of Life for tfs 1.2

    no, amulet is still on the amulet slot.
  13. zxzxzx

    Amulet of Life for tfs 1.2

    bump :(
  14. zxzxzx

    Amulet of Life for tfs 1.2

    bump - this script not working.
  15. zxzxzx

    Amulet of Life for tfs 1.2

    ok, now working but when I die I still loose level,skills.. :/ (no errors in console)
  16. zxzxzx

    Amulet of Life for tfs 1.2

    Okay so I add script and this line to creaturescripts.xml: <event type="death" name="Amulet of life" script="amulet of life.lua"/> and have an error: event onDeath not found.
  17. zxzxzx

    Amulet of Life for tfs 1.2

    bump
  18. zxzxzx

    New drinkable item!

    Ok! now work! thanks ;) full code - local exhaust = Condition(CONDITION_EXHAUST_HEAL) function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(3942) local t = isPlayer(target) and target or player t:say("Aaaah...", TALKTYPE_MONSTER_SAY) return true end
  19. zxzxzx

    Amulet of Life for tfs 1.2

    Have an error: event on use not found.
  20. zxzxzx

    Amulet of Life for tfs 1.2

    Nice!, can u paste here full code?
Back
Top