• 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. 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...
  2. 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`...
  3. 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...
  4. trustjah

    TFS 1.X+ Console error in function '__add' (index a number)

    Hello Otland, I've been trying to get this running the last couple of days but to no avail. the console is throwing; attempt to index a number value stack traceback: [C]: at 0x00388a20 [C]: in function '__add' data/movements/scripts/quests/cults_of_tibia/tar.lua:56: in...
  5. trustjah

    TFS 1.X+ Server crash when trading with npc after adding #2130 from otservbr

    Hey guys, I've pick this commit Changeable npc currency by dex-89 · Pull Request #2130 · opentibiabr/otservbr-global (https://github.com/opentibiabr/otservbr-global/pull/2130) from the otservbr repo but the client is crashing every time i trade with a NPC. is it incompatible with my 10.95 client...
  6. trustjah

    TFS 1.X+ Spell Invalid area table.

    Hey, Been struggling for the last few hours trying to find what i am missing here. I've been trying to add spells but the console is throwing errors. Thought is was compat or table related but i havent got a clue really. This is what the actual spell scripts looks like; Using some version...
  7. trustjah

    TFS 1.X+ Adding doors - bad argument #1 to 'pairs' (table expected, got numbers)

    Hey people, i am trying to incorporate this script function onUse(player, item, fromPosition, target, toPosition, isHotkey) local itemId = item:getId() if table.contains(questDoors, itemId) then if player:getStorageValue(item.actionid) ~= -1 then...
  8. trustjah

    TFS 1.X+ Cant load loot <Item name> does not work

    Anyone know what commit i have to pick for item name to work? at the moment only item id is being recognized. I've been using some kind of version of TFS 1.2 Thanks in advance.
  9. trustjah

    TFS 1.X+ Decimal after every number after compiling in Linux (with pictures)

    Dear Otland After compiling on linux i am getting a decimal number after all amounts on the server. (Linux) Player balance in database is 92031 gold. It is also projecting these value's on the webpage. so they're getting pushed to the database like this. (Linux) When i compile the exact...
  10. trustjah

    Could someone convert these to 1.2

    So i have found some old scripts i am willing to use on TFS 1.2. This should be telling the player which spells he/she has learned when leveling up. local s = { --SETUP repeatAfterDeath = false, -- true -> player will always get the msg at lvlup | false -> player will only get the 1st time...
  11. trustjah

    Monster Kill to Database 1.2

    Hey, could anyone convert this to TFS 1.2? function onKill(cid, target) if(isMonster(target) == TRUE) then local name = getCreatureName(target) local monsterkills = db.query("SELECT mid, kills FROM vorgpl_monsterskills WHERE name = '" .. name .. "' LIMIT 1")...
  12. trustjah

    TFS 1.X+ PHP Cast system on webpage.

    Hey, I've been trying to get this script to run with - https://otland.net/threads/10-95-cast-tfs-1-2-custom-modifications- this cast system. <img id="ContentBoxHeadline" class="Title" src="layouts/tibiacom/images/header/cast.png" alt="Contentbox headline"> <?php if(!defined('INITIALIZED'))...
  13. trustjah

    AAC [Gesior] Website connected to sql but not registering new accounts in database

    Hey, I am able to login with existing accounts available in the database, i am also able to check highscores and those correspond to the numbers inside mysql. the problem i am having is that when trying to create an account the website states the account has been created not giving any error...
  14. trustjah

    [TFS 1.0] PHP Not loading country flags from database

    Anyone has an idea why my website isnt accesing the database, well it is loading the players online, level and vocation but not the country flags. this is from my whoisonline.php <img id="ContentBoxHeadline" class="Title" src="layouts/tibiacom/images/header/headline-whoisonline.gif"...
  15. trustjah

    Lua Lottery script - trying to get rid of the quotation marks on website

    anyone got an idea how i can get rid of the signs next to the name and items on the website? it's forcing it into the database like this;
  16. trustjah

    TFS 1.0 Bounty Hunter System DB errors

    Anyone that can help me with this? i've been stuck for days with this problem i'm using TFS 1.X Bounty Hunter System i'm getting these errors in the server console: any help would be much appreciated, thanks in advance! Column count doens't match value count at row 1. Using; function...
  17. trustjah

    [Console] Raids: Cant place monster "monster name"

    Anyone got an idea why this might be happening? the monster exists.
  18. trustjah

    [PHP] Website - Showing correct house image/photo/screenshot

    I've been trying some things here and there but am unable to find the solution, anyone that has got an idea how to get the website to show the correct house image? Using gesiors website. i've been fiddling around with the path but no luck whatsoever, help will be appreciated! '<table border=0...
  19. trustjah

    Lua NPC Local Voices

    anyone knows how i can make npc's say different things? at the moment he is only repeating the last line; local voices = { {text = 'Come in, young mages! Purchase the latest in runes and wands!'} } local voices = { {text = 'Perhaps I need to bake them hotter? Or was it longer?'} } local voices...
  20. trustjah

    Lua [TFS 1.0] Stamina gain when Training on "monks"

    Anyone knows how to get this rolling on TFS 1.0? addSta = {} local config = { timeToAdd = 3, -- addTime = 5, -- } local function addStamina(cid) if not isPlayer(cid) then addSta[cid] = nil return true end player:setStamina(cid, getStamina(cid) + config.addTime)...
Back
Top