"...your all patched up", Hehe. And what do you mean what's wrong with it? It's pretty basic, you could make it more complex, but it's not completely necessary. Question?: Why are the buffs are equal for levels 1-85. I would change quest::say to plugin::Whisper unless you want to flood your chat, my edits below. Sorry for being so blunt. You could also add saylinks.
Edit: Also, post scripts within Code blocks, [ code ]* before, [ /code ]* one line after the end of the script.
*NO Spaces.
Code:
# A script for a buff bot
sub EVENT_SAY
{
my $buffs = quest::saylink("Free Buffs", 1);
my $heal = quest::saylink("Heal", 1);
if($text =~/Hail/i)
{
plugin::Whisper("Hello $name. Would you like some [$buffs] or a [$heal] to help you on your travels?");
}
if($text=~/Free Buffs/i)
{
plugin::Whisper("There you go. Enjoy your free buffs");
quest::selfcast(278);
quest::selfcast(457);
quest::selfcast(1693);
quest::selfcast(2176);
quest::selfcast(2177);
quest::selfcast(3692);
quest::selfcast(3467);
quest::selfcast(2570);
}
if($text =~/Heal/i)
{
plugin::Whisper("There you go you're all patched up, $name");
quest::selfcast(13);
}
}