• 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,557
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?
 
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:
 
Back
Top