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

[Mod] Advanced Hotkeys

Arn

Member
Joined
Mar 8, 2010
Messages
282
Reaction score
18
Hi all!

My dream the last few weeks has been to play Tibia with the same kind of controls that we see in other MMORPGS. That means being able to use WASD (or any other movement keys) to move, while using other hotkeys (ex: QERFCXZT) to use spells or items. Finally, with the help of the community (HUGE SHOUT OUT AND THANK YOU TO nogenem45) and all the foundation work for the OTClient, I've been able to do this.

QA53ynY.png

Below you can see the chat toggle button. Green means ready to type, red means hotkeys are on.
t0XncsK.png


I accomplished this by modifying two previously made modules. These two are: game_console and game_hotkeys.

Download link for new game_console module

Download link for new game_hotkeys_advanced

Download link for my entire OTClient (incase something doesn't work with your version)

Installation:

1. Download both files above.

2. Overwrite your old game_console folder with the new one. This will disable your chat unless you hit Enter.

3. Overwrite your old game_hotkeys folder with the new one. It will load new default hotkeys, or you can set your own.

4. Movement is handled with these 8 keywords:
  • Walk North
  • Look North
  • Walk East
  • Look East
  • Walk South
  • Look South
  • Walk West
  • Look West

5. By default, the hotkeys WASD and Shift+WASD are used to control movement. You may change these if you want. So if you'd like to change your move up key to T for example, just keybind T, and set the text to Move North. If you want to set G as south, just bind the key, and type Move South, etc etc.

Note: Hotkeys are disabled when the chat is active!
 
Last edited:
Nice work, but it will be a pain in the ass to implement it.
Why did you chose to create another module instead of editing the current one and adding new features to it?
Why did you develop it for version 0.5.5 and not latest?
 
Nice work, but it will be a pain in the ass to implement it.
Why did you chose to create another module instead of editing the current one and adding new features to it?
Why did you develop it for version 0.5.5 and not latest?

Oh man. How embarrassing.

Heres where I found the OTClient when I downloaded it.
https://s3.amazonaws.com/github/downloads/edubart/otclient/otclient-win32-0.5.5.zip

I'm guessing he hasn't updated it in a bit. :(

I guess I could just re-write the original hotkeys module. Maybe I'll add a checkbox to both the console and the hotkeys UI to enable or disable the advanced features.

Edit: I updated it to the latest version! enjoy!
 
Last edited:
yup, big part of internet is like "oh, so you want to use good browser... not with our website"
 
Brazilian here using google translator = X

I just saw a problem in the system
which is
if the player presses enter to write
he will walk with the letters (a, w, s, d)
has no way to put when you press enter deactivate the floor?
 
Brazilian here using google translator = X

I just saw a problem in the system
which is
if the player presses enter to write
he will walk with the letters (a, w, s, d)
has no way to put when you press enter deactivate the floor?

You are correct. Movement, spells, and items are used when the chat is enabled.

I need to find a way to disable hotkeys while the chat is enabled.

Edit: FIXED! 1 LINE OF CODE!
Code:
if modules.game_console.consoleMode == 1 then return end

Updating the main thread now.
 
Last edited:
Maybe have fightmode button, when you have it on, you cant write then.
 
perfect =)

one thing the customer that you're going
with two copies of this spr and dat
game_tibiafiles and another one in the things
leaving large file

but otherwise this perfect =)
 
hei man
great work
really thx

but still have some bugs
like dont save the hotkeys

and i have a ideah
i dont know if can help me, but i'm here asking
^^
the ideah is make chat desapier when desactivate and appear when activate
if cant make, show me the right direction plx
 
console and interface module probably.
 
Ok, after trying it i got 2 bugs:
1- I can't see the green/red toggle button, its just a gray square allways
2- I can't walk with WASD even if the chat if disabled

How can i fix it?
 
Those features are included in latest version of OTC by default.
 
Those features are included in latest version of OTC by default.
The feature to walk with WASD is not on the last version of the client (adding hotkeys yes though) and i want to walk with WASD
 
It is, I just checked to make sure.
You have to disable the console by checking the check box in the upper left corner of console panel.
 
Back
Top