See the Wiki to answer most of your questions:
http://www.eqemulator.net/wiki/wikka...=QuestTutorial
Here is an example that does the 3 things you were requesting:
Code:
sub EVENT_SAY {
my $ClothCapLink = quest::varlink(1001);
my $ClothCap = quest::saylink("Cloth Cap");
if ($text =~ /Hail/i)
{
plugin::Whisper("Hello, $name! Would you like to see a [$ClothCap] link?");
}
if ($text =~ /Cloth Cap/i)
{
plugin::Whisper("Here is your link - $ClothCapLink");
}
}
That assumes that you have the Whisper plugin in your plugins folder. It will not work if you don't have that plugin.