Jump to content
Sign in to follow this  
Tyler

Cheating Dicing

Recommended Posts

Pretty simple.. But if you ever wanted cheating dicing for yourself here you go.

[CODE]
case "setroll":
if (player.getUsername().equalsIgnoreCase("usernamehere")) {
String rollnumber = "";
for (int i = 1; i < cmd.length; i++) {
rollnumber += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
}
rollnumber = Utils.formatPlayerNameForDisplay(rollnumber);
if (rollnumber.length() < 1 || rollnumber.length() > 2) {
player.getPackets()
.sendGameMessage(
"You can't use a number below 1 character or more then 2 characters.");
}
player.getPackets().sendGameMessage("Rolling...");
player.setNextGraphics(new Graphics(2075));
player.setNextAnimation(new Animation(11900));
player.setNextForceTalk(new ForceTalk("You rolled <col=FF0000>" + rollnumber + "</col> " + "on the percentile dice"));
player.getPackets().sendGameMessage("rolled <col=FF0000>" + rollnumber + "</col> " + "on the percentile dice");
}
else if (!player.getUsername().equalsIgnoreCase("usernamehere")) {
player.sm("You don't have rights to use this.");
}
return true;
[/CODE]

Share this post


Link to post
Share on other sites
i keep getting this:
[CODE]starting...
src\com\rs\game\player\content\Commands.java:1415: error: orphaned case
case "makesupport":
^
src\com\rs\game\player\content\Commands.java:2083: error: illegal start of expre
ssion
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: illegal start of expre
ssion
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: ';' expected
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: ')' expected
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: illegal start of expre
ssion
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: ';' expected
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: not a statement
public static boolean processHeadModCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2083: error: ';' expected
public static boolean processHeadModCommands(Player player, String[] cmd
,

^
src\com\rs\game\player\content\Commands.java:2084: error: <identifier> expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2084: error: not a statement
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2084: error: ';' expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2127: error: illegal start of expre
ssion
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: illegal start of expre
ssion
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: ';' expected
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: ')' expected
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: illegal start of expre
ssion
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: ';' expected
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: not a statement
public static boolean processSupportCommands(Player player, String[] cmd
,
^
src\com\rs\game\player\content\Commands.java:2127: error: ';' expected
public static boolean processSupportCommands(Player player, String[] cmd
,

^
src\com\rs\game\player\content\Commands.java:2128: error: <identifier> expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2128: error: not a statement
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2128: error: ';' expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2212: error: illegal start of expre
ssion
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: illegal start of expre
ssion
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: ';' expected
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: ')' expected
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: illegal start of expre
ssion
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: ';' expected
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: not a statement
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2212: error: ';' expected
public static boolean processModCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2213: error: <identifier> expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2213: error: not a statement
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2213: error: ';' expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2497: error: illegal start of expre
ssion
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: illegal start of expre
ssion
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: ';' expected
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: ')' expected
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: illegal start of expre
ssion
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: ';' expected
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: not a statement
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: ';' expected
public static void sendYell(Player player, String message, boolean staff
Yell) {
^
src\com\rs\game\player\content\Commands.java:2497: error: ';' expected
public static void sendYell(Player player, String message, boolean staff
Yell) {

^
src\com\rs\game\player\content\Commands.java:2581: error: illegal start of expre
ssion
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: illegal start of expre
ssion
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: ';' expected
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: ')' expected
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: illegal start of expre
ssion
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: ';' expected
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: not a statement
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2581: error: ';' expected
public static boolean processNormalCommand(Player player, String[] cmd,
^
src\com\rs\game\player\content\Commands.java:2582: error: <identifier> expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2582: error: not a statement
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:2582: error: ';' expected
boolean console, boolean clientCommand) {
^
src\com\rs\game\player\content\Commands.java:3103: error: illegal start of expre
ssion
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: illegal start of expre
ssion
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: ';' expected
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: ')' expected
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: illegal start of expre
ssion
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: ';' expected
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: not a statement
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3103: error: ';' expected
public static void archiveLogs(Player player, String[] cmd) {
^
src\com\rs\game\player\content\Commands.java:3128: error: illegal start of expre
ssion
public static String currentTime(String dateFormat) {
^
src\com\rs\game\player\content\Commands.java:3128: error: illegal start of expre
ssion
public static String currentTime(String dateFormat) {
^
src\com\rs\game\player\content\Commands.java:3128: error: ';' expected
public static String currentTime(String dateFormat) {
^
src\com\rs\game\player\content\Commands.java:3128: error: ')' expected
public static String currentTime(String dateFormat) {
^
src\com\rs\game\player\content\Commands.java:3128: error: illegal start of expre
ssion
public static String currentTime(String dateFormat) {
^
src\com\rs\game\player\content\Commands.java:3128: error: ';' expected
public static String currentTime(String dateFormat) {
^
68 errors
Completed
Press any key to continue . . .[/CODE]

Share this post


Link to post
Share on other sites
your commands are orphaned meaning you missed a return; or a bracket

Share this post


Link to post
Share on other sites
[quote name='StevenAbraham']Pretty cool but Idk when this would come in handy lol[/QUOTE]

perhaps when you're players are on a roll :p

Share this post


Link to post
Share on other sites
[quote name='JackDaRipper']perhaps when you're players are on a roll :p[/QUOTE]

Dat pun... On a "roll" ...sigh... so punny.

Share this post


Link to post
Share on other sites
good way to clean eco in a way lol

Share this post


Link to post
Share on other sites
Sign in to follow this  

×