View Single Post
  #28  
Old 06-23-2006, 03:19 PM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

Just to throw yet another solution to the same problem out:

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 6164 => 1)) {
    my %rewards = (
      "Warrior" => 62189, "Paladin" => 62189, "Shadow Knight" => 62189,
      "Monk" => 6611, "Beastlord" => 6611,
      "Cleric" => 29442,
      "Druid" => 29422, "Shaman" => 29422, "Necromancer" => 29422,
      "Wizard" => 29422, "Magician" => 29422, "Enchanter" => 29422
    );
    if(defined($rewards{$class})) {
      quest::summonitem($rewards{$class});
      quest::exp(750);
      quest::emote("smiles warmly as he hands you your weapon.");
      quest::ding();
    }
  }
  else {
    plugin::return_items(\%itemcount); 
    quest::say("These are not the pieces I need.");
  }
}
Reply With Quote