View Single Post
  #8  
Old 02-03-2009, 01:55 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

I hardly see anything "crude" there Trev =P
Its a simple and well writen out quest code =)

For the purpose of this thread this is the only part truly needed:

Code:
sub EVENT_ITEM {

  if (plugin::check_handin(\%itemcount, 1319 => 1)) {
    my %rewards = (
"Warrior" => 4917, "Rogue" => 4907, "Monk" => 1206, "Berserker" => 55607, "Shadowknight" => 9829, "Paladin" => 9829, "Ranger" => 9829, "Bard" => 9829, "Beastlord" => 9829, "Cleric" => 9829, "Druid" => 9829, "Shaman" => 9829, "Wizard" => 9829, "Mage" => 9829, "Enchanter" => 9829, "Necromancer" => 9829
    );

    if(defined($rewards{$class})) {
      quest::summonitem($rewards{$class});
      quest::emote("Works to make a piece of armor from the instructions you provided to him." );
      quest::say ("Here you go $name.");
    }
}
Reply With Quote