| 
   | 
   | 
  
 
    | 
    | 
    | 
  
 
    | 
   | 
    | 
  
 
    | 
   | 
    | 
  
 
    | 
   | 
    | 
  
 
   | 
  
	
		
   
   
      | Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days. | 
    
    
   
   
   
   
   
   
   
   
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-14-2003, 06:44 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2002 
					
					
					
						Posts: 0
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
				 
				Code: #zonespawn function (Beta 1)
			 
			 
			
		
		
		
		This is the first beta of my #zonespawn function.  It allows you to log into the emulator and use the #spawn function to create a NPC, move it around, etc.  Once you have it set up right you can target it and type "#zonespawn add". and it will add the entry for it into the database. 
 
Note: In this version it will only save the basic mob settings.  These being location/heading, name, level, class, race, gender, hp, merchant id, etc.  Also this was written using the 0.4.1 code, so you may need to cut/paste the changes manually if you are using the beta of 0.4.2 (see lyenuchanges.txt for a list of what was added/changed). 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-14-2003, 08:07 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2003 
					
					
					
						Posts: 5
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Nice.  Very similar to something I was looking into.  One question (without looking at the code) does #zonepawn add also perform an "update" on critters that already are in the DB? 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-14-2003, 08:48 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2002 
					
					
					
						Posts: 0
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		I think you're referring to being able to edit a spawn that is already inside the zone.  The answer for that is no, it'll be done in beta 2 though.  The command will be #zonespawn edit. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-15-2003, 07:39 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Demi-God 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2002 
					
					
					
						Posts: 2,073
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Loot would be easy to add (via #npcloot add #) and should be easy to save with some code changes.. 
		
	
		
		
		
		
		
		
			
				__________________ 
				Shawn319 
Semi-Retired EQ Addict 
 
(Retired)EQEmu Lead Tester 
(Retired)EQEmu Tech Support 
 
(Retired)Host/ServerOP - [LIVE] Official EQEmu Test Server 
(Retired)Host/ServerOP - Shawn319's All-GM Dev Test Server 
(Retired)ServerOP - EQEmu Beta Server 
(Retired)ServerOP - GuildWars Server 
(Retired)ServerOP - Raid Addicts 
--------------------------
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-15-2003, 12:49 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Demi-God 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2002 
					Location: Charlotte, NC 
					
					
						Posts: 2,614
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Lyn, why the bool Database:  BSpawn in the end of npc.cpp ?  I think that needs to be at the end of database.cpp,  and are chnages to npc.cpp really necessary in that case?
 
Thanks!  
		
	
		
		
		
		
		
		
			
				__________________ 
				Quitters never win, and winners never quit, but those who never win and never quit are idiots.
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-15-2003, 01:34 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2002 
					
					
					
						Posts: 0
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		If you put Database:  BSpawn() into the database.cpp file you will get all types of errors from the NPC class.  This method it also used for the petition functions and everything.  Also Shawn, you are right, and I will add that to the command tonight.  So, expect beta 2 soon! =)  
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-15-2003, 03:43 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Demi-God 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2002 
					Location: Charlotte, NC 
					
					
						Posts: 2,614
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		See what ya mean.. There should be a more elegant way to do that, but it does work... 
Ok.. added the initial form into the baseline.. try to pull it down from cvs and update any new additions changes in there if you dont mind, it'll make it easier to merge back in    
Cool feature, thanks!  
		
	
		
		
		
		
		
		
			
				__________________ 
				Quitters never win, and winners never quit, but those who never win and never quit are idiots.
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-15-2003, 07:56 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2002 
					
					
					
						Posts: 0
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Will do, and no problem! =) 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-16-2003, 02:42 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Senior Member Former EQEmu Developer Current EQ2Emu Lead Developer 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Dec 2002 
					
					
					
						Posts: 1,065
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Dont forget to add class npc to your changelog.  I was reading your log and I also had to add the class before it would work.  Also you might want to update the npc's npcidtype once you assign it one from the db.  If you dont it is going to be a lot harder to save loot into the db, etc. 
		
	
		
		
		
		
		
		
			
				__________________ 
				Lethal Encounter
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				01-16-2003, 09:59 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
			
				
				
				 Fire Beetle 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2002 
					
					
					
						Posts: 0
					 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
	
	
	
		
		
		
			
			
			 
			
		
		
		
		Where did you have to add the class NPC?  Also thanks for reminding me about that, it would make my life a lot easier when edit and such gets implemented.  Another thing I need to do is add the new spawn information into memory, so you don't have to restart the zone. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
		
	
		 
		Posting Rules
	 | 
 
	
		
		You may not post new threads 
		You may not post replies 
		You may not post attachments 
		You may not edit your posts 
		 
		
		
		
		
		HTML code is Off 
		 
		
	  | 
 
 
	 | 
	
		
	 | 
 
 
All times are GMT -4. The time now is 08:11 AM. 
 
		 
	 
 
 
     | 
     | 
    
   
      | 
     | 
      | 
    
   
     | 
      | 
     | 
    
   
       | 
      | 
       | 
     
    
    
  | 
   |