Loading...   


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($Bosses{$n}[$bn] == $npc_id){ # Means we have found an index that matches the current NPC
				if($n == 1){ plugin::EZAddLoot(1, 20, 21820); } # 1:20 for adding Bag of Platinum (6800p)
				if($n == 2){ plugin::EZAddLoot(1, 25, 21820); } # 1:25 for adding Bag of Platinum (6800p)
				if($n == 3){ plugin::EZAddLoot(1, 10, 21820); } # 1:10 for adding Bag of Platinum (6800p)
				if($n == 4){ plugin::EZAddLoot(1, 15, 21820); } # 1:15 for adding Bag of Platinum (6800p)
			}
		}
		$n++;
	}
}

Raw Paste Data