Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Submissions

Quests::Submissions This is where you submit your quests for review

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2006, 02:43 PM
Thristam
Hill Giant
 
Join Date: Jun 2006
Posts: 117
Default Quest random rotator type mob

I figured i would share some of my perl stuff so here is a little helpful quest script that will allow you to generate a mob or mobs that will be able to say different things when you hail them. Good for rumors, to help implement tips and stuff or even boss mobs. Hopefully it will help those learning to use the random command
Code:
sub EVENT_SAY
{
  if ($text=~/Hail/i)
  {  
$a = quest::ChooseRandom(4,8,7,1,5,10,3,9,2,6);
 
if ($a == 1)
  {
quest::say("text here");
  }
if ($a == 2)
  {
quest::say("text here");
  }
if ($a == 3)
  {
quest::say("text here");
  }
if ($a == 4)
  {
quest::say("text here");
  }
if ($a == 5)
  {
quest::say("text here");
  }
if ($a == 6)
  {
quest::say("text here");
  }
if ($a == 7)
  {
quest::say("text here");
  }
if ($a == 8)
  {
quest::say("text here");
  }
if ($a == 9)
  {
quest::say("text here");
  }
if ($a == 10)
  {
quest::say("text here");
  }
  }
}
Reply With Quote
Reply


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 04:18 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3