• 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

    Solved Get names of all creatures from tile

    I've tried this: local tile = Tile(pos) local tileCreatures = tile:getCreatures() --print(tileCreatures) if tileCreatures then for i = 1, #tileCreatures do local creature = Creature(tileCreatures) print(creature:getName()) end end But creature:getName() is nil...
  2. K

    TFS 1.2 (8.6, 10.77) addManaSpent - knight bug

    ERROR EDITED if vocation == 4 or vocation == 8 then while player:getSkillLevel(SKILL_SHIELD) < 50 do player:addSkillTries(SKILL_SHIELD, player:getVocation():getRequiredSkillTries(SKILL_SHIELD, player:getSkillLevel(SKILL_SHIELD) + 1) - player:getSkillTries(SKILL_SHIELD)) end...
  3. K

    db.query question

    I made short script in login.lua to update db every login. local playerGuid = player:getGuid() db.query("UPDATE `players` SET `maglevel`=60 where `id`="..playerGuid) And it works good just for the first character logged on server. If i change character to another or relog query seems not to...
  4. K

    Change new character skills, stats and level

    Im dealing with easy problem (at least i thought so ;D) What is the most efficient way to change level, stats and skills of new characters? TFS 1.2 About level I'm using znote, i can easy edit level in config, but for different vocations stats would be wrong - i can't do it. I can also use...
  5. K

    Place monster

    Hiho I need a possibility to place monsters on notwalkable tiles and to place few monsters on the same tile. It was possible in older versions of tfs, im using 1.2 I've tried some src edit (map.cpp) but mission failed Thanks for any help :)
  6. K

    Lua doTargetCombatHealth

    Hello, can you help me to understand why this function doesn't work as i think it should ? Here is the simple example code: function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) doTargetCombatHealth(creature, attacker...
  7. K

    The Forgotten Server has stopped working (r3777, win10)

    Hello, i have a problem with my tfs. It's rev 3777, compiled with devcpp using stian's repack on windows 10. The problem is that tfs actually works on Debian 8 (i've compiled it and run), but I want to have it on windows - it's more comfortable for me. The problem might by items.xml which works...
  8. K

    Compiling Compiling TFS r3777 on Windows10 using Visual Studio

    How can i do it ? I've got the source prepared to compile with devcpp, is there any chance to compile it using visual ?
  9. K

    Increase fire dmg

    Hello :) Do you know how to increase for example dmg dealing from fire for specified player ? I've tried to write my own function, but i have a problem to distinguish player from monster becouse dmg is assigned to creature in game.cpp
  10. K

    Assertion `!ret' failed.

    TFS 0.4 rev3884 Debian 8 libboost-dev_1.55.0.2_amd64.deb I've checked that destructor, tried to edit some things but it didn't help. Any ideas ?
Back
Top