Loading...   


#################################
### Epic Book 1.5 Item ID 990711
#################################
if (plugin::check_handin(\%itemcount, 99711 => 1)) { # If Completed Epic 1.5 Book
   if ($class eq 'Shadowknight')      { quest::summonitem(50003); $reward_link = quest::varlink(50003); }
      elsif ($class eq 'Warrior')     { quest::summonitem(60321); $reward_link = quest::varlink(60321); }
      elsif ($class eq 'Paladin')     { quest::summonitem(64031); $reward_link = quest::varlink(64031); }
      elsif ($class eq 'Berserker')   { quest::summonitem(18398); $reward_link = quest::varlink(18398); }
      elsif ($class eq 'Rogue')       { quest::summonitem(52347); $reward_link = quest::varlink(52347); }
      elsif ($class eq 'Monk')        { quest::summonitem(61025); $reward_link = quest::varlink(61025); }
      elsif ($class eq 'Beastlord')   { quest::summonitem(52911); $reward_link = quest::varlink(52911); }
      elsif ($class eq 'Bard')        { quest::summonitem(77631); $reward_link = quest::varlink(77631); }
      elsif ($class eq 'Ranger')      { quest::summonitem(62627); $reward_link = quest::varlink(62627); }
      elsif ($class eq 'Druid')       { quest::summonitem(62863); $reward_link = quest::varlink(62863); }
      elsif ($class eq 'Cleric')      { quest::summonitem(9955);  $reward_link = quest::varlink(9955);  }
      elsif ($class eq 'Shaman')      { quest::summonitem(57400); $reward_link = quest::varlink(57400); }
      elsif ($class eq 'Enchanter')   { quest::summonitem(52952); $reward_link = quest::varlink(52952); }
      elsif ($class eq 'Necromancer') { quest::summonitem(62581); $reward_link = quest::varlink(62581); }
      elsif ($class eq 'Wizard')      { quest::summonitem(12665); $reward_link = quest::varlink(12665); }
      elsif ($class eq 'Magician')    { quest::summonitem(19092); $reward_link = quest::varlink(19092); }
      else { plugin::return_items(\%itemcount);
         $client->Message(315, "$npc_name says to you, 'I dont know $class class! Ask a GM for help!"); }
   quest::shout2("Congratulations $name on your 1.5 $class Epic $reward_link!");
   quest::doanim(27);
   quest::exp(100);

} # End Epic 1.5 Book

################################################
# Alternative Way 
################################################

%E = (
	99711 = (
		"Warrior" => [50003],
		"Paladin" => [60321],
		"Berserker" => [18398],
		"Rogue" => [52347],
		"Monk" => [61025],
		"Beastlord" => [52911],
		"Bard" => [77631],
		"Ranger" => [62627],
		"Druid" => [62863],
		"Cleric" => [9955],
		"Shaman" => [57400],
		"Enchanter" => [52952],
		"Necromancer" => [62581],
		"Wizard" => [12665],
		"Magician" => [19092],
	);
);

if(defined($E{$item1}{$class}[0])){
	quest::shout("Hurrah ! You just handed in a " . quest::varlink($item1) . "! " . $name . ", congrats on your " . quest::varlink($E{$item1}{$class}[0]) . "");
}

Raw Paste Data