Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2011, 04:44 PM
Kingmen30264
Hill Giant
 
Join Date: Sep 2006
Posts: 112
Default

Nice code. I am sure that will help a lot of us in creating zones in a matter of say 30m instead of a day (Depending on the zone).

Appreciate the post. Going to test this out soon.
Reply With Quote
  #2  
Old 08-18-2011, 02:06 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

same, after i finish spawning my zone im gonna work on adding these.
Reply With Quote
  #3  
Old 08-18-2011, 02:26 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

I will add these to the repository shortly.

Edit: Added to repository. Go ahead and source.
Reply With Quote
  #4  
Old 09-03-2011, 07:01 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

hey trev, do you have the script you use to save em all to the database?

Also can the plug in be altered to spawn less mobs or more?
Reply With Quote
  #5  
Old 09-03-2011, 07:09 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Quote:
Originally Posted by Astal View Post
hey trev, do you have the script you use to save em all to the database?

Also can the plug in be altered to spawn less mobs or more?
This really should be quite simple, I haven't tested this, but it should work.

Code:
my @npclist = $entity_list->GetNPCList();
	foreach $ent (@npclist){
		$ent->NPCSpawn($ent, "add", 1200);
	}
Reply With Quote
  #6  
Old 09-04-2011, 09:20 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Quote:
Originally Posted by Astal View Post
Also can the plug in be altered to spawn less mobs or more?
You can spawn exactly the density of NPCs that you want. The distance field below will set how far apart they spawn from each other, which controls density. Then, rows and columns can control the total size of the area that the NPCs populate. The fields are all covered in the comments of the plugin:

#Usage: plugin::SpawnZone(X, Y, Z, Distance, Variance, Columns, Rows);
# This is used to spawn a grid of NPCs and can be used to spawn an entire zone
# X/Y/Z are the coords of the first NPC to spawn that the others are spawned based on it's location
# Distance is the distance each member of the formation will be from each other on both axis
# Variance is the max distance of scatter effect you want on the grid positioning to make it look less like a grid
# Columns is the number of columns you want in the formation
# Rows is the number of rows you want in the formation
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 09-04-2011, 11:13 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

ok ill fiddle with it, thanks

ok that add script, i guess id add it to the same npc with a new text command or whatever right. Does that save them the same way spawning multiple instances in georges npc editor and spawn placing them manually would?


ok yeah that script dont work, trev u willing to post the one you use to save the spawns


oh btw if u get random roam working with this ill love u forever
Reply With Quote
  #8  
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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:38 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3