• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. kubernik

    Lua Weird values on onEquip / onDeEquip with setMaxHealth function

    Meh, addEvent on userdata -> ka-boom.
  2. kubernik

    TFS A* Algorithm :D

    https://github.com/otland/forgottenserver/pull/5011/commits/7d57be1752a1403fcd07d922dd56115dd7f6d315 releaseFollowers called on removeCreature and in destructor, where releaseFollowers dont clear followers. 🤔
  3. kubernik

    TFS 1.X+ Arena monster hooks?

    Store the monster's UID in the cache and simply check if a monster with that UID exists. If it does, do whatever you want. monsterCache = {} monsterCache[monster:getId()] = true Or If not monsterCache[arenaId] then monsterCache[arenaId] = {} end monsterCache[arenaId][monster:getId()] = true...
  4. kubernik

    TFS 0.3.6 'isWater' (a nil value)

    isWater(getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and water To water and isWater(getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and add isWater func
  5. kubernik

    OTClient Show Manabar to All

    LocalPlayerPtr player = g_game.getLocalPlayer();
  6. kubernik

    How to make table from 1 to 10

    No it is not the same. Just add for yourself higher skill than you declared in table, but in your script this will work correct. so nvm. but if you wanna script like in topic then: local monstersConfig = { -- Should be organized by ascending skillLevel [{1, 10} ] = 'Orc', [{11, 20}] =...
  7. kubernik

    How to make table from 1 to 10

    With this change, this script should work better. playerSkillLevel >= _monsterConfig.skillLevel
  8. kubernik

    Lua Task system TFS 1.2 count party

    Better result will be with change this maxTotal = maxTotal 0 = 0 Xd
  9. kubernik

    TFS 1.X+ Help me Optymalized my Transform System

    Improvement with crash possibility and fuk up function, from script with table loaded once, you created function creating all the time the same table, this is fuk optimize and logic not improvement. Xd Btw.. Don't send userdata in addEvent. Better solution is just add addEvent in transform...
  10. kubernik

    Lua Killboss - add storage.

    This script is correct on my eye.. so if you tell me that this not working then you don't have request storage value or you don't have register event to player. Ps. remove lower()
  11. kubernik

    Lua Killboss - add storage.

    Then increase maybe this amount onkill. Add else and do somethink like this: setStorage(cid, monster.storage, getStorage(cid, monster.storage)+1) Or set this storage to 999 in another script.
  12. kubernik

    Lua Killboss - add storage.

    Default storage is -1 not 999.
  13. kubernik

    Lua local print nil value

    Define min and max before condition. Ex. local min, max = 0 Then in condition overwrite this var without local: min = max = https://www.lua.org/pil/4.2.html
  14. kubernik

    Points for all attackers

    What the... Xd try to use attackerPlayer instead of player. And use creature instead of cid.. you dont have cid declared in function. You don't have to create userdate "Creature(target)" because tfx 1.x return userdate to function. Try to think what you write in script.
  15. kubernik

    RevScripts anti mc

    You dont have defined cid.
  16. kubernik

    [TFS 1.3] [Globalevent] Random boss in room

    I suggest: bossIndex = math.random(#configBosses)
  17. kubernik

    Lua Script for tfs 1.3

    local Ruby = { rare = { chance = {1, 25}, items = { {2160, 1}, {2111, 2} } }, epic = { chance = {1, 50}, items = { {2160, 1}, {2111, 2} } }, lege = { chance = {1, 50}...
  18. kubernik

    Programmer Dll tibia 8.54[done]

    Lul, If something seems stupid, but someone wants to pay for it, what's the problem? Btw, Done.
  19. kubernik

    Programmer Dll tibia 8.54[done]

    reverse engineering. Hook the necessary places where parseAttack occurs and send same information with addional byte. I don't have source, but base is here(whatever): https://github.com/SaiyansKing/Tibia-Extended-Client-Library
  20. kubernik

    Programmer Dll tibia 8.54[done]

    I look for someone who can make little change with parseAttack in client: - just add new byte 0x00 when attacked is player or monster.
Back
Top