Unique Spawn

This plugin is for vSRO 1.188 server owners only! If you try this on iSRO you will disconnect and probably be banned.

from phBot import *
import QtBind
import struct

TIGERGIRL = 1954
URUCHI = 1982
ISYUTARU = 2002
IVY = 14936
YARKAN = 3810
SHAITIN = 3875
ROC = 3877
DEVILSHAITIN = 24160
CERBERUS = 5871
BEAKYUNG = 14997

gui = QtBind.init(__name__, 'Uniques')
QtBind.createButton(gui, 'spawn_TigerGirl', 'Tiger Girl (20)', 10, 25)
QtBind.createButton(gui, 'spawn_Uruchi', 'Uruchi (40)', 10, 50)
QtBind.createButton(gui, 'spawn_Isyutaru', 'Isyutaru (60)', 10, 75)
QtBind.createButton(gui, 'spawn_Cerberus', 'Cerberus (24)', 10, 100)
QtBind.createButton(gui, 'spawn_Ivy', 'Captain Ivy (30)', 10, 125)
QtBind.createButton(gui, 'spawn_Yarkan', 'Lord Yarkan (80)', 10, 150)
QtBind.createButton(gui, 'spawn_Shaitin', 'Demon Shaitin (90)', 10, 175)

QtBind.createButton(gui, 'spawn_Roc', 'Roc (100)', 10, 250)
QtBind.createButton(gui, 'spawn_DevilShaitin', 'Devil Shaitin (100)', 125, 250)
QtBind.createButton(gui, 'spawn_BeakYung', 'BeakYung The White Viper (100)', 250, 250)

QtBind.createButton(gui, 'clear_Monsters', 'Clear', 500, 25)

def spawn_TigerGirl():
	packet = b'\x06\x00'
	packet += struct.pack('I', TIGERGIRL)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Uruchi():
	packet = b'\x06\x00'
	packet += struct.pack('I', URUCHI)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Isyutaru():
	packet = b'\x06\x00'
	packet += struct.pack('I', ISYUTARU)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Ivy():
	packet = b'\x06\x00'
	packet += struct.pack('I', IVY)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Yarkan():
	packet = b'\x06\x00'
	packet += struct.pack('I', YARKAN)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Shaitin():
	packet = b'\x06\x00'
	packet += struct.pack('I', SHAITIN)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Roc():
	packet = b'\x06\x00'
	packet += struct.pack('I', ROC)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_DevilShaitin():
	packet = b'\x06\x00'
	packet += struct.pack('I', DEVILSHAITIN)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_Cerberus():
	packet = b'\x06\x00'
	packet += struct.pack('I', CERBERUS)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def spawn_BeakYung():
	packet = b'\x06\x00'
	packet += struct.pack('I', BEAKYUNG)
	packet += b'\x01\x03'
	inject_joymax(0x7010, packet, False)

def clear_Monsters():
	mobs = get_monsters()
	if mobs:
		for k, v in mobs.items():
			packet = b'\x14\x00'
			packet += struct.pack('I', k)
			packet += b'\x01\x00'
			inject_joymax(0x7010, packet, False)
2 Likes

Ryan, The way this plugin works was born unique, for example. It works with the script file we prepared? Or is it a unique, upcoming statement? It is coming.

Unless you are a GM on a server, you cannot use this.

Understood. So x uniq appeared, can we activate the script when its text appears? Or do you need phyton information for this again. Can we do with X packettool? If the answer is yes, can you give an example.

You can load it and see. It creates buttons for you to click on.

Can you explain more about this subject? X uniq appeared. Let’s say I caught it with Xpackettol and injected the codes. How to effectively activate the script, this section makes some thought.

I’m not sure what you are attempting to do. This plugin is for GMs on private servers and no one else. It allows you to spawn certain uniques easily through the UI. It could be modified to spawn a unique in a script at specific locations you set. It doesn’t do anything with the “unique has spawned” notification in game.

I noticed that only GMs can use this plugin. I’m not GM. Can we adapt this plugin? I thought by saying. But as far as I can tell, one possibility doesn’t seem too much . thx for the answer.

Glad you noticed it’s for GM’s only lol. There’s no modifying this to fit your needs, unless you can figure out a way to spawn a unique as a normal player just move on and forget about this plugin.

If your looking to get a notification when a unique spawns, the bot already has that.

Can you send me a script that will be active when x uniq appears that you use yourself? Since you know so much.