View Single Post
  #18  
Old 09-20-2009, 07:07 AM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

Quote:
Originally Posted by Shin Noir View Post
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?
curiousity question, if I were to just take this code, and make it so it loads both player.pl, what would be wrong with that?
Reply With Quote