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 11-24-2012, 06:25 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default TIP: Updating zone lines for custom servers.

Heyas,

This little piece of SQL will modify the zone lines of a specific zone so that players are returned to the lobby or a specific zone.

Code:
# This is the zone players will zone to.
SET @LobbyZone = "nexus";
SET @LobbyHeading = 130;

# This is the zone we are changing
SET @ZoneName = "crushbone";

UPDATE zone_points
SET
	target_zone_id = (SELECT zoneidnumber from zone where short_name = @LobbyZone),
	target_x = (SELECT safe_x from zone where short_name = @LobbyZone),
	target_y = (SELECT safe_y from zone where short_name = @LobbyZone),
	target_z = (SELECT safe_z from zone where short_name = @LobbyZone),
	target_heading = @LobbyHeading
WHERE zone = @ZoneName;
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 08:24 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3