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

    Lua attempt to index a nil value

    That works too. Thanks
  2. S

    Lua attempt to index a nil value

    Perfect! Thanks :D
  3. S

    Lua attempt to index a nil value

    That is working fine if there is not parameter like "add" "remove" etc.. But if you put "!autoloot add" then I get that error. After "add" there should be 1 more parameter. Full command is "!autoloot add, itemName" If I write "!autoloot add" I get error.
  4. S

    Lua attempt to index a nil value

    Same error when trying to check if item == "" or if item == nil etc.. I guess it just throws that error every time it tries to assign split[2]:gsub("%s+", "", 1) to item. Line 22
  5. S

    Lua attempt to index a nil value

    Ye sorry about that, I forgot I can show line numbers when posting code.
  6. S

    Lua attempt to index a nil value

    function onSay(player, words, param) local i = player:getAutoLootList() local cache = "Check your loot list: " local split = param:split(",") local action = split[1] if param == "list" then if i then for _, item in ipairs(i) do cache =...
  7. S

    Lua attempt to index a nil value

    Hey guys, I get "attempt to index a nil value" error when using !autoloot add without parameters, is it possible to remove this error, to perform some kind of check? "!autoloot add, itemName" - If itemName is not provided I get error in console. Here's the code: function onSay(player...
  8. S

    C++ Check if backpack is full

    Bump
  9. S

    C++ Check if backpack is full

    Hey guys, I'm using this code to auto loot items. uint32_t corpseOwner = container->getCorpseOwner(); if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) { return RETURNVALUE_YOUARENOTTHEOWNER; } else { if (player->autoLootList.size() !=...
  10. S

    [France][Custom / 8.0] Askara RPG | ELOTH TEAM | 8 SEPTEMBER 18:00

    @Czesc made a good point. 8.0 will never be long term server just because people who are playing old tibia version are older, they have jobs and they just wanna have fun in wars etc.. You gonna still make money from them, they always buy at least few stuff from the shop. If you really wanna make...
  11. S

    missing nightmare outfit/addons [TFS 1.2]

    hmm, I guess it is wrong then. They should update that.
  12. S

    missing nightmare outfit/addons [TFS 1.2]

    According to Tibia wiki, it was 7.9.
  13. S

    missing nightmare outfit/addons [TFS 1.2]

    Ye I'm using celohere/forgottenserver (https://github.com/celohere/forgottenserver), its ninjalulz dowgrade but celohere is maintaining it. 1598306261 Outfit.cpp /** #include "otpch.h" #include "outfit.h" #include "pugicast.h" #include "tools.h" bool Outfits::loadFromXml() {...
  14. S

    missing nightmare outfit/addons [TFS 1.2]

    Norserman is normal. <?xml version="1.0" encoding="UTF-8"?> <outfits> <!-- Female outfits --> <outfit type="0" looktype="136" name="Citizen" premium="no" unlocked="yes" enabled="yes" /> <outfit type="0" looktype="137" name="Hunter" premium="no" unlocked="yes" enabled="yes" />...
  15. S

    missing nightmare outfit/addons [TFS 1.2]

    When I add it it's looking like Norserman. Do I have to edit something on client?
  16. S

    missing nightmare outfit/addons [TFS 1.2]

    Hey guys I'm missing nightmare outfits/addons, can someone explain to me how I can add this outfit? Which file I have to edit? Here's my outfit.xml: <?xml version="1.0" encoding="UTF-8"?> <outfits> <!-- Female outfits --> <outfit type="0" looktype="136" name="Citizen" premium="no"...
  17. S

    NPC don't sell if you don't have capacity

    Same thing with this script, I think problem is with my spells.cpp. Here's the code where it is checking: ReturnValue RuneSpell::canExecuteAction(const Player* player, const Position& toPos) { if (player->hasFlag(PlayerFlag_CannotUseSpells)) { return RETURNVALUE_CANNOTUSETHISOBJECT...
  18. S

    NPC don't sell if you don't have capacity

    Ye I fixed it, just had to change: local a, b = doNpcSellItem(cid, shop_itemid[cid], shop_amount[cid], shop_subtype[cid], false, false, 1988) To: local a, b = doNpcSellItem(cid, shop_itemid[cid], shop_amount[cid], shop_subtype[cid], true, false, 1988) Thanks for the answer anyway :) 1598229227...
  19. S

    NPC don't sell if you don't have capacity

    Hello guys, I'm using TFS 1.2 and when I buy something from NPC he won't sell me unless I don't have enough capacity. I want to make him throw stuff under me if I don't have the capacity. Here's the part of the script that check's if I have cap or not: local a, b = doNpcSellItem(cid...
  20. S

    Old school Exhausted system

    I did not, I'm still new to this so I miss a lot of stuff, I changed code and compiled now everything is working fine. Thank you so much :D
Back
Top