Frame 1
fscommand ("showmenu", false);
fscommand ("allowscale", false);
fscommand ("trapallkeys", true);
stop();
Instance of Symbol 53 MovieClip [a] "loading" in Frame 1
onClipEvent (load) {
bytesloaded = 0;
bytesTotal = 0;
bytesTotal = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
if ((bytesLoaded / bytesTotal) < 1) {
_root.stop();
} else {
_root.play();
}
_root.lifeBar_mc.loadBar_mc._xscale = (100 * bytesLoaded) / bytesTotal;
}
Frame 2
play();
Frame 11
play();
Frame 84
fscommand ("DirectDraw.SetDisplayMode", "640,480,32");
fscommand ("Win.SetPosition", "0,0");
fscommand ("Win.SetSize", "640,480");
_quality = "MEDIUM";
stop();
Instance of Symbol 495 MovieClip in Frame 84
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
gotoAndStop (85);
}
}
Frame 86
function drawLineMap(map, mapMC, tileName, tileW, tileH, viewAreaX) {
mapWidth = map[0].length;
mapHeight = map.length;
var _local2 = 0;
var _local1 = 0;
while (_local1 <= (viewAreaX + 1)) {
mapMC.attachMovie(tileName, (tileName + _local2) + _local1, _local1);
mapMC[(tileName + _local2) + _local1]._x = _local1 * tileW;
mapMC[(tileName + _local2) + _local1]._y = _local2 * tileH;
mapMC[(tileName + _local2) + _local1].gotoAndStop(map[_local2][_local1] + 1);
_local1++;
}
mapMC._x = (movieW - ((viewAreaX + 2) * tileW)) / 2;
}
function drawSquareMap(map, mapMC, tileName, tileW, tileH, viewAreaY, viewAreaX) {
mapWidth = map[0].length;
mapHeight = map.length;
var _local2 = 0;
while (_local2 <= (viewAreaY + 1)) {
var _local1 = 0;
while (_local1 <= (viewAreaX + 1)) {
mapMC.attachMovie(tileName, (tileName + _local2) + _local1, (_local2 * (mapWidth + 2)) + _local1);
mapMC[(tileName + _local2) + _local1]._x = _local1 * tileW;
mapMC[(tileName + _local2) + _local1]._y = _local2 * tileH;
mapMC[(tileName + _local2) + _local1].gotoAndStop(map[_local2][_local1] + 1);
_local1++;
}
_local2++;
}
mapMC._x = (movieW - ((viewAreaX + 2) * tileW)) / 2;
mapMC._y = (movieH - ((viewAreaY + 2) * tileH)) / 2;
}
function setChar(charName, charNewName, charPosX, charPosY, depth) {
mapWidth = mainMap_Obj.mapWidth;
mapHeight = mainMap_Obj.mapHeight;
mainMap.attachMovie(charName, charNewName, ((mapWidth + 2) * (mapHeight + 2)) + depth);
mainMap[charNewName]._x = (charPosX * mainMap_tileW) + (mainMap_tileW / 2);
mainMap[charNewName]._y = (charPosY * mainMap_tileH) + (mainMap_tileH / 2);
}
function setChar_qigong(charName, charNewName, charPosX, charPosY, depth) {
mapWidth = mainMap_Obj.mapWidth;
mapHeight = mainMap_Obj.mapHeight;
mainMap.attachMovie(charName, charNewName, ((mapWidth + 2) * (mapHeight + 2)) + depth);
mainMap[charNewName]._x = charPosX;
mainMap[charNewName]._y = charPosY;
trace(charName);
}
function setItem(myChar, itemType, itemName, depth) {
mapWidth = mainMap_Obj.mapWidth;
mapHeight = mainMap_Obj.mapHeight;
mainMap.attachMovie(itemType, itemName, ((mapWidth + 2) * (mapHeight + 2)) + depth);
mainMap[itemName]._x = myChar._x;
mainMap[itemName]._y = (mainMap_tileH * Math.floor(myChar._y / mainMap_tileH)) + (mainMap_tileH / 2);
}
function lineMap(dir, tileName, myMap, mapMC, linespeed, tileW, tileH) {
mapWidth = myMap[0].length;
mapHeight = myMap.length;
var _local4 = 0;
var _local7 = 14;
if ((dir == "left") && (lRightX > (_local7 - 1))) {
mapMC._x = mapMC._x + linespeed;
lineLeftX = lineLeftX + linespeed;
if (lineLeftX >= tileW) {
lLeftX--;
i = lTopX;
while (i <= _local4) {
mapMC.attachMovie(tileName, (tileName + i) + lLeftX, (i * (MapWidth + 2)) + lLeftX);
mapMC[(tileName + i) + lLeftX]._x = lLeftX * tileW;
mapMC[(tileName + i) + lLeftX]._y = i * tileH;
mapMC[(tileName + i) + lLeftX].gotoAndStop(myMap[i][lLeftX] + 1);
removeMovieClip(mapMC[(tileName + i) + lRightX]);
i++;
}
lineLeftX = lineLeftX - tileW;
lRightX--;
}
} else if ((dir == "right") && (lLeftX < (mapWidth - _local7))) {
mapMC._x = mapMC._x - linespeed;
lineRightX = lineRightX + linespeed;
if (lineRightX >= tileW) {
lRightX++;
i = lTopX;
while (i <= _local4) {
mapMC.attachMovie(tileName, (tileName + i) + lRightX, (i * (MapWidth + 2)) + lRightX);
mapMC[(tileName + i) + lRightX]._x = lRightX * tileW;
mapMC[(tileName + i) + lRightX]._y = i * tileH;
mapMC[(tileName + i) + lRightX].gotoAndStop(myMap[i][lRightX] + 1);
removeMovieClip(mapMC[(tileName + i) + lLeftX]);
i++;
}
lineRightX = lineRightX - tileW;
lLeftX++;
}
}
}
function scrollMap(dir, tileName, myMap, mapMC, scrollspeed, tileW, tileH) {
mapWidth = myMap[0].length;
mapHeight = myMap.length;
var _local4 = 5;
var _local7 = viewX;
if ((dir == "left") && (rightX > (_local7 - 1))) {
mapMC._x = mapMC._x + scrollspeed;
scrollLeftX = scrollLeftX + scrollspeed;
if (scrollLeftX >= tileW) {
LeftX--;
i = topY;
while (i <= _local4) {
mapMC.attachMovie(tileName, (tileName + i) + LeftX, (i * (MapWidth + 2)) + LeftX);
mapMC[(tileName + i) + LeftX]._x = LeftX * tileW;
mapMC[(tileName + i) + LeftX]._y = i * tileH;
mapMC[(tileName + i) + LeftX].gotoAndStop(myMap[i][LeftX] + 1);
removeMovieClip(mapMC[(tileName + i) + rightX]);
i++;
}
scrollLeftX = scrollLeftX - tileW;
RightX--;
}
} else if ((dir == "right") && (leftX < (mapWidth - _local7))) {
mapMC._x = mapMC._x - scrollspeed;
scrollRightX = scrollRightX + scrollspeed;
if (scrollRightX >= tileW) {
rightX++;
i = topY;
while (i <= _local4) {
mapMC.attachMovie(tileName, (tileName + i) + rightX, (i * (MapWidth + 2)) + rightX);
mapMC[(tileName + i) + rightX]._x = rightX * tileW;
mapMC[(tileName + i) + rightX]._y = i * tileH;
mapMC[(tileName + i) + rightX].gotoAndStop(myMap[i][rightX] + 1);
removeMovieClip(mapMC[(tileName + i) + leftX]);
i++;
}
scrollRightX = scrollRightX - tileW;
LeftX++;
}
}
}
function setXiaoBing(map, mapMC) {
var _local4 = 0;
if (mapMC.char_mc.centerX > (mainMap_Obj.mapWidth - viewX)) {
var _local2 = 0;
var _local5 = mapMC.char_mc.centerX - viewX;
while (map[_local4][_local5] >= noPass) {
_local2++;
_local5 = _local5 - _local2;
}
} else {
var _local2 = 0;
var _local5 = mapMC.char_mc.centerX + viewX;
while (map[_local4][_local5] >= noPass) {
_local2++;
_local5 = _local5 + _local2;
}
}
var _local2 = 1;
while (_local2 < 4) {
var _local3 = Math.floor(Math.random() * 3) + (enemyLabel * 3);
if ((!mapMC[("xiaoBing" + _local3) + _local2]) && (addNewCharNum > 0)) {
setChar("xiaoBing" + _local3, ("xiaoBing" + _local3) + _local2, _local5, _local4, (_global.xiaoBing_DEPTH + _local2) + (3 * _local3));
addNewCharNum--;
}
_local2++;
}
}
HILL_map = [[0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1]];
mainMap_map = [[25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [25, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [25, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 25, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24], [25, 0, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 20, 20, 20, 20, 20, 24, 23, 23, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 21, 24, 25, 20, 20, 20, 20, 20, 20, 20, 20, 20, 22, 0, 24], [25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 0, 24]];
var movieW = 512;
var movieH = 320;
var jumpNoPass = 20;
var noPass = 20;
var npcAIP = 300;
var enemyLabel = 0;
var expoint = 0;
var mainCharLevel = 1;
var mainMap_tileW = 64;
var mainMap_tileH = 64;
var addNewCharNum = 3;
var mainMap_Obj = new BgMap(mainMap, mainMap_map[0].length, mainMap_map.length);
var dropS = new Sound();
dropS.attachSound("dropItem");
_global.xiaoBing_DEPTH = 10;
_global.huohua_DEPTH = 30;
_global.item_DEPTH = 40;
_global.SHOWDEPTH = 60;
var viewX = 8;
var lineLeftX = 0;
var lineRightX = 0;
var lineTopY = 0;
var linebottomY = 0;
var lLeftX = 0;
var lRightX = 17;
var lTopX = 0;
var scrollLeftX = 0;
var scrollRightX = 0;
var scrollTopY = 0;
var scrollbottomY = 0;
var leftX = 0;
var rightX = 9;
var topY = 0;
drawLineMap(HILL_map, hillMap, "HILL_tile", 32, 32, 16);
drawSquareMap(mainMap_map, mainMap, "mainMap_tile", 64, 64, 4, 8);
setChar("char_mc", "char_mc", 4, 3, 20);
this.onEnterFrame = function () {
if (mainMap.char_mc) {
mainCharLevel = mainMap.char_mc.Level;
}
if (addNewCharNum > 0) {
enemyLabel = 0;
setXiaoBing(mainMap_map, mainMap);
}
};
Symbol 5 MovieClip Frame 1
function HitOther(otherChar, otherChar_qigong_mc) {
if ((_parent.alive == true) && (otherChar.alive == true)) {
if ((!hasHited) && (_parent.attack_mc.attackArea_mc.hitTest(otherChar.hurtArea_mc))) {
otherChar.hurtSwitch = true;
otherChar.hurtPoint = _parent.attackPower;
var _local3 = 1;
while (_local3 < 4) {
if (!_parent._parent["huohua_mc1" + _local3]) {
_parent._parent._parent.setChar_qigong("huohua_mc", "huohua_mc1" + _local3, otherChar._x, otherChar._y, _global.huohua_DEPTH + _local3);
break;
}
_local3++;
}
hasHited = true;
} else if (hasHited && (!_parent.attack_mc.attackArea_mc.hitTest(otherChar.hurtArea_mc))) {
hasHited = false;
}
if (((!hasHited2) && (hitTest(otherChar.attack_mc.attackArea_mc))) || (hitTest(otherChar.jumpAttack_mc.attackArea_mc))) {
_parent.hurtSwitch = true;
if (hitTest(otherChar.upAttack_mc.attackArea_mc)) {
_parent.hurtPoint = otherChar.upAttackPower;
_parent._parent._parent.expoint = _parent._parent._parent.expoint + otherChar.upAttackPower;
otherChar.uniSw = true;
} else {
_parent.hurtPoint = otherChar.attackPower;
_parent._parent._parent.expoint = _parent._parent._parent.expoint + otherChar.attackPower;
otherChar.uniSw = true;
}
var _local3 = 1;
while (_local3 < 4) {
if (!_parent._parent["huohua_mc" + _local3]) {
_parent._parent._parent.setChar_qigong("huohua_mc", "huohua_mc" + _local3, _parent._x, _parent._y, _global.huohua_DEPTH + _local3);
break;
}
_local3++;
}
hasHited2 = true;
otherChar.hasHited = true;
} else if ((hasHited2 && (!hitTest(otherChar.attack_mc.attackArea_mc))) && (!hitTest(otherChar.jumpAttack_mc.attackArea_mc))) {
hasHited2 = false;
otherChar.hasHited = false;
}
if (hitTest(otherChar_qigong_mc.attackArea_mc)) {
_parent.hurtSwitch = true;
otherChar_qigong_mc.hitSwitch = true;
_parent.hurtPoint = otherChar.magicAttackPower;
_parent._parent._parent.expoint = _parent._parent._parent.expoint + otherChar.magicAttackPower;
if ((((otherChar.magicType == "fire4") || (otherChar.magicType == "fire5")) || (otherChar.magicType == "fire6")) || (otherChar.magicType == "fire7")) {
var _local3 = 1;
while (_local3 < 4) {
if (!_parent._parent["huohua_mc" + _local3]) {
_parent._parent._parent.setChar_qigong("char_qigongLevel3_xiaoshi_mc", "huohua_mc" + _local3, _parent._x, _parent._y, _global.huohua_DEPTH + _local3);
break;
}
_local3++;
}
}
}
}
}
var hasHited = false;
var hasHited2 = false;
this.onEnterFrame = function () {
HitOther(_parent._parent.char_mc, _parent._parent.char_qigong_mc);
};
Symbol 36 MovieClip [xiaoBingA_mc] Frame 1
var alive = true;
var totalBlood = 40;
var nowBlood = totalBlood;
var hurtPoint = 0;
var attackPower = 20;
var hitPower = 10;
var speed = 4;
var heightV = 0;
var jumpHeight = 18;
var accelerate = 4;
var height = 60;
var width = 40;
var timer = 0;
var Ftimer = 0;
var jumpAllowed = true;
var jumpSwitch = false;
var attackSwitch = false;
var jumpAttackSwitch = false;
var hurtSwitch = false;
this.onEnterFrame = function () {
function findAim(destx) {
if (Ftimer == 0) {
Ftimer = 30;
turnLeft = false;
turnRight = false;
if ((x - destx) > 0) {
turnLeft = true;
} else if ((x - destx) < 0) {
turnRight = true;
}
}
if (Ftimer > 0) {
Ftimer--;
if ((turnLeft == true) && (attackSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
}
charAction = "left";
} else if ((turnRight == true) && (attackSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
}
charAction = "right";
}
}
}
function userControl() {
if (alive) {
if (((((AI >= 0) && (AI < 50)) && (attackSwitch == false)) && (jumpAttackSwitch == false)) && (hurtSwitch == false)) {
jumpSwitch = true;
}
if (((AI >= 50) && (AI < 100)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
attackSwitch = true;
} else if (jumpAllowed == false) {
jumpAttackSwitch = true;
}
} else if (((AI >= 100) && (AI < _parent._parent.npcAIP)) && (hurtSwitch == false)) {
findAim(_parent.char_mc._x);
}
if ((((jumpAllowed == true) && (charAction == "stand")) && (attackSwitch == false)) && (hurtSwitch == false)) {
gotoAndStop ("stand");
}
}
}
function jumpAction() {
gotoAndStop ("jump");
if (jumpAllowed == true) {
heightV = -jumpHeight;
gravity();
}
}
function stopAction(action_mc) {
if (action_mc._currentframe == action_mc._totalframes) {
return(false);
}
return(true);
}
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
function passAbleTest(myMap, tileNum, tileW, tileH) {
var _local15 = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
y = (_local13 * tileH) + ((height * 2) / 3);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
_xscale = 100;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
_xscale = -100;
}
}
x = _x;
y = _y;
var charAction = "stand";
if (timer == 0) {
AI = random(_parent._parent.npcAIP);
timer = 30;
}
if (timer > 0) {
timer--;
}
userControl();
if (hurtSwitch == true) {
attackSwitch = false;
gotoAndStop ("hurt");
if (hurt_mc._currentframe == 1) {
nowBlood = nowBlood - hurtPoint;
}
hurtSwitch = stopAction(hurt_mc);
}
if ((nowBlood <= 0) && (hurtSwitch == false)) {
gotoAndStop ("dead");
alive = false;
if (dead_mc._currentframe == dead_mc._totalframes) {
removeMovieClip("");
}
}
if ((y - (_height / 2)) >= _parent._parent.movieH) {
nowBlood = 0;
}
if (jumpSwitch == true) {
jumpAction();
jumpSwitch = false;
}
if ((attackSwitch == true) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("attack");
}
attackSwitch = stopAction(attack_mc);
}
if (jumpAttackSwitch == true) {
gotoAndStop ("jumpAttack");
if (jumpAllowed == true) {
jumpAttackSwitch = false;
}
}
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
_x = x;
_y = y;
};
Symbol 36 MovieClip [xiaoBingA_mc] Frame 2
stop();
Symbol 36 MovieClip [xiaoBingA_mc] Frame 3
stop();
Symbol 36 MovieClip [xiaoBingA_mc] Frame 4
stop();
Symbol 36 MovieClip [xiaoBingA_mc] Frame 5
stop();
Symbol 36 MovieClip [xiaoBingA_mc] Frame 6
stop();
Symbol 36 MovieClip [xiaoBingA_mc] Frame 7
stop();
Symbol 45 MovieClip [huohua_mc] Frame 1
this.onEnterFrame = function () {
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 53 MovieClip [a] Frame 1
stop();
Symbol 62 Button
on (release) {
getURL ("http://www.vanadu.net", "_blank");
}
Symbol 546 MovieClip [__Packages.LifeBar] Frame 0
class LifeBar
{
var myLifeBar_mc, myChar_mc, totalBloodPts, nowBloodPts;
function LifeBar (param_myLifeBar_mc, param_myChar_mc) {
myLifeBar_mc = param_myLifeBar_mc;
myChar_mc = param_myChar_mc;
totalBloodPts = myChar_mc.totalBlood;
nowBloodPts = totalBloodPts;
}
function getBloodPts() {
totalBloodPts = myChar_mc.totalBlood;
nowBloodPts = myChar_mc.nowBlood;
myLifeBar_mc.blood_mc._xscale = (nowBloodPts / totalBloodPts) * 100;
}
function getMagicPts() {
totalBloodPts = myChar_mc.totalMagic;
nowBloodPts = myChar_mc.nowMagic;
myLifeBar_mc.magicP_mc._xscale = (nowBloodPts / totalBloodPts) * 100;
}
}
Symbol 547 MovieClip [__Packages.Timer] Frame 0
class Timer
{
var timerNum;
function Timer () {
timerNum = 0;
}
function clearTimer() {
timerNum = 0;
}
function timerIncrease(param_timerTop) {
timerNum++;
if (timerNum >= param_timerTop) {
return(false);
}
return(true);
}
}
Symbol 548 MovieClip [__Packages.Qigong] Frame 0
class Qigong
{
var myQigong_mc, myChar_mc, power, speed, initPosX, initPosY, moveDistance, moveDir;
function Qigong (param_myQigong_mc, param_myChar_mc, param_power, param_speed, param_moveDistance) {
myQigong_mc = param_myQigong_mc;
myChar_mc = param_myChar_mc;
power = param_power;
speed = param_speed;
initPosX = myQigong_mc._x;
initPosY = myQigong_mc._y;
moveDistance = param_moveDistance;
}
function checkMyCharDir() {
if (myChar_mc._xscale == 100) {
moveDir = 1;
} else if (myChar_mc._xscale == -100) {
moveDir = 0;
}
}
function moveDisLimit() {
if (Math.abs(myQigong_mc._x - initPosX) >= moveDistance) {
moveDir = -1;
}
}
function qigongLineMove() {
if (moveDir == 1) {
myQigong_mc._xscale = 100;
myQigong_mc._x = myQigong_mc._x + speed;
} else if (moveDir == 0) {
myQigong_mc._xscale = -100;
myQigong_mc._x = myQigong_mc._x - speed;
} else if (moveDir == -1) {
myQigong_mc.gotoAndStop("xiaoshi");
}
}
function qigongHit() {
if (myQigong_mc.hitSwitch == true) {
moveDir = -1;
}
}
function passTest(myMap) {
var _local2 = myQigong_mc._x;
var _local5 = myQigong_mc._y;
var _local6 = 64;
var _local3 = 64;
var _local10 = Math.floor(_local2 / _local3);
var _local4 = Math.floor(_local5 / _local6);
var _local7 = Math.floor((_local2 - (myQigong_mc.attackArea_mc._width / 2)) / _local3);
var _local8 = Math.floor(((_local2 + (myQigong_mc.attackArea_mc._width / 2)) - 1) / _local3);
if (myMap[_local4][_local7] > 0) {
moveDir = -1;
}
if (myMap[_local4][_local8] > 0) {
moveDir = -1;
}
myQigong_mc._x = _local2;
myQigong_mc._y = _local5;
}
}
Symbol 549 MovieClip [__Packages.BgMap] Frame 0
class BgMap
{
var myMap_mc, mapWidth, mapHeight;
function BgMap (param_myMap_mc, param_mapWidth, param_mapHeight) {
myMap_mc = param_myMap_mc;
mapWidth = param_mapWidth;
mapHeight = param_mapHeight;
}
}
Symbol 63 MovieClip Frame 1
var char_LifeBar = new LifeBar(_parent.lifeBar_mc, _parent.mainMap.char_mc);
this.onEnterFrame = function () {
char_LifeBar.getBloodPts();
};
Symbol 68 MovieClip Frame 10
stop();
Symbol 119 MovieClip [xiaoBing0] Frame 1
function dropItem(itemName) {
if (itemName == "jitui_mc") {
var _local6 = 0;
} else if (itemName == "jirou_mc") {
var _local6 = 1;
} else if (itemName == "mpbottle_mc") {
var _local6 = 2;
} else if (itemName == "jewel_mc") {
var _local6 = 3;
}
var _local4 = 1;
while (_local4 < 4) {
if (!_parent[itemName + _local4]) {
_parent._parent.setItem(this, itemName, itemName + _local4, (_global.item_DEPTH + _local4) + (5 * _local6));
break;
}
_local4++;
}
}
var totalBlood = 160;
var nowBlood = totalBlood;
var attackPower = 80;
var speed = 4;
var dropItemName = "jewel_mc";
var alive = true;
var hurtPoint = 0;
var heightV = 0;
var jumpHeight = 18;
var accelerate = 4;
var height = 90;
var width = 54;
var height_cutNum = 4;
var timer = 0;
var Ftimer = 0;
var jumpAllowed = true;
var jumpSwitch = false;
var attackSwitch = false;
var jumpAttackSwitch = false;
var hurtSwitch = false;
totalBlood = totalBlood + (_parent.char_mc.Level * 10);
nowBlood = totalBlood;
var centerX = Math.floor(x / _parent._parent.mainMap_tileW);
var tsp = speed;
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function charMove(dir, dirName) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
_xscale = (100 * dir);
}
charAction = dirName;
}
function findAim(destx, myMap, tileNum, tileW, tileH) {
var _local2 = Math.floor((x - (width / 2)) / tileW);
var _local3 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local1 = Math.floor((((y + (height / 2)) - 1) / tileH) + 1);
if (Ftimer == 0) {
Ftimer = 30;
turnLeft = false;
turnRight = false;
if ((x - destx) > 0) {
turnLeft = true;
} else if ((x - destx) < 0) {
turnRight = true;
}
}
if (Ftimer > 0) {
Ftimer--;
if ((((turnLeft == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local2] >= tileNum)) {
charMove(1, "left");
} else if ((((turnRight == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local3] >= tileNum)) {
charMove(-1, "right");
}
}
}
function userControl() {
if (alive) {
if (((AI >= 100) && (AI < 200)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
attackSwitch = true;
} else if (jumpAllowed == false) {
jumpAttackSwitch = true;
}
} else if (((AI >= 200) && (AI < _parent._parent.npcAIP)) && (hurtSwitch == false)) {
findAim(_parent.char_mc._x, _parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
}
if ((((((AI >= 0) && (AI <= 100)) && (jumpAllowed == true)) && (charAction == "stand")) && (attackSwitch == false)) && (hurtSwitch == false)) {
gotoAndStop ("stand");
}
}
}
function jumpAction() {
gotoAndStop ("jump");
if (jumpAllowed == true) {
heightV = -jumpHeight;
gravity();
}
}
function stopAction(action_mc) {
if (action_mc._currentframe == action_mc._totalframes) {
return(false);
}
return(true);
}
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
x = _x;
y = _y;
var charAction = "stand";
if (timer == 0) {
AI = random(_parent._parent.npcAIP);
timer = 20;
}
if (timer > 0) {
timer--;
}
userControl();
if ((nowBlood > 0) && (hurtSwitch == true)) {
attackSwitch = false;
gotoAndStop ("hurt");
if (hurt_mc._currentframe == 1) {
nowBlood = nowBlood - hurtPoint;
}
if ((_parent.char_mc.attNum == 3) || (_parent.char_qigong_mc && (_parent.char_mc.Level >= 4))) {
if (_xscale == 100) {
charAction = "right";
speed = 4;
} else if (_xscale == -100) {
charAction = "left";
speed = 4;
}
}
hurtSwitch = stopAction(hurt_mc);
} else if (nowBlood > 0) {
speed = tsp;
}
if (_parent.char_mc._x > x) {
_xscale = -100;
} else if (_parent.char_mc._x < x) {
_xscale = 100;
}
if (nowBlood <= 0) {
gotoAndStop ("dead");
alive = false;
if (dead_mc._currentframe < (dead_mc._totalframes - 15)) {
if (jumpAllowed == true) {
heightV = -18;
gravity();
}
if (_xscale == -100) {
charAction = "left";
} else if (_xscale == 100) {
charAction = "right";
}
}
if (dead_mc._currentframe == dead_mc._totalframes) {
dropItem(dropItemName);
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
}
if ((y - (_height / 2)) >= _parent._parent.movieH) {
nowBlood = 0;
}
if (jumpSwitch == true) {
jumpAction();
jumpSwitch = false;
}
if ((attackSwitch == true) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("attack");
}
attackSwitch = stopAction(attack_mc);
}
if (jumpAttackSwitch == true) {
gotoAndStop ("jumpAttack");
if (jumpAllowed == true) {
jumpAttackSwitch = false;
}
}
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
if (centerX < (_parent.char_mc.centerX - 6)) {
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
_x = x;
_y = y;
};
Symbol 119 MovieClip [xiaoBing0] Frame 2
stop();
Symbol 119 MovieClip [xiaoBing0] Frame 3
stop();
Symbol 119 MovieClip [xiaoBing0] Frame 4
stop();
Symbol 119 MovieClip [xiaoBing0] Frame 5
stop();
Symbol 119 MovieClip [xiaoBing0] Frame 6
stop();
Symbol 160 MovieClip [xiaoBing1] Frame 1
function dropItem(itemName) {
if (itemName == "jitui_mc") {
var _local6 = 0;
} else if (itemName == "jirou_mc") {
var _local6 = 1;
} else if (itemName == "mpbottle_mc") {
var _local6 = 2;
} else if (itemName == "jewel_mc") {
var _local6 = 3;
}
var _local4 = 1;
while (_local4 < 4) {
if (!_parent[itemName + _local4]) {
_parent._parent.setItem(this, itemName, itemName + _local4, (_global.item_DEPTH + _local4) + (5 * _local6));
break;
}
_local4++;
}
}
var totalBlood = 120;
var nowBlood = totalBlood;
var attackPower = 60;
var speed = 12;
var ranNum = random(3);
if (ranNum == 1) {
var dropItemName = "jirou_mc";
} else {
var dropItemName = "jitui_mc";
}
trace(ranNum);
var alive = true;
var hurtPoint = 0;
var heightV = 0;
var jumpHeight = 18;
var accelerate = 4;
var height = 90;
var width = 54;
var height_cutNum = 4;
var timer = 0;
var Ftimer = 0;
var jumpAllowed = true;
var jumpSwitch = false;
var attackSwitch = false;
var jumpAttackSwitch = false;
var hurtSwitch = false;
totalBlood = totalBlood + (_parent.char_mc.Level * 10);
nowBlood = totalBlood;
var centerX = Math.floor(x / _parent._parent.mainMap_tileW);
var tsp = speed;
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function charMove(dir, dirName) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
_xscale = (100 * dir);
}
charAction = dirName;
}
function findAim(destx, myMap, tileNum, tileW, tileH) {
var _local2 = Math.floor((x - (width / 2)) / tileW);
var _local3 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local1 = Math.floor((((y + (height / 2)) - 1) / tileH) + 1);
if (Ftimer == 0) {
Ftimer = 30;
turnLeft = false;
turnRight = false;
if ((x - destx) > 0) {
turnLeft = true;
} else if ((x - destx) < 0) {
turnRight = true;
}
}
if (Ftimer > 0) {
Ftimer--;
if ((((turnLeft == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local2] >= tileNum)) {
charMove(1, "left");
} else if ((((turnRight == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local3] >= tileNum)) {
charMove(-1, "right");
}
}
}
function userControl() {
if (alive) {
if (((AI >= 100) && (AI < 200)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
attackSwitch = true;
} else if (jumpAllowed == false) {
jumpAttackSwitch = true;
}
} else if (((AI >= 200) && (AI < _parent._parent.npcAIP)) && (hurtSwitch == false)) {
findAim(_parent.char_mc._x, _parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
}
if ((((((AI >= 0) && (AI <= 100)) && (jumpAllowed == true)) && (charAction == "stand")) && (attackSwitch == false)) && (hurtSwitch == false)) {
gotoAndStop ("stand");
}
}
}
function jumpAction() {
gotoAndStop ("jump");
if (jumpAllowed == true) {
heightV = -jumpHeight;
gravity();
}
}
function stopAction(action_mc) {
if (action_mc._currentframe == action_mc._totalframes) {
return(false);
}
return(true);
}
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
x = _x;
y = _y;
var charAction = "stand";
if (timer == 0) {
AI = random(_parent._parent.npcAIP);
timer = 20;
}
if (timer > 0) {
timer--;
}
userControl();
if ((nowBlood > 0) && (hurtSwitch == true)) {
attackSwitch = false;
gotoAndStop ("hurt");
if (hurt_mc._currentframe == 1) {
nowBlood = nowBlood - hurtPoint;
}
if ((_parent.char_mc.attNum == 3) || (_parent.char_qigong_mc && (_parent.char_mc.Level >= 4))) {
if (_xscale == 100) {
charAction = "right";
speed = 4;
} else if (_xscale == -100) {
charAction = "left";
speed = 4;
}
}
hurtSwitch = stopAction(hurt_mc);
} else if (nowBlood > 0) {
speed = tsp;
}
if (_parent.char_mc._x > x) {
_xscale = -100;
} else if (_parent.char_mc._x < x) {
_xscale = 100;
}
if (nowBlood <= 0) {
gotoAndStop ("dead");
alive = false;
if (dead_mc._currentframe < (dead_mc._totalframes - 15)) {
if (jumpAllowed == true) {
heightV = -18;
gravity();
}
if (_xscale == -100) {
charAction = "left";
} else if (_xscale == 100) {
charAction = "right";
}
}
if (dead_mc._currentframe == dead_mc._totalframes) {
dropItem(dropItemName);
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
}
if ((y - (_height / 2)) >= _parent._parent.movieH) {
nowBlood = 0;
}
if (jumpSwitch == true) {
jumpAction();
jumpSwitch = false;
}
if ((attackSwitch == true) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("attack");
}
attackSwitch = stopAction(attack_mc);
}
if (jumpAttackSwitch == true) {
gotoAndStop ("jumpAttack");
if (jumpAllowed == true) {
jumpAttackSwitch = false;
}
}
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
if (centerX < (_parent.char_mc.centerX - 6)) {
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
_x = x;
_y = y;
};
Symbol 160 MovieClip [xiaoBing1] Frame 2
stop();
Symbol 160 MovieClip [xiaoBing1] Frame 3
stop();
Symbol 160 MovieClip [xiaoBing1] Frame 4
stop();
Symbol 160 MovieClip [xiaoBing1] Frame 5
stop();
Symbol 160 MovieClip [xiaoBing1] Frame 6
stop();
Symbol 194 MovieClip [xiaoBing2] Frame 1
function dropItem(itemName) {
if (itemName == "jitui_mc") {
var _local6 = 0;
} else if (itemName == "jirou_mc") {
var _local6 = 1;
} else if (itemName == "mpbottle_mc") {
var _local6 = 2;
} else if (itemName == "jewel_mc") {
var _local6 = 3;
}
var _local4 = 1;
while (_local4 < 4) {
if (!_parent[itemName + _local4]) {
_parent._parent.setItem(this, itemName, itemName + _local4, (_global.item_DEPTH + _local4) + (5 * _local6));
break;
}
_local4++;
}
}
var totalBlood = 120;
var nowBlood = totalBlood;
var attackPower = 60;
var speed = 8;
var dropItemName = "mpbottle_mc";
var alive = true;
var hurtPoint = 0;
var heightV = 0;
var jumpHeight = 18;
var accelerate = 4;
var height = 90;
var width = 54;
var height_cutNum = 4;
var timer = 0;
var Ftimer = 0;
var jumpAllowed = true;
var jumpSwitch = false;
var attackSwitch = false;
var jumpAttackSwitch = false;
var hurtSwitch = false;
totalBlood = totalBlood + (_parent.char_mc.Level * 10);
nowBlood = totalBlood;
var centerX = Math.floor(x / _parent._parent.mainMap_tileW);
var tsp = speed;
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function charMove(dir, dirName) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
_xscale = (100 * dir);
}
charAction = dirName;
}
function findAim(destx, myMap, tileNum, tileW, tileH) {
var _local2 = Math.floor((x - (width / 2)) / tileW);
var _local3 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local1 = Math.floor((((y + (height / 2)) - 1) / tileH) + 1);
if (Ftimer == 0) {
Ftimer = 30;
turnLeft = false;
turnRight = false;
if ((x - destx) > 0) {
turnLeft = true;
} else if ((x - destx) < 0) {
turnRight = true;
}
}
if (Ftimer > 0) {
Ftimer--;
if ((((turnLeft == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local2] >= tileNum)) {
charMove(1, "left");
} else if ((((turnRight == true) && (attackSwitch == false)) && (hurtSwitch == false)) && (myMap[_local1][_local3] >= tileNum)) {
charMove(-1, "right");
}
}
}
function userControl() {
if (alive) {
if (((AI >= 100) && (AI < 200)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
attackSwitch = true;
} else if (jumpAllowed == false) {
jumpAttackSwitch = true;
}
} else if (((AI >= 200) && (AI < _parent._parent.npcAIP)) && (hurtSwitch == false)) {
findAim(_parent.char_mc._x, _parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
}
if ((((((AI >= 0) && (AI <= 100)) && (jumpAllowed == true)) && (charAction == "stand")) && (attackSwitch == false)) && (hurtSwitch == false)) {
gotoAndStop ("stand");
}
}
}
function jumpAction() {
gotoAndStop ("jump");
if (jumpAllowed == true) {
heightV = -jumpHeight;
gravity();
}
}
function stopAction(action_mc) {
if (action_mc._currentframe == action_mc._totalframes) {
return(false);
}
return(true);
}
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
x = _x;
y = _y;
var charAction = "stand";
if (timer == 0) {
AI = random(_parent._parent.npcAIP);
timer = 20;
}
if (timer > 0) {
timer--;
}
userControl();
if ((nowBlood > 0) && (hurtSwitch == true)) {
attackSwitch = false;
gotoAndStop ("hurt");
if (hurt_mc._currentframe == 1) {
nowBlood = nowBlood - hurtPoint;
}
if ((_parent.char_mc.attNum == 3) || (_parent.char_qigong_mc && (_parent.char_mc.Level >= 4))) {
if (_xscale == 100) {
charAction = "right";
speed = 4;
} else if (_xscale == -100) {
charAction = "left";
speed = 4;
}
}
hurtSwitch = stopAction(hurt_mc);
} else if (nowBlood > 0) {
speed = tsp;
}
if (_parent.char_mc._x > x) {
_xscale = -100;
} else if (_parent.char_mc._x < x) {
_xscale = 100;
}
if (nowBlood <= 0) {
gotoAndStop ("dead");
alive = false;
if (dead_mc._currentframe < (dead_mc._totalframes - 15)) {
if (jumpAllowed == true) {
heightV = -18;
gravity();
}
if (_xscale == -100) {
charAction = "left";
} else if (_xscale == 100) {
charAction = "right";
}
}
if (dead_mc._currentframe == dead_mc._totalframes) {
dropItem(dropItemName);
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
}
if ((y - (_height / 2)) >= _parent._parent.movieH) {
nowBlood = 0;
}
if (jumpSwitch == true) {
jumpAction();
jumpSwitch = false;
}
if ((attackSwitch == true) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("attack");
}
attackSwitch = stopAction(attack_mc);
}
if (jumpAttackSwitch == true) {
gotoAndStop ("jumpAttack");
if (jumpAllowed == true) {
jumpAttackSwitch = false;
}
}
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
if (centerX < (_parent.char_mc.centerX - 6)) {
_parent._parent.addNewCharNum++;
removeMovieClip("");
}
_x = x;
_y = y;
};
Symbol 194 MovieClip [xiaoBing2] Frame 2
stop();
Symbol 194 MovieClip [xiaoBing2] Frame 3
stop();
Symbol 194 MovieClip [xiaoBing2] Frame 4
stop();
Symbol 194 MovieClip [xiaoBing2] Frame 5
stop();
Symbol 194 MovieClip [xiaoBing2] Frame 6
stop();
Symbol 227 MovieClip Frame 10
stop();
Symbol 319 MovieClip Frame 9
gotoAndStop (1);
Symbol 328 MovieClip Frame 9
gotoAndStop (1);
Symbol 366 MovieClip [char_mc] Frame 1
function LevelUpProcess() {
totalBlood = 400 + (Level * 10);
totalMagic = 400 + (Level * 10);
nowBlood = totalBlood;
nowMagic = totalMagic;
attackPower = 20 + (Level * 5);
upAttackPower = 40 + (Level * 10);
Level++;
if (Level < 8) {
N = Level;
}
}
function mpReFull() {
if (nowMagic <= totalMagic) {
nowMagic = nowMagic + 0.5;
}
}
function actionPause(pA) {
if (this.hasHited) {
if (actT.timerIncrease(4)) {
this[pA].stop();
heightV = 2;
} else {
this.hasHited = false;
}
} else if (this[pA]._currentframe < this[pA].totalframes) {
this[pA].play();
} else if (this[pA]._currentframe == this[pA].totalframes) {
this[pA].gotoAndStop(1);
actT.clearTimer();
}
}
var Level = _root.mainCharLevel;
var totalBlood = 400;
var totalMagic = 400;
var attackPower = 20;
var upAttackPower = 40;
var speed = 8;
var alive = true;
var nowBlood = totalBlood;
var nowMagic = totalMagic;
var hurtPoint = 0;
var heightV = 0;
var accelerate = 4;
var height = 94;
var width = 54;
var magicType = "fire1";
var magicAttackPower = 0;
var magicPoint = 0;
var magicTypeMCName = "";
var jumpAllowed = true;
var jumpSwitch = false;
var attackSwitch = false;
var upAttackSwitch = false;
var magicAttackSwitch = false;
var jumpAttackSwitch = false;
var hurtSwitch = false;
var keyPushTimer = new Timer();
var keyPushTimer2 = new Timer();
var keyPushTimer3 = new Timer();
var N = 1;
var centerX = Math.floor(x / _parent._parent.mainMap_tileW);
var LevelUp = false;
var attNum = 1;
var uniSw = false;
var attT = new Timer();
var actT = new Timer();
var hasHited = false;
var tAce = accelerate;
setInterval(mpReFull, 2000);
this.onEnterFrame = function () {
function keyPush(keyCode, timerObject) {
if (Key.isDown(keyCode)) {
return(timerObject.timerIncrease(2));
}
timerObject.clearTimer();
}
function userControl() {
if (alive) {
if (keyPush(76, keyPushTimer3)) {
s.start();
if (Level <= 7) {
if (N < Level) {
N++;
} else {
N = 1;
}
} else if (N < 7) {
N++;
} else {
N = 1;
}
}
if (((keyPush(75, keyPushTimer) && (attackSwitch == false)) && (jumpAttackSwitch == false)) && (hurtSwitch == false)) {
jumpSwitch = true;
}
if (keyPush(74, keyPushTimer2) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
attackSwitch = true;
if (Key.isDown(83)) {
upAttackSwitch = true;
} else if (Key.isDown(87)) {
magicAttackSwitch = true;
}
} else if (jumpAllowed == false) {
jumpAttackSwitch = true;
}
}
if ((Key.isDown(65) && (attackSwitch == false)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
}
charAction = "left";
_xscale = -100;
} else if ((Key.isDown(68) && (attackSwitch == false)) && (hurtSwitch == false)) {
if (jumpAllowed == true) {
gotoAndStop ("walk");
}
charAction = "right";
_xscale = 100;
}
if ((((jumpAllowed == true) && (charAction == "stand")) && (attackSwitch == false)) && (hurtSwitch == false)) {
gotoAndStop ("stand");
}
}
}
function jumpAction() {
gotoAndStop ("jump");
if (jumpAllowed == true) {
heightV = -26;
gravity();
}
}
function stopAction(action_mc) {
if (action_mc._currentframe == action_mc._totalframes) {
return(false);
}
return(true);
}
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
function passAbleTest(myMap, jumpNoPass, noPass, tileW, tileH) {
var _local7 = (-Math.floor(_parent._x / tileW)) + 2.5;
centerX = Math.floor(x / tileW);
var _local15 = Math.floor(y / tileH);
var _local17 = Math.floor((y - (height / 2)) / tileH);
var _local9 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local8 = Math.floor((x - (width / 2)) / tileW);
var _local11 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local5 = 15;
var _local13 = Math.floor(((x - (width / 2)) + _local5) / tileW);
var _local14 = Math.floor((((x + (width / 2)) - 1) - _local5) / tileW);
var _local12 = Math.floor(((y - (height / 2)) + _local5) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local5) / tileH);
if ((myMap[_local9][_local13] < jumpNoPass) && (myMap[_local9][_local14] < jumpNoPass)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local15 * tileH) + (height / 4);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local12][_local8] < noPass)) && (myMap[_local6][_local8] < noPass)) {
x = x - speed;
if (centerX < (_local7 - 1)) {
noscroll = 0;
}
}
if (((charAction == "right") && (myMap[_local12][_local11] < noPass)) && (myMap[_local6][_local11] < noPass)) {
x = x + speed;
if (centerX > (_local7 + 1)) {
noscroll = 0;
}
}
}
trace(accelerate);
x = _x;
y = _y;
var charAction = "stand";
var noscroll = 1;
magicType = "fire" + N;
if (_parent._parent.expoint >= (Level * (1000 + (Level * 1000)))) {
_parent._parent.setChar_qigong("levelUp_mc", "levelUp_mc", x, y, _global.SHOWDEPTH + 5);
LevelUpProcess();
}
if (Level >= 4) {
var _local12 = "attackH";
var _local15 = "jumpAttackH";
var _local14 = "upAttackH";
} else {
var _local12 = "attack";
var _local15 = "jumpAttack";
var _local14 = "upAttack";
}
if (magicType == "fire1") {
magicTypeMCName = "char_qigongLevel1_mc";
magicAttackPower = 10;
magicPoint = 10;
} else if (magicType == "fire2") {
magicTypeMCName = "char_qigongLevel2_mc";
magicAttackPower = 20;
magicPoint = 20;
} else if (magicType == "fire3") {
magicTypeMCName = "char_qigongLevel3_mc";
magicAttackPower = 30;
magicPoint = 30;
} else if (magicType == "fire4") {
magicTypeMCName = "char_qigongLevel4_mc";
magicAttackPower = 40;
magicPoint = 40;
} else if (magicType == "fire5") {
magicTypeMCName = "char_qigongLevel5_mc";
magicAttackPower = 50;
magicPoint = 50;
} else if (magicType == "fire6") {
magicTypeMCName = "char_qigongLevel6_mc";
magicAttackPower = 70;
magicPoint = 70;
} else if (magicType == "fire7") {
magicTypeMCName = "char_qigongLevel7_mc";
magicAttackPower = 100;
magicPoint = 100;
}
var s = new Sound();
s.attachSound("selectMagic");
userControl();
if (nowBlood <= 0) {
nowBlood = 0;
gotoAndStop ("dead");
alive = false;
if (dead_mc._currentframe < (dead_mc._totalframes - 15)) {
if (jumpAllowed == true) {
heightV = -18;
gravity();
}
if (_xscale == 100) {
charAction = "left";
} else if (_xscale == -100) {
charAction = "right";
}
}
if (dead_mc._currentframe == dead_mc._totalframes) {
removeMovieClip("");
}
}
if ((y - (_height / 2)) >= _parent._parent.movieH) {
nowBlood = 0;
}
if (jumpSwitch == true) {
jumpAction();
jumpSwitch = false;
}
if (attackSwitch == true) {
if (jumpAllowed == true) {
if ((upAttackSwitch == true) && (attack_mc._currentframe >= (attack_mc._totalframes - 1))) {
gotoAndStop(_local14);
if (upAttack_mc._currentframe >= 5) {
if (_xscale == 100) {
charAction = "right";
} else if (_xscale == -100) {
charAction = "left";
}
}
upAttackSwitch = stopAction(upAttack_mc);
attackSwitch = stopAction(upAttack_mc);
} else if ((magicAttackSwitch == true) && (attack_mc._currentframe >= (attack_mc._totalframes - 1))) {
if ((!_parent.char_qigong_mc) && (nowMagic >= magicPoint)) {
gotoAndStop ("magicAttack");
if (magicAttack_mc._currentframe == 1) {
_parent._parent.setChar_qigong(magicTypeMCName, "char_qigong_mc", x, y, 21);
if (nowMagic < magicPoint) {
nowMagic = 0;
} else {
nowMagic = nowMagic - magicPoint;
}
}
}
magicAttackSwitch = stopAction(magicAttack_mc);
attackSwitch = stopAction(magicAttack_mc);
} else {
trace((attNum + "_") + uniSw);
gotoAndStop(_local12 + attNum);
if (((attNum > 2) && (attack_mc._currentframe >= 8)) && (attack_mc._currentframe <= 14)) {
if (_xscale == 100) {
charAction = "right";
} else if (_xscale == -100) {
charAction = "left";
}
}
attackSwitch = stopAction(attack_mc);
if (uniSw && (!attackSwitch)) {
attNum = (((attNum % 3) == 0) ? 0 : (attNum % 3));
attNum++;
}
}
}
if (uniSw && (!attT.timerIncrease(30))) {
uniSw = false;
attT.clearTimer();
}
if ((!uniSw) && (!attackSwitch)) {
attNum = 1;
}
}
if (jumpAttackSwitch == true) {
gotoAndStop(_local15);
if (jumpAllowed == true) {
jumpAttackSwitch = false;
}
}
if ((nowBlood > 0) && (hurtSwitch == true)) {
attackSwitch = false;
jumpAttackSwitch = false;
gotoAndStop ("hurt");
if (hurt_mc._currentframe == 1) {
nowBlood = nowBlood - hurtPoint;
}
hurtSwitch = stopAction(hurt_mc);
hurtArea_mc.gotoAndPlay(1);
}
passAbleTest(_parent._parent.mainMap_map, _parent._parent.jumpNoPass, _parent._parent.noPass, _parent._parent.mainMap_tileW, _parent._parent.mainMap_tileH);
if (noscroll == 0) {
_parent._parent.lineMap(charAction, "HILL_tile", _parent._parent.HILL_map, _parent._parent.hillMap, 2, 32, 32);
_parent._parent.scrollMap(charAction, "mainMap_tile", _parent._parent.mainMap_map, _parent._parent.mainMap, speed, 64, 64);
}
_x = x;
_y = y;
};
Symbol 366 MovieClip [char_mc] Frame 2
stop();
Symbol 366 MovieClip [char_mc] Frame 3
stop();
Symbol 366 MovieClip [char_mc] Frame 4
stop();
Symbol 366 MovieClip [char_mc] Frame 5
stop();
Symbol 366 MovieClip [char_mc] Frame 7
stop();
Symbol 366 MovieClip [char_mc] Frame 8
stop();
Symbol 366 MovieClip [char_mc] Frame 10
stop();
Symbol 366 MovieClip [char_mc] Frame 11
stop();
Symbol 366 MovieClip [char_mc] Frame 12
stop();
Symbol 366 MovieClip [char_mc] Frame 13
stop();
Symbol 366 MovieClip [char_mc] Frame 14
stop();
Symbol 366 MovieClip [char_mc] Frame 15
stop();
Symbol 377 MovieClip [char_qigongLevel1_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 10, 300);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
Symbol 377 MovieClip [char_qigongLevel1_mc] Frame 2
stop();
Symbol 377 MovieClip [char_qigongLevel1_mc] Frame 3
stop();
Symbol 387 MovieClip Frame 9
stop();
Symbol 388 MovieClip [char_qigongLevel2_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 300);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
Symbol 388 MovieClip [char_qigongLevel2_mc] Frame 2
stop();
Symbol 388 MovieClip [char_qigongLevel2_mc] Frame 3
stop();
Symbol 403 MovieClip [char_qigongLevel3_xiaoshi_mc] Frame 1
this.onEnterFrame = function () {
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 404 MovieClip [char_qigongLevel3_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 300);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
Symbol 404 MovieClip [char_qigongLevel3_mc] Frame 2
stop();
Symbol 404 MovieClip [char_qigongLevel3_mc] Frame 3
stop();
Symbol 415 MovieClip [char_qigongLevel4_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 2, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.qigongLineMove();
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 415 MovieClip [char_qigongLevel4_mc] Frame 2
play();
Symbol 415 MovieClip [char_qigongLevel4_mc] Frame 12
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
stop();
Symbol 420 MovieClip [char_qigongLevel5_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 0, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.qigongLineMove();
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 420 MovieClip [char_qigongLevel5_mc] Frame 2
play();
Symbol 420 MovieClip [char_qigongLevel5_mc] Frame 27
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
stop();
Symbol 421 MovieClip [char_qigongLevel6_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 0, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.qigongLineMove();
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 421 MovieClip [char_qigongLevel6_mc] Frame 2
play();
Symbol 421 MovieClip [char_qigongLevel6_mc] Frame 27
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
stop();
Symbol 422 MovieClip [char_qigongLevel7_mc] Frame 1
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 0, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.qigongLineMove();
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 422 MovieClip [char_qigongLevel7_mc] Frame 2
play();
Symbol 422 MovieClip [char_qigongLevel7_mc] Frame 27
var mainCharQigong = new Qigong(this, _parent.char_mc, 20, 16, 200);
var hitSwitch = false;
var power = mainCharQigong.power;
mainCharQigong.checkMyCharDir();
this.onEnterFrame = function () {
mainCharQigong.moveDisLimit();
mainCharQigong.qigongHit();
mainCharQigong.qigongLineMove();
mainCharQigong.passTest(_parent._parent.mainMap_map);
if (_currentframe == _totalframes) {
if (xiaoshi_mc._currentframe == xiaoshi_mc._totalframes) {
removeMovieClip("");
}
}
};
stop();
Symbol 436 MovieClip [1000exp_mc] Frame 1
this.onEnterFrame = function () {
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 436 MovieClip [1000exp_mc] Frame 36
stop();
Symbol 444 MovieClip [levelUp_mc] Frame 1
this.onEnterFrame = function () {
if (_currentframe == _totalframes) {
removeMovieClip("");
}
};
Symbol 444 MovieClip [levelUp_mc] Frame 36
stop();
Symbol 480 MovieClip [jewel_mc] Frame 1
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
var hasLoaded = false;
var Effect = 1000;
var heightV = -18;
var accelerate = 4;
var height = 60;
var width = 40;
var height_cutNum = 1.5;
se_snd = new Sound();
se_snd.attachSound("se_g008");
var loadIS = new Sound();
loadIS.attachSound("itemLoad");
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function itemLoaded(myChar) {
if (hitTest(myChar.hurtArea_mc) && (hasLoaded == false)) {
loadIS.start();
_parent._parent.expoint = _parent._parent.expoint + Effect;
_parent._parent.setChar_qigong("1000exp_mc", "1000exp_mc", myChar._x, myChar._y, _global.SHOWDEPTH);
se_snd.start();
hasLoaded = true;
}
}
x = _x;
y = _y;
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
itemLoaded(_parent.char_mc);
if ((hasLoaded == true) || ((y - (_height / 2)) >= _parent._parent.movieH)) {
removeMovieClip(this);
}
_x = x;
_y = y;
};
Symbol 483 MovieClip [jirou_mc] Frame 1
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
var hasLoaded = false;
var Effect = 200;
var heightV = -18;
var accelerate = 4;
var height = 60;
var width = 40;
var height_cutNum = 1.5;
se_snd = new Sound();
se_snd.attachSound("se_g008");
var loadIS = new Sound();
loadIS.attachSound("itemLoad");
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function itemLoaded(myChar) {
if (hitTest(myChar.hurtArea_mc) && (hasLoaded == false)) {
loadIS.start();
if ((myChar.nowBlood + Effect) >= myChar.totalBlood) {
myChar.nowBlood = myChar.totalBlood;
} else {
myChar.nowBlood = myChar.nowBlood + Effect;
}
_parent._parent.score = _parent._parent.score + 300;
se_snd.start();
hasLoaded = true;
}
}
x = _x;
y = _y;
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
itemLoaded(_parent.char_mc);
if ((hasLoaded == true) || ((y - (_height / 2)) >= _parent._parent.movieH)) {
removeMovieClip(this);
}
_x = x;
_y = y;
};
Symbol 486 MovieClip [jitui_mc] Frame 1
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
var hasLoaded = false;
var Effect = 50;
var heightV = -18;
var accelerate = 4;
var height = 60;
var width = 40;
var height_cutNum = 1.5;
se_snd = new Sound();
se_snd.attachSound("se_g008");
var loadIS = new Sound();
loadIS.attachSound("itemLoad");
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function itemLoaded(myChar) {
if (hitTest(myChar.hurtArea_mc) && (hasLoaded == false)) {
loadIS.start();
if ((myChar.nowBlood + Effect) >= myChar.totalBlood) {
myChar.nowBlood = myChar.totalBlood;
} else {
myChar.nowBlood = myChar.nowBlood + Effect;
}
_parent._parent.score = _parent._parent.score + 300;
se_snd.start();
hasLoaded = true;
}
}
x = _x;
y = _y;
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
itemLoaded(_parent.char_mc);
if ((hasLoaded == true) || ((y - (_height / 2)) >= _parent._parent.movieH)) {
removeMovieClip(this);
}
_x = x;
_y = y;
};
Symbol 489 MovieClip [mpbottle_mc] Frame 1
function gravity() {
y = y + heightV;
heightV = heightV + accelerate;
}
var hasLoaded = false;
var Effect = 100;
var heightV = -18;
var accelerate = 4;
var height = 60;
var width = 40;
var height_cutNum = 1.5;
se_snd = new Sound();
se_snd.attachSound("se_g008");
var loadIS = new Sound();
loadIS.attachSound("itemLoad");
this.onEnterFrame = function () {
function passAbleTest(myMap, tileNum, tileW, tileH) {
centerX = Math.floor(x / tileW);
var _local13 = Math.floor(y / tileH);
var _local14 = Math.floor((y - (height / 2)) / tileH);
var _local8 = Math.floor(((y + (height / 2)) - 1) / tileH);
var _local7 = Math.floor((x - (width / 2)) / tileW);
var _local9 = Math.floor(((x + (width / 2)) - 1) / tileW);
var _local3 = 15;
var _local11 = Math.floor(((x - (width / 2)) + _local3) / tileW);
var _local12 = Math.floor((((x + (width / 2)) - 1) - _local3) / tileW);
var _local10 = Math.floor(((y - (height / 2)) + _local3) / tileH);
var _local6 = Math.floor((((y + (height / 2)) - 1) - _local3) / tileH);
if ((myMap[_local8][_local11] < tileNum) && (myMap[_local8][_local12] < tileNum)) {
gravity();
jumpAllowed = false;
} else {
heightV = 0;
y = (_local13 * tileH) + (height / height_cutNum);
jumpAllowed = true;
}
if (((charAction == "left") && (myMap[_local10][_local7] < tileNum)) && (myMap[_local6][_local7] < tileNum)) {
x = x - speed;
}
if (((charAction == "right") && (myMap[_local10][_local9] < tileNum)) && (myMap[_local6][_local9] < tileNum)) {
x = x + speed;
}
}
function itemLoaded(myChar) {
if (hitTest(myChar.hurtArea_mc) && (hasLoaded == false)) {
loadIS.start();
if ((myChar.nowMagic + Effect) >= myChar.totalMagic) {
myChar.nowMagic = myChar.totalMagic;
} else {
myChar.nowMagic = myChar.nowMagic + Effect;
}
_parent._parent.score = _parent._parent.score + 300;
se_snd.start();
hasLoaded = true;
}
}
x = _x;
y = _y;
passAbleTest(_parent._parent.mainMap_map, _parent._parent.noPass, 64, 64);
itemLoaded(_parent.char_mc);
if ((hasLoaded == true) || ((y - (_height / 2)) >= _parent._parent.movieH)) {
removeMovieClip(this);
}
_x = x;
_y = y;
};
Symbol 494 Button
on (release) {
gotoAndStop (85);
}
Symbol 499 Button
on (release) {
gotoAndStop (86);
}
Instance of Symbol 516 MovieClip "cloud1" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (200);
}
Symbol 533 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.mainMap.char_mc.magicType == "fire1") {
gotoAndStop ("fire1");
} else if (_parent.mainMap.char_mc.magicType == "fire2") {
gotoAndStop ("fire2");
} else if (_parent.mainMap.char_mc.magicType == "fire3") {
gotoAndStop ("fire3");
} else if (_parent.mainMap.char_mc.magicType == "fire4") {
gotoAndStop ("fire4");
} else if (_parent.mainMap.char_mc.magicType == "fire5") {
gotoAndStop ("fire5");
} else if (_parent.mainMap.char_mc.magicType == "fire6") {
gotoAndStop ("fire6");
} else if (_parent.mainMap.char_mc.magicType == "fire7") {
gotoAndStop ("fire7");
}
};
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 4
stop();
Symbol 533 MovieClip Frame 5
stop();
Symbol 533 MovieClip Frame 6
stop();
Symbol 533 MovieClip Frame 7
stop();
Symbol 536 MovieClip Frame 1
var char_magicBar = new LifeBar(this, _parent.mainMap.char_mc);
this.onEnterFrame = function () {
char_magicBar.getMagicPts();
};
Symbol 541 Button
on (release) {
gotoAndPlay (84);
}