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.

Posted

I think it's usefull because you don't need to go delete raid boss from him other place to spawn it in that place where you want.. :)

(usefull only in pvp servers)

  • 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 !!!

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