Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-31-2014, 01:24 AM
zerjz3
Banned
 
Join Date: Aug 2010
Location: Sanctuary
Posts: 269
Default Instancing Question

Is there some easy way to set a zone as an instanced zone? I've done some searching and found multiple ways people have come up with creating instanced zones - wondering what is the most up-to-date modern way of doing this? Preferably there is some database setting without having to code some elaborate perl script for making an instance, but I don't know. How is this done nowadays?
Reply With Quote
  #2  
Old 10-31-2014, 05:04 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

If you just want to make an instance (to do whatever in):

Code:
#instance create zone version duration
#instance add instance_id player_name
#zoneinstance instance_id
eg:

Code:
#instance create potimeb 0 7200
Will create an instance of potimeb that lasts 7200 seconds (2 hours)

It will tell you the instance_id that it assigned when the command completes, for this example lets use 31:

Code:
#instance add 31 zerjz
#zoneinstance 31
This assigns the character zerjz to the instance id and zones him in.


Now if you want something you don't have to manually do each time you'll have to look at some scary(not really) scripts.
Reply With Quote
  #3  
Old 10-31-2014, 07:52 AM
zerjz3
Banned
 
Join Date: Aug 2010
Location: Sanctuary
Posts: 269
Default

Thank you for the information. That's a good jumping off point for me.

My next question, is there a way to make players enter different instances of a zone when they use a regular zoneline to enter the zone, or do I need to set up an invisible NPC near the zoneline with a radius set to teleport them into the zone, using a script to send them into their own instance?

Example: Zerjz zones into Unrest and enters an instance of it. KLS zones into Unrest and enters his own private instance of it. Group members for both characters zone in and enter the correct instance containing their respective group mates
Reply With Quote
  #4  
Old 10-31-2014, 05:12 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,447
Default

Quote:
Originally Posted by zerjz3 View Post
Thank you for the information. That's a good jumping off point for me.

My next question, is there a way to make players enter different instances of a zone when they use a regular zoneline to enter the zone, or do I need to set up an invisible NPC near the zoneline with a radius set to teleport them into the zone, using a script to send them into their own instance?

Example: Zerjz zones into Unrest and enters an instance of it. KLS zones into Unrest and enters his own private instance of it. Group members for both characters zone in and enter the correct instance containing their respective group mates
Yes - you can do that, but with the way it's set up you will have to zone twice. Once you are in the zone, set an enterzone script to force them in the same instance as their group.
Reply With Quote
  #5  
Old 10-31-2014, 05:18 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

The way most of the normal instancing works on live is that they will have an NPC you talk to to get the instance, then a door or NPC (just need something else scriptable) that will send you there.

So for the example with unrest. You could have the normal version of unrest then plop an NPC near the zone line that you can request an instanced version for which could have different NPCs or a quest associated with it. (More just throwing out alternatives to having to zone twice)
Reply With Quote
Reply


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 04:57 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3