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

  1. Kooda

    Scripter Kooda Scripting Services

    Hi, I'm available again, add me on Discord Kooda#3901
  2. Kooda

    Help with Error in Dodge and Critical System tfs 1.3

    There is no getDodgeLevel function on your server, did you install the system before using those lines?
  3. Kooda

    Solved [TFS 1.3] Create playerdata table of an offline player

    OfflinePlayer = { id = -1, guid = -1, name = "", pos = Position(0,0,0), } function OfflinePlayer:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function OfflinePlayer:load(id) local player = db.storeQuery("SELECT * FROM players...
  4. Kooda

    Solved [TFS 1.3] Create playerdata table of an offline player

    Yes, that's a source edit, thats the only way to get a Player() offline. If by some reason you can't recompile your server, I would suggest using a metatable for something like OfflinePlayer, and creating individually the functions so you can call something like player:getPosition() that way
  5. Kooda

    Solved [TFS 1.3] Create playerdata table of an offline player

    Here's the edit: https://github.com/opentibiabr/otservbr-global/pull/1194/files#diff-62aa9c61dc49a0decc4065f0bf8a8038a56aea325a2c496a048e7657abd03cca However for simplier purposes: Below registerMethod("Game", "reload", LuaScriptInterface::luaGameReload); Add registerMethod("Game"...
  6. Kooda

    Solved [TFS 1.3] Create playerdata table of an offline player

    This function should create a metatable of a player Game.getOfflinePlayer(id) EDIT: Nekiro is right, actually I was looking at a function used on otservbr for the hirelings system.
  7. Kooda

    Lua onkill multiple lootbag bug

    Correct me if I'm wrong, but I think onKill triggers twice (in case lastHit is dif from mostDamage), I suggest changing the method to onDeath local function getKillers(creature, party) local killers = {} local timeNow = os.mtime() local inFightTicks =...
  8. Kooda

    Lua tfs 1.3 manarune from % to standard calculating value

    It works, yeah, but it will always take the top creature, even if you use it on yourself, if someone (be it monster or player) moves into your position they will be considered the top creature, so in stairs you will be using the mana rune in another person if you are not the last to enter the sqm
  9. Kooda

    Lua tfs 1.3 manarune from % to standard calculating value

    I don't mean to be rude but I recommend using Creature(variant.number) because if you use the rune on the target list it will not work using variant:getPosition() add runeTest:needTarget(true) if you use my script as well
  10. Kooda

    Lua text above teleport for tfs 1.3

    local config = { positions = { {pos = {x = 970, y = 1072, z = 7}, text = "Hello Sir! How are you?", effects = {CONST_ME_MAGIC_BLUE}}, {pos = {x = 855, y = 972, z = 7}, text = "How are you?"} }, effects = {CONST_ME_POFF, CONST_ME_TELEPORT, CONST_ME_MAGIC_RED} } local teleport =...
  11. Kooda

    TFS 1.X+ [1.3][OTSERVbr]How to allow multilogin?

    On config.lua set "onePlayerOnlinePerAccount" to false
  12. Kooda

    RevScripts [1.3][OTBr] Money Change

    Try with this local config = { [ITEM_GOLD_COIN] = {changeTo = ITEM_PLATINUM_COIN, changeToReq = 100}, [ITEM_PLATINUM_COIN] = {changeBack = ITEM_GOLD_COIN, changeBackAmount = 100, changeTo = 2160, changeToReq = 100}, [40407] = {changeBack = 2160, changeBackAmount = 5}, [2160] =...
  13. Kooda

    Use bless tfs 1.3

    Try with function onUse(player, item, fromPosition, target, toPosition, isHotkey) if(player:hasBlessing(1) and player:hasBlessing(2) and player:hasBlessing(3) and player:hasBlessing(4) and player:hasBlessing(5) and player:hasBlessing(6)) then...
  14. Kooda

    Lua tfs 1.3 manarune from % to standard calculating value

    local runeTest = Spell(SPELL_RUNE) function runeTest.onCastSpell(player, variant) local targetPlayer = Creature(variant.number) if not targetPlayer or not targetPlayer:isPlayer() then player:getPosition():sendMagicEffect(CONST_ME_POFF) return false end local...
  15. Kooda

    OTClient Question about merging maps

    Otservbr keeps a different map for, as the name says, differencing between real map and custom things, that's why, so you can actually even delete the otservbr-custom and nothing will happen. I recommend making a new map, and YOUR changes adding them there, like custom floor for temple etc. So...
Back
Top