View Single Post
  #8  
Old 04-24-2006, 06:58 AM
jimbabwe
Hill Giant
 
Join Date: Aug 2005
Posts: 107
Default

you were missing a bracket in the paladin's code

Code:
sub EVENT_SAY 
{
    	if ($text=~/hail/i) 
	{
      		quest::say("Hello $name , I am one of the finest weaponsmiths this land has ever seen. If you find me a mold I will craft you a weapon. However if it is armor you seek, my brother makes the best around."); 
	}
}
    
sub EVENT_ITEM 
{
	if ($class =="Warrior") 
	{
    		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
		      quest::summonitem(62189);
		      quest::exp(750);
		      quest::emote("smiles warmly as he hands you your weapon.");
		      quest::ding(); 
    		}
    	}

  	if ($class == "Paladin")
    	{
		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(62189);
		        quest::exp(750);
		        quest::emote("smiles warmly as he hands you your weapon.");
			quest::ding(); 
    		}
    	}
	if ($class == "Shadow Knight") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(62189);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Berserker") 
	{
    		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(62189);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Monk") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
		      	quest::summonitem(6611);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Beastlord") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(6611);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Druid") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Necromancer") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}    
  	if ($class == "Wizard") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
		        quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Magician") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Enchanter") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Shaman") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29422);
      			quest::exp(750);
      			quest::emote("smiles warmly as he hands you your weapon.");
      			quest::ding(); 
    		}
    	}
  	if ($class == "Cleric") 
	{
     		if (plugin::check_handin(\%itemcount, 6164 => 1)) 
		{
      			quest::summonitem(29442);
      			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.");
  	}
}
You may try formatting your code like that as it can be a lot easier to keep track of brackets and code segments.
Reply With Quote