Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | None | 0 0
  1. #region :change
  2. case "change":
  3. {
  4. if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
  5. return false;
  6. else
  7. {
  8. if (_Rank > 6)
  9. {
  10. if (_isPet == false)
  11. {
  12. int pettype = int.Parse(args[1]);
  13. if (pettype >= 3)
  14. {
  15. sendData("BK" + "The pet values are only from 0 - 2 (Dog, Cat, Crocodile)");
  16. }
  17. else
  18. {
  19. string colour = args[2];
  20. if (colour == "white")
  21. {
  22. string type = "ffffff";
  23. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  24. _petType = args[1];
  25. _petColour = type;
  26. }
  27. else if (colour == "black")
  28. {
  29. string type = "000000";
  30. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  31. _petType = args[1];
  32. _petColour = type;
  33. }
  34. else if (colour == "blue")
  35. {
  36. string type = "5EAAF8";
  37. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  38. _petType = args[1];
  39. _petColour = type;
  40. }
  41. else if (colour == "green")
  42. {
  43. string type = "7CB135";
  44. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  45. _petType = args[1];
  46. _petColour = type;
  47. }
  48. else if (colour == "pink")
  49. {
  50. string type = "EE7EA4";
  51. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  52. _petType = args[1];
  53. _petColour = type;
  54. }
  55. else if (colour == "grey")
  56. {
  57. string type = "B2A69D";
  58. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  59. _petType = args[1];
  60. _petColour = type;
  61. }
  62. else if (colour == "yellow")
  63. {
  64. string type = "FFD837";
  65. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  66. _petType = args[1];
  67. _petColour = type;
  68. }
  69. else if (colour == "gold")
  70. {
  71. string type = "ffbc00";
  72. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  73. _petType = args[1];
  74. _petColour = type;
  75. }
  76. else if (colour == "sky")
  77. {
  78. string type = "83aeff";
  79. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  80. _petType = args[1];
  81. _petColour = type;
  82. }
  83. else if (colour == "brown")
  84. {
  85. string type = "682B00";
  86. roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
  87. _petType = args[1];
  88. _petColour = type;
  89. }
  90. else
  91. {
  92. _petType = args[1];
  93. _petColour = args[2];
  94. roomUser.makePet(args[2], int.Parse(args[1]), int.Parse(args[1]));
  95. }
  96. DB.runQuery("UPDATE users SET working = '0' WHERE name = '" + _Username + "'");
  97. Room.sendSaying(roomUser, "*uses thier god-like powers to turn into an animal*");
  98. }
  99. }
  100. else
  101. {
  102. roomUser.makeHuman();
  103. }
  104. }
  105. }
  106. break;
  107. }
  108. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement