Arena plugin

You need anywhere in town for registration…
from phBot import *
import struct

log('[Plugin] Succesfully loaded [%s].' % __name__)

Packet = bytearray()
def handle_joymax(opcode, data):
	if opcode == 0x34D2:
		if data[0] == 0x02 and data[1] == 0x00 and data[2] == 0x40 and data[3] == 0x00:			
			Packet.append(0x01)
			Packet.append(0x00)
			Packet.append(0x02)
			log('[Arena] Random Flag')
			inject_joymax(0x74D3, Packet, False)
		if data[0] == 0x02 and data[1] == 0x00 and data[2] == 0x60 and data[3] == 0x00:
			Packet.append(0x01)
			Packet.append(0x00)
			Packet.append(0x01)
			log('[Arena] Random Points')
			inject_joymax(0x74D3, Packet, False)
		if data[0] == 0xFF and data[1] == 0x00 and data[2] == 0x01 and data[3] == 0x01:
			log('[Arena] Successfully registered' )
			stop_bot()
			
	return True
2 Likes

its work ?

111

Can you tell me in more detail how you did it?

if read bot this opcode and packet 0x34D2 02 00 40 00 > " battle arena random flag time message in client
packet(variable) adding register package and happy end. :slight_smile: What do you want details about more :slight_smile:

do we do this from the script? And does it go back to the contraction area and register?When the arena is over, does it go back to the contraction area? You can give me some more information on how to do these things.

bence geri gitmez bot duruyor çünkü arena kaydedince kasılma alanında koşullarda sadece time var aslında oraya saat ve günde ekleyebilsek iyi olurdu

turkish: hocam bu dediğin mümkün ancak bu sadece townda çalışıyor o şekilde paylaşırsa belli büyük serverlarda kısa zamanda düzen bozuluyor… Biraz olsun diger plugin ve dökümanları inceleyenler kendileri ekleyebilirler, rulezz in dedigi gibi belli saatte towna döndürüp bot üzerinden kayıt yapılıp bot arena bitti mesajını plugn e ekleyip arena bitisinde bot başlatılabilir giibii.
english :only working inside a town this just plugin for more action you own need add some details …

Mümkünse yazabilirz heralde. Araştırma yapmam gerekcek biraz daha.

qlprix o pluginde arena kaydolduktan sonra bot durur durduktan sonra geri başlama komutu versende baslamaz anca managerde olunca bot başlıyor oyuna girip bence pluginde arena kaydından sonra hiç durmaması lazım botun

beyler nasıl çalıyor carlar sehirde olunca sueresi gelince kayıtmı oluyor ?

https://forum.projecthax.com/t/language-rules/912/2

I need for arena SCORE, how I can add at this plgin?

English: plugin is working properly . but Party Arena does not work. Can you add ?
Turkish: Randomlarda hiç sıkıntı yok otomatik kayıt ediyor. Ama party arenaya kayıt yapmıyor(master).

Where and how we make these codes?