Loading...   


###################################################################################################
### ZONE:	postorms
### Desc:	Plane of Dragons (postorms) default.pl
### Author:	Hateborne of EZ Server
### Date:	March 19, 2014
###################################################################################################

sub EVENT_SPAWN
{
	my $npc_id = $npc->GetNPCTypeID();
	
	my @T1boss = (210111, 210112, 210113, 210114, 210115, 210116, 210117, 210121, 210122, 210123, 210124, 210125, 210127); # tier 1 bosses, duplicated by Hunter? (Amun, Omm, Apophis, Khepri, Heh, Ptah, Shai-Hulud)
	my @T1Mboss = (210131, 210132, 210133); # tier 1 mini bosses (Thanatos, Rat-taui, Tarticus)
	my @T2Mboss = (210231, 210232, 210233); # tier 2 mini bosses (Rylos, Sevus, Rexor)
	my @T2boss = (210211, 210212, 210213, 210214, 210215, 210216, 210217, 210221, 210222, 210223, 210224, 210225, 210226, 210227); # tier 2 bosses, duplicate by Hunter? (Seth, Okeanos, Imsety, Mentu, Thur, Alfadir, Kronos)
	if($npc_id ~~ @T1boss)
	{
		plugin::EZAddLoot(1, 20, 21820); # 1:20 for adding Bag of Platinum (6800p)
	}
	if($npc_id ~~ @T1Mboss)
	{
		plugin::EZAddLoot(1, 25, 21820); # 1:25 for adding Bag of Platinum (6800p)
	}
	if($npc_id ~~ @T2boss)
	{
		plugin::EZAddLoot(1, 10, 21820); # 1:10 for adding Bag of Platinum (6800p)
	}
	if($npc_id ~~ @T2Mboss)
	{
		plugin::EZAddLoot(1, 15, 21820); # 1:15 for adding Bag of Platinum (6800p)
	}
}

sub EVENT_SPAWN{
	#::: Akka - Boss Iteration Example
	my $npc_id = $npc->GetNPCTypeID();
	%Bosses = (
		1 => [210111, 210112, 210113, 210114, 210115, 210116, 210117, 210121, 210122, 210123, 210124, 210125, 210127], # Tier 1 Bosses
		2 => [210131, 210132, 210133], # Tier 1 mini bosses (Thanatos, Rat-taui, Tarticus)
		3 => [210231, 210232, 210233], # tier 2 mini bosses (Rylos, Sevus, Rexor)
		4 => [210211, 210212, 210213, 210214, 210215, 210216, 210217, 210221, 210222, 210223, 210224, 210225, 210226, 210227], # tier 2 bosses, duplicate by Hunter? (Seth, Okeanos, Imsety, Mentu, Thur, Alfadir, Kronos)
	);

	$n = 1; # Simply declare walking index for %Bosses
	while($Bosses{$n}[0]){
		$bn = 0; # Reset the hash index on each iteratino
		while($Bosses{$n}[$bn]){ # As we pass through each boss ID, let's do checks here...
			if($n == 1 && $Bosses{$n}[$bn] == $npc_id){ plugin::EZAddLoot(1, 20, 21820); } # 1:20 for adding Bag of Platinum (6800p)
			if($n == 2 && $Bosses{$n}[$bn] == $npc_id){ plugin::EZAddLoot(1, 25, 21820); } # 1:25 for adding Bag of Platinum (6800p)
			if($n == 3 && $Bosses{$n}[$bn] == $npc_id){ plugin::EZAddLoot(1, 10, 21820); } # 1:10 for adding Bag of Platinum (6800p)
			if($n == 4 && $Bosses{$n}[$bn] == $npc_id){ plugin::EZAddLoot(1, 15, 21820); } # 1:15 for adding Bag of Platinum (6800p)
		}
		$n++;
	}
}

Raw Paste Data