Advertisement
jackpoz

player titles

Oct 13th, 2011
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.63 KB | None | 0 0
  1. Index: sql/character_updates/4640_player_titles.sql
  2. ===================================================================
  3. --- sql/character_updates/4640_player_titles.sql    (revision 0)
  4. +++ sql/character_updates/4640_player_titles.sql    (working copy)
  5. @@ -0,0 +1,2 @@
  6. +ALTER TABLE `characters` ADD `available_pvp_titles2` bigint(10) unsigned NOT NULL DEFAULT '0' AFTER available_pvp_titles1`;
  7. +UPDATE `arcemu_db_version` SET `LastUpdate` = '4640';
  8. \ No newline at end of file
  9. Index: src/arcemu-world/Level3.cpp
  10. ===================================================================
  11. --- src/arcemu-world/Level3.cpp (revision 4632)
  12. +++ src/arcemu-world/Level3.cpp (working copy)
  13. @@ -4185,6 +4185,7 @@
  14.     {
  15.         plr->SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES, 0);
  16.         plr->SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES1, 0);
  17. +       plr->SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES2, 0);
  18.     }
  19.     else if(title > 0)
  20.         plr->SetKnownTitle(static_cast< RankTitles >(title), true);
  21. Index: src/arcemu-world/Master.h
  22. ===================================================================
  23. --- src/arcemu-world/Master.h   (revision 4632)
  24. +++ src/arcemu-world/Master.h   (working copy)
  25. @@ -44,7 +44,7 @@
  26.  #endif
  27.  
  28.  #define REQUIRED_WORLD_DB_VERSION 4630
  29. -#define REQUIRED_CHAR_DB_VERSION 4479
  30. +#define REQUIRED_CHAR_DB_VERSION 4640
  31.  
  32.  #define DEFAULT_LOOP_TIME 0 /* 0 milliseconds - instant */
  33.  #define DEFAULT_LOG_LEVEL 0
  34. Index: src/arcemu-world/Player.cpp
  35. ===================================================================
  36. --- src/arcemu-world/Player.cpp (revision 4632)
  37. +++ src/arcemu-world/Player.cpp (working copy)
  38. @@ -2333,6 +2333,7 @@
  39.        << m_uint32Values[PLAYER_CHOSEN_TITLE] << ","
  40.        << GetUInt64Value(PLAYER__FIELD_KNOWN_TITLES) << ","
  41.        << GetUInt64Value(PLAYER__FIELD_KNOWN_TITLES1) << ","
  42. +      << GetUInt64Value(PLAYER__FIELD_KNOWN_TITLES2) << ","
  43.        << m_uint32Values[PLAYER_FIELD_COINAGE] << ",";
  44.  
  45.     if((getClass() == MAGE) || (getClass() == PRIEST) || (getClass() == WARLOCK))
  46. @@ -2724,7 +2725,7 @@
  47.         return;
  48.     }
  49.  
  50. -   const uint32 fieldcount = 90;
  51. +   const uint32 fieldcount = 91;
  52.  
  53.     if(result->GetFieldCount() != fieldcount)
  54.     {
  55. @@ -2886,6 +2887,7 @@
  56.     SetChosenTitle(get_next_field.GetUInt32());
  57.     SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES, get_next_field.GetUInt64());
  58.     SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES1, get_next_field.GetUInt64());
  59. +   SetUInt64Value(PLAYER__FIELD_KNOWN_TITLES2, get_next_field.GetUInt64());
  60.     m_uint32Values[ PLAYER_FIELD_COINAGE ]                  = get_next_field.GetUInt32();
  61.     m_uint32Values[ PLAYER_AMMO_ID ]                        = get_next_field.GetUInt32();
  62.     m_uint32Values[ PLAYER_CHARACTER_POINTS2 ]              = get_next_field.GetUInt32();
  63.  
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement