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

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-21-2009, 01:32 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default Guild Invite Bot

Here is a simple script I came up with to allow an NPC to invite players into a guild when they hail and talk to him. Good for small servers with one guild that holds all the players.

Code:
#############
#Written By : Cubber
#Quest Name: Guild Invite Bot
#Date: 11-21-2009
#################
sub EVENT_SAY
{
	if($text=~/Hail/i)
		{
			quest::say("Hello there $name,  would you like to join the [Guild]?");
      		}
	elsif ($text=~/Guild/i)
		{
			quest::say("Ahh yes the Guild!  It is the greatest guild in all the land... 
All of the most revered adventures in Norrath join it! Besides the many benefits that being in a guild has to offer,
 it also allows members to keep in touch with each other easily.");

			quest::say("Tell me $race, are you [interested]?");
		}
	elsif ($text=~/Interested/i)
		{
			quest::setguild(1,0);
			quest::say("Welcome to the guild $name!");
		}
}
Enjoy!
Reply With Quote
 

Thread Tools
Display Modes

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 03:03 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