• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Custom Client Help!

seto sazo

Member
Joined
Apr 27, 2009
Messages
162
Reaction score
21
Sup! I need to make a custom client for Tibia 7.6 But Custom Client Generator doesn't have 7.6 in the options. I know you can hexedit it I know how to do it but I dont have the RSA Keys. Anyone know of a tutorial? :D (I've searched for a while can't find 1) I also need to know how to make it so people can't inject bots into the client. :D Rep for anyone that can help!
 
Last edited:
Taken from a tutorial on OTFans.

This will probably be a very rough Tutorial but some suggestions are welcome.


This Tutorial will teach you how to Change your RSA Key, change your IP, and change your port in the tibia client for use. Please note that it is against the Tibia Rules to edit and/or distribute an edited client. (legal stuff :p)

First thing you need to do is get a Hex Editing software. I use Notepad++ with the Hex-Editor plugin. Its free and I think its open-source too.

Once you do that, open the Tibia 8.4 client up in your hex editor.


[RSA Key]

Now you need to do is change the RSA key. Even though this has been posted MANY times, I'll put it here for convenience.

Search for a string and input this.
Code:
1247
Now select this WHOLE string of numbers
Code:
124710459426827943004376449897985582167801707960697037164044904862948569380850421396904597686953877022394604239428185498284169068581802277612081027966724336319448537811441719076484340922854929273517308661370727105382899118999403808045846444647284499123164879035103627004668521005328367415259939915284902061793
And replace it with this one.
Code:
109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413
[IP Address]

Now you are ready to change the IP for your client.

Search for this string.
Code:
tibia05
Now you should see lots of IPs directing to cipsoft.com (5 with tibia0x and 5 with login0x as the subdomain). Each one of these IPs are 19 characters long so you need to use an IP for your server that is 19 characters OR LESS.

For this example I will be using tds.tibiafans.com.

Take each IP of tibia0x.cipsoft.com and login0x.cipsoft.com and replace them with your own.

Example:
□ = the hex code "00" for an empy byte.
Before
Code:
tibia05.cipsoft.com□tibia04.cipsoft.com□tibia03.cipsoft.com□tibia02.cipsoft.com□tibia01.cipsoft.com□login05.cipsoft.com□□□login04.cipsoft.com□□□login03.cipsoft.com□□□login02.cipsoft.com□□□login01.cipsoft.com
After
Code:
tds.tibiafans.com□□□tds.tibiafans.com□□□tds.tibiafans.com□□□tds.tibiafans.com□□□tds.tibiafans.com□□□tds.tibiafans.com□□□□□tds.tibiafans.com□□□□□tds.tibiafans.com□□□□□tds.tibiafans.com□□□□□tds.tibiafans.com
The IP address you can type in normally in the string portion, but the □ must be written in the hex part as 00 (one byte is two hex characters, and 1 string character is a byte).


[Port]

After that is done we can change the port.

Search for the hex code
Code:
b9 03 1c
Only the 03 1c part is the port so you can ignore b9 now.

The tricky part is that tibia reverses the order it reads the bytes for the port, so if you plug 1c 03 into the calculator and convert it to decimal format it becomes 7171.

So lets say I want to change the port to 8000. I open up the calculator in scientific mode, type in 8000, then click hexidecimal and I get the number 1F 40. Now we reverse this and it becomes 40 1F. Just type that in and your all set.

Verifying

If you want to check to verify its connecting to the right port/ip address, try to connect to the server and while its trying to connect open up the command prompt and type "netstat -a" without the quotes. Verfy that Ip address and port (there is a long list, you need to find it) is showing correctly.


[Unique Map and Config]

Open up a String search and look for
Code:
cfg
Once you find it you should see
Code:
Automap.Tibia.cfg
The first part "Automap" is the FOLDER where the map saves go inside the user documents whatever directery (differs per OS). You can't change that it saves in that location, but you can change the folder in that location.

The second part "Tibia.cfg" is the config file that gets saved in the same location as the Automap folder.

If we use "TDS1map" and "TDS-1.cfg" as the names then the String gets turned into
Code:
TDS1map.TDS-1.cfg
Once you change all that you want/need you can save your client (WHILE IN HEX MODE) and you should be able to run it!
 
Back
Top