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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2010, 03:12 AM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default Message when entering a zone

I keep looking, but I can't find a place where you can set a message for each zone when a toon enters the zone, i.e. "Welcome to Unrest. Making trains here will get you banned!"

And while I am at it here, I also can't find where to set a maximum level for a zone. The zone table has min_level, but no max_level, and I can't find it anywhere else. Anyone know?

Thanks.
Reply With Quote
  #2  
Old 12-15-2010, 03:39 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

This wiki page should help:

http://www.eqemulator.net/wiki/wikka...rQuestExamples

You will want to create a player.pl file in the zone folder you want the message to happen in.

Then, just add an EVENT_ENTERZONE to that file and have it send the message to the player using Message(). There is no max level allowed for zoning in, but you can just check their level and port them back out if they are too high. Here is a simple example:

Code:
sub EVENT_ENTERZONE {

	if ($ulevel < 35)
	{
		$client->Message(15, "Welcome to Unrest. Making trains here will get you banned!");
	}
	else
	{
		# If they are 35 or higher, port them to Nexus
		$client->MovePC(152, 0, 0, -30, 0);
	}

}
Also, if you wanted to prevent them from staying in the zone after they exceed the max level you want, you can use EVENT_LEVEL_UP in player.pl and have it check their level and port them out same as the example above.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 12-15-2010, 02:03 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

Thank you Trevius, I have always found your posts very helpful and respectful, and I appreciate both.
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 12:24 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3