Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 02-03-2012, 08:18 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

Quote:
Originally Posted by Luccian View Post
Thanks for the additional support. I didn't know how to really properly use the elseif commands, thought I felt like it was the right way to go. So I tried to use the same type of script I used for the random animations I was using.

I like the random say plugin, I definitely will use that!
The plugin is the way to go, but for your reference:

Code:
sub EVENT_SAY 
{
	if($text=~/Hail/)
	{
		quest::emote("appears to be one of Zimora's chosen elite. Light glistens off the shined plate armor.");
		# Random choice of phrases to be said
		my $randomphrase=plugin::RandomRange(1,3);
			if($randomphrase==1) {
				quest::say("Hello");
			} elsif($randomphrase==2) {
				quest::say("Hi");
			} elsif($randomphrase==3) {
				quest::say("Heya");
			}
	}
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:46 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3