View Single Post
  #10  
Old 09-05-2011, 04:25 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by trevius View Post
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);
			}
		}
ok that works, is there anyway i can make it add all of the same npc type to 1 spawn group. Thats how i do my other spawns
Reply With Quote