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

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #16  
Old 08-11-2009, 01:24 PM
Cruzer
Fire Beetle
 
Join Date: Jan 2009
Location: USA
Posts: 29
Default

thanks trev
__________________
Used To Be Head GM And Leader Of Xion Soul I appologize to Trev and everyone eleses server Jonab went on i was a fool to think he was GM material and as of now i quit EQ Emu And Move On To Whereever the future takes me Good Bye!
Reply With Quote
  #17  
Old 08-30-2009, 02:43 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Thanks for sharing this Trev. My players found a minor 'issue' if you have time to adress it. When you misstype a short zonename, the NPC will respond with a "-" (instead of telling you that you can't type ).
__________________
Reply With Quote
  #18  
Old 08-30-2009, 06:11 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I haven't tried this yet, but I think this might do what you are wanting:

Code:
#Translocator for Multiple Zones

#Array for all available zones to be sent to
@ZoneList = qw(
	cazicthule
	akanon
	bothunder
	befallen
	blackburrow
	cabeast
	cabwest
	mistmoore
	chardok
	thurgadina
	veksar
	cobaltscar
	crystal
	dalnir
	necropolis
	dreadlands
	dulak
	freporte
	echo
	erudnext
	unrest
	everfrost
	fieldofbone
	fungusgrove
	greatdivide
	grobb
	guktop
	halas
	highkeep
	charasis
	paw
	kael
	kaesora
	karnor
	kurn
	lakeofillomen
	nurga
	soldungb
	najena
	nexus
	freportn
	nro
	oggok
	sebilis
	permafrost
	airplane
	fearplane
	growthplane
	hateplane
	poinnovation
	poknowledge
	mischiefplane
	ponightmare
	postorms
	povalor
	qeytoqrg
	rivervale
	runnyeye
	shadowhaven
	skyshrine
	soldunga
	sro
	felwitheb
	ssratemple
	qrg
	acrylia
	arena
	burningwood
	citymist
	sharvahl
	nadox
	dawnshroud
	thegrey
	gunthak
	hole
	jaggedpine
	maiden
	overthere
	paludal
	podisease
	hateplaneb
	pojustice
	scarlet
	umbral
	frozenshadow
	poeartha
	velketor
	vexthal
	warrens
	warslikswood
	freportw
);

sub EVENT_SAY{

	my $MatchCheck = 0;
	my $all = quest::saylink("All", 1);

	#Spacer between Text messages to make them easier to read
	$client->Message(7, "-");
	my $NPCName = $npc->GetCleanName();

	if ($text =~/Hail/i)
	{
		$client->Message(315, "$NPCName whispers to you, 'If there is a zone you would like to go to, just tell me the short name of it and I will see if I have a spell to send you there. If you do not know the full name, just type part of the name to search my list of possible zones.  Or, I can list [$all] of them if you like.'");
	}

	#Counts each row for the While
	my $count = 1;

	#Counts each element in the Array for the While
	my $n = 0;

	
	if ($text !~ /Hail/i)
	{
		#Use scalar form of Array
		while ($ZoneList[$n])
		{
			#This uses the lc() function in perl to convert anything typed into all lowercase, since that is what the zone list is
			#If the zone name contains part of the text said, or if the player wants to list all possible zones we list them
			if (($ZoneList[$n] =~ lc($text) && $ZoneList[$n] ne lc($text)) || ($text =~ /^All$/i))
			{
				my $ZoneName = quest::saylink($ZoneList[$n]);
				$client->Message(315, "$NPCName whispers to you, 'Possible match is: $ZoneName");
				$MatchCheck++;
			}
			#If they say the full name of one of the zones in the Array, or click one of the saylinks, port them to the safe loc there
			if ($ZoneList[$n] eq lc($text) && $text !~ /^All$/i)
			{
				$client->Message(315, "$NPCName whispers to you, 'Enjoy your adventure!'");
				$client->Message(6, "$NPCName casts a spell to translocate you to another place.");
				quest::zone("$ZoneList[$n]");
				$MatchCheck++;
			}
			$n++;
			$count++;
		}
		#If there are no matches found, let the player know it.
		if ($MatchCheck == 0)
		{
			$client->Message(315, "$NPCName whispers to you, 'Sorry, $name, I was unable to find a match for '$text'.");
		}
	}
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #19  
Old 08-30-2009, 08:08 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

yep, and once again thanks Trev!
__________________
Reply With Quote
  #20  
Old 02-02-2012, 11:18 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 905
Default

I'm looking for a way to take this script and add more text to the responses. Like if a person is flagged for the zone, the level range/requirement, etc. The flagged portion could be green if flagged, red if not, the level range could be colored similar to cons, depending on how you rate compared to the zone.

Like right now the responses (when pressing [all]) looks like:

Surefall Glade: [qrg]
West Freeport: [freportw]

I want it to look like this:

[Level 50-60] [Not Flagged] Plane of Awesome: [awesomeplane]


Can it be done?
Reply With Quote
  #21  
Old 02-03-2012, 01:18 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
Default

Sure, just have to check all the quest globals that lock you out of said zone, and level bypass, etc, etc.
Huge amount of work depending on your server.
Reply With Quote
  #22  
Old 02-03-2012, 01:24 AM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 905
Default

Well I figured as much. Looking for a little more guidance. Pretty new these things.
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 02:34 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3