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

    1 way Tile?

    This will only work once per day. If you want it to be for forever let me know and I'll change it up. has_walked = has_walked or {} function onStepIn(creature, item, toPosition, fromPosition) local player = creature:getPlayer() if not player then return true end if...
  2. Apollos

    1 way Tile?

    Is it like, you always an walk north over tile but you can never walk south over it? Or first time you walk on it it'll flag for it not to be crossed again?
  3. Apollos

    Globalevent - Create and remove Wall from the map every two hours.

    Try this one out: local previous_key = previous_key or nil local walls_array = { [1] = {positions = {Position(1000, 1000, 7), Position(1000, 1000, 7)}, itemid = 25574}, [2] = {positions = {Position(1000, 1000, 7)}, itemid = 25574}, [3] = {positions = {Position(1000, 1000, 7)}, itemid...
  4. Apollos

    TFS 1.2 Damage

    The creaturescript event onHealthChange is an option. For your example you could do this: function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) local player = creature:getPlayer() if player and primaryType ~= COMBAT_HEALING and...
  5. Apollos

    What are you using to protect your custom client?

    I completely agree. I have been adding pull requests and doing my best to contribute what I can and I know a few others have recently as well, but not enough people. I think since Don created the new repo I have hope people will begin to work on it again, especially since their pull...
  6. Apollos

    TFS 1.2 Kill monster, remove stone

    Sarah you clearly have an issue with me for some unseen reason. I did my best to make what OP needed and it worked. As regards to you script as I said before you included a name declaration inside a loop(which you attempted to edit but still did it in a way that it is unnecessarily called...
  7. Apollos

    TFS 1.2 Kill monster, remove stone

    Well I wrote it with multiple uses and it worked for OP. You can grasp at straws all you want, the fact is you're wrong on many accounts in your reply and your code included more bad practices than mine. I don't know what the purpose of your condisendence and attempts to prove me wrong is. I'm...
  8. Apollos

    TFS 1.2 Kill monster, remove stone

    Neither of you are understanding that config.name is an array for a reason and this script is checking all monster names in that array and checking if they are either the target or they are already dead. If all the boss monster are dead then it is allowed to remove the stone. (Example: You need...
  9. Apollos

    What are you using to protect your custom client?

    Really fair points bro. Although for the game play advantage my only frame of reference was from a fix I attempted to make for problems with old versions and targeting with runes. As you can see here someone could easily go back into this and change the scripts a bit in order to be able to send...
  10. Apollos

    TFS 1.2 Kill monster, remove stone

    I don't think it's a question of efficiency since our scripts have a different feature. Mine includes requirement to kill more than one creature to remove stone. {"Rat Boss Second", "Rat Boss Third"} Although yours includes the option to remove more than one stone, so it's a matter of what...
  11. Apollos

    TFS 1.X+ Function to get all players who have the higer value of storage 16200

    Imo best way to do this is to store all five players in global array for use during session instead of changing another storage to identify who is in top 5. -- global.lua top_five = {} -- startup.lua local resultId = db.storeQuery("SELECT `player_id` FROM `player_storage` WHERE `key` = 16200...
  12. Apollos

    What are you using to protect your custom client?

    There is plenty of reasons to protect your files besides keeping people from stealing your scripts. Sprites, antibot, stopping edits to client for gameplay advantage. If you want to keep your scripts open for viewing yet protected you could look into getting checksum of files and comparing...
  13. Apollos

    TFS 1.X+ Problem?

    It'll be fine for now, but as it states in later updates it will be phased out completely.
  14. Apollos

    Killstreak give a spell

    Well the learnSpell function is there. Are you sure all vocations are set up to be able to use it? Or maybe something what in spells.xml is prohibiting you.
  15. Apollos

    Killstreak give a spell

    That's what it should be doing. Is it sending the text message when you kill? And does it say you learned spell at 10 kills?
  16. Apollos

    TFS 1.2 Kill monster, remove stone

    Mines an onKill event that needs to be registered to player at login
  17. Apollos

    TFS 1.2 Kill monster, remove stone

    You can try this, hope i understand what you are requesting. Untested so let me know. local config = { -- reset is per hour {name = {"Rat Boss"}, reset = 2, pos = Position(1000, 1000, 7), itemid = 1304}, {name = {"Rat Boss Second", "Rat Boss Third"}, reset = 2, pos = Position(1000, 1000...
  18. Apollos

    TFS 1.X+ Problem?

    I don't know which files you need to change, only you can find that out. I can only suggest you use a code editting software like VS Code, Sublime, or Atom that allows you to use a search within an entire directory in order for you to find where these are written.
  19. Apollos

    TFS 1.X+ Problem?

    Find any combat:setCondition in your server scripts and change them to combat:addCondition
  20. Apollos

    How to edit serversave.lua script

    Yeah, that is strange. You can try this alternative, but if this doesn't go to server log then I'm not sure. broadcastMessage("Map cleaning in 5 minutes.", MESSAGE_STATUS_WARNING) addEvent(function() broadcastMessage("Map cleaning in 3 minutes.", MESSAGE_STATUS_WARNING) end, 2 * 60 *...
Back
Top