Dismount trans packet data changes

I extracted the mount/dismount packets.
ie:
[19:57:37] Client: (Opcode) 0x70CB (Data) 00 5C 54 9A 00

however it changes from time to time. Sometimes when i inject that package it says;
image

Can i run script commands directly through plugin/python ?
[mount,transport] or [dismount]

You can do this with a plugin. You need to iterate through all the pets to get the ID for the pet you want in the dictionary. Append that to the packet and send it.

I found the servernames of the pets i have, i can select the pet via servername but how am i going to send the packet to that pet specifically ?

Any documentation for SRO packetings ?

Not tested but you should be able to understand.

from phBot import *
import struct

def mount():
	pets = get_pets()
	if pets:
		for k, v in pets.items():
			if v['type'] == 'transport':
				p = b'\x01'
				p += struct.pack('I', k)
				inject_joymax(0x70CB, p, False)
				return True
	return False

def dismount():
	pets = get_pets()
	if pets:
		for k, v in pets.items():
			if v['type'] == 'transport':
				p = b'\x00'
				p += struct.pack('I', k)
				inject_joymax(0x70CB, p, False)
				return True
	return False
1 Like

more than enough, thanks

did u got the Inject ?

can u help , how can i add this Plugin ?