View Single Post
  #2  
Old 01-13-2004, 03:00 PM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

Nice work!

Alternately, you could also just modify command_reloadqst to

Code:
void command_reloadqst(Client *c, const Seperator *sep)
{
#ifdef EMBPERL
	if (c->GetTarget() == 0 || !c->GetTarget()->IsNPC()) 
	{ 
		c->Message(0, "Error: Bad target"); 
		return; 
	} 

	c->Message(0, "Reloading perl quest script for NPC type %i.", 
	c->GetTarget()->GetNPCTypeID()); 

	((PerlembParser *)parse)->LoadScript(c->GetTarget()->GetNPCTypeID(), zone->GetShortName()); 
#else
	parse->ClearCache();
	c->Message(0, "Clearing *.qst memory cache.");
#endif
And have #reloadqst reload either old qst or perl depending on which is being used...
__________________
Maybe I should try making one of these servers...
Reply With Quote