View Single Post
  #16  
Old 02-03-2009, 05:48 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Ok, I added the return item thing to see if he would return items, but he doesn't even do that.

Code:
sub EVENT_ITEM {

  if (plugin::check_handin(\%itemcount, 51624 => 1, 1563=> 1, 1568=> 1)) {
    my %rewards = (
"Warrior" => 1569, "Rogue" => 1581, "Monk" => 1579, "Berserker" => 1577, "Shadowknight" => 1577, "Paladin" => 1577, "Ranger" => 1569, "Bard" => 1569, "Beastlord" => 1579, "Cleric" => 1582, "Druid" => 1582, "Shaman" => 1582, "Wizard" => 1581, "Mage" => 1581, "Enchanter" => 1581, "Necromancer" => 1581
    );

    if(defined($rewards{$class})) {
      quest::say("My mind can be at ease knowing those fiends are no more.");
      quest::emote("pulls a gleaming weapon out of a bag.");
      quest::summonitem($rewards{$class});
      quest::say("Take this weapon. I am sure you will be able to make use of it.");
    }
  }
 else {
 	    plugin::return_items(\%itemcount);
    	quest::say("I have no use for this item, $name.  Take it back.");
	}  

}
Reply With Quote