/forgottenserver-downgrade

TFS Downgrade 1.5+ is an engine based on nekiro downgrade but highly updated with current tfs code, it also has the lua modules divided and uses lua5.4

Primary LanguageC++GNU General Public License v2.0GPL-2.0

🌺 𝓜𝓲𝓵𝓵𝓱𝓲𝓸𝓻𝓮 𝓣𝓕𝓢 𝓓𝓸𝔀𝓷𝓰𝓻𝓪𝓭𝓮 🌺

  • This downgrade is not download and run distribution, monsters and spells are probably not 100% correct.
  • You are welcome to submit a pull request though.

🛠 It is currently under development. ⚙

How to compile

Compiling on Ubuntu

Compiling on Windows

Contributing

Pull requests are welcome. Just make sure you are using english/spanish language.

Bugs

If you find any bug and believe it should be fixed, submit an issue in issues section, just please follow the issue template.

  • stack + 10 if you are not using v8 (main repo)
  • Tile(position) if things is isItem() always is :getGround() (main repo)
  • broadcast /b (main repo)
  • does not save shader item after logout "WARNING: Serialize error in IOLoginData::loadItems" ( probably in item.h ) (by incorporating shader)

quick version 3 am

Server compatible with new-layout

test client: https://github.com/Nottinghster/otclient/tree/new-layout (also compatible with old client)

  
player:setMapShader(shaderName, [temporary])
player:getMapShader()

creature:setShader(shaderName)
creature:getShader()
creature:detachEffectById(effectId)
creature:attachEffectById(effectId, [temporary])

Example:

!mapShader 'Map - Heat'
!itemSetShader no yet
!playerSetShader "Map - Heat"
!detacheffect 11
!attacheffect 11
Player("Adamcole"):getItemById(2050, true):setShader("Outfit - Rainbow")

attacheffect monster:


<monster name="Orc" nameDescription="an orc" race="blood" experience="25" speed="150" manacost="300" raceId="5" shaderEffect = "Outfit - Rainbow" auraEffect = "8" wignsEffect ="11" rayosEffect="7" >

Important

Active features OTC

        g_game.enableFeature(GameFormatCreatureName)

        
        g_game.enableFeature(GameDoubleMagicLevel);
        g_game.enableFeature(GameDoubleSkills)
        g_game.enableFeature(GameSkillsBase)
        g_game.enableFeature(GameBaseSkillU16)
        g_game.enableFeature(GameAdditionalSkills)
        g_game.enableFeature(GameLeechAmount);
        
        g_game.enableFeature(GamePlayerMounts)
        g_game.enableFeature(GameCreatureShader)
        g_game.enableFeature(GameCreatureAttachedEffect) 
        g_game.enableFeature(GameClientPing)
        g_game.enableFeature(GameItemShader)
        g_game.enableFeature(GameWingsAurasEffectsShader)

Example Feature

Feature Gif

Attach Effect

local player = g_game.getLocalPlayer() player:attachEffect( g_attachedEffects.getById(2) )

QR

UIWidget
  size: 200 200
  anchors.centerIn: parent
  qr-code: mehah
  qr-code-border: 2

Reload module

g_modules.enableAutoReload()
Secuencia.02.mp4

Shaders

item :
local item = ItemWidget:getItem()
item:setShader("Outfit - Outline")
Player :
local player= g_game.getLocalPlayer()
player:setShader("Outfit - Outline")
Map :
local map = modules.game_interface.getMapPanel()
map:setShader('Map - Party')

Discord RPC

- To enable just go to
  set 1 in ENABLE_DISCORD_RPC 
  and configure the others definitions

Typing Icon


To enable just go to setup.otml 
and set draw-typing: true

Colored text


widget:setColoredText("
{" .. variable .. ", #C6122E} / 
{Colored text, #ff00ff} normal text")

Smooth Walk Elevation

Enable on

game_features


g_game.enableFeature(GameSmoothWalkElevation)