Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions sql/updates/auth/create_sql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

unamestr=`uname`

Check warning on line 3 in sql/updates/auth/create_sql.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=ProjectSkyfire_SkyFire_548&issues=AZ4QNgAVbgnSuG7_NYgx&open=AZ4QNgAVbgnSuG7_NYgx&pullRequest=1213
echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename";
if [[ "$unamestr" == 'Darwin' ]]; then
datecmd='gdate'
else
datecmd='date'
fi

CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"
FOLDER_NAME=$(basename "$CUR_PATH")
DATE_STR=$($datecmd +%Y_%m_%d)

idx=0
while : ; do
filename="${DATE_STR}_${FOLDER_NAME}_$(printf '%02d' $idx).sql"
if [[ ! -e "$CUR_PATH/$filename" ]]; then
break
fi
idx=$((idx+1))
done

echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename"
24 changes: 24 additions & 0 deletions sql/updates/characters/create_sql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

unamestr=`uname`

Check warning on line 3 in sql/updates/characters/create_sql.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=ProjectSkyfire_SkyFire_548&issues=AZ4QNgAdbgnSuG7_NYgy&open=AZ4QNgAdbgnSuG7_NYgy&pullRequest=1213
echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename";
if [[ "$unamestr" == 'Darwin' ]]; then
datecmd='gdate'
else
datecmd='date'
fi

CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"
FOLDER_NAME=$(basename "$CUR_PATH")
DATE_STR=$($datecmd +%Y_%m_%d)

idx=0
while : ; do
filename="${DATE_STR}_${FOLDER_NAME}_$(printf '%02d' $idx).sql"
if [[ ! -e "$CUR_PATH/$filename" ]]; then
break
fi
idx=$((idx+1))
done

echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename"
14 changes: 14 additions & 0 deletions sql/updates/world/2026-01-29_world_00.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DELETE FROM `disables` WHERE `sourceType` = 2 AND `entry` IN (1008, 1009, 1098, 1011);
INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`, `comment`) VALUES
(2, 1008, 63, '', '', 'Disabled Raid: Mogu shan Vaults [ALL DIFFICULTIES] - WIP'),
(2, 1009, 63, '', '', 'Disabled Raid: Heart of Fear [ALL DIFFICULTIES] - WIP'),
(2, 1098, 63, '', '', 'Disabled Raid: Throne of Thunder [ALL DIFFICULTIES] - WIP'),
(2, 1011, 3, '', '', 'Disabled Dungeon: Siege of Niuzao Temple [ALL DIFFICULTIES] - WIP');

UPDATE `game_tele` SET `position_x` = 964.450989, `position_y` = -2454.360107, `position_z` = 180.233551, `orientation` = 80.12928 WHERE `ID` = 1003; -- Jade Serpent Temple (updates from the sky to infront of the temple).

UPDATE `game_tele` SET `position_x` = 1426.476929, `position_y` = 5083.146973, `position_z` = 131.158401, `orientation` = 80.12928 WHERE `ID` = 1024; -- Siege Of Niuzao Temple (updates from the outside to infront of the entrance in the hollowed tree).

DELETE FROM `game_tele` WHERE `id`= 1527;
INSERT INTO `game_tele` (`id`, `position_x`, `position_y`, `position_z`, `orientation`, `map`, `name`) VALUES
(1527, 683.242, 2079.95, 371.711, 0.0201836, 870, 'GateOfTheSettingSun');
24 changes: 24 additions & 0 deletions sql/updates/world/create_sql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

unamestr=`uname`

Check warning on line 3 in sql/updates/world/create_sql.sh

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=ProjectSkyfire_SkyFire_548&issues=AZ4QNf-XbgnSuG7_NYgw&open=AZ4QNf-XbgnSuG7_NYgw&pullRequest=1213
echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename";
if [[ "$unamestr" == 'Darwin' ]]; then
datecmd='gdate'
else
datecmd='date'
fi

CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"
FOLDER_NAME=$(basename "$CUR_PATH")
DATE_STR=$($datecmd +%Y_%m_%d)

idx=0
while : ; do
filename="${DATE_STR}_${FOLDER_NAME}_$(printf '%02d' $idx).sql"
if [[ ! -e "$CUR_PATH/$filename" ]]; then
break
fi
idx=$((idx+1))
done

echo "--" > "$CUR_PATH/$filename" && echo "File created: $filename"