Quote:
Originally Posted by jawa21
I edited out some of the classes to make the post fit, but the basic structure is the same.
Code:
sub EVENT_SAY {
if ($text=~/Hail/i)
{
quest::say("Hi there. I'm here to [help] newcomers.);
}
elsif ($text=~/help/i){
if ($mlevel >= 10)
|
Try
Code:
if (($ulevel<="10")&&($text=~/Hail/i))
{
quest::say("Hi there. I'm here to [help] newcomers.);
}
else if (($ulevel<="10")&&($text=~/help/i))
rest of your code...
That should check to see if they are less than or equal to level 10 and if not, not say anything or give anything...