• 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!

Recent content by Kaivan

  1. K

    Lua How to change arrow attack speed?

    I tried it this way, but every time I shoot an arrow, the system detects it as DeEquip, not working as it should. I had other attempts using Equip and DeEquip and that didn't work.
  2. K

    Lua How to change arrow attack speed?

    Bump, I really need help on this
  3. K

    Lua How to change arrow attack speed?

    Hi, I was trying to change the attack speed of a certain bow, and I managed, using the attackspeed attribute in the items.xml. However, I had problems, since even without equipped arrows the attack speed is still different (obviously). Then I tried to change the arrow's attackspeed attribute...
  4. K

    Lua Check if the player is in an area

    Wow, so simple, thanks.
  5. K

    Lua Check if the player is in an area

    Hello, I'm trying to check the players area, and run a script, but it's not working. I made this function to check the player's position, but it doesn't return anything. function isInArea(player) local pos = player:getPosition() if pos.z == 9 then if pos.x >= 2039 and pos.y >= 2005...
  6. K

    Lua Condition dont apply damage

    That worked, thanks.
  7. K

    Lua Condition dont apply damage

    Hello, I'm trying to make the fire condition apply when playing attacking the other, but despite being applied, it's not returning damage to the player. What am I doing wrong? function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)...
  8. K

    Lua [Solved]Help, i can't teleport players from a town

    This worked perfectly, thank you very much
  9. K

    Lua [Solved]Help, i can't teleport players from a town

    Hello, I'm racking my brain trying to do this, but it should actually be simple: I created a Global event that spawns an NPC that teleports you, and set your Town to 3, and in that same event a Timer for the NPC to "go away". local npc_name = "Captain Barry" -- npc name function...
  10. K

    Lua If logout in town 2, respawn in town 1. Its possible?

    This worked, put in the login script, and in the end, for set player to town 1, like: if player:getTown():getId() ~= 1 then player:teleportTo(Town(1):getTemplePosition()) player:setTown(Town(1)) end Thank you very much.
  11. K

    Lua If logout in town 2, respawn in town 1. Its possible?

    It’s good to think, to define an area to identify the territory in which the player is. idk what happened, but even in Town 1, he respawn at the temple after logging in. I tried it both as an event and in the login script and I had the same result.
  12. K

    Lua If logout in town 2, respawn in town 1. Its possible?

    Hello people, I would like to know how I could make a system in which, if a player logs out of a town other than ID 1, upon logging in, he respawn in the temple of town 1. Its possible? How? Sorry for my bad english, thx
Back
Top