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

    TFS 1.X+ Clean Area

    Oh, you didn't specify to clean certain items, mine will clean any item in the area :p
  2. Ramirow

    TFS 1.X+ Clean Area

    Made this with a lever id 1945, but you can use the core part of the script to see how it's done. I'm almost sure that this will work, didn't test it. local area = { fromPos = {x = , y = , z = }, toPos = {x = , y = , z = } } function onUse(player, item, frompos, item2, topos) if...
  3. Ramirow

    Check vocation npc

    Try this one out.
  4. Ramirow

    TFS 1.X+ Create ite in area randon

    Try this: function onUse(cid, item, fromPosition, itemEx, toPosition) local danoSupremo = { fromposdaSupremo = {x = 1252, y = 1007, z = 4}, toposdaSupremo = {x = 1261, y = 1013, z = 4} } function Box() local randX = math.floor(math.random(0,(toposdaSupremo.x - toposdaSupremo.x)))...
  5. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Try this one and see if the errors stop local config = { storage = 9999, --Use empty storage outfit = {lookType = 0}, --still working on the to turn into dead body time = 5, --How long will it take until he revives from the death text = "You will be revived in 5 seconds", --The...
  6. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    There's more. local config = { storage = 9999, --Use empty storage outfit = {lookType = 0}, --still working on the to turn into dead body time = 5, --How long will it take until he revives from the death text = "You will be revived in 5 seconds", --The text which appear when...
  7. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    So it dies..I wonder why, another try (? local config = { storage = 9999, --Use empty storage outfit = {lookType = 0}, --still working on the to turn into dead body time = 5, --How long will it take until he revives from the death text = "You will be revived in 5 seconds"...
  8. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Found it, test this one: local config = { storage = 9999, --Use empty storage outfit = {lookType = 0}, --still working on the to turn into dead body time = 5, --How long will it take until he revives from the death text = "You will be revived in 5 seconds", --The text which...
  9. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Seems fine. About the edit2 you did As I suspected, those are the parameters tfs 1.2 uses, I don't really know or have an example for an statsChange function and the parameters it receives, they are surely named different
  10. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    For example: <event type="healthchange" name="statHP" script="stats.lua"/> That's as I have registered in TFS 1.2
  11. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Remember this is no more an onPrepareDeath function, I don't know how you have it registered in creaturescripts.xml
  12. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Following what Xikini said, can you please test this? I don't know if these parameters passed to onStatsChange are correct (They are for TFS 1.2 at least) This, in theory, will only work if the player HAS the storage, still not doing the REVIVING by others part local config = { storage =...
  13. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Oh, I tought by the name of 'onPREPAREdeath' that it was executed just before doing the 'die' part, so if paused there, it would let him die normally, guess not. Is onStatsChange function on his TFS? I don't remember much about 0.3.6 or 0.4
  14. Ramirow

    [Archived] "[Quick Showoff] Post your latest maps"

    Yeah, the second one is a total mess lol will look up that ID and see what it is, thank you friend <3
  15. Ramirow

    Solved stopEvent TFS 0.4 is not working.

    They are different scripts? I don't know if it's causing it as I don't have much experiencie with events, but try removing local from the event function. From this: local function countDown(number, pos, effect, msgonend, effectonend) To this: function countDown(number, pos, effect...
  16. Ramirow

    Script Arena Help

    I'm glad to hear that Dorianek! n_n enjoy!
  17. Ramirow

    Script Arena Help

    This one should work, 99% sure local storage = 30001 -- used to display remaining time local area = { fromPos = {x = 360, y = 7, z = 9}, toPos = {x = 371, y = 10, z = 9} } local playerPos = {x = 366, y = 8, z = 9} local areaTimer = 10 * 60 local function getPlayerFromArea() for x =...
  18. Ramirow

    Script Arena Help

    I just can't test this and don't really know the exact way to remove a monster, maybe with this one? local storage = 30001 -- used to display remaining time local area = { fromPos = {x = 360, y = 7, z = 9}, toPos = {x = 371, y = 10, z = 9} } local playerPos = {x = 366, y = 8, z = 9}...
  19. Ramirow

    Script Arena Help

    You have erased a lot of "do" and uncommented the first line, a comment should cointains two -- instead of one, else the server will try to load it as part of the code local storage = 30001 -- used to display remaining time local area = { fromPos = {x = 360, y = 7, z = 9}, toPos = {x =...
  20. Ramirow

    TFS 0.X onPrepareDeath; player dont die.

    Mmm I think there's no function to make the player die, I'm trying to think of a workaround, maybe a "simulation" of the death, after those 5 seconds, it gives him a different storage and kicks him out of the game. When he relogs, we check for that storage, if it has it, it means he has died...
Back
Top