View Single Post
  #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