diff --git a/src/Controllers/Common/AchievementController.cs b/src/Controllers/Common/AchievementController.cs index 595b662..da5a5f9 100644 --- a/src/Controllers/Common/AchievementController.cs +++ b/src/Controllers/Common/AchievementController.cs @@ -43,7 +43,8 @@ public class AchievementController : Controller { uint gameVersion = ClientVersion.GetVersion(apiKey); if (gameVersion <= ClientVersion.Max_OldJS && (gameVersion & ClientVersion.WoJS) != 0) return Ok(XmlUtil.ReadResourceXmlString("allranks_wojs")); - + else if (gameVersion == ClientVersion.MB) + return Ok(XmlUtil.ReadResourceXmlString("allranks_mb")); // TODO, this is a placeholder return Ok(XmlUtil.ReadResourceXmlString("allranks")); } diff --git a/src/Controllers/Common/ItemStoreController.cs b/src/Controllers/Common/ItemStoreController.cs index 8ab631d..cbba5dd 100644 --- a/src/Controllers/Common/ItemStoreController.cs +++ b/src/Controllers/Common/ItemStoreController.cs @@ -56,8 +56,11 @@ public class ItemStoreController : Controller { [HttpPost] //[Produces("application/xml")] [Route("ItemStoreWebService.asmx/GetRankAttributeData")] - public IActionResult GetRankAttributeData() { - // TODO + public IActionResult GetRankAttributeData([FromForm] string apiKey) { + uint gameVersion = ClientVersion.GetVersion(apiKey); + if (gameVersion == ClientVersion.MB) + return Ok(XmlUtil.ReadResourceXmlString("rankattrib_mb")); + // TODO, this is a placeholder return Ok(XmlUtil.ReadResourceXmlString("rankattrib")); } diff --git a/src/Resources/allranks_mb.xml b/src/Resources/allranks_mb.xml new file mode 100644 index 0000000..603d65e --- /dev/null +++ b/src/Resources/allranks_mb.xml @@ -0,0 +1,861 @@ + + + + 1 + Cadet Yellow + Rank 1- Base rank- Yellow arm and leg bands + RS_DATA/Content/Ranks/AniMBRank01.png + + + 2 + Cadet Orange + Rank 2- Arm and leg bands change to orange + RS_DATA/Content/Ranks/AniMBRank02.png + + + 3 + Cadet Green + Rank 3- Arm and leg bands change to green and Gauntlet Given + RS_DATA/Content/Ranks/AniMBRank03.png + + + 4 + Cadet Red + Rank 4- Arm and leg bands change to Red + RS_DATA/Content/Ranks/AniMBRank04.png + + + 5 + Cadet Blue + Rank 5- Player receieves Particle Gauntlet Shooter and gloves arm and leg bands change to Blue. + RS_DATA/Content/Ranks/AniMBRank05.png + + + 6 + Cadet 1st Class Yellow + Rank 6- Player now has gauntlet and arm/leg bands are yellow + RS_DATA/Content/Ranks/AniMBRank06.png + + + 7 + Cadet 1st Class Orange + Rank 7- Player now has gauntlet and arm/leg bands are orange + RS_DATA/Content/Ranks/AniMBRank07.png + + + 8 + Cadet 1st Class Green + Rank 8- Player now has gauntlet and arm/leg bands are green + RS_DATA/Content/Ranks/AniMBRank08.png + + + 9 + Cadet 1st Class Red + Rank 9- Player now has gauntlet and arm/leg bands are red + RS_DATA/Content/Ranks/AniMBRank09.png + + + 10 + Cadet 1st Class Blue + Rank 10- Player receieves Sash (Deco Band ) and arm/leg bands change to Blue. + RS_DATA/Content/Ranks/AniMBRank10.png + + + 11 + Private Yellow + Rank 11- Player now has the gauntlet/sash and arm/leg bands are yellow + RS_DATA/Content/Ranks/AniMBRank11.png + + + 12 + Private Orange + Rank 12- Player now has the gauntlet/sash and arm/leg bands are orange + RS_DATA/Content/Ranks/AniMBRank12.png + + + 13 + Private Green + Rank 13- Player now has the gauntlet/sash and arm/leg bands are green + RS_DATA/Content/Ranks/AniMBRank13.png + + + 14 + Private Red + Rank 14- Player now has the gauntlet/sash and arm/leg bands are red + RS_DATA/Content/Ranks/AniMBRank14.png + + + 15 + Private Blue + Rank 15- Player receieves Functional Boots and arm/leg bands change to Blue. + RS_DATA/Content/Ranks/AniMBRank15.png + + + 16 + Private 1st Class Yellow + Rank 16- Player now has the gauntlet/sash/boots and arm/leg bands are yellow + RS_DATA/Content/Ranks/AniMBRank16.png + + + 17 + Private 1st Class Orange + Rank 17- Player now has the gauntlet/sash/boots and arm/leg bands are orange + RS_DATA/Content/Ranks/AniMBRank17.png + + + 18 + Private 1st Class Green + Rank 18- Player now has the gauntlet/sash/boots and arm/leg bands are Red + RS_DATA/Content/Ranks/AniMBRank18.png + + + 19 + Private 1st Class Red + Rank 19- Player now has the gauntlet/sash/boots and arm/leg bands are Green + RS_DATA/Content/Ranks/AniMBRank19.png + + + 20 + Private 1st Class Blue + Rank 20- Player receieves Utility Belt and arm/leg bands change to Blue. + RS_DATA/Content/Ranks/AniMBRank20.png + + + 21 + Corporal Yellow + Rank 21- Player now has the gauntlet/sash/boots/belt and arm/leg bands are yellow + RS_DATA/Content/Ranks/AniMBRank21.png + + + 22 + Corporal Orange + Rank 22- Player now has the gauntlet/sash/boots/belt and arm/leg bands are orange + RS_DATA/Content/Ranks/AniMBRank22.png + + + 23 + Corporal Green + Rank 23- Player now has the gauntlet/sash/boots/belt and arm/leg bands are green + RS_DATA/Content/Ranks/AniMBRank23.png + + + 24 + Corporal Green + Rank 24- Player now has the gauntlet/sash/boots/belt and arm/leg bands are Red + RS_DATA/Content/Ranks/AniMBRank24.png + + + 25 + Corporal Blue + Rank 25- Player recieves Shoulder Insignia and arm/leg bands turn to Blue + RS_DATA/Content/Ranks/AniMBRank25.png + + + 26 + Corporal 1st Class Yellow + Rank 26- Player now has the gauntlet/sash/boots/belt/Shoulder Insignia and arm/leg bands are yellow + RS_DATA/Content/Ranks/AniMBRank26.png + + + 27 + Corporal 1st Class Orange + Rank 27- Player now has the gauntlet/sash/boots/belt/Shoulder Insignia and arm/leg bands are Orange + RS_DATA/Content/Ranks/AniMBRank27.png + + + 28 + Corporal 1st Class Green + Rank 28- Player now has the gauntlet/sash/boots/belt/Shoulder Insignia and arm/leg bands are Green + RS_DATA/Content/Ranks/AniMBRank28.png + + + 29 + Corporal 1st Class Red + Rank 29- Player now has the gauntlet/sash/boots/belt/Shoulder Insignia and arm/leg bands are Red + RS_DATA/Content/Ranks/AniMBRank29.png + + + 30 + Corporal 1st Class Blue + Rank 30- Player recieves Leg Insignia and arm/leg bands turn to Blue + RS_DATA/Content/Ranks/AniMBRank30.png + + + 31 + Just STARting + + RS_DATA/Content/Ranks/AniMBSocialRank01.png + + + 32 + Night Sky Newbie + + RS_DATA/Content/Ranks/AniMBSocialRank02.png + + + 33 + Twinkle Twinkle Little Star + + RS_DATA/Content/Ranks/AniMBSocialRank03.png + + + 34 + Just a Taste of Stardom + + RS_DATA/Content/Ranks/AniMBSocialRank04.png + + + 35 + Seeker of the Stars + + RS_DATA/Content/Ranks/AniMBSocialRank05.png + + + 36 + Reaching for the Stars + + RS_DATA/Content/Ranks/AniMBSocialRank06.png + + + 37 + Wishing Upon a Star + + RS_DATA/Content/Ranks/AniMBSocialRank07.png + + + 38 + Starlet Bound + + RS_DATA/Content/Ranks/AniMBSocialRank08.png + + + 39 + Stargazer + + RS_DATA/Content/Ranks/AniMBSocialRank09.png + + + 40 + Star Struck + + RS_DATA/Content/Ranks/AniMBSocialRank10.png + + + 41 + Rising Star + + RS_DATA/Content/Ranks/AniMBSocialRank11.png + + + 42 + Among the Stars + + RS_DATA/Content/Ranks/AniMBSocialRank12.png + + + 43 + Mingling with the stars + + RS_DATA/Content/Ranks/AniMBSocialRank13.png + + + 44 + Shooting Star + + RS_DATA/Content/Ranks/AniMBSocialRank14.png + + + 45 + Oh My Stars! + + RS_DATA/Content/Ranks/AniMBSocialRank15.png + + + 46 + You're a Shining Star + + RS_DATA/Content/Ranks/AniMBSocialRank16.png + + + 47 + Partying Like a Rock Star + + RS_DATA/Content/Ranks/AniMBSocialRank17.png + + + 48 + Hey Now, You're an All-Star + + RS_DATA/Content/Ranks/AniMBSocialRank18.png + + + 49 + Lucky Luminary + + RS_DATA/Content/Ranks/AniMBSocialRank19.png + + + 50 + To the Stars and Beyond + + RS_DATA/Content/Ranks/AniMBSocialRank20.png + + + 52 + Pegasus Anew + + RS_DATA/Content/Ranks/AniMBSocialRank21.png + + + 53 + Inaugural Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank22.png + + + 54 + Pegasus Pup + + RS_DATA/Content/Ranks/AniMBSocialRank23.png + + + 55 + Pegasus on the move + + RS_DATA/Content/Ranks/AniMBSocialRank24.png + + + 56 + Junior Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank25.png + + + 57 + Proud to be a Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank26.png + + + 58 + Progressive Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank27.png + + + 59 + Prized Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank28.png + + + 60 + Powerful Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank29.png + + + 61 + Major-League Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank30.png + + + 62 + Most Popular Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank31.png + + + 63 + Premier Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank32.png + + + 64 + Perfect Pegasus + + RS_DATA/Content/Ranks/AniMBSocialRank33.png + + + 65 + Leading the Pegasus pack + + RS_DATA/Content/Ranks/AniMBSocialRank34.png + + + 66 + BEARly There Bear + + RS_DATA/Content/Ranks/AniMBSocialRank35.png + + + 67 + Bear Beginnings + + RS_DATA/Content/Ranks/AniMBSocialRank36.png + + + 68 + Bear With Me + + RS_DATA/Content/Ranks/AniMBSocialRank37.png + + + 69 + Bear-y Good, Blaster + + RS_DATA/Content/Ranks/AniMBSocialRank38.png + + + 70 + Bear Builder + + RS_DATA/Content/Ranks/AniMBSocialRank39.png + + + 71 + Solar Bear + + RS_DATA/Content/Ranks/AniMBSocialRank40.png + + + 72 + UnBEARably Cool + + RS_DATA/Content/Ranks/AniMBSocialRank41.png + + + 73 + Big, Bad Bear + + RS_DATA/Content/Ranks/AniMBSocialRank42.png + + + 74 + Bear Hug Time + + RS_DATA/Content/Ranks/AniMBSocialRank43.png + + + 75 + Bolstering Bear + + RS_DATA/Content/Ranks/AniMBSocialRank44.png + + + 76 + Bear-riffic + + RS_DATA/Content/Ranks/AniMBSocialRank45.png + + + 77 + Bright Bear + + RS_DATA/Content/Ranks/AniMBSocialRank46.png + + + 78 + Beaming Bear + + RS_DATA/Content/Ranks/AniMBSocialRank47.png + + + 51 + Just starting + Pet point + + + 0 + true + 4 + 165 + + \ No newline at end of file diff --git a/src/Resources/rankattrib_mb.xml b/src/Resources/rankattrib_mb.xml new file mode 100644 index 0000000..ac31211 --- /dev/null +++ b/src/Resources/rankattrib_mb.xml @@ -0,0 +1,654 @@ + + + + 1 + + BoyBotResName + RS_SHARED/PfMBAvLegsMBasic.unity3d/PfMBAvLegsMBasic + + + BoyTopResName + RS_SHARED/PfMBAvTopMBasic.unity3d/PfMBAvTopMBasic + + + Color + 1, 1, 0 + + + GirlBotResName + RS_SHARED/PfMBAvLegsFBasic.unity3d/PfMBAvLegsFBasic + + + GirlTopResName + RS_SHARED/PfMBAvTopFBasic.unity3d/PfMBAvTopFBasic + + + + 2 + + Color + 1, 0.483, 0 + + + + 3 + + Color + 0, 1, 0 + + + + 4 + + Color + 1, 0, 0 + + + + 5 + + BForceBlasterBonus + .25 + + + BlasterProjectileColor + 0,1,0 + + + BoyTopResName + RS_SHARED/PfMBAvTopMGlove.unity3d/PfMBAvTopMGlove + + + Color + 0, 0, 1 + + + GirlTopResName + RS_SHARED/PfMBAvTopFGlove.unity3d/PfMBAvTopFGlove + + + + 6 + + Color + 1, 1, 0 + + + + 7 + + Color + 1, 0.483, 0 + + + + 8 + + Color + 0, 1, 0 + + + + 9 + + Color + 1, 0, 0 + + + + 10 + + BoyTopResName + RS_SHARED/PfMBAvTopMSash.unity3d/PfMBAvTopMSash + + + Color + 0.016, 0, 1 + + + DNAMorphsToReward + 6 + + + GirlTopResName + RS_SHARED/PfMBAvTopFSash.unity3d/PfMBAvTopFSash + + + + 11 + + Color + 1, 1, 0 + + + + 12 + + Color + 1, 0.483, 0 + + + + 13 + + Color + 0, 1, 0 + + + + 14 + + Color + 1, 0, 0 + + + + 15 + + AwardedAvatarRideItem + 6991 + + + Color + 0, 0, 1 + + + FeetResName + RS_SHARED/PfMbAvFootLBoot.unity3d/PfMbAvFootLBoot,RS_SHARED/PfMbAvFootRBoot.unity3d/PfMbAvFootRBoot + + + + 16 + + Color + 1, 1, 0 + + + + 17 + + Color + 1, 0.483, 0 + + + + 18 + + Color + 0, 1, 0 + + + + 19 + + Color + 1, 0, 0 + + + + 20 + + AvatarSpeedFactor + 1.5 + + + BoyBotResName + RS_SHARED/PfMBAvLegsMSash.unity3d/PfMBAvLegsMSash + + + Color + 0, 0, 1 + + + GirlBotResName + RS_SHARED/PfMBAvLegsFSash.unity3d/PfMBAvLegsFSash + + + + 21 + + Color + 1, 1, 0 + + + + 22 + + Color + 1, 0.483, 0 + + + + 23 + + Color + 0, 1, 0 + + + + 24 + + Color + 1, 0, 0 + + + + 25 + + AvatarJumpFactor + 1.5 + + + BoyTopResName + RS_SHARED/PfMBAvTopMShldBasic.unity3d/PfMBAvTopMShldBasic + + + Color + 0, 0, 1 + + + GirlTopResName + RS_SHARED/PfMBAvTopFShldBasic.unity3d/PfMBAvTopFShldBasic + + + + 26 + + Color + 1, 1, 0 + + + + 27 + + Color + 1, 0.483, 0 + + + + 28 + + Color + 0, 1, 0 + + + + 29 + + Color + 1, 0, 0 + + + + 30 + + BoyBotResName + RS_SHARED/PfMBAvLegsMKneeBasic.unity3d/PfMBAvLegsMKneeBasic + + + Color + 0, 0, 1 + + + GirlBotResName + RS_SHARED/PfMBAvLegsFKneeBasic.unity3d/PfMBAvLegsFKneeBasic + + + + 31 + + Color + 1, 1, 0 + + + + 32 + + Color + 1, 0.483, 0 + + + + 33 + + Color + 0, 1, 0 + + + + 34 + + Color + 1, 0, 0 + + + + 35 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_001 + + + + 36 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_002 + + + + 37 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_003 + + + + 38 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_004 + + + + 39 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_005 + + + + 40 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_006 + + + + 41 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_007 + + + + 42 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_008 + + + + 43 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_009 + + + + 44 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_010 + + + + 45 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_011 + + + + 46 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_012 + + + + 47 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_013 + + + + 48 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_014 + + + + 49 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_015 + + + + 50 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_016 + + + + 51 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_017 + + + + 52 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_018 + + + + 53 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_019 + + + + 54 + + StarChart + RS_DATA/SocialRankMeter.unity3d/SocialRankMeter_020 + + + + 55 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus001 + + + + 56 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus002 + + + + 57 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus003 + + + + 58 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus004 + + + + 59 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus005 + + + + 60 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus006 + + + + 61 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus007 + + + + 62 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus008 + + + + 63 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus009 + + + + 64 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus010 + + + + 65 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus011 + + + + 66 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus012 + + + + 67 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus013 + + + + 68 + + StarChart + RS_DATA/SocialRankMeterPegasus.unity3d/SocialRankMeter_Pegasus014 + + + + 69 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor001 + + + + 70 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor002 + + + + 71 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor003 + + + + 72 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor004 + + + + 73 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor005 + + + + 74 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor006 + + + + 75 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor007 + + + + 76 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor008 + + + + 77 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor009 + + + + 78 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor010 + + + + 79 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor011 + + + + 80 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor012 + + + + 81 + + StarChart + RS_DATA/SocialRankMeterUrsaMajor.unity3d/SocialRankMeter_UrsaMajor013 + + + \ No newline at end of file diff --git a/src/sodoff.csproj b/src/sodoff.csproj index 85752af..bb8f15c 100644 --- a/src/sodoff.csproj +++ b/src/sodoff.csproj @@ -43,9 +43,11 @@ + + @@ -98,6 +100,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -107,6 +112,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest