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

    Lua Intentialy reset level on death

    Am i doing something wrong? It still dosnt work for me. The script, <event type="preparedeath" name="resetlevel" script="resetlevel.lua" /> my login script.
  2. fishie

    Lua Intentialy reset level on death

    Done it twice because I wasn't sure what you meant. First one I copied it into the script and it didn't work with no errors at all, second one which gave the error was because I made two scripts. :/
  3. fishie

    Lua Intentialy reset level on death

    Tried Xeraphus script one more time and am now getting this error. pretty sure ive done everything right.
  4. fishie

    Lua Intentialy reset level on death

    I'm happy to give that a go but the script he posted didn't work. I'll test it again and all other methods posted again shortly when I'm home and let you know results.
  5. fishie

    Lua Intentialy reset level on death

    Haven't tried either I believe but im quite a noob when it comes to this stuff so wouldn't know how
  6. fishie

    Lua Intentialy reset level on death

    Any ideas how to fix it?
  7. fishie

    Lua Anyway to shorten this?

    Thankyou will clear up a lot of scripts in my folder if it works I'll test it tonight
  8. fishie

    Lua Intentialy reset level on death

    Yeah I tested it, it didn't work. :/ no errors either
  9. fishie

    Lua Intentialy reset level on death

    Ok dosnt work as perfectly as i had first thought, when a player is killed he is downgraded to level 100 but he isnt dead, he survives and has to be killed again before its registered as a death. Basicly, if i walk on fire at level 120 till death i dont die i just get downgraded to level 100...
  10. fishie

    Lua Anyway to shorten this?

    Ive got a working script that creates a teleport when a monster dies, but instead of creating multiple scripts to make multiple monsters create the tp can this script be edited to make multiple monsters make multiple tps?
  11. fishie

    Lua Intentialy reset level on death

    Well the reason is I'm guessing the script is setting the level on death and then the death% is also getting taken off after death. Im going to try the other way posted above later when I'm back home but currently I'm happy it's working as intended as the player isn't really aware he's been...
  12. fishie

    Lua Intentialy reset level on death

    The script posted by cade is working now i changed it about and it seems to work perfectly.
  13. fishie

    Lua Intentialy reset level on death

    Believe i have fixed it, ive changed the player:removeExperience(player:getExperience() - getExpForLevel(100)) too player:removeExperience(player:getExperience() - getExpForLevel(102)) When players die they are downgraded to level 102 but log back in at 100. Seems to work tho im still...
  14. fishie

    Lua Intentialy reset level on death

    Added this and i get the same situations as when @Xeraphus created the origional script. The player dies, at level 159 for example and before he dies he is downgraded to level 100. When he logs back in he is level 98. Its progress tho.
  15. fishie

    Lua Intentialy reset level on death

    Fixed the type, now getting the error and players are unable to die.
  16. fishie

    Lua Intentialy reset level on death

    Added to login.lua local events = {'PlayerDeath', 'DropLoot', 'PK Storage', 'resetlevel', ~~~ Added the creaturescripts.xml <event type="death" name="resetlevel" script="resetlevel.lua" /> Still dosnt work. No errors in console either
  17. fishie

    Lua Intentialy reset level on death

    Just add that as a creature script? added it as a creature script and it dosnt seem to work players levels dont reset on death
  18. fishie

    TFS 1.X Bounty Hunter System

    Sorry for being a noob but where do i add the datebase part?
  19. fishie

    Lua Intentialy reset level on death

    Id prefer if it didnt, prefer just on death. Still not found a solultion and this is stopping me putting my server into beta testing
  20. fishie

    Lua Intentialy reset level on death

    Anyone? How hard can it be to reset a characters level on death?
Back
Top