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

    Solved Need added line here! ;)

    It seems to me that it is better to use constant variables than numbers (it ensures compatibility). broadcastMessage("Your message.", MESSAGE_STATUS_SMALL)
  2. K

    Adapt Code to PugiXML

    Here you go pugi::xml_document doc; pugi::xml_parse_result result = doc.load_buffer_inplace(spells.c_str(), spells.length()); // if (!result) { // std::cerr << "Something is wrong ;(" << std::endl; // return false; // } pugi::xml_node root = doc.child("attacks"); if (root) {...
  3. K

    Lua TFS 1.0 -> Saveplayer 30 seconds and GlobalSave 2 hours

    Here you go (untested) function savePlayers() local players = Game.getPlayers() for i = 0, #players do players[i]:save() end addEvent(savePlayers, 30 * 1000) end function saveServer() saveServer() addEvent(saveServer, 2 * 60 * 60 * 1000) end function onStartup()...
  4. K

    Lua [TFS 1.0] For what function i can change this.

    Here you go -- for players getPlayerLookDir(cid) -- for creatures local creature = --[[...]] creature:getDirection()
  5. K

    Team Delete

    I gladly would take a job as a programmer and coder. In addition, I can be a web developer, but my works mainly are based on Sails.js.
  6. K

    Query for Bank Balance

    I'm not sure that I understood you well. Do you need a query which returns a list of players with the balance more than 5000? If yes, here you go SELECT `name` FROM `players` WHERE `balance` > 5000;
  7. K

    Query for Bank Balance

    Here you go SELECT `balance` FROM `players` WHERE `name` = "leonmagmo";
  8. K

    Programmer Delete

    It requires a lot of work and a good knowledge of the forgottenserver source code. If you downgrade the developer (programmer) must remove all objects (functions, variables, etc.) associated with the new features (for example mounts). It seems to me that the job requires more attention than...
  9. K

    countdown on page

    <!DOCTYPE html> <html lang="en"> <head> <!-- ... --> </head> <body> <!-- ... --> <div id="countdown"> Start in <span>%w</span> weeks <span>%d</span> days <span>%H</span> hours <span>%M</span> minutes <span>%S</span> seconds </div>...
  10. K

    Complaint Delete account

    Hi, I cannot find option to delete my account. Do you know where is it? Thanks in advance!
  11. K

    some scripting errors.. rainevent

    Here you go -- Rain item Events created by Maniucza (c) -- local fromPos = {x=994, y=996, z=7} local toPos = {x=1003, y=1006, z=7} local maxItems = 10 function isWalkable(pos, creature, proj, pz) local items = {{9020,10}, {2160,30}, {8299,1}, {8301,3}, {2798,10}, {6500,25}, {2472,1}...
  12. K

    Lua Spell to remove hotkey item messages?

    Nope, you cannot disable this message in the other way because this is scripted in source code (as far as I know).
  13. K

    Lua Spell to remove hotkey item messages?

    You have to do it in source code (certain in file protocolgame.cpp), and later you have to compile your server.
  14. K

    Lua Spell to remove hotkey item messages?

    You have to replace all these lines bool isHotkey = (pos.x == 0xFFFF && pos.y == 0 && pos.z == 0); with a this bool isHotkey = false;
  15. K

    what do for change my nick?

    You have to execute this query through phpmyadmin to change your character name UPDATE `players` SET `name` = "Your new nickname" WHERE `name` = "Your old nickname";
  16. K

    Spell Volatile Spiderling

    It adds poison to the condition. Poison damage starts at 3 HP for 4 turns, followed by 9 turns with 2 HP and 20 turns with 1 HP each, which adds up to 50 HP over a period of 2 minutes and 12 seconds (text copied from this article).
  17. K

    Is this possible? When stamina = 0 kill character.

    It is script for potions. You have to replace your old script (data/actions/scripts/liquids/potions.lua) with this code local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make...
  18. K

    Promotion

    What version of forgottenserver are you using?
  19. K

    Is this possible? When stamina = 0 kill character.

    Are you able to write what version of forgottenserver are you using?
  20. K

    Solved Vip Players

    <?PHP $zapytanie = $SQL->query('SELECT `name`, `level`, `online` FROM `players` WHERE `account_id` IN (SELECT `id` FROM `accounts` WHERE `vip_time` > UNIX_TIMESTAMP());')->fetchall(); foreach($zapytanie as $zap) { $kolor++; if(is_int($kolor / 2)) $bgcolor = $config['site']['lightborder']; else...
Back
Top