View Single Post
  #5  
Old 09-07-2004, 12:14 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Try this:
Code:
if($text=~/hail/i){
   if($ulevel >= 65){
      quest::say("quest text");
   }
   else{
      quest::say("turned away");
   }
}
Should be much cleaner and there's really no reason to check if the text is hail multiple times since you can nest the other conditions within that if().

Or if you want to use quite a few responses with hail, you can use an array.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote