EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=596)
-   -   TIP: Updating zone lines for custom servers. (https://www.eqemulator.org/forums/showthread.php?t=36027)

Drajor 11-24-2012 06:25 AM

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;



All times are GMT -4. The time now is 09:18 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.