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

[C++]How to add more functions on ctrl + rightclick?

Joe Rod

Discord: joerod1
Joined
Mar 16, 2011
Messages
499
Solutions
2
Reaction score
172
GitHub
joerod1
hi guys, i need to know in which part of sources are registered the codes for this:
ED9utGW7dt.png

it would be nice if someone can help me :)
Thanks in Advance
Kind Regards
 
i think you didn't understand me, for example, i need add a new function (obviously a simple function 'cause i don't know too much c++ xD) wich part i have to edit? that's my point, i don't want change the name of that, just add new functions :|
but anyway thanks for answering :)
 
@bogart
yep that is true, Client edit it can be done by Hex editor, or YACT.

@Mr venezuela
Explicate bien dado a que lo que dices no creo sea muy correcto.

@mods
srry for the change of lenguage
 
then you need to add them still client edit ;(
is still need of change the client since it is part of the client not the server!
 
i know how can i change the names in client, thanks :)
but now i need know the direction where are saved the functions on ctrl+rightclick in the sources :|
 
Chingado, no entienedes en ingles telo digo en espanol, si quieres agregar una funcion( que diga algo ademas de attack/follow como por ejemplo Attack/Follow/ Cpture/Duel) nesesitas editar el cliente.
 
@Javi
jajajajajajajajajajajajajajaja
lo se wn, pero donde carajos se encuentran registradas esas funciones en las sources? eso es lo que necesito saber :'(

@on
someone can help me? :'(
 
u.u damn don't you get it?, those functions come along with the client, you cant add them, anyways if theres a way w8 till Cykotitan answer
 
@JaviJavi
dudo mucho que estén registradas directamente en el cliente ya que Open Tibia es código 110% propio y el cliente de TIBIA es el que programó Cipsoft, supongo que tiene que haber una entrada en las fuentes del servidor para agregar/eliminar esas cosas xd, gracias por responder :p

@on
i'll wait for the Cyko's answer :'D
 
As far as I know you need to edit the client (hex or dll dunno), then you can add a new parse function in (void ProtocolGame::parsePacket(NetworkMessage &msg)) fitting to the packet which is sent when the player uses the new function..

Packets are like this:
Packet when use:
case 0x82: // use item
parseUseItem(msg);
break;

Packet onLook:
case 0x8C: // throw item
parseLookAt(msg);
break;

Attack & follow:
case 0xA1: // attack
parseAttack(msg);
break;

case 0xA2: //follow
parseFollow(msg);
break;
 
In tibia folder, but you should learn how to create a dll injection for tibia client first..
 

Similar threads

Back
Top