Skip to content
Snippets Groups Projects
Commit 95f77e37 authored by Zoey76's avatar Zoey76
Browse files

BETA: Update for Dragon Vortex AI:

	* Added effect when is raid spawned.
	* Added more retail random spawn (raid bosses can spawn further from Vortex).

Patch by: St3eT
Tested by: FinalDestination
Reviewed by: xban1x, Zoey76
parent 4b648bd5
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@ package ai.npc.DragonVortex;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.model.Location;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
......@@ -54,7 +53,6 @@ public final class DragonVortex extends AbstractNpcAI
addStartNpc(VORTEX);
addFirstTalkId(VORTEX);
addTalkId(VORTEX);
addKillId(RAIDS);
}
@Override
......@@ -65,7 +63,7 @@ public final class DragonVortex extends AbstractNpcAI
if (hasQuestItems(player, LARGE_DRAGON_BONE))
{
takeItems(player, LARGE_DRAGON_BONE, 1);
int random = getRandom(1000);
final int random = getRandom(1000);
int raid = 0;
if (random < 292)
{
......@@ -91,11 +89,11 @@ public final class DragonVortex extends AbstractNpcAI
{
raid = RAIDS[5]; // Shadow Summoner 5.6%
}
else if (random < 1000)
else
{
raid = RAIDS[6]; // Muscle Bomber 4.4%
}
addSpawn(raid, new Location(player.getX() + getRandom(100), player.getY() + getRandom(100), player.getZ(), player.getHeading()), true, DESPAWN_DELAY);
addSpawn(raid, npc.getX() + getRandom(-500, 500), npc.getY() + getRandom(-500, 500), npc.getZ() + 10, 0, false, DESPAWN_DELAY, true);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment