Well let me approach this a bit differently.
if my perl script is:
Code:
sub EVENT_SAY
{
if ($text=~/Hail/i) { quest::say("Hello, $name. If you would like, I can [scribe] all of your spells up to level 50. After that, you will have to find any remaining spells on your own!"); }
if ($text=~/scribe/i) { quest::say("Very well, here you are $name!");
quest::scribespells(); }
}
is there a way to modify this to do the following:
if pclevel < 50 then:
Code:
if ($text=~/Hail/i) { quest::say("Hello, $name. If you would like, I can [scribe] all of your spells up to level 50. After that, you will have to find any remaining spells on your own!"); }
if pclevel > 50 then
Code:
if ($text=~/Hail/i) { quest::say("Hello, $name. You are too high to have any spells scribed!"); }
If someone could spell this out for me, that would be awesome!
Thanks