View Single Post
  #7  
Old 09-19-2009, 11:52 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Some quest coder should help me out here.. I'm not very familiar with it. :/ but!
LoadPlayerScript() function in embparser.cpp
it does this whole..
Code:
string filename= "quests/";
	filename += zone;
	filename += "/player.pl";
	string packagename = "player";
	packagename += "_";
	packagename += zone;
build of the quests\zone\player.pl directory.. tries to eval it
Code:
try {
		perl->eval_file(packagename.c_str(), filename.c_str());
	}
then if it doesn't load,
Code:
if(!isloaded(packagename.c_str()))
	{
		filename = "quests/";
		filename += QUEST_TEMPLATES_DIRECTORY;
		filename += "/player.pl";
try templates. So if I'm not corrected, if a /<zone>/player.pl exists, it stops the parser from loading /templates/player.pl?
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote