Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Pencak Silat 4.0 engine...");
_quality = "high";
fscommand ("showmenu", "false");
this.player1Invincible = false;
this.player1 = "mPendekar";
this.player1Left = 37;
this.player1Right = 39;
this.player1Jump = 83;
this.player1Duck = 40;
this.player1Attack = 65;
this.player1Special = 68;
this.player1Lives = 5;
this.currentLevel = 0;
this.levelPracticeClear = true;
this.level01Clear = false;
this.level02Clear = false;
this.level03Clear = false;
this.level04Clear = false;
this.challenge01Clear = false;
this.challenge02Clear = false;
this.difficulty = "normal";
this.gameType = 0;
this.sfx = true;
this.music = true;
this.voice = true;
this.cheats_inv = false;
this.cheats_imp = false;
}
this.onLoad = init();
stop();
Frame 2
gotoAndPlay (1);
Frame 5
stop();
Frame 6
gotoAndPlay (1);
Frame 10
stop();
Frame 11
gotoAndPlay (1);
Frame 15
stop();
Frame 16
gotoAndPlay (1);
Symbol 27 MovieClip [flr_lair] Frame 1
stop();
Symbol 28 MovieClip [flr_cement] Frame 1
stop();
Symbol 29 MovieClip [flr_forest] Frame 1
stop();
Symbol 30 MovieClip [flr_sea] Frame 1
stop();
Symbol 33 MovieClip [flr_soil] Frame 1
stop();
Symbol 36 MovieClip Frame 1
tellTarget (_parent) {
if (tempGetHit) {
tempGetHit = false;
getHit();
}
};
stop();
Symbol 41 MovieClip Frame 4
if (_root.sfx) {
_parent._parent.playSFX("fall02.wav");
}
Symbol 41 MovieClip Frame 7
if (_parent.hp > 0) {
_parent.gotoAndStop("oWeaponGolokIdle");
} else {
_parent.gotoAndStop("oWeaponGolokBreak");
}
Symbol 42 MovieClip Frame 6
stop();
Symbol 43 MovieClip [oWeaponGolok] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.id = 2;
this.hp = 1;
this.dir = 1;
this.hitable = false;
this.level = _y;
this.nLevel = _y;
if (intro) {
intro = false;
gotoAndStop (31);
}
}
function dirValue(number) {
return(dir * number);
}
function getHit() {
hp--;
if (hp <= 0) {
gotoAndStop (32);
}
}
his.onLoad = init();
stop();
Symbol 43 MovieClip [oWeaponGolok] Frame 2
gotoAndStop (1);
Symbol 43 MovieClip [oWeaponGolok] Frame 16
gotoAndStop (1);
Symbol 43 MovieClip [oWeaponGolok] Frame 33
gotoAndStop (1);
Symbol 46 MovieClip Frame 1
tellTarget (_parent) {
if (tempGetHit) {
tempGetHit = false;
getHit();
}
};
stop();
Symbol 51 MovieClip Frame 4
if (_root.sfx) {
_parent._parent.playSFX("fall02.wav");
}
Symbol 51 MovieClip Frame 7
if (_parent.hp > 0) {
_parent.gotoAndStop("oWeaponKipasIdle");
} else {
_parent.gotoAndStop("oWeaponKipasBreak");
}
Symbol 52 MovieClip Frame 6
stop();
Symbol 53 MovieClip [oWeaponKipas] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.id = 3;
this.hp = 1;
this.dir = 1;
this.hitable = false;
this.level = _y;
this.nLevel = _y;
if (intro) {
intro = false;
gotoAndStop (31);
}
}
function dirValue(number) {
return(dir * number);
}
function getHit() {
hp--;
if (hp <= 0) {
gotoAndStop (32);
}
}
his.onLoad = init();
stop();
Symbol 53 MovieClip [oWeaponKipas] Frame 2
gotoAndStop (1);
Symbol 53 MovieClip [oWeaponKipas] Frame 16
gotoAndStop (1);
Symbol 53 MovieClip [oWeaponKipas] Frame 33
gotoAndStop (1);
Symbol 56 MovieClip Frame 1
tellTarget (_parent) {
if (tempGetHit) {
tempGetHit = false;
getHit();
}
};
stop();
Symbol 61 MovieClip Frame 4
if (_root.sfx) {
_parent._parent.playSFX("fall02.wav");
}
Symbol 61 MovieClip Frame 7
if (_parent.hp > 0) {
_parent.gotoAndStop("oWeaponBambooIdle");
} else {
_parent.gotoAndStop("oWeaponBambooBreak");
}
Symbol 62 MovieClip Frame 6
stop();
Symbol 63 MovieClip [oWeaponBamboo] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.id = 1;
this.hp = 1;
this.dir = 1;
this.hitable = false;
this.level = _y;
this.nLevel = _y;
if (intro) {
intro = false;
gotoAndStop (31);
}
}
function dirValue(number) {
return(dir * number);
}
function getHit() {
hp--;
if (hp <= 0) {
gotoAndStop (32);
}
}
his.onLoad = init();
stop();
Symbol 63 MovieClip [oWeaponBamboo] Frame 2
gotoAndStop (1);
Symbol 63 MovieClip [oWeaponBamboo] Frame 16
gotoAndStop (1);
Symbol 63 MovieClip [oWeaponBamboo] Frame 33
gotoAndStop (1);
Symbol 66 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 3
_parent.gotoAndStop("oPoleIdle");
Symbol 86 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("rumble.wav");
}
_parent.hitable = false;
Symbol 86 MovieClip Frame 9
stop();
Symbol 87 MovieClip [oPole] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.hp = 30;
this.dir = 1;
this.hitable = true;
this.level = _y;
this.nLevel = _y;
this.charName = "Pole";
if (intro) {
intro = false;
}
}
function dirValue(number) {
return(dir * number);
}
function getHit(power) {
if (power == undefined) {
power = 0;
}
hp = hp - power;
gotoAndStop(((hp > 0) ? "oPoleHit" : "oPoleBreak"));
}
this.onLoad = init();
stop();
Symbol 87 MovieClip [oPole] Frame 2
gotoAndStop (1);
Symbol 87 MovieClip [oPole] Frame 16
gotoAndStop (1);
Symbol 87 MovieClip [oPole] Frame 33
gotoAndStop (1);
Symbol 96 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (right && (!duck)) {
moveRight();
} else if (left && (!duck)) {
moveLeft();
} else if (attack) {
attCombo(1);
} else if (jump) {
jumpUp();
} else if (duck) {
duckDown();
} else if (special) {
attSpecial();
}
};
};
if (count == undefined) {
count = 0;
}
if (limit == undefined) {
limit = random(50);
}
Symbol 96 MovieClip Frame 5
if (count < limit) {
count++;
gotoAndPlay(_currentframe - 1);
} else {
count = 0;
limit = random(50);
}
Symbol 96 MovieClip Frame 8
gotoAndPlay (2);
Symbol 99 MovieClip Frame 1
weapon = _parent._parent.weapon;
if (weapon == undefined) {
weapon = _parent._parent._parent.weapon;
}
if ((weapon == 0) || (weapon == undefined)) {
gotoAndStop(_totalframes);
} else {
gotoAndStop(weapon);
}
Symbol 102 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if ((right && (duck)) && (!(left || (jump)))) {
moveRight();
} else if ((left && (duck)) && (!(right || (jump)))) {
moveLeft();
} else if (attack && (duck)) {
attDuck();
} else if (special) {
pickup();
} else if (jump || (!duck)) {
gotoAndStop(getIdleState());
}
};
};
if (_parent.tempDuck) {
_parent.tempDuck = false;
gotoAndStop (2);
}
Symbol 102 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (right && (!duck)) {
moveRight();
} else if (left && (!duck)) {
moveLeft();
} else if (jump) {
jumpUp();
} else if (attack) {
attCombo(1);
} else if (duck) {
duckDown();
} else if (special) {
releaseWeapon();
gotoAndStop ("fIdle");
}
};
};
if (count == undefined) {
count = 0;
}
if (limit == undefined) {
limit = random(50);
}
Symbol 111 MovieClip Frame 6
if (count < limit) {
count++;
gotoAndPlay(_currentframe - 1);
} else {
count = 0;
limit = random(50);
}
Symbol 111 MovieClip Frame 8
gotoAndPlay (2);
Symbol 118 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 118 MovieClip Frame 3
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power, _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 118 MovieClip Frame 5
if (attack) {
_parent.attCombo(2);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 123 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 123 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power + 1, _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 123 MovieClip Frame 6
if (attack) {
_parent.attCombo(3);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 128 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 128 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power + 2, _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 128 MovieClip Frame 9
if (attack) {
_parent.attCombo(4);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 137 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("force02.wav");
}
Symbol 137 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 137 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("hard_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power + 4, _parent, true);
}
Symbol 137 MovieClip Frame 7
_parent.gotoAndStop(_parent.getIdleState());
Symbol 142 MovieClip Frame 1
_parent.tempDuck = true;
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 142 MovieClip Frame 2
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power / 2, _parent);
}
Symbol 142 MovieClip Frame 7
_parent.gotoAndStop("fDuckIdle");
Symbol 149 MovieClip Frame 1
if (_root.voice) {
_parent._parent._parent.playSFX("force02.wav");
}
if (_root.sfx) {
_parent._parent._parent.playSFX("swing01.wav");
}
Symbol 149 MovieClip Frame 3
if (_parent._parent._parent.isObjectConnect(hit, _parent._parent)) {
if (_root.sfx) {
_parent._parent._parent.playSFX("hard_punch.wav");
}
_parent._parent._parent.hitObject(hit, _parent._parent.power, _parent._parent, true);
}
Symbol 149 MovieClip Frame 5
stop();
Symbol 150 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
};
if (_currentframe < _totalframes) {
_parent._y = _parent.sqrValue(_totalframes, _currentframe, 8);
} else {
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.gotoAndStop(_parent.getIdleState());
}
};
gotoAndPlay(_parent.tempJump - 1);
Symbol 159 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing02.wav");
}
Symbol 159 MovieClip Frame 4
hit._x = 50 + (weapon._height / 2);
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("slash01.wav");
}
_parent._parent.sliceObject(hit, _parent._parent.getWeaponPower(_parent.weapon), _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 159 MovieClip Frame 6
if (attack) {
_parent.attCombo(2);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 166 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing02.wav");
}
Symbol 166 MovieClip Frame 5
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("slash01.wav");
}
_parent._parent.sliceObject(hit, _parent._parent.getWeaponPower(_parent.weapon) + 1, _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 166 MovieClip Frame 8
if (attack) {
_parent.attCombo(3);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 173 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing02.wav");
}
Symbol 173 MovieClip Frame 3
if (_root.voice) {
_parent._parent.playSFX("force02.wav");
}
Symbol 173 MovieClip Frame 5
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("slash01.wav");
}
_parent._parent.sliceObject(hit, _parent._parent.getWeaponPower(_parent.weapon) + 2, _parent, true);
}
Symbol 173 MovieClip Frame 7
_parent.gotoAndStop(_parent.getIdleState());
Symbol 177 MovieClip Frame 1
_parent.hitable = false;
_parent._parent.flasher.play();
_parent._parent.dimmer.turn(50);
if (_root.sfx) {
_parent._parent.playSFX("beam01.wav");
}
Symbol 177 MovieClip Frame 5
if (_root.sfx) {
_parent._parent.playSFX("rumble.wav");
}
Symbol 177 MovieClip Frame 10
_parent._parent.dimmer.brighten(100);
if (_parent._parent.hitAllObject(_parent.power + 20, _parent, true)) {
if (_root.sfx) {
_parent._parent.playSFX("hard_punch.wav");
}
}
Symbol 177 MovieClip Frame 15
_parent.hitable = true;
_parent.gotoAndStop(_parent.getIdleState());
Symbol 194 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
if (attack) {
attCombo(1);
} else if (duck) {
duckDown();
} else if (special) {
if (weapon > 0) {
releaseWeapon();
} else if (weapon == 0) {
attSpecial();
}
} else if (dir == 1) {
if (jump) {
jumpRight();
}
if (left || (!right)) {
gotoAndStop(getIdleState());
}
} else if (dir == -1) {
if (jump) {
jumpLeft();
}
if ((!left) || (right)) {
gotoAndStop(getIdleState());
}
}
};
};
Symbol 197 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
};
if (_parent.attack) {
_parent.tempJump = _currentframe;
_parent.attJump();
}
if (_currentframe < _totalframes) {
_parent._y = _parent.sqrValue(_totalframes, _currentframe, 8);
} else {
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
if (_root.sfx) {
_parent._parent.playSFX("fall02.wav");
}
_parent.gotoAndStop(_parent.getIdleState());
}
};
if (_root.sfx) {
_parent._parent.playSFX("jump01.wav");
}
Symbol 197 MovieClip Frame 9
stop();
Symbol 212 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
if (attack) {
attDuck();
}
if (dir == 1) {
if ((!duck) || (!right)) {
gotoAndStop ("fDuckIdle");
}
} else if ((!left) || (!duck)) {
gotoAndStop ("fDuckIdle");
}
};
};
_parent.tempDuck = true;
Symbol 215 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(6);
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 215 MovieClip Frame 3
_parent.hitable = true;
_parent.gotoAndStop("fIdle");
Symbol 220 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 220 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 220 MovieClip Frame 14
_parent.hitable = true;
_parent.gotoAndStop("fIdle");
Symbol 221 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 221 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 221 MovieClip Frame 11
if (_root.voice) {
_parent._parent.playSFX("die04.wav");
}
Symbol 221 MovieClip Frame 17
if (_parent.lives <= 0) {
_parent._parent.music.stop();
_root.movieName = "gameOver";
_root.gotoAndStop("movies");
stop();
}
Symbol 221 MovieClip Frame 33
_parent.lives--;
_parent.hp = 100;
_parent.mp = 0;
_parent._parent.hitAllObject(0, _parent, true);
_parent.hitable = true;
_parent.gotoAndStop("fIdle");
Symbol 226 MovieClip Frame 1
_parent.tempDuck = true;
Symbol 226 MovieClip Frame 3
_parent._parent.pickupObject(hit, _parent);
Symbol 226 MovieClip Frame 5
_parent.gotoAndStop("fDuckIdle");
Symbol 227 MovieClip [fPendekar] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.weapon = 3;
this.hp = 100;
if (_root.cheats_imp) {
this.mp = 100;
} else {
this.mp = 0;
}
this.dir = 1;
this.power = 5;
this.hitable = true;
this.level = _y;
this.nLevel = _y;
this.charName = "Saraswati";
this.lives = _root.player1Lives;
if (_name.substr(0, 6) == "player") {
setKey(_root.player1Left, _root.player1Right, _root.player1Jump, _root.player1Duck, _root.player1Attack, _root.player1Special);
}
this.left = false;
this.right = false;
this.jump = false;
this.duck = false;
this.attack = false;
this.intro = false;
gotoAndStop(getIdleState());
}
function setKey(keyLeft, keyRight, keyJump, keyDuck, keyAttack, keySpecial) {
if (keyLeft == undefined) {
keyLeft = 37;
}
if (keyRight == undefined) {
keyRight = 39;
}
if (keyJump == undefined) {
keyJump = 83;
}
if (keyDuck == undefined) {
keyDuck = 40;
}
if (keyAttack == undefined) {
keyAttack = 65;
}
if (keySpecial == undefined) {
keySpecial = 68;
}
control = new Object();
control.onKeyDown = function () {
if (Key.isDown(keyLeft) && (!Key.isDown(keyRight))) {
left = true;
right = false;
} else if (Key.isDown(keyRight) && (!Key.isDown(keyLeft))) {
right = true;
left = false;
} else if (Key.isDown(keyLeft) && (Key.isDown(keyRight))) {
left = false;
right = false;
}
if (Key.isDown(keyJump) && (!Key.isDown(keyDuck))) {
jump = true;
duck = false;
} else if (Key.isDown(keyDuck) && (!Key.isDown(keyJump))) {
duck = true;
jump = false;
} else if (Key.isDown(keyJump) && (Key.isDown(keyDuck))) {
jump = false;
duck = false;
}
if (Key.isDown(keyAttack)) {
attack = true;
}
if (Key.isDown(keySpecial)) {
special = true;
}
};
control.onKeyUp = function () {
if (!Key.isDown(keyLeft)) {
if (Key.isDown(keyRight)) {
right = true;
}
left = false;
}
if (!Key.isDown(keyRight)) {
if (Key.isDown(keyLeft)) {
left = true;
}
right = false;
}
if (!Key.isDown(keyJump)) {
jump = false;
}
if (!Key.isDown(keyDuck)) {
duck = false;
}
if (!Key.isDown(keyAttack)) {
attack = false;
}
if (!Key.isDown(keySpecial)) {
special = false;
}
};
Key.addListener(control);
}
function moveRight() {
speed = (duck ? 6 : 16);
if (dir < 0) {
_x = (duck ? (_x - 30) : (_x - 59));
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop((duck ? "fDuckWalk" : "fRun"));
}
function moveLeft() {
speed = (duck ? 6 : 16);
if (dir > 0) {
_x = (duck ? (_x + 30) : (_x + 59));
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop((duck ? "fDuckWalk" : "fRun"));
}
function jumpRight() {
speed = 16;
if (dir < 0) {
_x = (_x - 59);
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop (31);
}
function jumpLeft() {
speed = 16;
if (dir > 0) {
_x = (_x + 59);
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop (31);
}
function jumpUp() {
speed = 0;
gotoAndStop (31);
}
function attCombo(number) {
if (number == undefined) {
trace("err: Combo number undefined!");
return(undefined);
}
gotoAndStop(((weapon > 0) ? ("fAttackWeapon0" + number) : ("fAttack0" + number)));
}
function attJump() {
gotoAndStop (21);
}
function attDuck() {
gotoAndStop (20);
}
function attSpecial() {
if (mp < 40) {
return(undefined);
}
if (!_root.cheats_imp) {
mp = mp - 40;
}
gotoAndStop (25);
}
function inStage() {
if (_parent.isScroll) {
if ((dir == 1) && ((_x + 50) < (Stage.width / 2))) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
if ((dir == 1) && ((_x + 50) < Stage.width)) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
function dirValue(number) {
return(dir * number);
}
function sqrValue(g, x, h) {
if (((x == undefined) || (g == undefined)) || (h == undefined)) {
trace("err: sqrValue(g,x,h) undefined!");
return(undefined);
}
g = Math.ceil(g / 2);
return((level = level - (h * (g - x))));
}
function duckDown() {
gotoAndStop (2);
}
function getHit(power, hard, object) {
this.hitter = object;
if (power == undefined) {
trace("err: Hit power undefined!");
power = 0;
}
tempHp = hp;
if (!_root.cheats_inv) {
hp = hp - power;
}
if (hp > 0) {
if (_y >= nLevel) {
gotoAndStop((hard ? "fHit02" : "fHit01"));
} else {
gotoAndStop(((_y < nLevel) ? "fHit02" : "fHit01"));
}
} else {
gotoAndStop (35);
}
}
function pickup() {
gotoAndStop (36);
}
function releaseWeapon(hitObject) {
temp = _parent.spawnObject("oWeapon" + _parent.getWeaponName(weapon), _x + dirValue(50));
if (hitObject) {
temp.tempGetHit = true;
}
special = false;
weapon = 0;
}
function getIdleState() {
return(((weapon > 0) ? "fIdleWeapon" : "fIdle"));
}
this.onLoad = init();
stop();
Symbol 227 MovieClip [fPendekar] Frame 4
gotoAndStop(getIdleState());
Symbol 227 MovieClip [fPendekar] Frame 26
gotoAndStop(getIdleState());
Symbol 227 MovieClip [fPendekar] Frame 37
gotoAndStop(getIdleState());
Symbol 232 MovieClip Frame 1
_parent.action = true;
Symbol 239 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing03.wav");
}
_parent.action = false;
Symbol 239 MovieClip Frame 3
if (_parent._parent.isPlayerConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("hard_punch.wav");
}
_parent._parent.hitPlayer(hit, _parent.power, _parent, true);
}
Symbol 239 MovieClip Frame 10
_parent.action = true;
_parent.gotoAndStop("eJagoan01Idle");
Symbol 248 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
_x = (_x + dirValue(speed));
};
};
_parent.action = false;
Symbol 248 MovieClip Frame 4
_parent.action = true;
Symbol 251 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(3);
_parent.hitable = false;
Symbol 251 MovieClip Frame 3
_parent.hitable = true;
_parent.gotoAndStop("eJagoan01Idle");
Symbol 262 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("die01.wav");
}
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
Symbol 262 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 262 MovieClip Frame 21
_parent.hitable = true;
_parent.gotoAndStop("eJagoan01Idle");
Symbol 263 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("die01.wav");
}
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
Symbol 263 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 263 MovieClip Frame 11
if (_root.voice) {
_parent._parent.playSFX("die03.wav");
}
Symbol 263 MovieClip Frame 15
tellTarget (_parent._parent) {
bodyCount++;
scenario.checkPoint(cp);
};
stop();
Symbol 264 MovieClip Frame 1
if (count == undefined) {
count = 0;
}
if (maxCount == undefined) {
maxCount = random(45);
}
Symbol 264 MovieClip Frame 2
if (count < maxCount) {
count++;
gotoAndPlay (1);
}
Symbol 264 MovieClip Frame 3
_parent.action = false;
_parent.hitable = false;
if (_parent._x >= (_parent._parent.stageWidth / 2)) {
_parent.dir = -1;
_parent._xscale = _parent._xscale * -1;
}
Symbol 264 MovieClip Frame 28
_parent.action = true;
_parent.hitable = true;
_parent.gotoAndStop("eJagoan01Idle");
Symbol 265 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(3);
_parent.hitable = false;
Symbol 265 MovieClip Frame 3
_parent.hitable = true;
_parent.gotoAndStop("eJagoan01Idle");
Symbol 266 MovieClip [eJagoan01] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.hp = 300;
this.dir = 1;
if (_root.difficulty == "easy") {
this.power = 12;
} else {
this.power = 20;
}
this.mobility = 50;
if (_root.difficulty == "easy") {
this.skill = 15;
} else {
this.skill = 30;
}
this.hitable = true;
this.action = true;
this.level = _y;
this.nLevel = _y;
this.charName = "Jagoan Kampung";
this.attachMovie("oJagoanAI", "AI", 1);
if (intro) {
intro = false;
gotoAndStop (35);
action = false;
hitable = false;
}
}
function idle() {
gotoAndStop (1);
}
function moveRight() {
speed = (duck ? 6 : 10);
if (dir < 0) {
_x = (duck ? (_x - 30) : (_x - 59));
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop((duck ? "eJagoan01Walk" : "eJagoan01Run"));
}
function moveLeft() {
speed = (duck ? 6 : 10);
if (dir > 0) {
_x = (duck ? (_x + 30) : (_x + 59));
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop((duck ? "eJagoan01Walk" : "eJagoan01Run"));
}
function attCombo(number) {
if (number == undefined) {
trace("err: Combo number undefined!");
return(undefined);
}
gotoAndStop("eJagoan01Attack0" + number);
}
function inStage() {
if (_parent.isScroll) {
if ((dir == 1) && ((_x + 50) < (Stage.width / 2))) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
if ((dir == 1) && ((_x + 50) < Stage.width)) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
function dirValue(number) {
return(dir * number);
}
function getHit(power, hard, player) {
this.hitter = player;
if (power == undefined) {
trace("err: Hit power undefined!");
power = 0;
}
r = random(100) + 1;
if ((hp - power) >= 0) {
if (r > skill) {
hp = hp - power;
if (_y >= nLevel) {
gotoAndStop((hard ? "eJagoan01Hit02" : "eJagoan01Hit01"));
} else {
gotoAndStop(((_y < nLevel) ? "eJagoan01Hit02" : "eJagoan01Hit01"));
}
} else {
gotoAndStop (36);
}
} else {
gotoAndStop (34);
}
}
this.onLoad = init();
stop();
Symbol 266 MovieClip [eJagoan01] Frame 2
gotoAndStop(getIdleState());
Symbol 266 MovieClip [eJagoan01] Frame 17
gotoAndStop(getIdleState());
Symbol 266 MovieClip [eJagoan01] Frame 37
gotoAndStop(getIdleState());
Symbol 271 MovieClip Frame 1
_parent.action = true;
Symbol 278 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing03.wav");
}
_parent.action = false;
Symbol 278 MovieClip Frame 3
if (_parent._parent.isPlayerConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitPlayer(hit, _parent.power, _parent);
}
Symbol 278 MovieClip Frame 6
_parent.action = true;
_parent.gotoAndStop("eThug01Idle");
Symbol 285 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
_x = (_x + dirValue(speed));
};
};
_parent.action = false;
Symbol 285 MovieClip Frame 4
_parent.action = true;
Symbol 288 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(3);
_parent.hitable = false;
Symbol 288 MovieClip Frame 3
_parent.hitable = true;
_parent.gotoAndStop("eThug01Idle");
Symbol 299 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("die01.wav");
}
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
Symbol 299 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 299 MovieClip Frame 21
_parent.hitable = true;
_parent.gotoAndStop("eThug01Idle");
Symbol 300 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("die01.wav");
}
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
Symbol 300 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 300 MovieClip Frame 11
if (_root.voice) {
_parent._parent.playSFX("die02.wav");
}
Symbol 300 MovieClip Frame 15
tellTarget (_parent._parent) {
bodyCount++;
scenario.checkPoint(cp);
};
stop();
Symbol 301 MovieClip Frame 1
if (count == undefined) {
count = 0;
}
if (maxCount == undefined) {
maxCount = random(45);
}
Symbol 301 MovieClip Frame 2
if (count < maxCount) {
count++;
gotoAndPlay (1);
}
Symbol 301 MovieClip Frame 3
_parent.action = false;
_parent.hitable = false;
if (_parent._x >= (_parent._parent.stageWidth / 2)) {
_parent.dir = -1;
_parent._xscale = _parent._xscale * -1;
}
Symbol 301 MovieClip Frame 27
if (_root.voice) {
taunt = random(3);
switch (taunt) {
case 0 :
_parent._parent.playSFX("taunt_ayo.wav");
break;
case 1 :
_parent._parent.playSFX("taunt_kurangajar.wav");
break;
case 2 :
_parent._parent.playSFX("taunt_grrr.wav");
}
}
Symbol 301 MovieClip Frame 28
_parent.action = true;
_parent.hitable = true;
_parent.gotoAndStop("eThug01Idle");
Symbol 302 MovieClip [eThug01] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.hp = 100;
this.dir = 1;
if (_root.difficulty == "easy") {
this.power = 3;
} else {
this.power = 5;
}
this.mobility = 50;
this.skill = 33;
this.hitable = true;
this.action = true;
this.level = _y;
this.nLevel = _y;
switch (random(2)) {
case 0 :
this.charName = "Thug";
break;
case 1 :
this.charName = "Penjahat";
break;
default :
this.charName = "Thug";
}
this.attachMovie("oThugAI", "AI", 1);
if (intro) {
intro = false;
gotoAndStop (35);
action = false;
hitable = false;
}
}
function idle() {
gotoAndStop (1);
}
function moveRight() {
speed = (duck ? 6 : 6);
if (dir < 0) {
_x = (duck ? (_x - 30) : (_x - 59));
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop((duck ? "eThug01Walk" : "eThug01Run"));
}
function moveLeft() {
speed = (duck ? 6 : 6);
if (dir > 0) {
_x = (duck ? (_x + 30) : (_x + 59));
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop((duck ? "eThug01Walk" : "eThug01Run"));
}
function attCombo(number) {
if (number == undefined) {
trace("err: Combo number undefined!");
return(undefined);
}
gotoAndStop("eThug01Attack0" + number);
}
function inStage() {
if (_parent.isScroll) {
if ((dir == 1) && ((_x + 50) < (Stage.width / 2))) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
if ((dir == 1) && ((_x + 50) < Stage.width)) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
function dirValue(number) {
return(dir * number);
}
function getHit(power, hard, player) {
this.hitter = player;
if (power == undefined) {
trace("err: Hit power undefined!");
power = 0;
}
tempHp = hp;
hp = hp - power;
if (hp > 0) {
if (_y >= nLevel) {
gotoAndStop((hard ? "eThug01Hit02" : "eThug01Hit01"));
} else {
gotoAndStop(((_y < nLevel) ? "eThug01Hit02" : "eThug01Hit01"));
}
} else {
gotoAndStop (34);
}
}
this.onLoad = init();
stop();
Symbol 302 MovieClip [eThug01] Frame 2
gotoAndStop(getIdleState());
Symbol 302 MovieClip [eThug01] Frame 17
gotoAndStop(getIdleState());
Symbol 302 MovieClip [eThug01] Frame 36
gotoAndStop(getIdleState());
Symbol 311 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (right && (!duck)) {
moveRight();
} else if (left && (!duck)) {
moveLeft();
} else if (jump) {
jumpUp();
} else if (attack) {
attCombo(1);
} else if (duck) {
duckDown();
} else if (special) {
attSpecial();
}
};
};
if (count == undefined) {
count = 0;
}
if (limit == undefined) {
limit = random(50);
}
Symbol 311 MovieClip Frame 5
if (count < limit) {
count++;
gotoAndPlay(_currentframe - 1);
} else {
count = 0;
limit = random(50);
}
Symbol 311 MovieClip Frame 8
gotoAndPlay (2);
Symbol 316 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if ((right && (duck)) && (!(left || (jump)))) {
moveRight();
} else if ((left && (duck)) && (!(right || (jump)))) {
moveLeft();
} else if (attack && (duck)) {
attDuck();
} else if (special) {
pickup();
} else if (jump || (!duck)) {
gotoAndStop(getIdleState());
}
};
};
if (_parent.tempDuck) {
_parent.tempDuck = false;
gotoAndStop (2);
}
Symbol 316 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (right && (!duck)) {
moveRight();
} else if (left && (!duck)) {
moveLeft();
} else if (jump) {
jumpUp();
} else if (attack) {
attWeapon();
} else if (duck) {
duckDown();
} else if (special) {
releaseWeapon();
gotoAndStop ("mIdle");
}
};
};
if (count == undefined) {
count = 0;
}
if (limit == undefined) {
limit = random(50);
}
Symbol 325 MovieClip Frame 7
if (count < limit) {
count++;
gotoAndPlay(_currentframe - 1);
} else {
count = 0;
limit = random(50);
}
Symbol 325 MovieClip Frame 9
gotoAndPlay (2);
Symbol 330 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 330 MovieClip Frame 3
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
_parent._parent.hitObject(hit, _parent.power, _parent);
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 330 MovieClip Frame 5
if (attack) {
_parent.attCombo(2);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 335 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 335 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
_parent._parent.hitObject(hit, _parent.power + 1, _parent);
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 335 MovieClip Frame 6
if (attack) {
_parent.attCombo(3);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 340 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 340 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
_parent._parent.hitObject(hit, _parent.power + 2, _parent);
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 340 MovieClip Frame 6
if (attack) {
_parent.attCombo(4);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 345 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 345 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
_parent._parent.hitObject(hit, _parent.power + 3, _parent);
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
if (_parent.attack) {
attack = true;
gotoAndPlay(_totalframes);
}
}
Symbol 345 MovieClip Frame 6
if (attack) {
_parent.attCombo(5);
}
_parent.gotoAndStop(_parent.getIdleState());
Symbol 354 MovieClip Frame 1
if (_root.voice) {
_parent._parent.playSFX("force01.wav");
}
Symbol 354 MovieClip Frame 2
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 354 MovieClip Frame 4
if (_parent._parent.isObjectConnect(hit, _parent)) {
_parent._parent.hitObject(hit, _parent.power + 5, _parent, true);
if (_root.sfx) {
_parent._parent.playSFX("hard_punch.wav");
}
}
Symbol 354 MovieClip Frame 7
_parent.gotoAndStop(_parent.getIdleState());
Symbol 359 MovieClip Frame 1
_parent.tempDuck = true;
if (_root.sfx) {
_parent._parent.playSFX("swing01.wav");
}
Symbol 359 MovieClip Frame 2
if (_parent._parent.isObjectConnect(hit, _parent)) {
_parent._parent.hitObject(hit, _parent.power / 2, _parent);
if (_root.sfx) {
_parent._parent.playSFX("light_punch.wav");
}
}
Symbol 359 MovieClip Frame 7
_parent.gotoAndStop("mDuckIdle");
Symbol 366 MovieClip Frame 1
if (_root.voice) {
_parent._parent._parent.playSFX("force01.wav");
}
if (_root.sfx) {
_parent._parent._parent.playSFX("swing01.wav");
}
Symbol 366 MovieClip Frame 3
if (_parent._parent._parent.isObjectConnect(hit, _parent._parent)) {
_parent._parent._parent.hitObject(hit, _parent._parent.power, _parent._parent, true);
if (_root.sfx) {
_parent._parent._parent.playSFX("hard_punch.wav");
}
}
Symbol 366 MovieClip Frame 5
stop();
Symbol 367 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
};
if (_currentframe < _totalframes) {
_parent._y = _parent.sqrValue(_totalframes, _currentframe, 8);
} else {
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.gotoAndStop(_parent.getIdleState());
}
};
gotoAndPlay(_parent.tempJump - 1);
Symbol 376 MovieClip Frame 1
if (_root.sfx) {
_parent._parent.playSFX("swing02.wav");
}
Symbol 376 MovieClip Frame 3
hit._x = 50 + (weapon._height / 2);
if (_parent._parent.isObjectConnect(hit, _parent)) {
if (_root.sfx) {
_parent._parent.playSFX("slash01.wav");
}
_parent._parent.sliceObject(hit, _parent._parent.getWeaponPower(_parent.weapon), _parent, true);
}
Symbol 376 MovieClip Frame 7
_parent.gotoAndStop(_parent.getIdleState());
Symbol 380 MovieClip Frame 1
_parent.hitable = false;
_parent._parent.flasher.play();
_parent._parent.dimmer.turn(50);
if (_root.sfx) {
_parent._parent.playSFX("beam01.wav");
}
Symbol 380 MovieClip Frame 5
if (_root.sfx) {
_parent._parent.playSFX("rumble.wav");
}
Symbol 380 MovieClip Frame 10
_parent._parent.dimmer.brighten(100);
if (_parent._parent.hitAllObject(_parent.power + 20, _parent, true)) {
if (_root.sfx) {
_parent._parent.playSFX("hard_punch.wav");
}
}
Symbol 380 MovieClip Frame 12
_parent.hitable = true;
_parent.gotoAndStop(_parent.getIdleState());
Symbol 395 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
if (attack) {
if (weapon > 0) {
attWeapon();
} else {
attCombo(1);
}
} else if (duck) {
duckDown();
} else if (special) {
if (weapon > 0) {
releaseWeapon();
} else if (weapon == 0) {
attSpecial();
}
} else if (dir == 1) {
if (jump) {
jumpRight();
}
if (left || (!right)) {
gotoAndStop(getIdleState());
}
} else if (dir == -1) {
if (jump) {
jumpLeft();
}
if ((!left) || (right)) {
gotoAndStop(getIdleState());
}
}
};
};
Symbol 398 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
};
if (_parent.attack) {
_parent.tempJump = _currentframe;
_parent.attJump();
}
if (_currentframe < _totalframes) {
_parent._y = _parent.sqrValue(_totalframes, _currentframe, 8);
} else {
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
if (_root.sfx) {
_parent._parent.playSFX("fall02.wav");
}
_parent.gotoAndStop(_parent.getIdleState());
}
};
if (_root.sfx) {
_parent._parent.playSFX("jump01.wav");
}
Symbol 398 MovieClip Frame 9
stop();
Symbol 411 MovieClip Frame 1
this.onEnterFrame = function () {
tellTarget (_parent) {
if (inStage()) {
_x = (_x + dirValue(speed));
} else if (((!inStage()) && (_parent.isScroll)) && (dir == 1)) {
_parent.scrollStage(speed);
}
if (attack) {
attDuck();
}
if (dir == 1) {
if ((!duck) || (!right)) {
gotoAndStop ("mDuckIdle");
}
} else if ((!left) || (!duck)) {
gotoAndStop ("mDuckIdle");
}
};
};
_parent.tempDuck = true;
Symbol 414 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(6);
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 414 MovieClip Frame 3
_parent.hitable = true;
_parent.gotoAndStop("mIdle");
Symbol 419 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 419 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 419 MovieClip Frame 14
_parent.hitable = true;
_parent.gotoAndStop("mIdle");
Symbol 420 MovieClip Frame 1
_parent._x = _parent._x + _parent.hitter.dirValue(16);
_parent._y = _parent.nLevel;
_parent.level = _parent.nLevel;
_parent.hitable = false;
if (_parent.weapon > 0) {
_parent.releaseWeapon(true);
}
Symbol 420 MovieClip Frame 3
if (_root.sfx) {
_parent._parent.playSFX("fall01.wav");
}
Symbol 420 MovieClip Frame 11
if (_root.voice) {
_parent._parent.playSFX("die03.wav");
}
Symbol 420 MovieClip Frame 17
if (_parent.lives <= 0) {
_parent._parent.music.stop();
_root.movieName = "gameOver";
_root.gotoAndStop("movies");
stop();
}
Symbol 420 MovieClip Frame 33
_parent.lives--;
_parent.hp = 100;
_parent.mp = 0;
_parent._parent.hitAllObject(0, _parent, true);
_parent.hitable = true;
_parent.gotoAndStop("mIdle");
Symbol 425 MovieClip Frame 1
_parent.tempDuck = true;
Symbol 425 MovieClip Frame 3
_parent._parent.pickupObject(hit, _parent);
Symbol 425 MovieClip Frame 5
_parent.gotoAndStop("mDuckIdle");
Symbol 426 MovieClip [mPendekar] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.weapon = 1;
this.hp = 100;
if (_root.cheats_imp) {
this.mp = 100;
} else {
this.mp = 0;
}
this.dir = 1;
this.power = 5;
this.hitable = true;
this.level = _y;
this.nLevel = _y;
this.charName = "Sangkala";
this.lives = _root.player1Lives;
if (_name.substr(0, 6) == "player") {
setKey(_root.player1Left, _root.player1Right, _root.player1Jump, _root.player1Duck, _root.player1Attack, _root.player1Special);
}
this.left = false;
this.right = false;
this.jump = false;
this.duck = false;
this.attack = false;
this.special = false;
this.intro = false;
gotoAndStop(getIdleState());
}
function setKey(keyLeft, keyRight, keyJump, keyDuck, keyAttack, keySpecial) {
if (keyLeft == undefined) {
keyLeft = 37;
}
if (keyRight == undefined) {
keyRight = 39;
}
if (keyJump == undefined) {
keyJump = 83;
}
if (keyDuck == undefined) {
keyDuck = 40;
}
if (keyAttack == undefined) {
keyAttack = 65;
}
if (keySpecial == undefined) {
keySpecial = 68;
}
control = new Object();
control.onKeyDown = function () {
if (Key.isDown(keyLeft) && (!Key.isDown(keyRight))) {
left = true;
right = false;
} else if (Key.isDown(keyRight) && (!Key.isDown(keyLeft))) {
right = true;
left = false;
} else if (Key.isDown(keyLeft) && (Key.isDown(keyRight))) {
left = false;
right = false;
}
if (Key.isDown(keyJump) && (!Key.isDown(keyDuck))) {
jump = true;
duck = false;
} else if (Key.isDown(keyDuck) && (!Key.isDown(keyJump))) {
duck = true;
jump = false;
} else if (Key.isDown(keyJump) && (Key.isDown(keyDuck))) {
jump = false;
duck = false;
}
if (Key.isDown(keyAttack)) {
attack = true;
}
if (Key.isDown(keySpecial)) {
special = true;
}
};
control.onKeyUp = function () {
if (!Key.isDown(keyLeft)) {
if (Key.isDown(keyRight)) {
right = true;
}
left = false;
}
if (!Key.isDown(keyRight)) {
if (Key.isDown(keyLeft)) {
left = true;
}
right = false;
}
if (!Key.isDown(keyJump)) {
jump = false;
}
if (!Key.isDown(keyDuck)) {
duck = false;
}
if (!Key.isDown(keyAttack)) {
attack = false;
}
if (!Key.isDown(keySpecial)) {
special = false;
}
};
Key.addListener(control);
}
function moveRight() {
speed = (duck ? 6 : 16);
if (dir < 0) {
_x = (duck ? (_x - 30) : (_x - 59));
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop((duck ? "mDuckWalk" : "mRun"));
}
function moveLeft() {
speed = (duck ? 6 : 16);
if (dir > 0) {
_x = (duck ? (_x + 30) : (_x + 59));
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop((duck ? "mDuckWalk" : "mRun"));
}
function jumpRight() {
speed = 16;
if (dir < 0) {
_x = (_x - 59);
_xscale = (_xscale * -1);
}
dir = 1;
gotoAndStop (32);
}
function jumpLeft() {
speed = 16;
if (dir > 0) {
_x = (_x + 59);
_xscale = (_xscale * -1);
}
dir = -1;
gotoAndStop (32);
}
function jumpUp() {
speed = 0;
gotoAndStop (32);
}
function attCombo(number) {
if (number == undefined) {
trace("err: Combo number undefined!");
return(undefined);
}
gotoAndStop("mAttack0" + number);
}
function attWeapon() {
gotoAndStop (23);
}
function attJump() {
gotoAndStop (22);
}
function attDuck() {
gotoAndStop (21);
}
function attSpecial() {
if (mp < 40) {
return(undefined);
}
if (!_root.cheats_imp) {
mp = mp - 40;
}
gotoAndStop (24);
}
function inStage() {
if (_parent.isScroll) {
if ((dir == 1) && ((_x + 50) < (Stage.width / 2))) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
if ((dir == 1) && ((_x + 50) < Stage.width)) {
return(true);
}
if ((dir == -1) && ((_x - 50) > 0)) {
return(true);
}
return(false);
}
function dirValue(number) {
return(dir * number);
}
function sqrValue(g, x, h) {
if (((x == undefined) || (g == undefined)) || (h == undefined)) {
trace("err: sqrValue(g,x,h) undefined!");
return(undefined);
}
g = Math.ceil(g / 2);
return((level = level - (h * (g - x))));
}
function duckDown() {
gotoAndStop (2);
}
function getHit(power, hard, object) {
this.hitter = object;
if (power == undefined) {
trace("err: Hit power undefined!");
power = 0;
}
tempHp = hp;
if (!_root.cheats_inv) {
hp = hp - power;
}
if (hp > 0) {
if (_y >= nLevel) {
gotoAndStop((hard ? "mHit02" : "mHit01"));
} else {
gotoAndStop(((_y < nLevel) ? "mHit02" : "mHit01"));
}
} else {
gotoAndStop (36);
}
}
function pickup() {
gotoAndStop (37);
}
function releaseWeapon(hitObject) {
temp = _parent.spawnObject("oWeapon" + _parent.getWeaponName(weapon), _x + dirValue(50));
if (hitObject) {
temp.tempGetHit = true;
}
weapon = 0;
special = false;
}
function getIdleState() {
return(((weapon > 0) ? "mIdleWeapon" : "mIdle"));
}
this.onLoad = init();
stop();
Symbol 426 MovieClip [mPendekar] Frame 4
gotoAndStop(getIdleState());
Symbol 426 MovieClip [mPendekar] Frame 25
gotoAndStop(getIdleState());
Symbol 426 MovieClip [mPendekar] Frame 38
gotoAndStop(getIdleState());
Symbol 433 MovieClip [oHitFlash01] Frame 4
stop();
Symbol 440 MovieClip [oHitFlash02] Frame 4
stop();
Symbol 441 MovieClip [oComboTimer] Frame 1
tolerance = 5;
count = 0;
stop();
Symbol 441 MovieClip [oComboTimer] Frame 3
if (count < tolerance) {
count++;
gotoAndPlay (2);
} else {
if (_parent.hud.tLeftBar.mp < 100) {
_parent.hud.tLeftBar.mp = _parent.hud.tLeftBar.mp + _parent.comboCount;
}
if (_parent.hud.tLeftBar.mp > 100) {
_parent.hud.tLeftBar.mp = 100;
}
_parent.comboCount = 0;
gotoAndStop (1);
}
Symbol 442 MovieClip [oJagoanAI] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.pBuffer = _parent._parent.pBuffer;
this.c = _parent;
}
function action() {
if (!c.hitable) {
return(undefined);
}
if (!c.action) {
return(undefined);
}
t = getClosestTarget();
if ((t.dir * c.dir) < 0) {
tempT = t._x + t.dirValue(50);
tempC = c._x + c.dirValue(50);
} else {
tempT = t._x;
tempC = c._x + c.dirValue(50);
}
d = tempT - tempC;
r = random(100) + 1;
if (r <= c.mobility) {
if (Math.abs(d) > 20) {
if (d < 0) {
c.moveLeft();
} else if (d >= 0) {
c.moveRight();
}
} else if (r <= c.skill) {
c.attCombo(1);
} else {
c.idle();
}
} else {
c.idle();
}
}
function getClosestTarget() {
i = 0;
while (i < pBuffer.length) {
tempDist = Math.abs(pBuffer[i]._x - c._x);
if (i == 0) {
lastDist = tempDist;
tempTarget = pBuffer[i];
} else if (tempDist <= lastDist) {
lastDist = tempDist;
tempTarget = pBuffer[i];
}
i++;
}
if (tempTarget == undefined) {
trace("err: AI Target not found");
}
return(tempTarget);
}
this.onLoad = init();
this.onEnterFrame = action();
play();
Symbol 442 MovieClip [oJagoanAI] Frame 2
gotoAndPlay (1);
Symbol 443 MovieClip [oThugAI] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.pBuffer = _parent._parent.pBuffer;
this.c = _parent;
}
function action() {
if (!c.hitable) {
return(undefined);
}
if (!c.action) {
return(undefined);
}
t = getClosestTarget();
if ((t.dir * c.dir) < 0) {
tempT = t._x + t.dirValue(50);
tempC = c._x + c.dirValue(50);
} else {
tempT = t._x;
tempC = c._x + c.dirValue(50);
}
d = tempT - tempC;
r = random(100) + 1;
if (r <= c.mobility) {
if (Math.abs(d) > 20) {
if (d < 0) {
c.moveLeft();
} else if (d >= 0) {
c.moveRight();
}
} else if (r <= c.skill) {
c.attCombo(1);
} else {
c.idle();
}
} else {
c.idle();
}
}
function getClosestTarget() {
i = 0;
while (i < pBuffer.length) {
tempDist = Math.abs(pBuffer[i]._x - c._x);
if (i == 0) {
lastDist = tempDist;
tempTarget = pBuffer[i];
} else if (tempDist <= lastDist) {
lastDist = tempDist;
tempTarget = pBuffer[i];
}
i++;
}
if (tempTarget == undefined) {
trace("err: AI Target not found");
}
return(tempTarget);
}
this.onLoad = init();
this.onEnterFrame = action();
play();
Symbol 443 MovieClip [oThugAI] Frame 2
gotoAndPlay (1);
Symbol 444 MovieClip [level04] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Level 04...");
tellTarget (_parent) {
setStage("The Lair", 400, "flr_lair", "env_lair", "bg_mountain");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music02.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music02.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 445 MovieClip [level03] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Level 03...");
tellTarget (_parent) {
setStage("The Forest", 400, "flr_forest", "env_forest", "bg_mountain02");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music01.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music01.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 446 MovieClip [level02] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Level 02...");
tellTarget (_parent) {
setStage("The Pursuit", 400, "flr_sea", "env_sea", "bg_sea");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music03.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music03.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 447 MovieClip [practice] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Practice...");
tellTarget (_parent) {
setStage("The Beginning", 400, "flr_cement", "env_arena", "bg_mountain02");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music04.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music04.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 448 MovieClip [challenge02] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Challenge 02...");
tellTarget (_parent) {
setStage("Boss Keroyokan", 400, "flr_cement", "env_arena", "bg_mountain02");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music08.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music08.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 449 MovieClip [challenge01] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Challenge 01...");
tellTarget (_parent) {
setStage("Keroyokan", 400, "flr_cement", "env_arena", "bg_mountain02");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music08.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
boss();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 3) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 5) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music08.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 450 MovieClip [level01] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
trace("> Initializing Level 01...");
tellTarget (_parent) {
setStage("The Attack", 400, "flr_soil", "env_village", "bg_mountain");
addPlayer(_root.player1);
if (_root.music) {
music = new Sound();
music.attachSound("music04.wav");
music.start(0, 9999);
}
registerObject("oPole", 100);
registerObject("oWeaponGolok", 200);
registerObject("oPole", 500);
registerObject("oPole", 600);
registerObject("oPole", 1000);
registerObject("oPole", 1200);
registerObject("oPole", 2000);
registerObject("oPole", 2300);
registerObject("oPole", 2600);
registerObject("oWeaponGolok", 3000);
registerObject("oPole", 4000);
registerObject("oPole", 4100);
registerObject("oPole", 4200);
registerObject("oPole", 4300);
registerObject("oPole", 5000);
};
}
function checkPoint(cp) {
_parent.isScroll = false;
switch (cp) {
case 0 :
pack01();
return;
case 1 :
pack02();
return;
case 2 :
pack03();
return;
case 3 :
pack04();
return;
case 4 :
boss();
return;
default :
trace("err: Checkpoint not specified!");
}
}
function pack01() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount >= 1) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack02() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
} else if (bodyCount == 1) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 3) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack03() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount == 2) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 4) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function pack04() {
tellTarget (_parent) {
if (bodyCount == 0) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount == 2) {
spawnObject("eThug01", stageWidth - 20);
spawnObject("eThug01", 20);
} else if (bodyCount >= 4) {
hud.goSign.play();
bodyCount = 0;
isScroll = true;
stageLength = stageLength + 800;
cp++;
}
};
}
function boss() {
tellTarget (_parent) {
if (bodyCount == 0) {
dimmer.dim(50);
dimmer.lock = true;
hud.bossSign.play();
if (_root.music) {
music.stop("music04.wav");
music.attachSound("music07.wav");
music.start(0, 9999);
}
spawnObject("eJagoan01", stageWidth - 20);
} else if (bodyCount == 1) {
bodyCount = 0;
music.stop("music07.wav");
_root.movieName = "stageClear";
_root.gotoAndStop("movies");
}
};
}
this.onLoad = init();
Symbol 455 MovieClip [mCombo] Frame 1
function display(number) {
this.number = number;
switch (number) {
case 2 :
msg2 = "GOOD!";
break;
case 3 :
msg2 = "GREAT!";
break;
case 4 :
msg2 = "WELL DONE!";
break;
case 5 :
msg2 = "WELL DONE!";
break;
case 6 :
msg2 = "NICELY DONE!";
break;
case 7 :
msg2 = "OUTSTANDING!";
break;
case 8 :
msg2 = "EXCELLENT!";
break;
default :
msg2 = "JAGOAN!";
}
msg = (number + " HIT COMBO, ") + msg2;
gotoAndPlay (4);
}
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
_parent._parent.playSFX("beep01.wav");
Symbol 469 MovieClip Frame 11
_parent._parent.playSFX("beep01.wav");
Symbol 469 MovieClip Frame 20
_parent._parent.playSFX("beep01.wav");
Symbol 469 MovieClip Frame 29
_parent._parent.playSFX("beep01.wav");
Symbol 472 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
if (runOnce == undefined) {
this._xscale = 0;
runOnce = true;
}
Symbol 478 MovieClip Frame 9
gotoAndPlay (1);
Symbol 481 MovieClip [hud] Frame 1
function update() {
leftBar.bar._xscale = ((((tLeftBar.hp == undefined) || (tLeftBar.hp == null)) || (tLeftBar.hp > 100)) ? 0 : (tLeftBar.hp));
if (tLeftBar.hp > 100) {
leftBar.bar._xscale = 100;
}
leftBar.bar._x = 0;
leftName.text = (tLeftBar.charName + " x ") + tLeftBar.lives;
if (tLeftBar.mp >= 40) {
leftBarMP.bar.play();
} else if (tLeftBar.mp < 40) {
leftBarMP.bar.gotoAndStop(1);
}
if (leftBarMP.bar._xscale < tLeftBar.mp) {
leftBarMP.bar._xscale++;
} else if (leftBarMP.bar._xscale >= tLeftBar.mp) {
leftBarMP.bar._xscale = tLeftBar.mp;
}
leftBarMP.bar._x = 0;
rightBar.bar._xscale = ((((tRightBar.hp == undefined) || (tRightBar.hp == null)) || (tRightBar.hp > 100)) ? 0 : (tRightBar.hp));
if (tRightBar.hp > 100) {
rightBar.bar._xscale = 100;
}
rightBar.bar._x = 0;
rightName.text = tRightBar.charName;
}
this.onEnterFrame = update();
Symbol 481 MovieClip [hud] Frame 2
gotoAndPlay (1);
Symbol 484 MovieClip [screen_flasher_in] Frame 1
stop();
Symbol 485 MovieClip [oDimmer] Frame 1
function init() {
if (runOnce) {
return(undefined);
}
runOnce = true;
this.bgColor = new Color(_parent.bg);
this.envColor = new Array(_parent.envBuffer.length);
this.dimVal = false;
this.dimTransform = new Object();
this.currTransform = 100;
this.lock = false;
stop();
}
function turn(x) {
if (lock) {
trace("err: Dimmer is locked");
return(undefined);
}
limit = x;
currTransform = x;
dimTransform.ra = x;
dimTransform.rb = 0;
dimTransform.ga = x;
dimTransform.gb = 0;
dimTransform.ba = x;
dimTransform.bb = 0;
dimTransform.aa = 100;
dimTransform.ab = 0;
bgColor.setTransform(dimTransform);
}
function dim(x) {
if (lock) {
trace("err: Dimmer is locked");
return(undefined);
}
if ((x % 5) != 0) {
trace("err: Dim limiter must be a multiple of 5");
return(undefined);
}
this.limit = x;
this.dimVal = true;
gotoAndPlay (2);
}
function brighten(x) {
if (lock) {
trace("err: Dimmer is locked");
return(undefined);
}
if ((x % 5) != 0) {
trace("err: Dim limiter must be a multiple of 5");
return(undefined);
}
this.limit = x;
this.dimVal = false;
gotoAndPlay (2);
}
function tr() {
if (((currTransform <= limit) && (dimVal == true)) || ((currTransform >= limit) && (dimVal == false))) {
gotoAndStop (1);
} else {
currTransform = (dimVal ? (currTransform - 5) : (currTransform + 5));
dimTransform.ra = currTransform;
dimTransform.rb = 0;
dimTransform.ga = currTransform;
dimTransform.gb = 0;
dimTransform.ba = currTransform;
dimTransform.bb = 0;
dimTransform.aa = 100;
dimTransform.ab = 0;
}
bgColor.setTransform(dimTransform);
}
this.onLoad = init();
Symbol 485 MovieClip [oDimmer] Frame 3
tr();
gotoAndPlay (2);
Symbol 486 MovieClip [oTyper] Frame 1
if (delay == undefined) {
delay = 1;
}
if (count == undefined) {
count = 0;
}
if (l == undefined) {
l = msg.length;
}
if (x == undefined) {
x = 1;
}
Symbol 486 MovieClip [oTyper] Frame 2
if (count < delay) {
count++;
} else {
count = 0;
textbox.text = msg.substr(0, x);
x++;
if (x >= l) {
_parent.play();
}
}
gotoAndPlay (1);
Symbol 487 MovieClip [env_lair] Frame 1
stop();
Symbol 488 MovieClip [env_forest] Frame 1
stop();
Symbol 489 MovieClip [env_sea] Frame 1
stop();
Symbol 490 MovieClip [bg_sea] Frame 1
stop();
Symbol 493 MovieClip [env_village] Frame 1
stop();
Symbol 496 MovieClip [bg_mountain] Frame 1
stop();
Symbol 497 MovieClip [env_arena] Frame 1
stop();
Symbol 500 MovieClip [bg_mountain02] Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 517 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 524 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 524 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 531 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 531 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 538 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 538 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 545 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 545 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 552 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 552 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 559 MovieClip Frame 1
if (l == undefined) {
l = random(50);
}
if (x == undefined) {
x = 0;
}
Symbol 559 MovieClip Frame 2
if ((x >= l) && (_parent.tumble)) {
l = random(50);
x = 0;
} else {
x++;
gotoAndPlay(_currentframe - 1);
}
Symbol 563 Button
on (release) {
tumble = (tumble ? false : true);
}
Symbol 567 Button
on (release) {
_root.movieName = "intro01";
_root.gotoAndStop("movies");
}
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 5
stop();
Symbol 573 MovieClip Frame 1
x = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
msg = x + "% LOADED";
_parent.bar.gotoAndStop(this.x);
if (x < 100) {
play();
} else {
_parent.playbutton.play();
stop();
}
Symbol 573 MovieClip Frame 2
gotoAndPlay (1);
Symbol 574 MovieClip Frame 1
tumble = false;
stop();
Symbol 575 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 5
stop();
Symbol 581 Button
on (release) {
_parent.gotoAndStop("menuStartGame");
}
Symbol 584 Button
on (release) {
_parent.gotoAndStop("menuOptions");
}
Symbol 586 Button
on (release) {
_parent.gotoAndStop("menuCredits");
}
Symbol 590 MovieClip Frame 10
stop();
Symbol 591 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
Symbol 593 Button
on (release) {
_root.gameType = 0;
_parent.gotoAndStop("menuCharSelect");
}
Symbol 600 Button
on (release) {
_parent.gotoAndStop("menuMain");
}
Symbol 603 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
Symbol 604 Button
on (release) {
_parent.gotoAndStop("menuGameplay");
}
Symbol 606 Button
on (release) {
_parent.gotoAndStop("menuControls");
}
Symbol 608 Button
on (release) {
_parent.gotoAndStop("menuSounds");
}
Symbol 610 Button
on (release) {
_parent.gotoAndStop("menuCheats");
}
Symbol 614 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
Symbol 619 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
push01.msg = "BACK";
push01.page = "menuMain";
Symbol 627 MovieClip Frame 1
function init() {
if (runOnce) {
return(undefined);
}
runOnce = true;
this.msg = _parent.getKeyDisplay(keyTarget);
checkArrows(keyTarget);
}
function checkArrows(code) {
if ((code >= 37) && (code <= 40)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
this.onLoad = init();
stop();
Symbol 635 Button
on (release) {
_parent.gotoAndStop("menuOptions");
}
Symbol 637 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dAttack;
keyTarget = "player1Attack";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Attack, default button is A";
}
Symbol 639 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dJump;
keyTarget = "player1Jump";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Jump, default button is S";
}
Symbol 641 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dSpecial;
keyTarget = "player1Special";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Special, default button is D";
}
Symbol 643 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dLeft;
keyTarget = "player1Left";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Move Left, default button is Left Arrow";
}
Symbol 645 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dRight;
keyTarget = "player1Right";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Move Right, default button is Right Arrow";
}
Symbol 647 Button
on (release) {
Key.addListener(myListener);
keyTargetDisplay = dCrouch;
keyTarget = "player1Duck";
display.text = "Press a key...";
}
on (rollOver) {
display.text = "Click to change the button for Crouch, default button is Down Arrow";
}
Symbol 650 MovieClip Frame 1
function getKeyDisplay(code) {
switch (code) {
case 48 :
return("0");
case 49 :
return("1");
case 50 :
return("2");
case 51 :
return("3");
case 52 :
return("4");
case 53 :
return("5");
case 54 :
return("6");
case 55 :
return("7");
case 56 :
return("8");
case 57 :
return("9");
case 65 :
return("A");
case 66 :
return("B");
case 67 :
return("C");
case 68 :
return("D");
case 69 :
return("E");
case 70 :
return("F");
case 71 :
return("G");
case 72 :
return("H");
case 73 :
return("I");
case 74 :
return("J");
case 75 :
return("K");
case 76 :
return("L");
case 77 :
return("M");
case 78 :
return("N");
case 79 :
return("O");
case 80 :
return("P");
case 81 :
return("Q");
case 82 :
return("R");
case 83 :
return("S");
case 84 :
return("T");
case 85 :
return("U");
case 86 :
return("V");
case 87 :
return("W");
case 88 :
return("X");
case 89 :
return("Y");
case 90 :
return("Z");
case 96 :
return("Numpad 0");
case 97 :
return("Numpad 1");
case 98 :
return("Numpad 2");
case 99 :
return("Numpad 3");
case 100 :
return("Numpad 4");
case 101 :
return("Numpad 5");
case 102 :
return("Numpad 6");
case 103 :
return("Numpad 7");
case 104 :
return("Numpad 8");
case 105 :
return("Numpad 9");
case 106 :
return("*");
case 107 :
return("+");
case 108 :
return("Enter");
case 109 :
return("-");
case 110 :
return(".");
case 111 :
return("/");
case 112 :
return("F1");
case 113 :
return("F2");
case 114 :
return("F3");
case 115 :
return("F4");
case 116 :
return("F5");
case 117 :
return("F6");
case 118 :
return("F7");
case 119 :
return("F8");
case 120 :
return("F9");
case 121 :
return("F10");
case 122 :
return("F11");
case 123 :
return("F12");
case 124 :
return("F13");
case 125 :
return("F14");
case 126 :
return("F15");
case 37 :
return("\u00C5");
case 38 :
return("\u00C7");
case 39 :
return("\u00C6");
case 40 :
return("\u00C8");
case 8 :
return("Backspace");
case 9 :
return("Tab");
case 12 :
return("Clear");
case 13 :
return("Enter");
case 16 :
return("Shift");
case 17 :
return("Control");
case 18 :
return("Alt");
case 20 :
return("Caps Lock");
case 27 :
return("Esc");
case 32 :
return("Space");
case 33 :
return("Pg Up");
case 34 :
return("Pg Down");
case 35 :
return("End");
case 36 :
return("Home");
case 45 :
return("Insert");
case 46 :
return("Delete");
case 47 :
return("Help");
case 144 :
return("Num Lock");
case 186 :
return(";");
case 187 :
return("=");
case 189 :
return("-");
case 191 :
return("/");
case 192 :
return("~");
case 219 :
return("[");
case 220 :
return("\\");
case 221 :
return("]");
case 222 :
return("'");
}
}
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
dAttack.keyTarget = _root.player1Attack;
dJump.keyTarget = _root.player1Jump;
dSpecial.keyTarget = _root.player1Special;
dLeft.keyTarget = _root.player1Left;
dRight.keyTarget = _root.player1Right;
dCrouch.keyTarget = _root.player1Duck;
listen = false;
myListener = new Object();
myListener.onKeyDown = function () {
_root[keyTarget] = Key.getCode();
keyTargetDisplay.display.text = getKeyDisplay(Key.getCode());
keyTargetDisplay.checkArrows(Key.getCode());
Key.removeListener(myListener);
display.text = "";
listen = false;
};
Symbol 663 MovieClip Frame 4
stop();
Symbol 672 MovieClip Frame 4
stop();
Symbol 673 MovieClip Frame 1
_root.player1 = "mPendekar";
stop();
Symbol 673 MovieClip Frame 6
_root.player1 = "fPendekar";
stop();
Symbol 673 MovieClip Frame 12
gotoAndStop (1);
Symbol 680 Button
on (release) {
charToggle.play();
}
Symbol 681 Button
on (release) {
_parent.gotoAndStop("menuStartGame");
}
Symbol 683 Button
on (release) {
if (_root.gameType == 0) {
_parent.gotoAndStop("menuSelectStage");
} else if (_root.gameType == 1) {
_parent.gotoAndStop("menuSelectChallenge");
}
}
Symbol 685 MovieClip Frame 1
if ((_parent.musicName != "music08.wav") && (_root.music)) {
_parent.music.stop(_parent.musicName);
_parent.musicName = "music08.wav";
_parent.music.attachSound(_parent.musicName);
_parent.music.start(0, 9999);
}
if (_root.player1 == "fPendekar") {
charToggle.gotoAndStop(6);
}
Symbol 686 Button
on (release) {
_parent.gotoAndStop("menuCharSelect");
}
Symbol 688 Button
on (release) {
_parent.music.stop(_parent.musicName);
_root.gotoAndStop("stage");
}
Symbol 693 MovieClip Frame 1
_root.currentLevel = 4;
Symbol 693 MovieClip Frame 29
stop();
Symbol 695 MovieClip Frame 1
_root.currentLevel = 0;
Symbol 695 MovieClip Frame 29
stop();
Symbol 698 MovieClip Frame 1
_root.currentLevel = 1;
Symbol 698 MovieClip Frame 29
stop();
Symbol 700 MovieClip Frame 1
_root.currentLevel = 2;
Symbol 700 MovieClip Frame 29
stop();
Symbol 702 MovieClip Frame 1
_root.currentLevel = 3;
Symbol 702 MovieClip Frame 29
stop();
Symbol 703 MovieClip Frame 1
function init() {
if (runOnce) {
return(undefined);
}
runOnce = true;
gotoAndStop (2);
}
function nextLevel() {
if ((_currentframe + 1) > limit) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
function prevLevel() {
if ((_currentframe - 1) < 1) {
gotoAndStop(limit);
} else {
gotoAndStop(_currentframe - 1);
}
}
this.onLoad = init();
stop();
Symbol 704 MovieClip Frame 1
gotoAndStop(((_root.player1 == "mPendekar") ? 1 : 2));
stop();
Symbol 706 MovieClip Frame 1
if ((_parent.musicName != "music08.wav") && (_root.music)) {
_parent.music.stop(_parent.musicName);
_parent.musicName = "music08.wav";
_parent.music.attachSound(_parent.musicName);
_parent.music.start(0, 9999);
}
Symbol 709 Button
on (release) {
challenges.nextLevel();
}
Symbol 710 Button
on (release) {
challenges.prevLevel();
}
Symbol 712 MovieClip Frame 1
_root.currentLevel = 5;
Symbol 712 MovieClip Frame 29
stop();
Symbol 714 MovieClip Frame 1
_root.currentLevel = 6;
Symbol 714 MovieClip Frame 29
stop();
Symbol 715 MovieClip Frame 1
function nextLevel() {
if (_currentframe == _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
}
function prevLevel() {
if (_currentframe == 1) {
gotoAndStop(_totalframes);
} else {
gotoAndStop(_currentframe - 1);
}
}
stop();
Symbol 717 MovieClip Frame 1
if ((_parent.musicName != "music08.wav") && (_root.music)) {
_parent.music.stop(_parent.musicName);
_parent.musicName = "music08.wav";
_parent.music.attachSound(_parent.musicName);
_parent.music.start(0, 9999);
}
Symbol 721 Button
on (release) {
_root.difficulty = ((_root.difficulty == "normal") ? ((_root.difficulty = "easy")) : ((_root.difficulty = "normal")));
difficulty.text = _root.difficulty.toUpperCase();
}
Symbol 724 Button
on (release) {
if (_root.player1Lives < 5) {
_root.player1Lives++;
} else {
_root.player1Lives = 1;
}
lives.text = _root.player1Lives;
}
Symbol 725 Button
on (release) {
if (_root.player1Lives > 1) {
_root.player1Lives--;
} else {
_root.player1Lives = 5;
}
lives.text = _root.player1Lives;
}
Symbol 728 Button
on (release) {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
} else if (_root._quality == "HIGH") {
_root._quality = "BEST";
} else if (_root._quality == "BEST") {
_root._quality = "LOW";
}
q.text = _root._quality.toUpperCase();
}
Symbol 729 Button
on (release) {
if (_root._quality == "LOW") {
_root._quality = "BEST";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "BEST") {
_root._quality = "HIGH";
}
q.text = _root._quality.toUpperCase();
}
Symbol 731 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
difficulty.text = _root.difficulty.toUpperCase();
lives.text = _root.player1Lives;
q.text = _root._quality.toUpperCase();
Symbol 735 Button
on (release) {
_root.sfx = (_root.sfx ? false : true);
sfx.text = (_root.sfx ? "ON" : "OFF");
}
Symbol 738 Button
on (release) {
_root.music = (_root.music ? false : true);
music.text = (_root.music ? "ON" : "OFF");
}
Symbol 741 Button
on (release) {
_root.voice = (_root.voice ? false : true);
voice.text = (_root.voice ? "ON" : "OFF");
}
Symbol 743 MovieClip Frame 1
_parent.music.stop(_parent.musicName);
_parent.musicName = null;
sfx.text = (_root.sfx ? "ON" : "OFF");
music.text = (_root.music ? "ON" : "OFF");
voice.text = (_root.voice ? "ON" : "OFF");
Symbol 744 MovieClip Frame 1
function init() {
if (runOnce) {
return(undefined);
}
runOnce = true;
music = new Sound();
if (_root.menuName != null) {
gotoAndStop(_root.menuName);
_root.menuName = null;
}
}
this.onLoad = init();
stop();
Symbol 745 MovieClip Frame 1
function init() {
if (runOnce) {
return(undefined);
}
this.runOnce = true;
this.stageWidth = Stage.width;
this.stageHeight = Stage.height;
this.stageName = "Untitled";
this.stageLength = 100;
this.envBuffer = new Array();
this.envDepth = 100;
this.envCount = 0;
this.flrBuffer = new Array();
this.flrDepth = 200;
this.flrCount = 0;
this.oTypeBuffer = new Array();
this.oDistBuffer = new Array();
this.oVisBuffer = new Array();
this.oDepth = 300;
this.oCount = 0;
this.pBuffer = new Array();
this.pDepth = 400;
this.pCount = 0;
this.sDepth = 500;
this.speed = 4;
this.dist = 0;
this.cp = 0;
this.bodyCount = 0;
this.isScroll = true;
switch (_root.currentLevel) {
case 0 :
this.attachMovie("level01", "scenario", sDepth);
break;
case 1 :
this.attachMovie("level02", "scenario", sDepth);
break;
case 2 :
this.attachMovie("level03", "scenario", sDepth);
break;
case 3 :
this.attachMovie("level04", "scenario", sDepth);
break;
case 4 :
this.attachMovie("practice", "scenario", sDepth);
break;
case 5 :
this.attachMovie("challenge01", "scenario", sDepth);
break;
case 6 :
this.attachMovie("challenge02", "scenario", sDepth);
break;
default :
trace("err: Level scenario not loaded!");
}
sDepth++;
}
function setStage(stageName, stageLength, flr, env, bg) {
this.stageName = stageName;
this.stageLength = stageLength;
setComboTimer();
i = 0;
while (i < 4) {
addFlr(flr);
i++;
}
this.flr = flr;
addEnv(env);
this.env = env;
this.attachMovie(bg, "bg", 1);
this.attachMovie("screen_flasher_in", "flasher", sDepth);
sDepth++;
this.attachMovie("oDimmer", "dimmer", sDepth);
sDepth++;
this.attachMovie("hud", "hud", sDepth);
mCombo = hud.combo;
sDepth++;
addSFXChannels(3);
}
function addFlr(flr) {
if (flr == undefined) {
trace("err: Stage floor undefined!");
}
if (flrBuffer.length == 0) {
newFlr = "flr_0";
} else {
newFlr = flrBuffer[flrBuffer.length - 1]._name.substr(0, 4) + flrCount;
}
this.attachMovie(flr, newFlr, flrDepth);
this[newFlr]._y = stageHeight - this[newFlr]._height;
this[newFlr]._x = flrBuffer[flrBuffer.length - 1]._x + flrBuffer[flrBuffer.length - 1]._width;
flrBuffer.push(this[newFlr]);
flrCount++;
if (flrDepth < 299) {
flrDepth++;
} else {
flrDepth = 200;
}
}
function addEnv(env) {
if (env == undefined) {
trace("err: Stage environment undefined!");
}
if (envBuffer.length == 0) {
newEnv = "env_0";
} else {
newEnv = envBuffer[envBuffer.length - 1]._name.substr(0, 4) + envCount;
}
this.attachMovie(env, newEnv, envDepth);
this[newEnv]._y = stageHeight - (this[newEnv]._height + 50);
this[newEnv]._x = envBuffer[envBuffer.length - 1]._x + envBuffer[envBuffer.length - 1]._width;
envBuffer.push(this[newEnv]);
envCount++;
if (envDepth < 199) {
envDepth++;
} else {
envDepth = 100;
}
}
function scrollStage(speed) {
if (dist >= stageLength) {
scenario.checkPoint(cp);
return(undefined);
}
if (speed == undefined) {
trace("err: Stage scroll speed undefined!");
return(undefined);
}
if (isObjectVisible()) {
addObject();
}
if (oVisBuffer.length > 0) {
scrollObject(speed);
}
scrollFlr(speed);
scrollEnv(speed);
scrollBg(speed);
dist = dist + speed;
}
function scrollObject(speed) {
i = 0;
while (i < oVisBuffer.length) {
oVisBuffer[i]._x = oVisBuffer[i]._x - speed;
i++;
}
if (oVisBuffer[0]._x <= (-1 * oVisBuffer[0]._width)) {
removeMovieClip(oVisBuffer.shift());
}
}
function scrollFlr(speed) {
if (((flrBuffer[flrBuffer.length - 1]._x - speed) + flrBuffer[flrBuffer.length - 1]._width) <= stageWidth) {
addFlr(this.flr);
}
i = 0;
while (i < flrBuffer.length) {
flrBuffer[i]._x = flrBuffer[i]._x - speed;
i++;
}
if (flrBuffer[0]._x <= (-1 * flrBuffer[0]._width)) {
removeMovieClip(flrBuffer.shift());
}
}
function scrollEnv(speed) {
speed = speed / 2;
if (((envBuffer[envBuffer.length - 1]._x - speed) + envBuffer[envBuffer.length - 1]._width) <= stageWidth) {
addEnv(this.env);
}
i = 0;
while (i < envBuffer.length) {
envBuffer[i]._x = envBuffer[i]._x - speed;
i++;
}
if (envBuffer[0]._x <= (-1 * envBuffer[0]._width)) {
removeMovieClip(envBuffer.shift());
}
}
function scrollBg(speed) {
speed = Math.round(speed / 16);
if (bg._x > (-1 * (bg._width - stageWidth))) {
bg._x = bg._x - speed;
}
}
function addSFXChannels(number) {
if (number == undefined) {
trace("err: SFX channels undefined");
return(undefined);
}
SFXChannel = new Array(number);
SFXStatus = new Array(number);
i = 0;
while (i < number) {
SFXChannel[i] = new Sound();
SFXStatus[i] = true;
SFXChannel[i].onSoundComplete = function () {
SFXStatus[i] = true;
};
i++;
}
}
function playSFX(name) {
i = 0;
if (i < SFXChannel.length) {
if (SFXStatus[i]) {
SFXChannel[i].attachSound(name);
SFXChannel[i].start();
}
return(undefined);
}
}
function setComboTimer() {
comboCount = 0;
this.attachMovie("oComboTimer", "oComboTimer", sDepth);
sDepth++;
}
function resetComboTimer() {
oComboTimer.count = 0;
oComboTimer.play();
comboCount++;
}
function displayMaxCombo() {
if (comboCount > 1) {
mCombo.display(comboCount);
}
}
function addObject() {
oCount++;
if (oDepth < 399) {
oDepth++;
} else {
oDepth = 300;
}
oID = "object" + oCount;
newObjectType = oTypeBuffer.shift();
newObjectDist = oDistBuffer.shift();
attachMovie(newObjectType, oID, oDepth);
oVisBuffer.push(this[oID]);
this[oID]._x = (stageWidth + newObjectDist) - dist;
this[oID]._y = stageHeight - 30;
}
function registerObject(oType, oDist) {
oTypeBuffer.push(oType);
oDistBuffer.push(oDist);
}
function spawnObject(oType, oPos) {
oCount++;
if (oDepth < 399) {
oDepth++;
} else {
oDepth = 300;
}
oID = "object" + oCount;
attachMovie(oType, oID, oDepth);
oVisBuffer.push(this[oID]);
this[oID]._x = oPos;
this[oID]._y = stageHeight - 30;
this[oID].intro = true;
return(this[oID]);
}
function isObjectVisible() {
oDist = oDistBuffer[0];
return(((dist >= oDist) ? true : false));
}
function pickupObject(hit, player) {
i = 0;
while (i < oVisBuffer.length) {
if (hit.hitTest(oVisBuffer[i]) && (oVisBuffer[i].id > 0)) {
weapon = player.weapon;
if (weapon > 0) {
spawnObject("oWeapon" + getWeaponName(weapon), player._x + player.dirValue(40));
}
player.weapon = oVisBuffer[i].id;
removeMovieClip(oVisBuffer[i]);
}
i++;
}
}
function isPlayerConnect(hit, object) {
i = 0;
while (i < pBuffer.length) {
if (hit.hitTest(pBuffer[i]) && (pBuffer[i].hitable)) {
temp = object._x + object.dirValue(hit._x);
if (Math.abs(temp - pBuffer[i]._x) <= 55) {
return(true);
}
}
i++;
}
return(false);
}
function isObjectConnect(hit, player) {
i = 0;
while (i < oVisBuffer.length) {
if (hit.hitTest(oVisBuffer[i]) && (oVisBuffer[i].hitable)) {
temp = player._x + player.dirValue(hit._x);
if (Math.abs(temp - oVisBuffer[i]._x) <= 60) {
return(true);
}
}
i++;
}
return(false);
}
function hitPlayer(hit, power, object, hard) {
i = 0;
while (i < pBuffer.length) {
if (hit.hitTest(pBuffer[i]) && (pBuffer[i].hitable)) {
pBuffer[i].getHit(power, hard, object);
attachMovie("oHitFlash01", "oHitFlash", pDepth + 1);
oHitFlash._x = pBuffer[i]._x + pBuffer[i].dirValue(Math.floor(pBuffer[i]._width / 2));
if (object.dir == -1) {
oHitFlash._xscale = oHitFlash._xscale * -1;
}
oHitFlash._y = hit._y + object._y;
}
i++;
}
}
function hitObject(hit, power, player, hard) {
i = 0;
while (i < oVisBuffer.length) {
if (hit.hitTest(oVisBuffer[i]) && (oVisBuffer[i].hitable)) {
hud.tRightBar = oVisBuffer[i];
oVisBuffer[i].getHit(power, hard, player);
resetComboTimer();
if (comboCount > 1) {
displayMaxCombo();
}
attachMovie("oHitFlash01", "oHitFlash", pDepth + 1);
oHitFlash._x = oVisBuffer[i]._x + oVisBuffer[i].dirValue(Math.floor(oVisBuffer[i]._width / 2));
if (player.dir == -1) {
oHitFlash._xscale = oHitFlash._xscale * -1;
}
oHitFlash._y = hit._y + player._y;
}
i++;
}
}
function hitAllObject(power, player, hard) {
result = false;
i = 0;
while (i < oVisBuffer.length) {
if (oVisBuffer[i].hitable) {
result = true;
hud.tRightBar = oVisBuffer[i];
oVisBuffer[i].getHit(power, hard, player);
resetComboTimer();
if (comboCount > 1) {
displayMaxCombo();
}
attachMovie("oHitFlash01", "oHitFlash", pDepth + 1);
oHitFlash._x = oVisBuffer[i]._x + oVisBuffer[i].dirValue(Math.floor(oVisBuffer[i]._width / 2));
if (player.dir == -1) {
oHitFlash._xscale = oHitFlash._xscale * -1;
}
oHitFlash._y = -20 + player._y;
}
i++;
}
return(result);
}
function slicePlayer(hit, power, object, hard) {
i = 0;
while (i < pBuffer.length) {
if (hit.hitTest(pBuffer[i]) && (pBuffer[i].hitable)) {
pBuffer[i].getHit(power, hard);
attachMovie("oHitFlash02", "oHitFlash", pDepth + 1);
oHitFlash._x = pBuffer[i]._x + pBuffer[i].dirValue(Math.floor(pBuffer[i]._width / 2));
if (object.dir == -1) {
oHitFlash._xscale = oHitFlash._xscale * -1;
}
oHitFlash._y = hit._y + object._y;
}
i++;
}
}
function sliceObject(hit, power, player, hard) {
i = 0;
while (i < oVisBuffer.length) {
if (hit.hitTest(oVisBuffer[i]) && (oVisBuffer[i].hitable)) {
hud.tRightBar = oVisBuffer[i];
oVisBuffer[i].getHit(power, hard);
resetComboTimer();
if (comboCount > 1) {
displayMaxCombo();
}
attachMovie("oHitFlash02", "oHitFlash", pDepth + 1);
oHitFlash._x = oVisBuffer[i]._x + oVisBuffer[i].dirValue(Math.floor(oVisBuffer[i]._width / 2));
if (player.dir == -1) {
oHitFlash._xscale = oHitFlash._xscale * -1;
}
oHitFlash._y = hit._y + player._y;
}
i++;
}
}
function getWeaponName(number) {
switch (number) {
case 1 :
return("Bamboo");
case 2 :
return("Golok");
case 3 :
return("Kipas");
}
trace("err: getWeaponName(number) not specified");
}
function getWeaponPower(number) {
switch (number) {
case 1 :
return(21);
case 2 :
return(22);
case 3 :
return(20);
}
trace("err: getWeaponPower(number) not specified");
}
function addPlayer(pType) {
pCount++;
if (pDepth < 499) {
pDepth++;
} else {
pDepth = 400;
}
pID = "player" + pCount;
attachMovie(pType, pID, pDepth);
pBuffer.push(this[pID]);
this[pID]._x = 10;
this[pID]._y = stageHeight - 30;
hud.tLeftBar = this[pID];
}
this.onLoad = init();
Symbol 747 Button
on (release) {
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
_parent.musicName = null;
_root.gotoAndStop("menu");
}
Symbol 753 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 753 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 753 MovieClip Frame 16
stop();
Symbol 757 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 757 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 757 MovieClip Frame 16
stop();
Symbol 761 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 761 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 761 MovieClip Frame 16
stop();
Symbol 765 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 765 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 765 MovieClip Frame 16
stop();
Symbol 769 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 769 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 769 MovieClip Frame 16
stop();
Symbol 773 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 773 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 773 MovieClip Frame 16
stop();
Symbol 777 MovieClip Frame 1
if (this == _parent.letterArray[0]) {
play();
} else {
stop();
}
Symbol 777 MovieClip Frame 3
_parent.count++;
_parent.letterArray[_parent.count].play();
Symbol 777 MovieClip Frame 16
stop();
Symbol 778 MovieClip Frame 1
letterArray = new Array(8);
n = new Array(8);
count = 0;
do {
error = false;
temp = random(8);
i = 0;
while (i < n.length) {
if (n[i] == temp) {
error = true;
break;
}
i++;
}
if (!error) {
n[count] = temp;
count++;
}
} while (count < n.length);
i = 0;
while (i < letterArray.length) {
switch (n[i]) {
case 0 :
letterArray[i] = letterp;
break;
case 1 :
letterArray[i] = lettere1;
break;
case 2 :
letterArray[i] = lettern;
break;
case 3 :
letterArray[i] = letterd;
break;
case 4 :
letterArray[i] = lettere2;
break;
case 5 :
letterArray[i] = letterk;
break;
case 6 :
letterArray[i] = lettera;
break;
case 7 :
letterArray[i] = letterr;
}
i++;
}
count = 0;
stop();
Symbol 779 MovieClip Frame 1
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
_parent.musicName = null;
Symbol 779 MovieClip Frame 75
_parent.gotoAndStop("intro02");
Symbol 782 MovieClip Frame 1
msg = "Pendekar is the most esteemed title known by Indonesian for martial artists or swordsmen. He shall do good deeds upon earth. He should be pure of heart and in no way performs the acts of evil nor commends them. He shall defend righteousness since he is strong while humble in demeanor. He is honest, trustworthy, and loyal. Only with that condition the true power of Pendekar will be revealed...";
this.attachMovie("oTyper", "typer", 10);
typer.msg = this.msg;
typer.textbox = this.textbox;
stop();
Symbol 782 MovieClip Frame 30
_root.gotoAndStop("menu");
Symbol 785 MovieClip Frame 1
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
if (_root.music) {
_parent.musicName = "music06.wav";
_parent.music.attachSound(_parent.musicName);
_parent.music.start(0, 9999);
}
Symbol 785 MovieClip Frame 53
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
_parent.musicName = null;
_root.gotoAndStop("menu");
Symbol 787 Button
on (release) {
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
_parent.musicName = null;
if (_root.currentLevel != 3) {
if (_root.gameType == 0) {
_root.menuName = "menuSelectStage";
} else if (_root.gameType == 1) {
_root.menuName = "menuSelectChallenge";
}
}
_root.gotoAndStop("menu");
}
Symbol 793 MovieClip Frame 1
if (_parent.musicName != null) {
_parent.music.stop(_parent.musicName);
}
if (_root.music) {
_parent.musicName = "music06.wav";
_parent.music.attachSound(_parent.musicName);
_parent.music.start(0, 9999);
}
this.l = _root.currentLevel;
switch (l) {
case 0 :
msg1 = "Congratulations";
code = "-";
msg2 = "Thanks for playing this single level beta version.";
_root.level01Clear = true;
break;
case 1 :
msg1 = "STAGE 3 IS NOW UNLOCKED!";
code = "HUTAN";
msg2 = "to unlock STAGE 3 from the extra options menu";
_root.level02Clear = true;
break;
case 2 :
msg1 = "STAGE 4 IS NOW UNLOCKED!";
code = "MARKAS";
msg2 = "to unlock STAGE 4 from the extra options menu";
_root.level03Clear = true;
break;
case 3 :
msg1 = "YOU'VE FINISHED THE GAME!";
code = "TAMAT";
msg2 = "to unlock ALL STAGES from the extra options menu";
_root.level04Clear = true;
break;
case 4 :
msg1 = "PRACTICE CLEARED!";
code = "JANNATA";
msg2 = "to give special message from the extra options menu";
_root.levelPracticeClear = true;
break;
case 5 :
msg1 = "KEROYOKAN CLEARED!";
code = "CURANG";
msg2 = "to unlock UNLIMITED MP from the extra options menu";
_root.challenge01Clear = true;
break;
case 6 :
msg1 = "KEROYOKAN 2 CLEARED!";
code = "CULAS";
msg2 = "to unlock INVINCIBLE from the extra options menu";
_root.challenge02Clear = true;
}
Symbol 793 MovieClip Frame 15
stop();
Symbol 794 MovieClip Frame 1
function init() {
if (runOnce) {
return(undefined);
}
runOnce = true;
if (_root.movieName != null) {
gotoAndStop(_root.movieName);
_root.movieName = null;
}
music = new Sound();
}
this.onLoad = init();
stop();