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

Recent content by trustjah

  1. trustjah

    TFS 1.X+ How to improve this code

    creaturescript.lua local OPCODE_PARTY = 160 function onThink(creature, interval) if not creature:isPlayer() then return true end local party = creature:getParty() if not party then return true end local pos = creature:getPosition() local jsonData =...
  2. trustjah

    Lua addEvent/stopEvent remove item

    Each time a vortex is created or transformed, scheduleVortexRemoval is called with a 30 second delay. This resets the timer to ensure the vortex will be removed after 30 seconds from the most recent transformation or creation. local scheduledEvents = {} local function removeVortex(pos)...
  3. trustjah

    TFS 1.X+ Cant get working multi word name support on bank

    parseTransferInput parses the input to separate the target name and the amount. This should handle cases where names contain spaces. function parseTransferInput(input) local amount = tonumber(input:match("%d+$")) if not amount then return nil, nil, "Invalid amount" end...
  4. trustjah

    TFS 1.X+ How can I prevent magic/skill from being lost upon death Tfs 1.2

    Try and put the double deathLossPercent = getLostPercent(); above the new if statement if (!preventMagicLoss) The compiler error is stating that the variable 'deathLossPercent' is out of scope because it is wrapped inside the if ()
  5. trustjah

    TFS 1.X+ How can I prevent magic/skill from being lost upon death Tfs 1.2

    Wrap it in an if so you can use a bool to set it true or false? or delete the code entirely? bool preventMagicLoss = true; if (!preventMagicLoss) { //Magic level loss uint64_t sumMana = 0; uint64_t lostMana = 0; //sum up all the mana for (uint32_t i = 1; i <= magLevel...
  6. trustjah

    Solved PHP - White space

    Thanks @slaw completely missed that one.
  7. trustjah

    Solved PHP - White space

    Hello Otlanders, Anyone that could correct the enormous amount of white space generated by my php code? <?PHP $main_content .= '<center><h1>Player Killing Event Winners</h1><h3>The PK event will be hosted every 3 hours.</h3></center><br> <center> <img...
  8. trustjah

    Solved Syntax error SQL

    Hey guys, Anyone that can give me quick pointer on what i am doing wrong here? I've been trying to get the correct syntax here but i'm out of idea's. db.query("INSERT INTO `players_online` (`player_id`) VALUES ".. id .."") [Error - mysql_real_query] Query: INSERT INTO `players_online`...
  9. trustjah

    Solved Drop Loot (player) stopped working

    One of my actions scripts was in conflict with this droploot script! always save backups. 1616429539 @Xikini Exactly. I've been migrating some stuff and this one was actually preventing the droploot script from working dofile('data/modules/scripts/blessings/blessings.lua') function...
  10. trustjah

    Compiling Compiling Issue MSVCR120D.dll

    boost_1_60_0-msvc-14.0
  11. trustjah

    Compiling Compiling Issue MSVCR120D.dll

    Try one with MSVCR140
  12. trustjah

    Compiling Compiling Issue MSVCR120D.dll

    Use another version of boost.
  13. trustjah

    Solved Drop Loot (player) stopped working

    Hello Otlanders, TFS1.2 So for the last 2 weeks i've been changing and adding things to my datapack and now all of a sudden my droploot script is throwing me an error. It worked before. I'm quite clueless on what's causing this. function onDeath(player, corpse, killer, mostDamage...
  14. trustjah

    Bug Magic Level Rate

    Pretty sure there might be lurking another one of these somewhere around in one of your files.
  15. trustjah

    Compiling The Ruby Server

    Check your src folder, is the file database.h there?
Back
Top