View Single Post
  #9  
Old 09-05-2011, 12:42 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Akka's script was really close. That function is a client function though, so it needs to be initiated from a client (since you should always have a client available to use that command anyway).

I haven't actually tried saving the NPCs after using these plugins yet, but it should be very simple. I didn't test this, but I think this script should work:

Code:
		if ($text =~/Save Spawns/i)
		{
			my @npclist = $entity_list->GetNPCList();
			foreach $ent (@npclist)
			{
				$client->NPCSpawn($ent, "add", 1200);
			}
		}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote