• 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

    A simple help

    Hi, Use: Game.getSpectators(position[, multifloor = false[, onlyPlayer = false[, minRangeX = 0[, maxRangeX = 0[, minRangeY = 0[, maxRangeY = 0]]]]]]) to get all players in area, be sure to set onlyPlayer variable to true, to return only players.
  2. Z

    TFS 1.X+ Stop summon to follow master

    Working nice! Thank you Leo32! Will fit my needs! When the summon reach the destination, the isWalking flag is turned off and the summon back to original behaviour and go near player, but i think i can solve this with LUA. When i solve this, i will post here the solution. Again, really thanks!
  3. Z

    TFS 1.X+ Stop summon to follow master

    Thanks your efforts. Someone one time said: "TFS is a spiderweb". I looked for hours, but don't understood what i need to do, plus i lacking skills in C++, im realy stucked. Hope you do some nice system with the function!
  4. Z

    TFS 1.X+ Stop summon to follow master

    Hi, Idk, i still guess that the problem is in onThink, because the order to move to position is happening and the original behaviour is actived. I guess have to set a variable to check if creature is moving and only trigger the original behaviour if creature is not moving.
  5. Z

    TFS 1.X+ Stop summon to follow master

    Hi, I added this commit the part that is related to creature:moveTo function. Im using this function to players move their summons. But the summon can't go to location because the natural behaviour of summon is stay close to master, i think i need to edit my onThink in monster.cpp, but don't...
  6. Z

    [TFS 1.X] Rarity Rolls & Custom Attributes Library

    Amazing work Leo32! Definitly i will look deep your system! I saw your post showing the system, very happy that you released the system to community! Thanks for share and keep going!
  7. Z

    Problem with events/player.lua EXP Bonus

    Hi, You show a code with 8 lines. Your error log is telling that the error is in line 263, i know we have excellent programers here, but i think even they can't help... What is guildOnwer()? Too much mysterys to discover here... 🤔
  8. Z

    Lua [TFS 1.3] check if a table is nil?

    Hi, You have raids table with 5 indexs, when math.random return 5 as value, the index 5 don't exist... Because you only have: [1], [2], [3], [4] and [6]. The index [5] don't exist. Change to this, and will work... local raids = { -- Bosses [1] = {type = "BOSS", position = Position(49...
  9. Z

    Tfs 1x Guild bonus online

    Try this: function onLogin(player) local playerGuild = player:getGuild() --get player guild if playerGuild then --if player have a guild local GuildOnlineMembers = playerGuild:getMembersOnline() --get all online player in player guild local realOnlineMembers = {} --empty...
  10. Z

    Tfs 1x Guild bonus online

    Hello, Try this one: function onLogin(player) local playerGuild = player:getGuild() --get player guild if playerGuild then --if player have a guild if #playerGuild:getMembersOnline() >= 5 then --get online members in the guild, if more than 5...
  11. Z

    Expert PvP - Beta Release

  12. Z

    From Windows 10 to OTS development machine for dummies

    Good job! Your contributions is always the best, really thanks for share this with the community! With sure will be very helpful!
  13. Z

    [TFS 1.X] safeAddEvent

    Thanks again for the contribution! I agree with mdwilliams, why this isn't the "new" addEvent?
  14. Z

    [The OTServBR based on TFS 1.3] - Transforming Stacked Items [Action]

    Hi, Im at work now, when i get home i will try. I don't know if have a way to do with transform, what i Will try is: Get item info and item position(if in container, the Index) Remove original item 1 count Create the reward as New item Move the reward to old item position But if u have the...
  15. Z

    chest weapon item problem

    More clean and use only one storage value. local storage = 60000 --use a unused storage value function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid,storage) ~= 1 then if item.uid == 61904 then doPlayerSendTextMessage(cid,25,"You have chosen an...
  16. Z

    The door seems to be sealed against unwanted intruders bug

    You don't answered my question... Change your doors.lua to this one, and try, can't test. doors.lua local function checkStackpos(item, position) position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local thing = getThingFromPos(position) position.stackpos =...
  17. Z

    The door seems to be sealed against unwanted intruders bug

    How you setup the door? Action id and player have what storage value in the storage with same action id?
  18. Z

    The door seems to be sealed against unwanted intruders bug

    Send server version and the door script...
  19. Z

    TFS 1.X+ Boss Reward Fix

    Tested. data/creaturescripts/scripts/bossReward.lua: function onKill(creature, target) local monsterName = "Puppet" --boss name to give reward if target:getName() ~= monsterName then --check if killed monster(target) is the boss return true --if not, return true end...
  20. Z

    player:getItemById tfs 1x

    Send your table schema please.
Back
Top