Spawn more pandora's box Plugin :D

If u need spawn more pandora’s box on ur spawn just use that simple plugin.
U can have only pandora in inventory! don’t use it with MS

image
image

That how u need set ur conditions for it
Also there is line where u set ur radius for this
image

from phBot import *

pandorabox=2 #How many pandora's u need spawn?


def pandora():
	p = get_position()
	tp = get_training_area()
	distance = round(GetDistance(p['x'], p['y'], tp['x'], tp['y']), 2)

	if distance < 30:
		k = get_monsters()
		p = 0
		for key in k:
			if k[key]['name'] == "Pandora's Box":
				p = p + 1
		if p < pandorabox:
			return True
	return False

def GetDistance(ax, ay, bx, by):
	return ((bx - ax) ** 2 + (by - ay) ** 2) ** 0.5

log('Spawn more pandora plugin Load!')
2 Likes

its not work for me can you help me please ?

SpawnPandora.txt (480 Bytes)
Can you whitelist this for trsro?

@Ryan

Done.

@Ryan Could you check the whitelist ? Because i couldn’t see in the plugin list.

There’s no UI, you won’t see it. Make sure you save it correctly, no spaces at the end or something weird

1 Like

So how can i launch it ? @DeRidder14 I couldn’t understand the condition part

@Ryan could you help me

The plugin works through conditions, you need to make a condition to spawn the pandora when you want. The condition will depend on what you want so you have to just give it a try. It’s shown how to add the Python part above