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

    Lua Look for boss reward script

    Post your data/lib/core/achievements.lua. TFS version? I am no magician.
  2. amatria

    Lua Look for boss reward script

    There you go: -- you must add the achievements in data/lib/core/achievements.lua local config = { { achievement = "Foo bar", monsters = { ["rat"] = {storage = 9899, count = 1}, ["cave rat"] = {storage = 9900, count = 1} } }, {...
  3. amatria

    New technologies

    Hard agree. I keep coming across this threads over and over and over again. People be like "How come we ain't using Laravel?" or "Monsters behave so stupid in TFS 1.X", and then they do nothing but rant about, yet again, the current state of the OpenTibia community [2]. It's always like this...
  4. amatria

    Lua Multiple damage system request

    To be honest, I don't really know. I guess so. This works for me: local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true) function...
  5. amatria

    Lua Multiple damage system request

    To remove the warning you should avoid passing a player metatable as a parameter to the addEvent procedure. However, I can't think of a solution that does not involve doing exactly that. Let's see if some other user with more experience than me comes up with a better solution. In the meanwhile...
  6. amatria

    Lua Multiple damage system request

    I haven't done thorough testing, but the following snippet may do the job: local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)...
  7. amatria

    Area effect using math?

    It's fine. Been there, done that :p.
  8. amatria

    Area effect using math?

    for idx, cfg in ipairs(config) do addEvent(do_area_effect, idx * 1000, cfg.from_pos, cfg.to_pos, cfg.effect) end
  9. amatria

    Area effect using math?

    Post the full code. It will be easier this way.
  10. amatria

    Area effect using math?

    The naive approach (not tested): local config = { [0] = { effect = CONST_ME_POFF, from_pos = {x = 1000, y = 1000, z = 7}, to_pos = {x = 1003, y = 1003, z = 7} }, [1] = { effect = CONST_ME_POFF, from_pos = {x = 1000, y = 1000, z = 7}...
  11. amatria

    TFS 1.X+ Level&vocation instead of serverName in (CharList)

    There is no use. Instead, mark my post as a "solution". Next time someone looks for this, the forum will prompt this thread and they will be able to read the proposed solution right away.
  12. amatria

    cant get website to run.

    Either look for a tutorial on how to setup TLS in uniserver or install a reverse proxy ---namely NGINX--- and create a TLS termination point. Personally, I would go for the second option. Documentation is up to date and you can install several packages to automatically renew your TLS...
  13. amatria

    TFS 1.X+ Level&vocation instead of serverName in (CharList)

    Hey @5lave Ots. So, I gave myself sometime to better understand the login protocol and I've managed to pull this out [1]. I like how this one turned out indeed. Moreover, the programming solution better matches my very own quality standards. The changes are available here: ceb0a56. === [1] See...
  14. amatria

    TFS 1.X+ Level&vocation instead of serverName in (CharList)

    It is not possible to get rid of the world name with the new login protocol [1]. Therefore, the final result looks as follows: Amatria [180 EK] (Forgotten) I don't like it to be honest. Regarding the programming solution, because it is impossible to substitute the world name for the vocation...
  15. amatria

    TFS 1.X+ Level&vocation instead of serverName in (CharList)

    These changes may do the work: de1958f. Personally, I don't like the solution I've come up with, but it works. Moreover, it is not possible to get rid of the world name at the right of the character name. The final result looks odd to me, lmao.
  16. amatria

    TFS 0.X [Warning - Vocations::getVocation] Vocation 429496 not found.

    I'm guessing there is a row in your database's players relation with a vocation value of -1. Connect to your database engine and check it yourself. If this is the case, update it with a valid value. For instance, a value of 0.
  17. amatria

    Lua TFS 1.3 how to make a effect loop for the duration of a spell?

    I'm not sure if I understand your question. I guess you are using bigger sprites, right? Then you could do something in the lines of: local position = player:getPosition() local effectPosition = Position({x = position.x + foo, y = position.y + bar, z = position.z})...
  18. amatria

    Lua TFS 1.3 how to make a effect loop for the duration of a spell?

    data/scripts/creaturescripts/mana_shield_effect.lua -- time in seconds local effectInterval = 2 local intervalStorage = 9999 local manaShieldEffect = CreatureEvent("ManaShieldEffect") manaShieldEffect:type("think") function manaShieldEffect.onThink(creature, interval) local player =...
  19. amatria

    [France] [7.4] Tibia74 RL map #New Sever # START 18th of June 20:00 CET

    I'm guessing the formula is as follows: shared_exp = monster_exp / num_players * 1.25 @topic Best of luck! :p
  20. amatria

    [FRANCE] [CUSTOM] SpiderOT | Remastered Fresh Era | June 15th 2021

    I'm guessing they haven't enabled the bosses just yet. Last time I played there was a handful of powerful bosses that you would then kill as a team to level up much much faster.
Back
Top