SHARE
TWEET

Untitled

a guest Aug 31st, 2019 331 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From 686af2b3b4fe45ec8d19f5f80002500fefeac3ab Mon Sep 17 00:00:00 2001
  2. From: zgn <gennady.zamalaev@gmail.com>
  3. Date: Sat, 31 Aug 2019 14:09:53 +0300
  4. Subject: [PATCH] Core/Player: unlock hack new race Kul Tiran and Zandalar
  5.  
  6. ---
  7.  sql/ashamane/world/2019_08_31_02_world_CT.sql | 29 +++++++++++++++++++
  8.  .../game/Entities/Player/PlayerTaxi.cpp       |  2 ++
  9.  src/server/game/Handlers/CharacterHandler.cpp |  3 +-
  10.  src/server/game/Miscellaneous/SharedDefines.h |  7 +++--
  11.  5 files changed, 50 insertions(+), 9 deletions(-)
  12.  create mode 100644 sql/ashamane/world/2019_08_31_02_world_CT.sql
  13.  
  14. diff --git a/sql/ashamane/world/2019_08_31_02_world_CT.sql b/sql/ashamane/world/2019_08_31_02_world_CT.sql
  15. new file mode 100644
  16. index 0000000000..ff6942945b
  17. --- /dev/null
  18. +++ b/sql/ashamane/world/2019_08_31_02_world_CT.sql
  19. @@ -0,0 +1,29 @@
  20. +DELETE FROM `race_unlock_requirement` WHERE `raceID` IN (31, 32);
  21. +INSERT INTO `race_unlock_requirement` VALUES
  22. +(31, 7, 0),
  23. +(32, 7, 0);
  24. +
  25. +DELETE FROM `playercreateinfo` WHERE `race` IN (31, 32);
  26. +INSERT INTO `playercreateinfo` (`race`, `class`, `map`, `zone`, `position_x`, `position_y`, `position_z`, `orientation`) VALUES
  27. +('31','11','1','14','1567.38','-4189.12','53.6794','2.2874'),
  28. +('31','3','1','14','1567.38','-4189.12','53.6794','2.2874'),
  29. +('31','8','1','14','1567.38','-4189.12','53.6794','2.2874'),
  30. +('31','10','1','14','1567.38','-4189.12','53.6794','2.2874'),
  31. +('31','2','1','14','1567.38','-4189.12','53.6794','2.2874'),
  32. +('31','5','1','14','1567.38','-4189.12','53.6794','2.2874'),
  33. +('31','4','1','14','1567.38','-4189.12','53.6794','2.2874'),
  34. +('31','1','1','14','1567.38','-4189.12','53.6794','2.2874'),
  35. +('31','7','1','14','1567.38','-4189.12','53.6794','2.2874'),
  36. +('32','11','0','1','-8177.66','792.195','73.9964','0.781548'),
  37. +('32','3','0','1','-8177.66','792.195','73.9964','0.781548'),
  38. +('32','8','0','1','-8177.66','792.195','73.9964','0.781548'),
  39. +('32','10','0','1','-8177.66','792.195','73.9964','0.781548'),
  40. +('32','5','0','1','-8177.66','792.195','73.9964','0.781548'),
  41. +('32','4','0','1','-8177.66','792.195','73.9964','0.781548'),
  42. +('32','1','0','1','-8177.66','792.195','73.9964','0.781548'),
  43. +('32','7','0','1','-8177.66','792.195','73.9964','0.781548');
  44. +
  45. +DELETE FROM `player_racestats` WHERE `race` IN (31, 32);
  46. +INSERT INTO `player_racestats` VALUES
  47. +(31, 0, 0, 0, 0),
  48. +(32, 0, 0, 0, 0);
  49. diff --git a/src/server/game/Entities/Player/PlayerTaxi.cpp b/src/server/game/Entities/Player/PlayerTaxi.cpp
  50. index 91869ccf81..ae1a51a6f9 100644
  51. --- a/src/server/game/Entities/Player/PlayerTaxi.cpp
  52. +++ b/src/server/game/Entities/Player/PlayerTaxi.cpp
  53. @@ -49,6 +49,7 @@ void PlayerTaxi::InitTaxiNodesForLevel(uint32 race, uint32 chrClass, uint8 level
  54.          case RACE_PANDAREN_ALLIANCE:
  55.          case RACE_VOID_ELF:
  56.          case RACE_LIGHTFORGED_DRAENEI:
  57. +        case RACE_KUL_TIRAN:
  58.          case RACE_DARK_IRON_DWARF:
  59.              SetTaximaskNode(2);     // Stormwind, Elwynn
  60.              SetTaximaskNode(6);     // Ironforge, Dun Morogh
  61. @@ -73,6 +74,7 @@ void PlayerTaxi::InitTaxiNodesForLevel(uint32 race, uint32 chrClass, uint8 level
  62.          case RACE_PANDAREN_HORDE:
  63.          case RACE_NIGHTBORNE:
  64.          case RACE_HIGHMOUNTAIN_TAUREN:
  65. +        case RACE_ZANDALARI_TROLL:
  66.          case RACE_MAGHAR_ORC:
  67.              SetTaximaskNode(11);    // Undercity, Tirisfal
  68.              SetTaximaskNode(22);    // Thunder Bluff, Mulgore
  69. diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
  70. index 7df4b75c02..eee4662e6b 100644
  71. --- a/src/server/game/Handlers/CharacterHandler.cpp
  72. +++ b/src/server/game/Handlers/CharacterHandler.cpp
  73. @@ -1981,7 +1981,7 @@ void WorldSession::HandleCharRaceOrFactionChangeCallback(std::shared_ptr<WorldPa
  74.          trans->Append(stmt);
  75.  
  76.          // Race specific languages
  77. -        if (factionChangeInfo->RaceID != RACE_ORC && factionChangeInfo->RaceID != RACE_HUMAN && factionChangeInfo->RaceID != RACE_MAGHAR_ORC)
  78. +        if (factionChangeInfo->RaceID != RACE_ORC && factionChangeInfo->RaceID != RACE_HUMAN && factionChangeInfo->RaceID != RACE_MAGHAR_ORC && factionChangeInfo->RaceID != RACE_KUL_TIRAN)
  79.          {
  80.              stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_CHAR_SKILL_LANGUAGE);
  81.              stmt->setUInt64(0, lowGuid);
  82. @@ -2000,6 +2000,7 @@ void WorldSession::HandleCharRaceOrFactionChangeCallback(std::shared_ptr<WorldPa
  83.                  case RACE_UNDEAD_PLAYER:        raceLang = 673;     break;
  84.                  case RACE_TAUREN:
  85.                  case RACE_HIGHMOUNTAIN_TAUREN:  raceLang = 115;     break;
  86. +                case RACE_ZANDALARI_TROLL:
  87.                  case RACE_TROLL:                raceLang = 315;     break;
  88.                  case RACE_BLOODELF:             raceLang = 137;     break;
  89.                  case RACE_GOBLIN:               raceLang = 792;     break;
  90. diff --git a/src/server/game/Miscellaneous/SharedDefines.h b/src/server/game/Miscellaneous/SharedDefines.h
  91. index 561ea239cc..70647b5df8 100644
  92. --- a/src/server/game/Miscellaneous/SharedDefines.h
  93. +++ b/src/server/game/Miscellaneous/SharedDefines.h
  94. @@ -170,8 +170,8 @@ enum Races
  95.      RACE_HIGHMOUNTAIN_TAUREN    = 28,
  96.      RACE_VOID_ELF               = 29,
  97.      RACE_LIGHTFORGED_DRAENEI    = 30,
  98. -    //RACE_ZANDALARI_TROLL    = 31,
  99. -    //RACE_KUL_TIRAN          = 32,
  100. +    RACE_ZANDALARI_TROLL        = 31,
  101. +    RACE_KUL_TIRAN              = 32,
  102.      //RACE_THIN_HUMAN         = 33,
  103.      RACE_DARK_IRON_DWARF        = 34,
  104.      //RACE_VULPERA            = 35,
  105. @@ -204,6 +204,8 @@ enum Races
  106.       (UI64LIT(1)<<(RACE_HIGHMOUNTAIN_TAUREN-1)) | \
  107.       (UI64LIT(1)<<(RACE_VOID_ELF-1))            | \
  108.       (UI64LIT(1)<<(RACE_LIGHTFORGED_DRAENEI-1)) | \
  109. +     (UI64LIT(1)<<(RACE_ZANDALARI_TROLL-1)) | \
  110. +     (UI64LIT(1)<<(RACE_KUL_TIRAN-1)) | \
  111.       (UI64LIT(1)<<(RACE_DARK_IRON_DWARF-1))     | \
  112.       (UI64LIT(1)<<(RACE_MAGHAR_ORC-1)))
  113.  
  114. @@ -218,6 +220,7 @@ enum Races
  115.       (UI64LIT(1)<<(RACE_WORGEN-1))              | \
  116.       (UI64LIT(1)<<(RACE_PANDAREN_ALLIANCE-1))   | \
  117.       (UI64LIT(1)<<(RACE_VOID_ELF-1))            | \
  118. +     (UI64LIT(1)<<(RACE_KUL_TIRAN-1))           | \
  119.       (UI64LIT(1)<<(RACE_LIGHTFORGED_DRAENEI-1)) | \
  120.       (UI64LIT(1)<<(RACE_DARK_IRON_DWARF-1)))
  121.  
  122. --
  123. 2.21.0.windows.1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top