• 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!

Search results

  1. Snavy

    Lua Movements Tile

    local config = { TILE_ACTION_ID = 12345, ITEMID = 37420, LEVEL = 200, STORAGE = 284701, DESTINATION = Position(32962, 31499, 7) } local me = MoveEvent('scriptNameHere') function me.onStepIn(player, item, position, fromPosition) local itemCount =...
  2. Snavy

    MoveEvent [1.3] Snek 🐍

    🐍 Snek For TFS 1.3 🐍 How to play: (CTRL + Arrows) to move snake. map setup data/scripts/snake.lua local config = { -- Don't change ( unless you know what you're doing ) TILE_CUSTOMATTR_KEY = "snakeScore", -- Where players will be kicked after finishing the game...
  3. Snavy

    Lua Movements Tile

    missing the coordinate? what 🤔
  4. Snavy

    Lua Movements Tile

    try local config = { TILE_ACTION_ID = 12345, ITEMID = 37420, LEVEL = 200, STORAGE = 284701 } local me = MoveEvent('scriptNameHere') function me.onStepIn(player, item, position, fromPosition) local itemCount = player:getItemCount(config.ITEMID) if not itemCount or...
  5. Snavy

    Lua Snavy & Levi - Free Scripting Service - TFS 1.3

    global.lua CHAT_CHANNEL_ID_BEGIN = 153810 data/scripts/mutechannel.lua Note you need to add the following lines in each channel file: data/chatchannels/scripts/<channelName>.lua
  6. Snavy

    Lua when the player dies he loses the condition

    As far as I know, yes. Take a look: https://github.com/otland/forgottenserver/blob/8cc1f3d51c6f4c90ce66b6d3122ce4388d709fe8/src/enums.h#L221
  7. Snavy

    Lua when the player dies he loses the condition

    You can use storage to check if the time has expired. onUse -> add player storage conditionTime + os.time() onLogin -> set condition again if StorageConditionTime > os.time()
  8. Snavy

    Lua Snavy & Levi - Free Scripting Service - TFS 1.3

    Note: reward chest must have actionid (10129) login.lua player:registerEvent("WaveEventMonsterDeath") player:registerEvent("WaveEventPrepareDeath") player:registerEvent("WaveEventPHC") player:registerEvent("WaveEventPMC") data/scripts/xikini.lua
  9. Snavy

    Lua Boss Kill Add Outfit

    change player:addOutfit(outfits[creature:getSex()]) to creature:addOutfit(outfits[creature:getSex()])
  10. Snavy

    Lua Boss Kill Add Outfit

    local outfits = { [PLAYERSEX_MALE] = 128, [PLAYERSEX_FEMALE] = 136 } player:addOutfit(outfits[creature:getSex()])
  11. Snavy

    Lua Boss Kill Add Outfit

    try local cEvent = CreatureEvent("killBoss") function cEvent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) for cid, _ in pairs(creature:getDamageMap()) do local creature = Player(cid) if creature then...
  12. Snavy

    Coding Help - Stone braking weapon.

    BIG 🧠
  13. Snavy

    Coding Help - Stone braking weapon.

    local config = { largeStone = 1304, smallStones = 1336 } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if not target:isItem() then return true end if not (target:getId() == config.largeStone) then player:say("You can't break...
  14. Snavy

    TFS 1.X+ Problem with "method="onShareExperience"".

    Which TFS version are you using? https://github.com/otland/forgottenserver/blob/fcd6b2d3a01c457753ee9461e3238494f0abb179/src/events.cpp#L83-L86 Looks like older versions don't have this. 1.2 https://github.com/otland/forgottenserver/blob/1.2/src/events.cpp#L74 1.1...
  15. Snavy

    Lua Add paralyze condition to weapon TFS 1.3

    Have you looked at the following example ? https://github.com/otland/forgottenserver/blob/master/data/spells/scripts/attack/paralyze_rune.lua#L4
  16. Snavy

    RevScripts Problem with quest script

    Confirm that Storage -> quest1 exists in your global Storage table.
  17. Snavy

    TFS 1.X+ Big bug on TFS master branch? - healing spells

    Could you try the following changes and let us know if it works for you. https://github.com/otland/forgottenserver/pull/3396/files
  18. Snavy

    pass movement script to action

  19. Snavy

    pass movement script to action

    local outfit = { [128] = 369, [136] = 370, [129] = 371, [130] = 373, [131] = 375, [132] = 377, [133] = 379, [134] = 381, [135] = 371, [137] = 372, [138] = 374, [139] = 376, [140] = 378, [141] = 380, [142] = 382, [143] = 383, [144] = 385, [145] = 387, [146] = 389, [147] = 384...
Back
Top