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

    Solved close channel network message

    By inspecting the flash client: https://github.com/comedinha/Flash-News/blob/master/scripts/tibia/network/Communication.as#L508
  2. Ninja

    Solved close channel network message

    I still recommend you to modify the source code because you still need to remove the user from the channel itself. function Player.sendCloseChannel(self, channelId) local networkMessage = NetworkMessage() networkMessage:addByte(0xB3) networkMessage:addU16(channelId)...
  3. Ninja

    Broken Trade/Bank.

    You need to alter a line in sendSaleItemList (protocolgame.cpp#L1263). Don't forget to recompile once you have done that. :p
  4. Ninja

    Solved [1.x] disable full light for gods

    You can disable full light for 'access characters' by modifying the following line in protocolgame.cpp: https://github.com/otland/forgottenserver/blob/9c27677b4f660a6c8122a66cfc4e4f2a37257f3e/src/protocolgame.cpp#L2929
  5. Ninja

    Compiling XP Gain Rate (client) TFS 1.2

    Yep, you need to utilize the 'set' methods you just added to your source code in order to update the value for 'XP Gain Rate'.
  6. Ninja

    Compiling XP Gain Rate (client) TFS 1.2

    Here you go : https://gist.github.com/ninjalulz/9dd60115a61745231e69dc8282bb376b
  7. Ninja

    Scripter PAY JOB 10 Euro Simpel one script

    I suggest that you save your money instead of paying a scripter. There are two easy solutions to this issue: Attach a movement script (onStepIn) to the action ID '37720'. You haven't mentioned whether you have a movement script or not, but it looks like you don't have one. Make use of the...
  8. Ninja

    Lua Intentialy reset level on death

    You can do something like this: local function getExpForLevel(level) level = level - 1 return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3 end function Player:onLoseExperience(exp) if self:getLevel() >= 100 then local currentExp =...
  9. Ninja

    Lua Intentialy reset level on death

    Have you tried reducing the experience loss with the Player event onLoseExperience?
  10. Ninja

    Tibia Store images .gif/.png

    You can use a tool such as ImageMagick to increase the canvas size of an image. A simple command (Converts all GIFs in a folder to PNG, and increases their canvas size): magick mogrify -gravity center -background transparent -extent 64x64 -format png *.gif
  11. Ninja

    Solved [C++] getStorageValue

    int32_t value; player->getStorageValue(1234, value); if (value != 1) { // }
  12. Ninja

    tfs 1.2 how enable mounts in pz ?

    You can enable group 'access' for each player group (not recommended), or remove the 'mount' part by modifying a function in the source code (player.cpp#onChangeZone). The latter alternative requires you to recompile. Best of luck! :)
  13. Ninja

    Linux Keep server online without putty.exe [SOLVED]

    'Screen' allows you to reconnect to a process if it's interactive while simply using '&' at the end of a command tells it to run as a background task.
  14. Ninja

    Looking for a programmer/scripter

    1. War-antientrosa 2. [TFS 1.x] Anti MC
  15. Ninja

    [Game] Code Audit

    Unwanted behavior Adds an infinite number of guardian shields. Reason The initial Item object reference is overwritten when the local variable 'item' is declared. The unique id (item.uid) at the beginning is not equal to the one you find at the end. Solution Don't overwrite the references...
  16. Ninja

    Lua [TFS 1.x] Registering creatureevents to monsters in XML

    Nothing has changed, you are still able to register a script, and creature events to monsters through their XML file. There might have been a misconfiguration on your end. Here is a sample: <?xml version="1.0" encoding="ISO-8859-1"?> <monster name="Rotworm" nameDescription="a rotworm"...
  17. Ninja

    Adventurer's Blessing

    function Player.sendAdventurerBlessing(self) local msg = NetworkMessage() msg:addByte(0x9C) msg:addU16(self:hasBlessing(7) and 0x01 or 0x00) -- 0x01 for the golden frame msg:sendToPlayer(self) msg:delete() end
  18. Ninja

    Lua [TFS 1.2] Database Clean Player, "lastLogin"

    Try with this: repeat local id = result.getNumber(resultId, "id") local name = result.getString(resultId, "name") local level = result.getNumber(resultId, "level") local lastLogin = result.getNumber(resultId...
  19. Ninja

    [ZNOTE] What's worng with my register.php?

    Execute the following query in phpMyAdmin to assign a default value for the column 'flag': ALTER TABLE `accounts` ALTER COLUMN `flag` SET DEFAULT 'unknown';
  20. Ninja

    Lua [TFS 1.2] Database Clean Player, "lastLogin"

    This is easily resolved by replacing result.getString with result.getNumber (for id, level, and lastlogin). These columns are stored as integers, and shouldn't not be fetched with result.getString as it converts the integer value to a string, which may result into unexpected behavior.
Back
Top