mirror of
https://github.com/brian8544/turtle-wow.git
synced 2024-12-29 02:44:34 +00:00
21 lines
1.4 KiB
SQL
21 lines
1.4 KiB
SQL
-- Based on UPDATE custom_character_skins SET skin_male = 17, skin_female = 17 WHERE token_id = 81206;
|
|
UPDATE `characters` SET `playerBytes`=(17 | (`playerBytes` & 0xFFFFFF00)) WHERE `race`=10 && `gender`=0 && (`playerBytes` & 0xFF) = 16;
|
|
UPDATE `characters` SET `playerBytes`=(17 | (`playerBytes` & 0xFFFFFF00)) WHERE `race`=10 && `gender`=1 && (`playerBytes` & 0xFF) = 16;
|
|
|
|
-- Based on UPDATE custom_character_skins SET skin_male = 18, skin_female = 16 WHERE token_id = 81209;
|
|
UPDATE `characters` SET `playerBytes`=(18 | (`playerBytes` & 0xFFFFFF00)) WHERE `race`=10 && `gender`=0 && (`playerBytes` & 0xFF) = 17;
|
|
UPDATE `characters` SET `playerBytes`=(16 | (`playerBytes` & 0xFFFFFF00)) WHERE `race`=10 && `gender`=1 && (`playerBytes` & 0xFF) = 15;
|
|
|
|
SET @POSX = 1829.1;
|
|
SET @POSY = 1385.9;
|
|
SET @POSZ = 148.7;
|
|
SET @DISTANCE = 300;
|
|
|
|
UPDATE `characters` SET `position_x`=-233, `position_y`=-7177, `position_z`=16.52 WHERE `map`=1 && @DISTANCE > SQRT(((@POSX - position_x) * (@POSX - position_x)) + ((@POSY - position_y) * (@POSY - position_y)) + ((@POSZ - position_z) * (@POSZ - position_z)));
|
|
|
|
SET @POSX = -5630.9;
|
|
SET @POSY = -4324.9;
|
|
SET @POSZ = 401.6;
|
|
SET @DISTANCE = 300;
|
|
|
|
UPDATE `characters` SET `position_x`=3212.63, `position_y`=-2501.44, `position_z`=111.71 WHERE `map`=0 && @DISTANCE > SQRT(((@POSX - position_x) * (@POSX - position_x)) + ((@POSY - position_y) * (@POSY - position_y)) + ((@POSZ - position_z) * (@POSZ - position_z))); |