View Single Post
  #6  
Old 09-10-2010, 12:32 PM
melkor_41
Fire Beetle
 
Join Date: Jul 2010
Posts: 25
Default

thanks everyone, we got it working with some help.


here is the complete code for Mater in kaladimb to have both his text AND newbie turn in working.

Code:
sub EVENT_SAY 
{ 
if (($text=~/hail/i) && ($class eq 'Rogue')) {
  quest::say("Ah, welcome!  We could use some fresh blood around here. 
  The name's Mater, and I run this little outfit.  
  Work hard for me, and I will reward you well. 
  Cross me, and you'll find yourself buried under the mine cap. 
  Once you are ready to begin your training please make sure that you see Crovsar Dirkbringer
  He can assist you in developing your hunting and gathering skills. 
  Return to me when you have become more experienced in our art. 
  I will be able to further instruct you on how to progress through your early ranks.");
  
}
elsif($text=~/Hail/i){
quest::say("Welcome to the mines of Kaladim!"); 
  }
}

sub EVENT_ITEM  

 {

if (plugin::check_handin(\%itemcount, 18767 => 1)) {

quest::say("Very well then, take this and get to work.");
    quest::summonitem(13516);
    quest::exp(500);  
  }


}
Reply With Quote