Jump to content

Recommended Posts

Posted

I needed that for my server, it's a simple code delete from the source,

And you can spawn more than 1 raidboss in the world.

Ex: There is 1 uruka, and you can't spawn it in other instance.

 

1. Open your gameserver/handler/admincommandhandlers/adminspawn.java

 

2. Find these lines:

 

			spawn.setRespawnDelay(respawnTime);

 

3. And delete these lines above:

 

			if (RaidBossSpawnManager.getInstance().isDefined(spawn.getNpcid()))
			activeChar.sendMessage("You cannot spawn another instance of " + template1.name + ".");
		else
		{

 

4. Now find this line:

 

				activeChar.sendMessage("Created " + template1.name + " on " + target.getObjectId());

 

5. And above the line delete this:

 

}

 

6. After all 5 steps code should look like that:

 

spawn.setRespawnDelay(respawnTime);
			if (RaidBossSpawnManager.getInstance().getValidTemplate(spawn.getNpcid()) != null)
				RaidBossSpawnManager.getInstance().addNewSpawn(spawn, 0, template1.getStatsSet().getDouble("baseHpMax"), template1.getStatsSet().getDouble("baseMpMax"), permanent);
			else
				SpawnTable.getInstance().addNewSpawn(spawn, permanent);
			spawn.init();
			if (!permanent)
				spawn.stopRespawn();
			activeChar.sendMessage("Created " + template1.name + " on " + target.getObjectId());
	}

 

7. And thats all, now you can spawn more than one raid boss!  ;) (I'm newbie on java, but i hope this change will be helpfull for someone).

 

 

 

Posted

And why actually would you do that? When you spawn a RaidBoss it's being added to raidboss_spawnlist table, so you are gonna fuck the table up and the bosses will keep spawning.

  • 2 years later...
Posted

And why actually would you do that? When you spawn a RaidBoss it's being added to raidboss_spawnlist table, so you are gonna -beep- the table up and the bosses will keep spawning.

 

+5 !!!

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
Reply to this topic...

×   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...