• 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. 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...
  2. 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...
  3. 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)...
  4. 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...
  5. 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