• 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

    Lua remove item

    Try change player:removeItem(itemId, 1) to: item:remove()
  2. L

    i am trying to put the creaturescript or revscript TFS 1.5 8.0

    @Sarah Wesker Does it need to be in onTargetCombat? I'd try with onLogin so registerEvent is called once only* *it won't change much as registerCreatureEvent anyway checks whether such event is on list but it's more about case when there's no EventCallback local loginEvent =...
  3. L

    RevScripts Problem with position in Revscripts (Action)

    Revscripts are self-registrable, action callbacks are registered on script load time as it call's register on action object. That's why it throws on start/reload. There's no such method as position on action that's why you get such errors.
  4. L

    Bonus guild move sqm script 1.3 to 1.5 revscript

    Try with: https://github.com/otland/forgottenserver/blob/master/data/lib/core/game.lua#L107 Game.setStorageValue(key, value) Game.getStorageValue(key) data\scripts\movements\guild_bonus.lua local guildBonus = MoveEvent() guildBonus:type("stepin") function guildBonus.onStepIn(creature, item...
  5. L

    TFS 0.X TP to templo If no free sqm

    @ForgottenNot https://github.com/otland/forgottenserver/blob/v1.4.2/src/map.cpp#L226 if (!tile || (placeInPZ && !tile->hasFlag(TILESTATE_PROTECTIONZONE)) || tile->hasFlag(TILESTATE_BLOCKSOLID)) { Note: that won't work for furnitures (acording to what's been said in thread)
  6. L

    TFS 1.X+ 1.4.2 Check if monster has flag

    What's the use case here, why do you need it? falgs are part of Group(see: groups.h) which is something that's specific for Player class: https://github.com/otland/forgottenserver/blob/v1.4.2/src/player.h#L1243
  7. L

    RevScripts Problem with position in Revscripts (Action)

    First time I see such way of registering an action, from what I've found it's Canary thing: https://github.com/opentibiabr/canary/blob/0365fb2c9e0e4c167b99f0bbc3308f7f103abebf/src/lua/functions/events/action_functions.hpp registerClass(L, "Action", ""...
  8. L

    Loot Message error

    Where did you get these config entries from? The only distro called OTX2 I've found is here: https://github.com/mattyx14/otxserver/tree/otxserv2 These're config entries related to loot: https://github.com/mattyx14/otxserver/blob/otxserv2/sources/configmanager.cpp#L296 rateLoot = 1...
  9. L

    znote panel error index.php

    DevTools (F12) - Tab Network -> "Disable cache" Every time you edit some files that could be cached by browser (css, images, client side requested htmls) For php there should be no difference as it's anyway server rendered.
  10. L

    someone convert this script to work in tfs 1.5 nekiro 8.0 ?

    Yea I know there's a compat.lua but for addEvent it's unsafe to pas objects and in order not to write things like cid:getId() it'd be better to just do it as it should be and for backward compatibility declare cid as: local cid = player:getId() The main reason of that change was to make sure...
  11. L

    someone convert this script to work in tfs 1.5 nekiro 8.0 ?

    First argument of onUse is actually player object so rename it and modify like follows: onUse(player, item, frompos, item2, topos) local cid = player:getId()
  12. L

    TFS 1.X+ database problem

    local creatureevent = CreatureEvent("PlayerAdvance") function creatureevent.onAdvance(player, skill, oldLevel, newLevel) player:save() return true end creatureevent:register() For high exp server you could limit that to SKILL_LEVEL only or do save based on diff abs(newLevel - oldLevel) > X
  13. L

    Solved Crash with Fir3elements 0.4 - Cast System (Log Provided)

    Compile in Debug mode, run in Visual Studio and go up in call stack to check what’s the cause of the crash. Put some breakpoints and try once again and try to find cause.
  14. L

    Show mana healing numbers in purple

    Or simply register custom callback to onHealthChange/onManaChange CreatureEvent's and code that in LUA: onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) onManaChange(creature, attacker, primaryDamage, primaryType, secondaryDamage...
  15. L

    Bug NPC trade TFS 1.4.2

    make sure to set also this in your config.lua luaItemDesc = true
  16. L

    Cast Problem

    Missing function: doPlayerSetCastState, give some details about this cast system? --By Yan Liima I'm assuming it's the author, any thread/source code of that available?
  17. L

    TFS 1.X+ Spells / runes issue?

    Revert this PR: https://github.com/otland/forgottenserver/issues/3493
  18. L

    Access to ZAO help

    How can someone help you if you only post some config without even telling what distro it's. If you want to omit checking of these values just find where they are referenced and comment out that code.
  19. L

    TFS 1.X+ Exiva "NPC

    All code you need is currently in TFS: https://github.com/otland/forgottenserver/blob/master/data/spells/scripts/support/find_person.lua Just combine this with talkaction: local talk = TalkAction("/exiva", "!exiva") local LEVEL_LOWER = 1 local LEVEL_SAME = 2 local LEVEL_HIGHER = 3 local...
Back
Top