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

    Lua Help with some Actions

    that looks fine to me, I'm a beginner man! hahaha Just test it :P
  2. filipus

    problem with firstitems!

    Actually the errors are not related to that script. I believe you have bad libs, I'm not sure so you better wait for someone more expert.
  3. filipus

    Lua Help with some Actions

    tile1 = {x=32367, y=32181, z=7, stackpos=0} --change tilepos gettile1 = getThingfromPos(tile1) doRemoveItem(gettile1.uid,1) Hope that helped.
  4. filipus

    Lua Items Bug?? Help

    Send me a PM in portuguese and I will try to translate.
  5. filipus

    Solved isInArea not working (0.3.6)

    So, what happens is that it runs through the code, teleports the player out of the arena (doesn't add health) and then runs again (because his health is 0) and the player dies. The message is displayed, only once. that last Orange frase is to test if my other death script runs.
  6. filipus

    Solved isInArea not working (0.3.6)

    I did, it doesn't work. Tried with specific numbers also, isn't working this is my line now doCreatureAddHealth(cid, math.random(100, 700)) Thank you so much for helping me, really.
  7. filipus

    Solved isInArea not working (0.3.6)

    Hm... I don't know, I went to check other creturescripts of other otservers and they follow the same system. But I changed the registerCreatureEvent() from death to deathcheck and now it works :D My only problem now is adding health to the player, so that he doesn't die.
  8. filipus

    Solved isInArea not working (0.3.6)

    Im using 0.3.6, how can I had that function? Yea, and even if I take off the arena thing it is not working now. I have no idea how I could have possibly broken it o.O <event type="death" name="deathcheck" event="script" value="death.lua"/> registerCreatureEvent(cid, "death")
  9. filipus

    Solved isInArea not working (0.3.6)

    Im felling stupid... Is that I deleted the ifs because it seemed weird to me and forgot to put them back haha. Ok, this is my current script local arena = { frompos = {x=32389, y=32188, z=7}, topos = {x=32403, y=32201, z=7}, exit = {x=32404, y=32204, z=7} } function onPrepareDeath(cid...
  10. filipus

    Solved isInArea not working (0.3.6)

    WOW, WOW WOW. This is what happens when you download servers like a noob. function isInRange(pos, fromPosition, toPosition) return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z and position.x <= toPosition.x and position.y <= toPosition.y...
  11. filipus

    Lua Help with some Actions

    You check the storage and then teleport the player. You can try to search for the code that doesn't allow people to enter houses, that should work for you (I have no idea where it is).
  12. filipus

    Solved isInArea not working (0.3.6)

    Yes I tried the isInRange function, same error. If I take off the "if isPlayer(cid) then" it doesn't give any error but sets the position of the char to 0,0,0. I have another script that uses onDeath, does that interfere?
  13. filipus

    Lua Help with some Actions

    function onStepIn(cid, item, position, fromPosition) tile1 = {x=32367, y=32181, z=7, stackpos=0} --change tilepos doCreateItem(9999,1,tile1) --change itemID --change tile ID Hope that helps.
  14. filipus

    Solved isInArea not working (0.3.6)

    getCreaturePosition = getThingPosition getPlayerPosition = getCreaturePosition Yes I do. And I tried that, still didn't work. ooo, interesting. So... how do I get the player position if that function only returns true and false?
  15. filipus

    Lua How to detect it is night?

    So, is there any way? How does the server calculate the day and night cicle? I'm currently using tibian time correctly (using the tíbia watch script haha) but I can't find a way to determine if its night or not. My problem is that the moment that the night activates seems to change acording to...
  16. filipus

    Solved isInArea not working (0.3.6)

    So I'm using the isInArea function. I don't know why but it doesn't seem to be working. Here is my code: local arena = { frompos = {x=32389, y=32188, z=7}, topos = {x=32403, y=32201, z=7}, exit = {x=32404, y=32204, z=7} } function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if...
  17. filipus

    Lua War Of Emperium, reward, double exp in 24 hours?

    Ok, so create a global script and instead of onUse put onThink() Or create a creature script and use onLogin. I think you can figure out the rest haha. @edit ACTUALLY, you don't need to even change it. Just transfer the code that multiplies the XP to the place where you give 2x...
  18. filipus

    Lua I need help with a quest

    http://otland.net/threads/npc-mission.211063/ You can send me 10 dollars to my paypal whenever you want :)
  19. filipus

    Lua War Of Emperium, reward, double exp in 24 hours?

    You can use a storage and then to something like doPlayerAddExperience() Post your scroll here, I can try to help. I'm a new scripter so if it doesn't work like that, sorry. http://otland.net/threads/lua-understanding-storages.189075/
  20. filipus

    Map problem.

    Its probably a map made with a custom RME, go to the place where you downloaded the map and it should say on the topic which version of RME they are using. Hope that helps.
Back
Top