View Single Post
  #2  
Old 07-26-2011, 02:31 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote