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

Quests::Completed This is where Completed quests are.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2013, 10:23 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default Freeze Upon First Spawn.

This script will freeze players upon their first spawn, allowing them to read the information about the server to find the word to allow them to go forward, you can change this however you like to fit your server, I just thought it was nice to make people read the introductory information so that they know what to do.

EDIT: This goes in the templates folder in global_player.pl, or if you have a new revision, the global folder in global_player.pl.
Code:
sub EVENT_CONNECT
{
	if(!defined $qglobals{FirstSpawn})
	{
		quest::setglobal("FirstSpawn", 1, 5, "F");
		$client->Freeze();
		$client->Message(14, "The Nameless whispers to you, 'You must read all of this to unfreeze yourself, because the word to unfreeze yourself is hidden. We have a max level of 70, we are a completely custom server, custom files may be located on the site as well as possible guides or other helpful things. If you have gotten this far type #read to progress to the command to unfreeze.");
	}
}

sub EVENT_SAY
{
	if(!defined $qglobals{Finished})
	{
		if(!defined $qglobals{Read})
		{
			if($text=~/^#Read$/i)
			{
				$client->Message(14, "The Nameless whispers to you, 'You may now be unfrozen by typing #finished.");
				quest::setglobal("Read", 1, 5, "F");
			}
		}
		elsif(defined $qglobals{Read})
		{
			if($text=~/^#Finished$/i)
			{
				$client->Message(14, "The Nameless whispers to you, 'I hope you enjoy your stay!");
				$client->UnFreeze();
				quest::setglobal("Finished", 1, 5, "F");
			}
		}
	}
}
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 07:45 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