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

TFS 1.X+ Does tfs 1.6 downgrade 860 have modal window?

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,558
Solutions
1
Reaction score
89
Location
Portugal
Hey guys, I'm using mehah otclient redemption, does it have modal window implemented? And can I use it on tfs 1.6 downgrade 860?



I made a list of all the functions from this tfs and the only thing related to modalwindow is:

LUA:
creatureevent:onModalWindow()

Can anyone give-me a example how can I use it, do I need to activate smth on tfs or otclient?
 
modal was introduced in 9.7.
not in 8.6
it is very sure that in that downgrade the server side was deactivated in order not to break the cipsoft client.
 
I haven’t seen that repository, I don’t know if it was deleted or just commented out (//). or maybe the problem is you code lua
just look for the opcode 0xFA and check if it's in protocolgame.cpp
LUA:
void ProtocolGame::parseModalWindowAnswer(NetworkMessage& msg)

void ProtocolGame::sendModalWindow(const ModalWindow& modalWindow)
there are several guides in otland on the use of modal

I’ll never understand the purpose of using a downgrade if you want 10.98 features and your use OTC . It’s better to use 10.98 and remove things on the OTC side so it resembles a downgrade to 8.6.
 
Last edited:
If you want the modal window I made a while ago for a friend, here’s the commit — it should make your life easier with the changes:

Note: The rest of the C++ file is the same, but lucascript.cpp is slightly different from Nekiro’s version — you’ll need to make a few adjustments to get it to compile.

Here’s another part — after applying it to the source, you’ll also need this script. It’s responsible for opening the modal window and handling everything. Just copy it to your server under data/scripts using RevScript:
 
I’ll never understand the purpose of using a downgrade if you want 10.98 features and your use OTC . It’s better to use 10.98 and remove things on the OTC side so it resembles a downgrade to 8.6.

I was thinking about this, can someone tell me what are my issues if I use normal tfs 1.6 that is like protocol 13+ and just downgrade to 8.6 without changing the code?

Code:
static constexpr auto CLIENT_VERSION_MIN = 860;
static constexpr auto CLIENT_VERSION_MAX = 860;
static constexpr auto CLIENT_VERSION_STR = "8.60";


I know there's alot of features that wont work on tibia 8.60 cip client, but what if I use otclient?

things I want to use atm: modalwindow, market, mounts, how do I enable those for otclient to accept in 8.60 protocol?

LUA:
P.S:



I implemented all the changes in tfs 1.6 downgrade but there's some different code from 1.5 srcs and i think more stuff needs to be implemented, that's why I made the question about using the tfs that already has everything but change protocol
 
I was thinking about this, can someone tell me what are my issues if I use normal tfs 1.6 that is like protocol 13+ and just downgrade to 8.6 without changing the code?

Code:
static constexpr auto CLIENT_VERSION_MIN = 860;
static constexpr auto CLIENT_VERSION_MAX = 860;
static constexpr auto CLIENT_VERSION_STR = "8.60";


I know there's alot of features that wont work on tibia 8.60 cip client, but what if I use otclient?

things I want to use atm: modalwindow, market, mounts, how do I enable those for otclient to accept in 8.60 protocol?

LUA:
P.S:



I implemented all the changes in tfs 1.6 downgrade but there's some different code from 1.5 srcs and i think more stuff needs to be implemented, that's why I made the question about using the tfs that already has everything but change protocol
If you download TFS 1.6 (version 13.10) and try to downgrade it to 8.60 just by changing the definitions.h, and expect it to work with OTClient/client 8.60 for login — of course not. The answer is: it doesn’t work that way.


There are too many byte-level differences involved, so forget about that idea.


I heard Sarah came back and worked on her TFS downgrade. It’s actually a fork of Nekiro’s, but said to be more updated than Nekiro’s version. It includes mounts, modal windows, and other simple features. You can try it here without a headache.


Note: Modal windows, mounts, etc., only work with OTC v8 or MEHAH. Mounts and modal windows won’t appear in the official CipSoft client because Sarah made conditional code to avoid sending those bytes to the Cip client — allowing for normal login.


If you really want modal windows and mounts on the CipSoft client, unfortunately, you'll need to buy the DLL from Kor or Sharinarin. It’s not as simple as it looks.


There's another commit that makes the Market feature work on any downgraded version, from 7.2 up to 8.0 — and yes, it also works on 8.60. Check it out:
If you have C++ knowledge and know how to modify the source and recompile, you can apply these changes yourself.
 
Back
Top