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

    Lua Players can put items into Shop Inbox

    https://otland.net/threads/shop-system-delivery-for-tfs-1-1-with-store-inbox.245603/#post-2389202
  2. Majster12

    Solved Ferumbras' amulet remove storage at home.

    lol xD Thanks!
  3. Majster12

    Solved Ferumbras' amulet remove storage at home.

    local config = { time = 1, storage = 200011 } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local playerPos = player:getPosition() local chance = math.random(1, 2) if player:getStorageValue(config.storage) >= os.time() then return...
  4. Majster12

    Solved Ferumbras' amulet remove storage at home.

    I'ts even possible to remove storage when you leave item at home? Also no errors in console but don't work as it should. local config = { time = 1, storage = 200011 } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(config.storage)...
  5. Majster12

    Lua Players can put items into Shop Inbox

    There is another problem. Players can put items to container in Shop Inbox. -- Do not let the player insert items into either the Reward Container or the Reward Chest or Shop Inbox local itemId = container:getId() if itemId == ITEM_REWARD_CONTAINER or itemId ==...
  6. Majster12

    Solved Pagination in Depot Chest.

    depotchest.cpp Changed from: Container(type) { maxDepotItems = 2000; maxSize = 32; pagination; } to Container(type) { maxDepotItems = 2000; maxSize = 32; pagination = true; } but still no pagination. Fixed by server dev.
  7. Majster12

    Solved Debug when more than 15 transactions in Tibia Coins History.

    Are you sure you gave me corrected code? Bcs I already have this.
  8. Majster12

    Solved Debug when more than 15 transactions in Tibia Coins History.

    TFS 1.2 Tibia 10.97 gamestore/init.lua http://pastebin.com/raw/nFki8YpR Transfer window works fine.
  9. Majster12

    Lua Players can put items into Shop Inbox

    Thx! Solved.
  10. Majster12

    Lua Players can put items into Shop Inbox

    TFS 1.2 When i change like this no one can put items to bag/bacpkack. players.lua -- Do not let the player insert items into either the Reward Container or the Reward Chest local itemId = container:getId() if itemId == ITEM_REWARD_CONTAINER or itemId ==...
  11. Majster12

    Solved Global Bank System You don't have enough money.

    Working fine now after i added "()" Solved. if ((player:getMoney() + player:getBankBalance()) < totalCost) then local msg = self.npcHandler:getMessage(MESSAGE_NEEDMONEY) msg = self.npcHandler:parseMessage(msg, parseInfo) player:sendCancelMessage(msg)...
  12. Majster12

    Solved Global Bank System You don't have enough money.

    TFS 1.2 Any ideas? luascript.cpp int LuaScriptInterface::luaPlayerGetMoney(lua_State* L) { // player:getMoney() Player* player = getUserdata<Player>(L, 1); if (player) { lua_pushnumber(L, player->getMoney()); } else { lua_pushnil(L); } return 1; } int...
  13. Majster12

    Solved getPlayerFlagValue error

    Works fine now, thx!! But i have still problem with droploot function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) if getPlayerFlagValue(player, PlayerFlag_NotGenerateLoot) or player:getVocation():getId() == VOCATION_NONE then return true end...
  14. Majster12

    Solved getPlayerFlagValue error

    function onSay(player, words, param) if not player:getGroup():getFlags()(player, PlayerFlag_CanBroadcast) then return true end print("> " .. player:getName() .. " broadcasted: \"" .. param .. "\".") for _, targetPlayer in ipairs(Game.getPlayers()) do...
  15. Majster12

    Solved getPlayerFlagValue error

    1.2 broadcast.lua function onSay(player, words, param) if not getPlayerFlagValue(player, PlayerFlag_CanBroadcast) then return true end print("> " .. player:getName() .. " broadcasted: \"" .. param .. "\".") for _, targetPlayer in ipairs(Game.getPlayers()) do...
  16. Majster12

    Otloader.

    He is an owner of this program.
  17. Majster12

    GlobalEvent Shop System delivery for TFS 1.1+ with Store Inbox

    Everything working fine but when player never opened Store Inbox before there are a lot of errors.
  18. Majster12

    Solved getPlayerFlagValue error

    Can't broadcast. When someone die. Anyone have an idea?
Back
Top