L2JMobius

Free Users => Shares/Contributions => Committed User Contributions => Topic started by: ihearcolors on April 28, 2020, 11:19:28 PM

Title: Q625_TheFinestIngredients_Part2 - temp fix
Post by: ihearcolors on April 28, 2020, 11:19:28 PM
Same as Q604, Q610, Q616.

This:
Code: [Select]
private boolean spawnRaid()
{
final RaidBossInstance raid = RaidBossSpawnManager.getInstance().getBosses().get(ICICLE_EMPEROR_BUMBALUMP);
if ((raid != null) && (raid.getRaidStatus() == RaidBossStatus.ALIVE))
{
// set temporarily spawn location (to provide correct behavior of RaidBossInstance.checkAndReturnToSpawn())
raid.getSpawn().setLoc(157117, -121939, -2397, Rnd.get(65536));

// teleport raid from secret place
raid.teleToLocation(157117, -121939, -2397);
raid.setHeading(100);
raid.broadcastNpcSay("I smell something delicious...");

// set raid status
_status = IDLE_INTERVAL;

return true;
}
return false;
}

To this:
Code: [Select]
private boolean spawnRaid()
{
final RaidBossInstance raid = RaidBossSpawnManager.getInstance().getBosses().get(ICICLE_EMPEROR_BUMBALUMP);
if ((raid != null) && (raid.getRaidStatus() == RaidBossStatus.ALIVE))
{
// set temporarily spawn location (to provide correct behavior of RaidBossInstance.checkAndReturnToSpawn())
// raid.getSpawn().setLoc(157117, -121939, -2397, Rnd.get(65536));

addSpawn(ICICLE_EMPEROR_BUMBALUMP, 157117, -121939, -2397, 100, false, 0);
raid.broadcastNpcSay("I smell something delicious...");

// set raid status
_status = IDLE_INTERVAL;

return true;
}
return false;
}
Title: Re: Q625_TheFinestIngredients_Part2 - temp fix
Post by: Mobius on April 30, 2020, 02:28:25 AM
Committed with https://bitbucket.org/MobiusDev/l2j_mobius/commits/c5041a29fe43455ee34ad63f9c8c4258d0de5d1b
Thanks :D