Multiple Hotkey Settings for the C++ Client

Do you find this helpful?


  • Total voters
    8

Peroxide

Gone since January 2018
Joined
Aug 22, 2008
Messages
10,353
Best answers
0
Reaction score
1,920
Location
New Zealand
Did you always want to use more than one hotkey setting without changing them every time you relog? well it is easy:
(The following does only work with Windows, a Linux version is comming when i have time)

Open your Editor and copy the following text into it, then save that file under LaunchTibia.bat and make sure that you have "all files" selected at the type, and not only .txt. Or you could also download our already created .bat file http://admin.tibiaml.com/files/LaunchTibia.zip.

WARNING: BECAUSE OF A BUG IN TIBIAML THIS IS NOT THE CORRECT CODE! USE THE FILE!
Code:
@echo off
color 0A
title Tibia Hotkey Manager

IF EXIST "%ProgramFiles(X86)%Tibia" set TibiaExe="%ProgramFiles(X86)%Tibia"
IF EXIST "%ProgramFiles%Tibia" set TibiaExe="%ProgramFiles%Tibia"
set HotkeyPath="%AppData%Tibia"

echo Welcome, %USERNAME%
echo Select your hotkey file please
echo.
echo 1. Knight
echo 2. Paladin
echo 3. Druid
echo 4. Sorcerer
echo. 
set /p choice="Enter your choice: "

if "%choice%"=="1" set f="knight.cfg"
if "%choice%"=="2" set f="paladin.cfg"
if "%choice%"=="3" set f="druid.cfg"
if "%choice%"=="4" set f="sorcerer.cfg"

copy /y "%HotkeyPath%%f%" "%HotkeyPath%Tibia.cfg"

cd %TibiaExe%
Tibia.exe

copy /y "%HotkeyPath%Tibia.cfg" "%HotkeyPath%%f%"
If you then want to have a special hotkey set, you simply do the following: double click the file, then you enter the number of the set you want to use (for example "3" for druid) and then you press enter. But keep the black window open in the background. It will close when you close Tibia. If you want to switch the hotkey set you need to restart Tibia.

It will look like this:


----

Article Source: Tibia � Article � How to use multiple hotkey settings on the C++ Client
Author: Glotzer
 

glotzer

New Member
Joined
Jul 8, 2014
Messages
1
Best answers
0
Reaction score
1
Since TibiaML is kind of dead, here is the reupload. I am the original author.

The content of the file without TibiaML bugs should be this:

Code:
@echo off
color 0A
title Tibia Hotkey Manager

IF EXIST "%ProgramFiles(X86)%\Tibia" set TibiaExe="%ProgramFiles(X86)%\Tibia"
IF EXIST "%ProgramFiles%\Tibia" set TibiaExe="%ProgramFiles%\Tibia"
set HotkeyPath="%AppData%\Tibia"

echo Welcome, %USERNAME%
echo Select your hotkey file please
echo.
echo 1. Knight
echo 2. Paladin
echo 3. Druid
echo 4. Sorcerer
echo.
set /p choice="Enter your choice: "

if "%choice%"=="1" set f="knight.cfg"
if "%choice%"=="2" set f="paladin.cfg"
if "%choice%"=="3" set f="druid.cfg"
if "%choice%"=="4" set f="sorcerer.cfg"

copy /y "%HotkeyPath%\%f%" "%HotkeyPath%\Tibia.cfg"

cd %TibiaExe%\
Tibia.exe

copy /y "%HotkeyPath%\Tibia.cfg" "%HotkeyPath%\%f%"
It would be nice if you could change the source to http://glotzer.eu/?p=137 becuase that is my blog where this article now sits since tibiaML died. You guys might as well be intrested in the article Into the Tibia automap format (C++ client) wich you can find at my blog as well.

Hope i could help
 
Last edited:

vTune

KakelmästareN^
Joined
Jun 14, 2012
Messages
3,675
Best answers
0
Reaction score
375
Location
Sweden
This is already built in, in the new versions of Tibia, really feels like this is something they should have added YEARS ago! Anyway I'm glad its finally here! :D
 
Top