Jump to content
Sign in to follow this  
Static Pk

Some very Usefull 562 gambling commands!!

Recommended Posts

[CODE] if(cmd[0].equals("dice100")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("/" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice100cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("/" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("500kslot")){
int hasitem = 500000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 500k.");
player.getInventory().deleteItem(995, 500000);
}
}
if(cmd[0].equals("100kslot")){
int hasitem = 100000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 100k.");
player.getInventory().deleteItem(995, 100000);
}
}
if(cmd[0].equals("10mslot")){
int hasitem = 10000000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 10m.");
player.getInventory().deleteItem(995, 10000000);
}
}[/CODE]

100% to me on the dice
10% to me on the slot machine, all i did was chance the prices and add different types.


EDIT: could somebody try to make the dice6cc and the dice100cc say it in cc and post below, thanks

go ahead and flame, idc, and if this actualy helped, please let me know :D

this includes
dice 1-100
dice 1-6
dice 1-100 in cc(not working)
dice 1-6 in cc(not working)

money betting 100k, 500k, 10m Edited by Static Pk

Share this post


Link to post
Share on other sites
[quote name='Static Pk'][CODE] if(cmd[0].equals("dice100")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("/" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice100cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("/" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("500kslot")){
int hasitem = 500000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 500k.");
player.getInventory().deleteItem(995, 500000);
}
}
if(cmd[0].equals("100kslot")){
int hasitem = 100000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 100k.");
player.getInventory().deleteItem(995, 100000);
}
}
if(cmd[0].equals("10mslot")){
int hasitem = 10000000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 10m.");
player.getInventory().deleteItem(995, 10000000);
}
}[/CODE]

100% to me on the dice

10% to me on the slot machine, all i did was chance the prices and add different types.

go ahead and flame, idc, and if this actualy helped, please let me know :D[/QUOTE]
1. Omfg stop tis madness of common sense jdk D:
2. Bad codez ;o
3. Omfg Conventions again :cc </3 I dun wanna rewrite your code to make it sexi
4. Gj <_<?

Share this post


Link to post
Share on other sites
OKAY, listen, this is for people, WHO DONT KNOW WHAT THERE DOING, im sure at one point in time, you didn't know anything about java.
im just giving this to the people who are noobs, okay?

Share this post


Link to post
Share on other sites
who said they dont know what there doing?

Share this post


Link to post
Share on other sites
[quote name='Static Pk'][CODE] if(cmd[0].equals("dice100")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice6cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int diceonetfour = (Misc.random(6));
player.forceChat("/" + player.getUsername() + " rolled a " + diceonetfour + "/6 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("dice100cc")){
if(!player.getInventory().contains(15084)) {
player.sm("You need a bag of dice!");
return;
}else{
int dice100 = (Misc.random(100));
player.forceChat("/" + player.getUsername() + " rolled a " + dice100 + "/100 on the dice!");
player.animate(11900);
player.graphics(2070);
}
}
if(cmd[0].equals("500kslot")){
int hasitem = 500000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 500k.");
player.getInventory().deleteItem(995, 500000);
}
}
if(cmd[0].equals("100kslot")){
int hasitem = 100000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 100k.");
player.getInventory().deleteItem(995, 100000);
}
}
if(cmd[0].equals("10mslot")){
int hasitem = 10000000;
int slot = (Misc.random(100));
int risked = (hasitem * 30);
if (!player.getInventory().contains(995, hasitem)) {
player.getActionSender().sendMessage("You havent got above "+hasitem+" gp in your inventory.");
return;
}
if (slot == 11 || slot == 22 || slot == 33 || slot == 44 || slot == 55 || slot == 66 || slot == 77 || slot == 88 || slot == 99) {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You won "+(risked/1000000)+"M.");
player.getInventory().addItem(995, risked);
} else {
player.getActionSender().sendMessage("You pulled slotmachine and got "+slot+" You lost 10m.");
player.getInventory().deleteItem(995, 10000000);
}
}[/CODE]

100% to me on the dice
10% to me on the slot machine, all i did was chance the prices and add different types.


EDIT: could somebody try to make the dice6cc and the dice100cc say it in cc and post below, thanks

go ahead and flame, idc, and if this actualy helped, please let me know :D

this includes
dice 1-100
dice 1-6
dice 1-100 in cc(not working)
dice 1-6 in cc(not working)

money betting 100k, 500k, 10m[/QUOTE]
I have some credits kinda :P

Share this post


Link to post
Share on other sites
[quote name='Divine-X']1. Omfg stop tis madness of common sense jdk D:
2. Bad codez ;o
3. Omfg Conventions again :cc </3 I dun wanna rewrite your code to make it sexi
4. Gj <_<?[/QUOTE]
Lawl Zeck, anyways, not flaming but, the code is terrible. Nonetheless nice job I guess. Edited by Flamingo

Share this post


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

×