Quest worked fine for me. I tried it, but maybe something is different. The perl wiki still references:
Quote:
$ulevel # Returns the level of the user that triggered the Event.
|
So I'm not sure about that.
Quote:
but what i wanna do is give free spells to people under say level 10
|
In your previous example, it seemed you explicitly wanted to charge for them.
I just tried this, and it worked fine, with a level check, as well as an else telling them why it wouldn't work.
Code:
sub EVENT_SAY {
if ($text=~/buffs/i)
{
if ($ulevel <= 10)
{
quest::selfcast(174);
quest::selfcast(3692);
quest::selfcast(2525);
quest::selfcast(144);
quest::selfcast(970);
quest::selfcast(356);
}
else
{
quest::say("I was going to give you buffs, but you're above level 10!");
}
}
}