Jump to content
  • 0

[HELP]Raidboss Spawn


Question

Posted

Hi, is there a way to spawn more as one instance from a Raidboss? i want to make a custom RB zone and have 2 different RBs for it. but i can spawn them only once.

3 answers to this question

Recommended Posts

  • 0
Posted

@Chrisz

Is it serious to remove the AI from Rb's in order to spawn another instance of it?...

 

@author

what Fanky said should work... change it:

if (RaidBossSpawnManager.getInstance().isDefined(spawn.getNpcid()))
			activeChar.sendMessage("You cannot spawn another instance of " + template1.getName() + ".");
		else
		{
			if (RaidBossSpawnManager.getInstance().getValidTemplate(spawn.getNpcid()) != null)
			{
				spawn.setRespawnMinDelay(43200);
				spawn.setRespawnMaxDelay(129600);
				RaidBossSpawnManager.getInstance().addNewSpawn(spawn, 0, template1.getBaseHpMax(), template1.getBaseMpMax(), permanent);
			}
			else
			{
				SpawnTable.getInstance().addNewSpawn(spawn, permanent);
				spawn.init();
			}
			if (!permanent)
				spawn.stopRespawn();
			activeChar.sendMessage("Created " + template1.getName() + " on " + target.getObjectId());
		}

and put:

if (RaidBossSpawnManager.getInstance().getValidTemplate(spawn.getNpcid()) != null)
			{
				spawn.setRespawnMinDelay(43200);
				spawn.setRespawnMaxDelay(129600);
				RaidBossSpawnManager.getInstance().addNewSpawn(spawn, 0, template1.getBaseHpMax(), template1.getBaseMpMax(), permanent);
			}
			else
			{
				SpawnTable.getInstance().addNewSpawn(spawn, permanent);
				spawn.init();
			}
			if (!permanent)
				spawn.stopRespawn();
			activeChar.sendMessage("Created " + template1.getName() + " on " + target.getObjectId());

it's from H5

anyway, the best option is to create another rb with the same template id, and not to do that.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock