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

Search results

  1. S

    AAC [Znote AAC 1.5] admin.php

    Give shop points to character is not working. Checking how many points i have is null? post data Print: - Array ( [points_char] => [God] Shadow [points_value] => 7 ) fetching account id from players table Print: - Array ( [id] => 7 ) Fetching existing points from znote_accounts...
  2. S

    Lua TFS 1.2 Glooth axe, sword, club not removing charges

    Does anyone know how to make glooth weapons losing charges (on attack and skill use) and then when it's 0 remove weapon? Because this is not working: items.xml <item id="23549" article="a" name="glooth club"> <attribute key="defense" value="1" /> <attribute key="attack"...
  3. S

    Lua TFS 1.2 Player:onMoveItem

    I want to do script when you move item to CONST_SLOT_NECKLACE then return false. if toPosition == CONST_SLOT_NECKLACE then return false end This is not working, any ideas?
  4. S

    Lua 10.99 store check free capacity

    Need some help with script. If i buy something in shop without capacity it removes coins and no item will be added. If i have capacity for like 44 runes and i buy x250 i will get only 44 and lose coins. I wonder how to add check player free capacity for item that we are buying (example 250...
  5. S

    Solved 10.99 Table 'ots_server.store_history' doesn't exist

    Anyone knows SQL command to add working table 'store_history' for new ingame store? [Error - mysql_real_query] Query: INSERT INTO `store_history`(`account_id`, `mode`, `description`, `coin_amount`, `time`) VALUES (3879, 0, 'Shadow transfered you this amount.', 25, 1478724576) Message: Table...
  6. S

    Solved TFS [1.2] Enchanting weapons

    Script is working without any errors but gives only magic effect "CONST_ME_MAGIC_RED" it passed full script but weapon is not enchanted, also gems cannot be enchanted (mini message ingame - error sorry not possible when using on altar). All id of items are ok, actions.xml is ok. I've checked it...
  7. S

    Solved [TFS 1.2] Halloween outfit

    I've updated my TFS 1.2 from 10.80 to 10.82 client version. My problem is.. i can't see Halloween outfit when i select outfits with my god character. The only way i can use Halloween outfit is using command /looktype 759 or /looktype 760 outfits.xml <outfit type="0" looktype="749"...
  8. S

    Solved [TFS 1.2] Addoner

    I need help with my addoner npc. I'm trying to make it working on TFS 1.2. Lua Script Error: [Npc interface] data/npc/scripts/[Addons].lua:onCreatureSay data/npc/scripts/[Addons].lua:27: bad argument #1 to 'maxn' (table expected, got nil) stack traceback: [C]: ? [C]: in function...
  9. S

    Solved [Gesior2012][database query]

    I was trying to make query to see value of paw and fur storage so i could show how many points of paw and fur i have. Paw and fur is key 2500 always and i need to see value of this storage. '.$pawandfur[0].' $id = $player->getCustomField("id"); $pawandfur =...
  10. S

    Solved [TFS 1.2] !online counting ghost

    #edit I fixed it this way, now everything is fine :P function onSay(player, words, param) local cid = player if(not checkExhausted(cid, 555, 5)) then return false end local hasAccess = player:getGroup():getAccess() local players = Game.getPlayers() local playerCount =...
  11. S

    Lua [TFS 1.2] !commands full list of commands from talkactions.xml

    Very useful command that shows you list of possible commands. I didn't found a single script working with new TFS versions. This type of coding is too hard for me for now. Could be nice if anyone have any ideas how to upgrade this script. Old code from TFS with tibia version 8.6 local config...
  12. S

    Lua TFS 1.2 !exit

    Here is final script fully working and calculated. Script made by RazorBlade, thank you. To make exhaust working you need this: talkactions/lib/talkactions.lua function checkExhausted(cid, storage, seconds) local v = exhaustion.get(cid, storage) if(not v) then...
  13. S

    Compiling [TFS 1.2][Windows7] How to generate a crash dump for Windows MSVC 2013

    This is not working: https://otland.net/threads/generating-crash-dump-with-windows-microsoft-visual-c-2010-msvc-only.141725/#post-1364751 Using MSVC 2013 and TFS 1.2 ORTS Anyone knows how to make crash log on windows 7? I need to know what i should write in: C/C++->Preprocessor->Preprocessor...
  14. S

    Action [TFS 1.2] Stamina doll

    I made this script since i don't see any useful stamina doll. actions/actions.xml You can change 7377 to your item ingame, make sure this item is not used by other script in actions.xml. <action itemid="7377" script="staminaDoll.lua" /> actions/scripts/staminaDoll.lua --script made by...
  15. S

    Solved TFS 1.2 interesting bug with destroy.lua onDestroyItem, added video and ss to explain

    Lua Script Error: [Action Interface] data/actions/scripts/other/destroy.lua:onUse data/actions/lib/actions.lua:89: attempt to call method 'isItem' (a nil value) stack traceback: [C]: in function 'isItem' data/actions/lib/actions.lua:89: in function...
  16. S

    Solved TFS 1.2 clean houses of inactive players

    Script now working, big thanks to Ninja who made this script! Tested on TFS 1.2 (100% working) local config = { days = 30, --- days to clean houses --- log = true, file = "data/logs/cleanhouses.txt" } local function doWriteLogFile(file, text) local f = io.open(file, "a+")...
  17. S

    Solved Gesior acc Guild with ID 0 doesn't exist. when creating guild

    When i create guild there is: But there is no new guild and when i press submit there is error: guilds.php http://wklej.to/f2Edx
  18. S

    Solved TFS 1.0 oldlevel ~= newlevel

    function onAdvance(cid, type, oldlevel, newlevel) if (oldlevel ~= newlevel and type == SKILL__LEVEL) then this line: if (oldlevel ~= newlevel and type == SKILL__LEVEL) then not working, no error in console, it just dont pass it when i lvl up. Its from old script and i can't find how to make...
  19. S

    Compiling TFS 1.0 exhaust - timeBetweenExActions

    Now i have 2x c++ exhaust. timeBetweenExActions is global exhaust and makes additional exhaust after spamming for an example sudden death rune. If i change: timeBetweenExActions = 1000 into: timeBetweenExActions = 80 there is no additional exhaust on runes but there is a big problem. Since...
  20. S

    Compiling TFS 1.0 warning C4245: 'argument' : conversion from 'int' to 'uint16_t', signed/unsigned mismatch

    When i compile TFS 1.2 there are 2 errors. (compile is completed but i want to fix those errors) 1>..\src\luascript.cpp(1317): warning C4245: 'argument' : conversion from 'int' to 'uint16_t', signed/unsigned mismatch 1>..\src\protocolgame.cpp(267): warning C4100: 'operatingSystem' ...
Back
Top