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

  1. K

    Solved Get names of all creatures from tile

    It was rly that simple? ;D Thank you
  2. 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...
  3. K

    TFS 1.2 (8.6, 10.77) addManaSpent - knight bug

    I just modified source not to show advance msg when i dont want it to be shown.
  4. K

    TFS 1.2 (8.6, 10.77) addManaSpent - knight bug

    Made some progress. I found out that server is sending to client too many 'Server log' massages. I replaced this while player:getSkillLevel(SKILL_SHIELD) < 50 do player:addSkillTries(SKILL_SHIELD, player:getVocation():getRequiredSkillTries(SKILL_SHIELD...
  5. K

    TFS 1.2 (8.6, 10.77) addManaSpent - knight bug

    Edited first post
  6. 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...
  7. K

    db.query question

    It might work, but for example using addManaSpent every new player logged first time see the massage "You advanced to magic level 1. You advanced to magic level 2 ... up to 60"
  8. K

    db.query question

    I've edited my last post. I know it, but its going to set stats for new characters -> it can't be set with onLogout I also don't see any lua function to load character from db or set magic level / skills to specific value
  9. K

    db.query question

    Doesn't work. I don't wanna change all the players ( this is just a sample I used to understand how query works, I'll add correct conditions later) Lines of code in the first post are the only one I've added to original login.lua from official tfs 1.2, just above welcome message. The problem is...
  10. 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...
  11. K

    Change new character skills, stats and level

    How ? If i change value of level in DB (which i finally decided to do - becouse i dont want to see "you advanced" message on login) things like hp, mana etc won't change. I think i'll just check the correct values of hp/mana for the level i want and update them in firstitems.lua
  12. K

    Change items in stack value

    have the same problem, but it seems too much work ;p
  13. 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...
  14. K

    Place monster

    thank you :)
Back
Top