Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region :change
- case "change":
- {
- if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
- return false;
- else
- {
- if (_Rank > 6)
- {
- if (_isPet == false)
- {
- int pettype = int.Parse(args[1]);
- if (pettype >= 3)
- {
- sendData("BK" + "The pet values are only from 0 - 2 (Dog, Cat, Crocodile)");
- }
- else
- {
- string colour = args[2];
- if (colour == "white")
- {
- string type = "ffffff";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "black")
- {
- string type = "000000";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "blue")
- {
- string type = "5EAAF8";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "green")
- {
- string type = "7CB135";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "pink")
- {
- string type = "EE7EA4";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "grey")
- {
- string type = "B2A69D";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "yellow")
- {
- string type = "FFD837";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "gold")
- {
- string type = "ffbc00";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "sky")
- {
- string type = "83aeff";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else if (colour == "brown")
- {
- string type = "682B00";
- roomUser.makePet(type, int.Parse(args[1]), int.Parse(args[1]));
- _petType = args[1];
- _petColour = type;
- }
- else
- {
- _petType = args[1];
- _petColour = args[2];
- roomUser.makePet(args[2], int.Parse(args[1]), int.Parse(args[1]));
- }
- DB.runQuery("UPDATE users SET working = '0' WHERE name = '" + _Username + "'");
- Room.sendSaying(roomUser, "*uses thier god-like powers to turn into an animal*");
- }
- }
- else
- {
- roomUser.makeHuman();
- }
- }
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement