miguelshta
Member
Im trying to create some utilities using jo3bingham/TibiaAPI as reference. im trying to simulate it on python with not sucess>
the intention of this script is create a movement utility like diagonal keys to send movements packets.
and the another one is to autoloot highlighted loot around the character without messing with the mouse movements.>
Python:
import socket
def send_go_east_packet(client_socket):
try:
packet_type = bytes([0x66]) # Replace with the actual packet type
client_socket.send(packet_type)
# Receive and print server response
response = client_socket.recv(1024)
print("Server Response:", response)
except Exception as e:
print(f"Error sending GoEast packet: {e}")
# Connect to Tibia server
server_address = ('172.65.228.249', 7171) # Replace with the actual server IP and port
try:
print("Connecting to Tibia server...")
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(server_address)
print("Sending GoEast packet...")
send_go_east_packet(client_socket)
except Exception as e:
print(f"Error: {e}")
finally:
print("Closing the connection...")
client_socket.close()
the intention of this script is create a movement utility like diagonal keys to send movements packets.
and the another one is to autoloot highlighted loot around the character without messing with the mouse movements.>