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

    Lua Special rune charge remover

    Well I changed in the config to remove the rune charges and the runes in the specials I removed the spells.xml charges and it worked for both, thanks
  2. darkmu

    Lua Special rune charge remover

    Do you say convert all runes to action script? Could you give me a very simple example?
  3. darkmu

    Lua Special rune charge remover

    I created several special runes on my server, but I would like to leave them not infinite, that is, using it will spend loads, however, using the creature: removeItem (X, 1) function it will only remove the runes if it has in the backpack and if he uses it on the floor it will remain infinite...
  4. darkmu

    Lua understanding onGainSkillTries

    How strange when I hit the monk my debbug presents on the console but when I hit the dummy even forcing a function call it does not work the debugger :(
  5. darkmu

    Lua understanding onGainSkillTries

    So I put a print on the function onGainSkillTries, when I use exercise on the dummy it seems to me that it is not calling that function :(, it is only called when I hit monsters. I'm trying to find out what that means, it's in LIB / CORE / player.lua APPLY_SKILL_MULTIPLIER = true local...
  6. darkmu

    Lua understanding onGainSkillTries

    Well I made a system that "doubles" the skill rates for X hours, however I was very confused on how this function works onGainSkillTries, I will post what I did and I would like to know if it is correct? function Player:onGainSkillTries(skill, tries) if APPLY_SKILL_MULTIPLIER == false then...
  7. darkmu

    TFS 1.X+ Message: Out of range value for column

    After I created a system to add lucky points in the database instead of storage, I started to give some problems in my bank like: TFS 1.3 2020-12-25 21:22:02 - [Error - mysql_real_query] Query: UPDATE `players` SET `level` = 1145,`group_id` = 1,`vocation` = 11,`health` = 10891,`healthmax` =...
  8. darkmu

    Lua santa claus npc error

    Official Topic: NPC - (New) Santa Claus (https://otland.net/threads/new-santa-claus.60905/) USING TFS 1.3 function showTimeLeft(number, usewords) local number = tonumber(number) if not number then return "error" end if number < 0 then return "expired" end local...
  9. darkmu

    TFS 1.X+ calculating the loss of experience

    I'm making a system that when dying, the player will have time so that he can trigger an item and recover all lost experience (NOTE: EXPERIENCE AND NOT LEVEL), however I don't know if there is any function on the LUA or if I have to make any formula , will be that someone can help me, my biggest...
  10. darkmu

    Lua when dying receive storage

    Strange that I am dying and soon after I am unable to use the item, I think I did everything right. I registered the event at login and left it with the tag in the xml, even debugging it to see if I was calling the file correctly. :(
  11. darkmu

    Lua when dying receive storage

    I'm trying to make a system that when dying by a monster, the person will get a storage in which they will use it in the future to recover the level using an item. function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) local player =...
  12. darkmu

    Lua change the effect of the arrow using a bow

    Good morning people, I would like to know if there is a possibility to exchange the Diamond Arrow Combat by checking the BOW id that I will be using. In the case of each bow used the: combat: setParameter (COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) will change. TFS 1.3 local area =...
  13. darkmu

    Lua highscore not repeat

    I am developing a highscore but I would like to know how I make it so that the players return without repeating the same thing. And I would also like to put the names of the players, you think that making an inner join in a query is very bad, what would be the best way? TFS 1.3 function...
  14. darkmu

    Lua attempt to call method 'isVip' (a nil value)

    I modified the boss levers so that if the character is VIP, the waiting time is shorter, however, I am suffering several errors of this type, can someone help me? VIP SYSTEM: https://otland.net/threads/vip-system-the-forgotten-server-1-0.224910/ TFS 1.3 error 2020-11-22 19:40:15 - Lua Script...
  15. darkmu

    Lua attempt to compare table with number

    on line 25 too?
  16. darkmu

    Lua attempt to compare table with number

    https://otland.net/threads/tfs-1-x-help-with-getdamagemap-and-table.269852/ I'm trying to follow this topic, but I got an error. If more than 2 people attack the same monster it simply returns this error: Lua Script Error: [CreatureScript Interface]...
  17. darkmu

    Lua conditions attributes losing

    Could someone tell me if it is possible to use a condition for the player to put on dying, when using another type of condition he does not lose? just lose for the same time? For when using my critical potion if he uses any magic that increases the damage / critical or dies he simply loses. TFS...
  18. darkmu

    TFS 1.X+ mount in protect zone

    just a doubt, when i try to mount on top of the protect zone it will not let me, however if i mount outside and enter it works. do i need to remove this? tile-> hasFlag (TILESTATE_PROTECTIONZONE) if (mount) { if (isMounted()) { return false; } if...
  19. darkmu

    TFS 1.X+ mount in protect zone

    Does anyone know if I release using mounts in a protected zone, there may be a bug on the server? If not, can someone tell me where in the source I can release it for everyone to use in the protection zone? TFS 1.3 OTG PREMMIUM VERSION
Back
Top