Frame 2
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
per = Math.floor((100 * loaded) / total);
mcLoader._xscale = per;
Frame 3
loaded = _root.getBytesLoaded();
per = Math.floor((100 * loaded) / total);
mcLoader._xscale = per;
if (loaded >= total) {
gotoAndPlay ("init");
}
Frame 4
gotoAndPlay(_currentframe - 1);
Frame 7
stop_cnt = 0;
stop_flg = [0, 0, 0];
reel_ypos = [0, 0, 0];
start_speed = 40;
bound_flg = 1;
tosen = 0;
exp = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
dest = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
stop_pat = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];
line_ypos = [[1, 1, 1], [0, 0, 0], [2, 2, 2], [0, 1, 2], [2, 1, 0]];
coin = 50;
bet = 3;
bet_line = 5;
game_mode = 0;
game_cnt = 0;
jac_game_cnt = 0;
jac_hit_cnt = 0;
big_flg = 0;
big_game_cnt = 0;
big_jac_cnt = 0;
reach_flg = 0;
timeup = 0;
PAT_W = 100;
PAT_H = 50;
REEL_OX = 120;
REEL_OY = 110;
pat = [[5, 6, 2, 4, 5, 7, 2, 4, 3, 7, 5, 4, 5, 7, 3, 6, 7, 5, 4, 1, 7], [7, 5, 2, 4, 7, 6, 5, 6, 7, 5, 3, 4, 7, 1, 5, 4, 7, 2, 5, 3, 6], [6, 4, 2, 5, 7, 4, 5, 1, 7, 4, 5, 7, 3, 4, 5, 7, 6, 1, 4, 5, 7]];
i = 0;
while (i < 3) {
j = 0;
while (j < 24) {
mc = eval ((("mcReel" + i) + ".mc") + j);
if (j < 21) {
mc.gotoAndStop(pat[i][j]);
} else {
mc.gotoAndStop(pat[i][j - 21]);
}
j++;
}
i++;
}
mcBound.onPress = function () {
bound_flg = ((this._currentframe == 1) ? 1 : 0);
this.gotoAndStop(1 + bound_flg);
};
gotoAndStop ("game");
Frame 11
function reset() {
mcLever.onPress = function () {
mcSE.gotoAndPlay("lever");
var i;
var j;
bet = 3;
if (coin < 3) {
bet = coin;
}
if (game_mode == 1) {
bet = 1;
}
bet_line = (bet * 2) - 1;
i = 0;
while (i < 2) {
j = 0;
while (j < 5) {
mc = eval (("mcLine" + i) + j);
if (game_mode == 2) {
mc.start_shiver_big();
} else if (j < bet_line) {
mc.start_on();
} else {
mc.start_off();
}
j++;
}
i++;
}
coin = coin - bet;
if (coin < 0) {
coin = 0;
}
tosen = 0;
var k = new Array(8);
var v = new Array(8);
var a = 0;
switch (game_mode) {
case 0 :
k[0] = 0;
k[1] = 0;
k[2] = 0;
k[3] = 0;
k[4] = 10;
k[5] = 10;
k[6] = 5;
k[7] = 10;
break;
case 1 :
k[0] = 0;
k[1] = 0;
k[2] = 0;
k[3] = 0;
k[4] = 0;
k[5] = 0;
k[6] = 0;
k[7] = 100;
break;
case 2 :
k[0] = 0;
k[1] = 0;
k[2] = 0;
k[3] = 0;
k[4] = 30;
k[5] = 10;
k[6] = 10;
k[7] = 50;
}
i = 0;
while (i < 8) {
a = a + k[i];
v[i] = a;
i++;
}
var r = Math.floor(Math.random() * 100);
i = 1;
while (i < 8) {
if (r < v[i]) {
tosen = i;
break;
}
i++;
}
if (game_mode == 0) {
if (reach_flg == 0) {
var r = Math.floor(Math.random() * 100);
if (r == 1) {
reach_flg = 1;
}
if (r == 2) {
reach_flg = 2;
}
if (r == 3) {
reach_flg = 3;
}
}
if ((reach_flg > 0) && (tosen == 0)) {
tosen = reach_flg;
}
}
mcTosen.gotoAndStop(((tosen == 0) ? 8 : (tosen)));
mcSuccess.gotoAndStop(1);
stop_cnt = 0;
i = 0;
while (i < 3) {
j = 0;
while (j < 3) {
exp[i][j] = tosen;
if ((bet == 1) && (j != 1)) {
exp[i][j] = 0;
}
dest[i][j] = 0;
stop_pat[i][j] = 0;
j++;
}
i++;
}
i = 0;
while (i < 3) {
start_roll(i);
i++;
}
this.gotoAndPlay(2);
delete this.onPress;
i = 0;
while (i < 3) {
mc = eval ("mcStop" + i);
mc.gotoAndStop(1);
mc.onPress = function () {
this.gotoAndPlay(2);
delete this.onPress;
var _local2 = Number(this._name.slice(6));
start_slide(_local2);
};
i++;
}
bound_flg = ((tosen > 0) ? 1 : 0);
};
}
function start_roll(n) {
stop_flg[n] = 0;
mc = eval ("mcReel" + n);
mc.speed = start_speed;
mc.onEnterFrame = function () {
var _local2 = Number(this._name.slice(6));
reel_ypos[_local2] = reel_ypos[_local2] - this.speed;
if (reel_ypos[_local2] < 0) {
reel_ypos[_local2] = reel_ypos[_local2] + (PAT_H * 21);
}
this._y = REEL_OY - reel_ypos[_local2];
};
}
function start_slide(n) {
mcSE.gotoAndPlay("button");
var i;
var j;
stop_cnt++;
mc = eval ("mcReel" + n);
var yp = reel_ypos[n];
yp = yp - mc.speed;
if (yp < 0) {
yp = yp + (PAT_H * 21);
}
var cp = Math.floor(yp / PAT_H);
mc.stop_rp = set_stop_rp(n, cp);
mc.onEnterFrame = function () {
var _local2 = Number(this._name.slice(6));
reel_ypos[_local2] = reel_ypos[_local2] - this.speed;
if (reel_ypos[_local2] < 0) {
reel_ypos[_local2] = reel_ypos[_local2] + (PAT_H * 21);
}
this._y = REEL_OY - reel_ypos[_local2];
var _local3 = Math.floor(reel_ypos[_local2] / PAT_H);
if (_local3 == this.stop_rp) {
if (bound_flg) {
bound_reel(n);
} else {
stop_reel(n);
}
}
};
}
function bound_reel(n) {
mc = eval ("mcReel" + n);
pn = Math.floor(reel_ypos[n] / PAT_H);
mc.dest_ypos = pn * PAT_H;
mc.bound = 8;
mc.onEnterFrame = function () {
var _local2 = Number(this._name.slice(6));
this.bound--;
if (this.bound < 0) {
stop_reel(_local2);
return(undefined);
}
var _local3 = this.bound;
if (_local3 % 2) {
_local3 = _local3 * -1;
}
reel_ypos[_local2] = this.dest_ypos + _local3;
if (reel_ypos[_local2] < 0) {
reel_ypos[_local2] = reel_ypos[_local2] + (PAT_H * 21);
}
this._y = REEL_OY - reel_ypos[_local2];
};
}
function stop_reel(n) {
var i;
var j;
pn = Math.floor(reel_ypos[n] / PAT_H);
reel_ypos[n] = pn * PAT_H;
mc = eval ("mcReel" + n);
mc._y = REEL_OY - reel_ypos[n];
delete mc.onEnterFrame;
i = 0;
while (i < 3) {
var p = (pn + i);
if (p >= 21) {
p = p - 21;
}
stop_pat[n][i] = pat[n][p];
i++;
}
if ((stop_cnt == 2) && (game_mode == 0)) {
var f = 0;
var l = 0;
while (l < bet_line) {
var cnt = [0, 0, 0, 0, 0, 0, 0, 0];
i = 0;
while (i < 3) {
var e = stop_pat[i][line_ypos[l][i]];
cnt[e]++;
i++;
}
i = 1;
while (i <= 3) {
if (cnt[i] == 2) {
f = 1;
}
i++;
}
l++;
}
if (f) {
mcRamp.start_move(1);
mcSE.gotoAndPlay("reach");
}
}
stop_flg[n] = 1;
var c = 0;
i = 0;
while (i < 3) {
if (stop_flg[i]) {
c++;
}
i++;
}
if (c == 3) {
check_line();
}
}
function check_line() {
var i;
var j;
var ap = [[1, 1, 1], [0, 0, 0], [2, 2, 2], [0, 1, 2], [2, 1, 0]];
var hit_line = [0, 0, 0, 0, 0];
i = 0;
while (i < bet_line) {
if (stop_pat[0][ap[i][0]] == stop_pat[1][ap[i][1]]) {
if (stop_pat[1][ap[i][1]] == stop_pat[2][ap[i][2]]) {
hit_line[i] = stop_pat[0][ap[i][0]];
}
}
i++;
}
var yaku = 0;
i = 0;
while (i < 5) {
if (hit_line[i]) {
yaku = hit_line[i];
}
if (hit_line[i]) {
mc = eval ("mcLine0" + i);
mc.start_shiver();
mc = eval ("mcLine1" + i);
mc.start_shiver();
} else {
mc = eval ("mcLine0" + i);
mc.start_off();
mc = eval ("mcLine1" + i);
mc.start_off();
}
i++;
}
var ca = 0;
switch (yaku) {
case 1 :
ca = 15;
break;
case 2 :
ca = 15;
break;
case 3 :
ca = 15;
break;
case 4 :
ca = 8;
break;
case 5 :
ca = 2;
break;
case 6 :
ca = 15;
break;
case 7 :
ca = ((game_mode == 1) ? 15 : 0);
}
coin = coin + ca;
if (ca > 0) {
mcSE.gotoAndStop("hit");
}
game_cnt++;
switch (game_mode) {
case 0 :
mcRamp.start_off();
if ((yaku == 1) || (yaku == 2)) {
start_big();
}
if (yaku == 3) {
start_jac();
}
if (yaku == 7) {
coin = coin + bet;
mcSE.gotoAndStop("replay");
}
break;
case 1 :
jac_game_cnt++;
if (yaku > 0) {
jac_hit_cnt++;
}
if ((jac_game_cnt >= 12) || (jac_hit_cnt >= 8)) {
if (big_flg) {
big_jac_cnt++;
if (big_jac_cnt >= 3) {
start_normal();
} else {
mcBGM.gotoAndPlay("bgm2");
mcRamp.start_shiver(4);
game_mode = 2;
}
} else {
start_normal();
}
}
break;
case 2 :
big_game_cnt++;
if (yaku == 7) {
start_jac();
} else {
if (big_game_cnt < 30) {
break;
}
start_normal();
}
}
if (coin <= 0) {
gotoAndStop ("over");
} else {
reset();
}
}
function start_jac() {
mcBGM.gotoAndPlay("bgm1");
game_mode = 1;
jac_game_cnt = 0;
jac_hit_cnt = 0;
mcRamp.start_shiver(2);
}
function start_big() {
mcBGM.gotoAndPlay("bgm2fan");
game_mode = 2;
big_flg = 1;
big_game_cnt = 0;
big_jac_cnt = 0;
mcRamp.start_shiver(4);
}
function start_normal() {
mcBGM.gotoAndStop("bgm0");
game_mode = 0;
big_flg = 0;
reach_flg = 0;
mcRamp.start_off();
}
function set_stop_rp(rn, cp) {
var _local14 = 0;
var _local1;
var _local2;
var _local4 = 0;
var _local11 = new Array(5);
var _local15 = new Array(5);
var _local16 = 0;
_local1 = 0;
while (_local1 < 5) {
var _local8 = cp - _local1;
if (_local8 < 0) {
_local8 = _local8 + 21;
}
_local2 = 0;
while (_local2 < 3) {
var _local5 = _local8 + _local2;
if (_local5 >= 21) {
_local5 = _local5 - 21;
}
if ((stop_cnt == 1) && ((tosen == 1) || (tosen == 2))) {
if ((pat[rn][_local5] == 1) || (pat[rn][_local5] == 2)) {
_local15[_local4] = pat[rn][_local5];
_local16 = 1;
_local11[_local4] = _local8;
_local4++;
}
} else if (exp[rn][_local2] == pat[rn][_local5]) {
_local11[_local4] = _local8;
_local4++;
}
_local2++;
}
_local1++;
}
_local1 = 0;
while (_local1 < 3) {
_local2 = 0;
while (_local2 < 3) {
exp[_local1][_local2] = 0;
_local2++;
}
_local1++;
}
if (_local4 > 0) {
_local14 = _local11[0];
_local1 = 0;
while (_local1 < 3) {
var _local5 = _local14 + _local1;
if (_local5 >= 21) {
_local5 = _local5 - 21;
}
dest[rn][_local1] = pat[rn][_local5];
_local1++;
}
if (_local16) {
tosen = _local15[0];
}
var _local6 = 0;
while (_local6 < bet_line) {
var _local12 = 0;
_local1 = 0;
while (_local1 < 3) {
if (dest[_local1][line_ypos[_local6][_local1]] == tosen) {
_local12++;
}
_local1++;
}
if (_local12 == stop_cnt) {
_local1 = 0;
while (_local1 < 3) {
exp[_local1][line_ypos[_local6][_local1]] = tosen;
_local1++;
}
}
_local6++;
}
} else {
mcSuccess.gotoAndStop(2);
_local14 = cp - Math.floor(Math.random() * 2);
if (_local14 < 0) {
_local14 = _local14 + 21;
}
_local1 = 0;
while (_local1 < 3) {
var _local5 = _local14 + _local1;
if (_local5 >= 21) {
_local5 = _local5 - 21;
}
dest[rn][_local1] = pat[rn][_local5];
_local1++;
}
if (stop_cnt == 3) {
_local4 = 0;
_local1 = 0;
while (_local1 < 5) {
var _local8 = cp - _local1;
if (_local8 < 0) {
_local8 = _local8 + 21;
}
_local2 = 0;
while (_local2 < 3) {
var _local5 = _local8 + _local2;
if (_local5 >= 21) {
_local5 = _local5 - 21;
}
dest[rn][_local2] = pat[rn][_local5];
_local2++;
}
var _local13 = 0;
_local2 = 0;
while (_local2 < bet_line) {
var _local10 = line_ypos[_local2][0];
var _local7 = line_ypos[_local2][1];
var _local9 = line_ypos[_local2][2];
if ((dest[0][_local10] == dest[1][_local7]) && (dest[1][_local7] == dest[2][_local9])) {
_local13 = 1;
}
_local2++;
}
if (_local13 == 0) {
_local11[_local4] = _local8;
_local4++;
}
_local1++;
}
if (_local4 > 0) {
_local14 = _local11[0];
}
}
}
return(_local14);
}
this.stop();
btGamedesign.onRelease = function () {
getURL ("http://www.gamedesign.jp/");
};
btPay.onRelease = function () {
gotoAndStop ("over");
};
reset();
Frame 17
this.stop();
delete btGamedesign.onRelease;
delete btPay.onRelease;
delete mcLever.onPress;
delete mcStop0.onPress;
delete mcStop1.onPress;
delete mcStop2.onPress;
delete mcReel0.onEnterFrame;
delete mcReel1.onEnterFrame;
delete mcReel2.onEnterFrame;
Symbol 31 MovieClip Frame 1
this.stop();
Symbol 32 MovieClip Frame 1
this.stop();
Symbol 39 MovieClip Frame 1
function start_on() {
this._alpha = 100;
delete this.onEnterFrame;
}
function start_off() {
this._alpha = 50;
delete this.onEnterFrame;
}
function start_shiver() {
this._alpha = 100;
this.cnt = 0;
this.sf = 0;
this.onEnterFrame = function () {
this.cnt++;
if (this.cnt < 2) {
return(undefined);
}
this.cnt = 0;
this.sf++;
this._alpha = ((this.sf % 2) ? 100 : 50);
};
}
function start_shiver_big() {
this._alpha = 100;
this.cnt = 0;
this.sf = 0;
this.onEnterFrame = function () {
this.cnt++;
if (this.cnt < 4) {
return(undefined);
}
this.cnt = 0;
this.sf++;
this._alpha = ((this.sf % 2) ? 100 : 50);
};
}
this.stop();
this._alpha = 50;
var a = Number(this._name.charAt(7));
this.gotoAndStop(Math.floor((a + 3) / 2));
Symbol 43 MovieClip Frame 1
this.stop();
Symbol 43 MovieClip Frame 5
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
this.stop();
Symbol 46 MovieClip Frame 4
gotoAndStop (1);
Symbol 50 MovieClip Frame 1
this.stop();
Symbol 51 MovieClip Frame 1
function start_on() {
var i = 0;
while (i < 12) {
mc = eval ("mcLED" + i);
mc.gotoAndStop(2);
i++;
}
delete this.onEnterFrame;
}
function start_off() {
var i = 0;
while (i < 12) {
mc = eval ("mcLED" + i);
mc.gotoAndStop(1);
i++;
}
delete this.onEnterFrame;
}
function start_shiver(spd) {
this.cnt = 0;
this.onoff = 0;
this.spd = spd;
this.onEnterFrame = function () {
this.cnt++;
if (this.cnt < this.spd) {
return(undefined);
}
this.cnt = 0;
this.onoff = ((this.onoff == 0) ? 1 : 0);
var i = 0;
while (i < 12) {
mc = eval ("mcLED" + i);
mc.gotoAndStop(1 + this.onoff);
i++;
}
};
}
function start_move(spd) {
this.cnt = 0;
this.pos = 0;
this.spd = spd;
this.onEnterFrame = function () {
this.cnt++;
if (this.cnt < this.spd) {
return(undefined);
}
this.cnt = 0;
var i = 0;
while (i < 12) {
mc = eval ("mcLED" + i);
if (i == this.pos) {
mc.gotoAndStop(2);
} else {
mc.gotoAndStop(1);
}
i++;
}
this.pos++;
if (this.pos >= 12) {
this.pos = 0;
}
};
}
this.stop();
Symbol 67 MovieClip Frame 1
this.stop();
Symbol 71 MovieClip Frame 1
this.stop();
Symbol 95 MovieClip Frame 1
this.stop();
Symbol 95 MovieClip Frame 2
this.stop();
Symbol 95 MovieClip Frame 22
this.stop();
Symbol 95 MovieClip Frame 38
this.stop();
Symbol 102 MovieClip Frame 1
this.stop();
Symbol 102 MovieClip Frame 9
gotoAndStop (1);
Symbol 102 MovieClip Frame 17
gotoAndStop (1);
Symbol 102 MovieClip Frame 27
gotoAndStop (1);
Symbol 102 MovieClip Frame 45
gotoAndStop (1);
Symbol 106 Button
on (release) {
gotoAndPlay ("check");
}
Symbol 111 Button
on (release) {
gotoAndPlay ("view");
}
Symbol 144 Button
on (release) {
getURL ("http://www.gamedesign.jp/");
}
Symbol 145 MovieClip Frame 16
this.stop();
score = _parent.coin * 20;
if (score <= 0) {
score_txt = "You lose...";
} else {
score_txt = ("You win " + score) + " Yen!!";
}
Symbol 145 MovieClip Frame 22
CGIFile = "http://www.gamedesign.jp/cgi-bin/slot/hisc.cgi?" + Math.floor(Math.random() * 1000);
myLoadVars = new LoadVars();
myLoadVars.onLoad = function (success) {
rank_in = false;
i = 0;
while (i < 10) {
if (Number(myLoadVars["score" + i]) < score) {
rank_in = true;
}
i++;
}
if (rank_in == true) {
gotoAndStop ("entry");
} else {
gotoAndStop ("view");
}
};
myLoadVars.load(CGIFile);
stop();
Symbol 145 MovieClip Frame 28
stop();
Symbol 145 MovieClip Frame 34
this.stop();
CGIFile = "http://www.gamedesign.jp/cgi-bin/slot/hisc.cgi?" + Math.floor(Math.random() * 1000);
mySaveVars = new LoadVars();
mySaveVars.score = score;
mySaveVars.playername = playername;
myLoadVars = new LoadVars();
myLoadVars.onLoad = function (success) {
rankingdata = "";
i = 0;
while (i < 10) {
tname = "rname" + (i + 1);
eval (tname).text = myLoadVars["name" + i];
tname = "rscore" + (i + 1);
eval (tname).text = myLoadVars["score" + i] + " Yen";
i++;
}
};
mySaveVars.sendAndLoad(CGIFile, myLoadVars, "POST");