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

    Targeted creature

    Hello! I wonder if there is somehow return the targeted creature when you shoot a rune on it? getCreatureTarget(cid) works for those who have attack activated on the creature, but what if u shoot a rune on someone you don't have attack activated? Thank you!
  2. L

    [LUA] bad argument #1 to 'ipairs' (table expected, got nil)

    What I wonder is what does this error output mean? bad argument #1 to 'ipairs' (table expected, got nil) The code looks like this: function spellSys:setCombatParam(paramType, value, ...) for _, v in ipairs(arg) do <--This is where the error occur when I look in my GUI...
  3. L

    The Lost Kingdom (TLK) - Keep it down or bring it back?

    Hello everyone! This is Lejjo aka Kadj, founder and owner of TLK (The Lost Kingdom). I have been gone for over 3 years now from OTs and done some irl stuff and now I am wondering how many of you old OT players (who are left of course) still wants another round of TLK and wants me to start...
  4. L

    Help with damage formula

    int32_t WeaponDistance::getWeaponDamage(const Player* player, const Creature* target, const Item* item, bool maxDamage /*= false*/) const { int32_t attackSkill = player->getSkill(SKILL_DIST, SKILL_LEVEL); int32_t attackStrength = player->getAttackStrength(); int32_t maxValue =...
  5. L

    [Help] Summon follow crash

    Hello! In TFS there is no such thing as summons follow so I putted in from some other OT (can't remember which) and it worked very well in previous TFS servers but now when I downloaded the last rev it crashes when someone with a summon reloggs. This is how the code looks now. in monster.cpp...
  6. L

    [TFS] Movement bug

    Well, I don't know how many have encountered this bug but I'll explain it here and hopefully someone can fix it. When you move around and do another thing the character gets freeze so either you have to move back to your last position or drag yourself to another position (from your last...
  7. L

    [TFS] 2008-02-01 Some LUA Functions

    Which LUA Functions? doCreatureChangeMaxHealth(cid, newHealth) doCreatureChangeMaxMana(cid, newMana) getPlayerSummonCount(cid) getCreatureSummonCountByName(cid, name) Start of the code: luascrpt.cpp Add... //doCreatureChangeMaxHealth(cid, newHealth) lua_register(m_luaState...
  8. L

    [TFS] 2008-02-01 baseSpeed in vocations.cpp for SQL users too

    First of all I want to say I have seen this codes in some places but not on this forum (OTServ Codes), so thats why I add it here. I didn't search for this on the forums and adding it here just to get credits, I don't care of it. I'm just here to help perople. What is this code? I think you...
  9. L

    [TFS] 2008-02-01 weakness/resistance

    What is this code? With this code you can choose if a certaine vocation should take more or less damage from different type of damage. I will explaine more at the end of this post, after the code part. Start of the code: game.cpp Add... Player* targetPlayer =...
  10. L

    [TFS] 2008-02-01 New weaponType

    What is this code? This code wil enable fist as a weaponType. So, if you want a certain weapon to be fist fighting, follow my simple steps. Start of the code: const.h Add... WEAPON_FIST = 8 ...under WEAPON_AMMO = 7, Note to add "," after the "7". items.cpp Add...
  11. L

    [TFS] 2008-01-30 Fixed stages.xml

    First off, if this is posted on wrong place, please put it on the right place since I got some other codes coming and I want to be on the right spot. What is this code? It is a fix in the creature.cpp where if you had a summon and killed a monster you wouldn't get the exp rate in the...
  12. L

    Healing spells

    Hello! I wonder if there is anyone who could help me with the healing spells. I am using TFS 0.2.9 and they don't work as they should. This is how MY script looks like: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)...
  13. L

    A new LUA function, getPlayerSummonCountByName(cid, name)

    Hello there! I'm making another try to get me a LUA function. I hope this time someone can help me. What this function will to is return the amount of how many summons of that creature the master has. Example: if getPlayerSummonCountByName(cid, skeleton) < 3 then executeCommand(cid...
  14. L

    doCreatureAddMaxHealth/Mana

    Do anyone know how to add this lua function? A function that changes the creatures max hp/mana doCreatureAddMaxHealth(cid, maxhp) doCreatureAddMaxMana(cid, maxmana) or doCreatureChangeMaxHealth(cid, maxhp) doCreatureChangeMaxMana(cid, maxmana) Another function that would...
  15. L

    [Sweden] The Lost Kingdom 8.0 RPG-PVP

    Welcome to The Lost Kingdom! First of all I want to give all the scammers out there a heads-up. Don't come here and talk offtopic stuff, remember that this is ADVERTISING section and if you got anything to say about the server, good or bad, do it, but think before you act. Write on a more...
Back
Top