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.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...