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

    Call to community at TFS GitHub

    Just read Wirox posts without thinking he's a hater. I don't agree with how this started but I surely agree with what he says about the quality. Consistency is very important, you cannot change just because you want, without a good reason and without explaining what motivates those changes you...
  2. T

    [General discussions] OS impacts the ping?

    It depends on how much players do you have on your OT. If there are a low number of players it's probably just OTClient not being to well optimized or the right tool for this kind of analysis. As @Okke states if scheduler is too much busier it will delay the processing of ping packets, and not...
  3. T

    Lua Dugeon System

    Yes, exactly the same. Maybe could be a lib conflict then, since I using the default libs of distro and you're probably using others libs with it?
  4. T

    Lua Dugeon System

    What distro do you guys use? I downloaded and compiled the fir3element 3777 distro and started with library. The server doesn't hangup, but it appear to load the library 7 times when loading the script system and one more time after loading the map. Look at the ss:
  5. T

    Lua Dugeon System

    Yes. Sadly I don't have a 0.4 to test this, but I can guarantee that it works with lua 5.1 so it's weird why is doing this. Look at the attached image
  6. T

    Lua Dugeon System

    1 - Yes, they should be added there. But not using the keyword 'local' in front of g_Dungeons. This was a mistake I made for not maki the things clearly at first 2 - Yes, they are. If not declared as local, an variable from some lib is available for all other scripts, but if declared as local...
  7. T

    Lua Dugeon System

    Sorry, but I can't help then. I know that the code is free of syntax errors and that the function dungeon works well even with lua 5.1. Maybe you're using a version more old? Is weird because there is not loop outside function declarations. And this local in dungeons or g_dungeons is an error I...
  8. T

    Lua Dugeon System

    Hi zabuzo. So, you can try this: local dungeons = {} function Dungeon(name, minLevel, maxLevel, rewards) local this = { name = name or "unamed", minLevel = minLevel or 1, maxLevel = maxLevel or 1, rewards = rewards or {}, druid = nil, knight...
  9. T

    Lua Dugeon System

    Yes. Should be this way. But since you are using 0.4 you will need to change things from Player to cid, and use like doTeleportThing passing cid instead of player:teleportTo()
  10. T

    Lua Dugeon System

    But setting no logout zone will only make the char keep up, even if the client goes x closed no? If it really kicks, this will be a clever idea Nice to see that you would use this supergt. I don't see why we can't make this for 1.2/1.3 and for 0.4 too. I will try to make better solution for...
  11. T

    Lua Dugeon System

    Hi zabuzo I like of your ideia, is really a cool thing to have in a RPG server. And the fact that you create a pseudo code with the schematic of things is really nice. This is not a very small system, although it can be made in a very simple way. For now I don't have time to work on this, but I...
  12. T

    [0.4] Elemental resistence

    Yes, just set it to a number % that you like, and the STRG_BONUS_DEF_EARTH_TIME to os.time() + seconds enabled. Don't worry if not working, it was just to give you a base, but it's something like that
  13. T

    [0.4] Elemental resistence

    Well, we going to handle all the damage that the creature will receive, and then cancel them and do the reduced damage. But to now how much of the damage we should reduce, and if reduction is enabled after using the spell, we need to have this saved in something, so we use the player to save on...
  14. T

    [0.4] Elemental resistence

    Ok. So you don't now how to use storages. No problems, look. The problem is that you're not passing a storageId. You don't get from the storage os.time() + 40 Choose some number like: 59602 to be the ENERGY_DEF and then use this as an index to get or set the value of that storage. Did you get...
  15. T

    [0.4] Elemental resistence

    Ok. So lets go creature uses spell: (in the spell .lua file) spell set EARTH_DEFENSE_STORAGE = 20 spell set EARTH_DEFENSE_TIME_STORAGE= timeNow + 40 creature receives damage: if TYPE of damage is COMBAT_EARTHDAMAGE and creature EARTH_DEFENSE_TIME_STORAGE > timeNow then: set...
  16. T

    [0.4] Elemental resistence

    As TFS 0.4 has getCreatureStorage(uid, key) and doCreatureSetStorage(uid, key, value) methods and monsters can also use this you can make monster spells to give them this bonus, but you don't need to use one for each spell. It can be stackable or substitute the already applied defense. *nature...
  17. T

    [0.4] Elemental resistence

    Hello elnelson. Well, since you need to give elemental protection, we should check for some way to do this, but in source of 3777 no condition can provide this. OK, so how about we just use the onStatsChange creature event registering the player when he login to server? Now, when this event...
  18. T

    Solved How to make boss monsters?

    Yes, you can. Just use the script attribute in the monster xml tag. The script can handle: onThink(self, interval) -- Maybe this is the most important for give a behavior to the boss onCreatureAppear(self, creature) -- Maybe you can give bonus to make the boss more strong based on how much...
  19. T

    Initiating in OTserv programming

    for sure rickgv. I already send a friend request to you in discord
  20. T

    Initiating in OTserv programming

    Well, if you can't understand how some things are going in the backstage. Like what some event ocurrs, then try to search for it on source to see how it happens. As I said before, you can just use Lua pretty well for a lot of things. For sure. If something is missing, you can just do as...
Back
Top