빙고 엔피시 소스
/*
빙고 스크립트
abc
def
ghi
abc
def
ghi
4441000
4442000
4443000
4442000
4443000
*/
importPackage(java.lang);
importPackage(Packages.launch.world);
importPackage(Packages.packet.creators);
importPackage(Packages.launch.world);
importPackage(Packages.packet.creators);
var a=Math.floor(Math.random()*3+1);
var b=Math.floor(Math.random()*3+1);
var c=Math.floor(Math.random()*3+1);
var d=Math.floor(Math.random()*3+1);
var e=Math.floor(Math.random()*3+1);
var f=Math.floor(Math.random()*3+1);
var g=Math.floor(Math.random()*3+1);
var h=Math.floor(Math.random()*3+1);
var i=Math.floor(Math.random()*3+1);
var total_a=0;
var total_b=0;
var total_c=0;
var total_d=0;
var total_e=0;
var total_f=0;
var total_g=0;
var total_h=0;
if (a == b && c == a && b == c) {
total_a = 1;
}else{
total_a = 0;
}
if (d == e && f == e && d == f) {
total_b = 1;
}else{
total_b = 0;
}
if (g == h && i == g && h == i) {
total_c = 1;
}else{
total_c = 0;
}
if (a == d && g == d && a == d) {
total_d = 1;
}else{
total_d = 0;
}
if (b == e && h == e && b == h) {
total_e = 1;
}else{
total_e = 0;
}
if (c == f && i == f && c == i) {
total_f = 1;
}else{
total_f = 0;
}
if (a == e && i == e && a == i) {
total_g = 1;
}else{
total_g = 0;
}
if (c == e && c == g && e == g) {
total_h = 1;
}else{
total_h = 0;
}
var total_i = total_a+total_b+total_c+total_d+total_e+total_f+total_g+total_h;
if (a == 1){
a = 4441000;
}if (a == 2){
a = 4442000;
}if (a == 3){
a = 4443000;
}
if (b == 1){
b = 4441000;
} if (b == 2){
b = 4442000;
} if (b == 3){
b = 4443000;
}
if (c == 1){
c = 4441000;
} if (c == 2){
c = 4442000;
} if (c == 3){
c = 4443000;
}
if (d == 1){
d = 4441000;
} if (d == 2){
d = 4442000;
} if (d == 3){
d = 4443000;
}
if (e == 1){
e = 4441000;
} if (e == 2){
e = 4442000;
} if (e == 3){
e = 4443000;
}
if (f == 1){
f = 4441000;
} if (f == 2){
f = 4442000;
} if (f == 3){
f = 4443000;
}
if (g == 1){
g = 4441000;
} if (g == 2){
g = 4442000;
} if (g == 3){
g = 4443000;
}
if (h == 1){
h = 4441000;
} if (h == 2){
h = 4442000;
} if (h == 3){
h = 4443000;
}
if (i == 1){
i = 4441000;
} if (i == 2){
i = 4442000;
} if (i == 3){
i = 4443000;
}
var b=Math.floor(Math.random()*3+1);
var c=Math.floor(Math.random()*3+1);
var d=Math.floor(Math.random()*3+1);
var e=Math.floor(Math.random()*3+1);
var f=Math.floor(Math.random()*3+1);
var g=Math.floor(Math.random()*3+1);
var h=Math.floor(Math.random()*3+1);
var i=Math.floor(Math.random()*3+1);
var total_a=0;
var total_b=0;
var total_c=0;
var total_d=0;
var total_e=0;
var total_f=0;
var total_g=0;
var total_h=0;
if (a == b && c == a && b == c) {
total_a = 1;
}else{
total_a = 0;
}
if (d == e && f == e && d == f) {
total_b = 1;
}else{
total_b = 0;
}
if (g == h && i == g && h == i) {
total_c = 1;
}else{
total_c = 0;
}
if (a == d && g == d && a == d) {
total_d = 1;
}else{
total_d = 0;
}
if (b == e && h == e && b == h) {
total_e = 1;
}else{
total_e = 0;
}
if (c == f && i == f && c == i) {
total_f = 1;
}else{
total_f = 0;
}
if (a == e && i == e && a == i) {
total_g = 1;
}else{
total_g = 0;
}
if (c == e && c == g && e == g) {
total_h = 1;
}else{
total_h = 0;
}
var total_i = total_a+total_b+total_c+total_d+total_e+total_f+total_g+total_h;
if (a == 1){
a = 4441000;
}if (a == 2){
a = 4442000;
}if (a == 3){
a = 4443000;
}
if (b == 1){
b = 4441000;
} if (b == 2){
b = 4442000;
} if (b == 3){
b = 4443000;
}
if (c == 1){
c = 4441000;
} if (c == 2){
c = 4442000;
} if (c == 3){
c = 4443000;
}
if (d == 1){
d = 4441000;
} if (d == 2){
d = 4442000;
} if (d == 3){
d = 4443000;
}
if (e == 1){
e = 4441000;
} if (e == 2){
e = 4442000;
} if (e == 3){
e = 4443000;
}
if (f == 1){
f = 4441000;
} if (f == 2){
f = 4442000;
} if (f == 3){
f = 4443000;
}
if (g == 1){
g = 4441000;
} if (g == 2){
g = 4442000;
} if (g == 3){
g = 4443000;
}
if (h == 1){
h = 4441000;
} if (h == 2){
h = 4442000;
} if (h == 3){
h = 4443000;
}
if (i == 1){
i = 4441000;
} if (i == 2){
i = 4442000;
} if (i == 3){
i = 4443000;
}
if (total_i == 0) {
t = "#e깸디 : #n푸하핫! #r0 빙고#k가 뭐야!! 넌 역시 내 상대가 아니야.";
} if (total_i == 1) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k야? 나를 따라오려면 멀었네! 좀 더 분발하도록";
} if (total_i == 2) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k? 운이 좀 좋았을뿐이야. 너무 좋아하진 마.";
} if (total_i == 3) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k, 슬슬 빙고에 눈을 뜨기 시작했네.";
} if (total_i == 4) {
t = "#e깸디 : #nWOW... #r"+total_i+" 빙고#k... 너 왕년에 빙고좀 했구나?";
} if (total_i == 5) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k!? 너 혹시 나는야 럭키가이★ 훈장 있니?";
} if (total_i == 6) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k. #h #의 운은 어디까지!?";
} if (total_i == 7) {
t = "#e깸디 : #n8 빙고! 가 아니라... #r"+total_i+" 빙고#k! #e너 대박乃#n";
} if (total_i == 8) {
t = "#e깸디 : #n#r"+total_i+" 빙고#k... 할 말이 없다. 나의 완벽한 패배다. 축하한다.";
}
var status = -1;
function start() {
status = -1;
action (1, 0, 0);
}
function start() {
status = -1;
action (1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}
if (mode == 0) {
status --;
}
if (mode == 1) {
status++;
}
if (status == 0) {
cm.sendYesNo("거기 #h #! 나와 빙고 한판 어때? 나와의 빙고에서 이기면 #e빙고 1개당 #r0.7배의 배팅금#k#n을 얻을 수 있어. 나한테 이길 자신이 있다면 #e예#n를 눌러서 게임을 진행해줘.");
cm.dispose();
}
if (mode == 0) {
status --;
}
if (mode == 1) {
status++;
}
if (status == 0) {
cm.sendYesNo("거기 #h #! 나와 빙고 한판 어때? 나와의 빙고에서 이기면 #e빙고 1개당 #r0.7배의 배팅금#k#n을 얻을 수 있어. 나한테 이길 자신이 있다면 #e예#n를 눌러서 게임을 진행해줘.");
}else if (status == 1){
cm.sendGetNumber("너의 그 무모함 마음에 드는걸? 그렇다면 배팅할 메소를 입력해줘.\r\n#Cgray#(배팅 가능 범위 : 1 메소 ~ 21억 메소, 최대 획득 가능 메소 : 21억)#k",1,1,2147483647);
cm.sendGetNumber("너의 그 무모함 마음에 드는걸? 그렇다면 배팅할 메소를 입력해줘.\r\n#Cgray#(배팅 가능 범위 : 1 메소 ~ 21억 메소, 최대 획득 가능 메소 : 21억)#k",1,1,2147483647);
}else if (status == 2){
var text = selection
//text*total_i <= 2147483647
if (cm.getPlayer().getMeso() >= text && text*total_i <= 2147483647){
var re = "#b#e#h ##k#n의 빙고판이 아래에 있어. 너의 빙고 결과는...\r\n\r\n\r\n"
re += " #i"+a+"# #i"+b+"# #i"+c+"#\r\n"
re += " #i"+d+"# #i"+e+"# #i"+f+"#\r\n"
re += " #i"+g+"# #i"+h+"# #i"+i+"#\r\n\r\n\r\n"
cm.sendOk(re+t);
if (total_i > 3){
WorldBroadcasting.broadcast(MainPacketCreator.serverNotice(6, ""+ cm.getPlayer().getName()+" 님이 깸디와의 게임에서 "+total_i+"빙고에로 이겼습니다. 모두 축하해주세요!~"));
}
cm.gainMeso(((text*(total_i*0.7))-text));
cm.dispose();
}else {
cm.sendOk("현재 소지중인 금액보다 더 많은 액수를 배팅하였거나, 메소가 너무 많습니다.");
cm.dispose();
}
}else {
cm.sendOk("#h#, 너와 대결할 메소는 많이 있으니까 생각이 바뀌면 도전해! 내가 꼭 이겨주고 말겠어!");
cm.dispose();
}
}
var text = selection
//text*total_i <= 2147483647
if (cm.getPlayer().getMeso() >= text && text*total_i <= 2147483647){
var re = "#b#e#h ##k#n의 빙고판이 아래에 있어. 너의 빙고 결과는...\r\n\r\n\r\n"
re += " #i"+a+"# #i"+b+"# #i"+c+"#\r\n"
re += " #i"+d+"# #i"+e+"# #i"+f+"#\r\n"
re += " #i"+g+"# #i"+h+"# #i"+i+"#\r\n\r\n\r\n"
cm.sendOk(re+t);
if (total_i > 3){
WorldBroadcasting.broadcast(MainPacketCreator.serverNotice(6, ""+ cm.getPlayer().getName()+" 님이 깸디와의 게임에서 "+total_i+"빙고에로 이겼습니다. 모두 축하해주세요!~"));
}
cm.gainMeso(((text*(total_i*0.7))-text));
cm.dispose();
}else {
cm.sendOk("현재 소지중인 금액보다 더 많은 액수를 배팅하였거나, 메소가 너무 많습니다.");
cm.dispose();
}
}else {
cm.sendOk("#h#, 너와 대결할 메소는 많이 있으니까 생각이 바뀌면 도전해! 내가 꼭 이겨주고 말겠어!");
cm.dispose();
}
}

피카츄염 님의 최근 댓글
ㅋㅋ 2018 05.29 클라 안되는대ㅔ여 2018 02.16 감사합니다 2018 02.12 클라 보내주세요 go_to_r@naver.com 2018 02.09 ㄳ 2018 02.01