Frame 2
var lb = _root.getBytesLoaded();
var rate = (lb / _root.getBytesTotal());
mcProgressBar.mcBar._x = (168 * rate) - 168;
if (rate < 1) {
gotoAndPlay (1);
}
Frame 36
stop();
Frame 37
btnEnter.enabled = false;
Frame 51
function Item_getRandom() {
var _local3 = readyItems.length;
if (_local3 <= 0) {
return(-1);
}
var _local2 = Rand(_local3);
if (readyItems[_local2].id != undefined) {
var _local4 = readyItems[_local2].id;
Item_clear(_local4);
return(_local4);
}
return(-1);
}
function Item_clear(theId) {
var _local4 = readyItems.length;
var _local2 = 0;
while (_local2 < _local4) {
if (readyItems[_local2].id == theId) {
readyItems.splice(_local2, 1);
return(true);
}
_local2++;
}
return(false);
}
function GetFreeDepth(offset) {
var _local2 = offset;
while (_root.getInstanceAtDepth(_local2) != undefined) {
_local2++;
}
return(_local2);
}
function PutDialogMessage(caption, txt, cbFunc) {
var _local2 = _root.attachMovie("ID_SIMPLEDLG", "mcDialogMsg", GetFreeDepth(DEPTH_MSG), {callBack:cbFunc});
_local2._x = MAINSCREEN_W / 2;
_local2._y = MAINSCREEN_H / 2;
_local2.contentText = txt;
}
function PutShortMessage(txt) {
var _local2 = _root.attachMovie("ID_SHORTDLG", "mcShortMsg", GetFreeDepth(DEPTH_MSG), {callBack:cbFunc});
_local2._x = MAINSCREEN_W / 2;
_local2._y = MAINSCREEN_H / 2;
_local2.contentText = txt;
}
function PutShortMessageCb(txt, cbFunc) {
var _local2 = _root.attachMovie("ID_SHORTDLG", "mcShortMsg", GetFreeDepth(DEPTH_MSG), {callBack:cbFunc});
_local2._x = MAINSCREEN_W / 2;
_local2._y = MAINSCREEN_H / 2;
_local2.contentText = txt;
}
function PutYesNoDlg(txt, cbFunc) {
var _local2 = _root.attachMovie("ID_YESNO", "mcYesNoDlg", GetFreeDepth(DEPTH_MSG), {callBack:cbFunc});
_local2._x = MAINSCREEN_W / 2;
_local2._y = MAINSCREEN_H / 2;
_local2.captionText = txt;
}
function invokeFx(MCID, cbFunc) {
var _local2 = GetFreeDepth(DEPTH_FX2);
_root.attachMovie(MCID, "mcTheFx" + _local2, _local2, {callBack:cbFunc});
}
function Rand(n) {
var _local1 = (Math.random() * n) | 0;
return(_local1);
}
function FlushConfig() {
localDataHandle.data.count = playCount;
localDataHandle.flush();
}
var DEPTH_OBJECTS = 1000;
var DEPTH_CHAR_TICK = 200;
var DEPTH_OBJTOP = 6900;
var DEPTH_FX1 = 7000;
var DEPTH_FX2 = 7500;
var DEPTH_GAGE = 8000;
var DEPTH_EVENT = 9000;
var DEPTH_MSG = 12000;
var MAINSCREEN_W = 640;
var MAINSCREEN_H = 480;
var ITEM_LIST = [{id:0, name:"\u9752\u3044\u5B9D\u77F3", point:500}, {id:1, name:"\u30DE\u30C3\u30C1", point:100}, {id:2, name:"\u91D1\u306E\u30AB\u30AE", point:1000}, {id:3, name:"\u9B54\u6CD5\u306E\u30AB\u30AE", point:5000}, {id:4, name:"\u30D6\u30ED\u30F3\u30BA\u306E\u30AB\u30AE", point:200}, {id:5, name:"\u9752\u3044\u6C34\u6676", point:600}, {id:6, name:"\u8D64\u3044\u6C34\u6676", point:400}, {id:7, name:"\u7DD1\u306E\u6C34\u6676", point:500}, {id:8, name:"\u4E7E\u96FB\u6C60", point:10}, {id:9, name:"\u30D1\u30F3", point:20}, {id:10, name:"\u91D1\u306E\u50CF", point:2000}, {id:11, name:"\u8D64\u3044\u5B9D\u77F3", point:500}, {id:12, name:"\u30CA\u30A4\u30D5", point:100}, {id:13, name:"\u30CF\u30F3\u30D0\u30FC\u30AC\u30FC", point:40}, {id:14, name:"\u30DB\u30C3\u30C8\u30C9\u30C3\u30AF", point:30}, {id:15, name:"\u85AC\u54C1\uFF23", point:-100}, {id:16, name:"\u5927\u30C8\u30ED", point:2000}, {id:17, name:"\u30B3\u30A4\u30F3", point:300}, {id:18, name:"\u7DD1\u306E\u5B9D\u77F3", point:500}, {id:19, name:"\u91D1\u8CA8", point:400}, {id:20, name:"\u7206\u5F3E", point:2000}, {id:21, name:"\u9280\u8CA8", point:200}, {id:22, name:"\u6728\u306E\u69CD", point:120}, {id:23, name:"\u9280\u306E\u69CD", point:650}, {id:24, name:"\u9285\u8CA8", point:100}, {id:25, name:"\u30C0\u30A4\u30E4\u306E\u6307\u8F2A", point:700}, {id:26, name:"\u624B\u93E1", point:150}, {id:27, name:"\u30AC\u30E0\u30C6\u30FC\u30D7", point:10}, {id:28, name:"\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30AB\u30FC\u30C9", point:1000}, {id:29, name:"\u30AA\u30A4\u30EB", point:10}, {id:30, name:"\u61D0\u4E2D\u96FB\u706F", point:120}];
var NUM_ITEM = 31;
var readyItems = new Array();
var i = 0;
while (i < NUM_ITEM) {
readyItems.push({id:i});
i++;
}
var lastMoveTime = 0;
var timerID;
var noCheck = false;
var myIpAddress;
var playCount = 0;
var localDataHandle = SharedObject.getLocal("fargenius_questin");
if (localDataHandle == null) {
FlushConfig();
} else {
if (localDataHandle.data.count == undefined) {
playCount = Math.floor(Math.random() * 5);
} else {
playCount = localDataHandle.data.count + 1;
}
FlushConfig();
}
var bgm1 = new Sound();
bgm1.attachSound("BGM01");
Frame 61
stop();
Frame 62
play();
if (mainController.gameMode == 1) {
mcGround.gotoAndStop(2);
mcGround.setObjects();
}
Frame 63
stop();
Frame 67
stop();
Frame 75
mcCtrlPanel.myAvatar.tbName.text = "";
mcCtrlPanel.myAvatar.gotoAndStop("STAND0");
mcCtrlPanel.myAvatar.freeze(0);
if (_root.mainController.connectionOK) {
mcCtrlPanel.gotoAndStop("CONNECT");
mcCtrlPanel.swDialog_R.gotoAndStop("up");
mcCtrlPanel.swDialog_L.gotoAndStop("gray");
} else {
mcCtrlPanel.gotoAndStop("NOCONNECT");
}
Frame 127
mcCtrlPanel.swapDepths(10001);
Frame 129
var prepareOK = true;
stop();
Frame 130
prevFrame();
Frame 133
loadMovie ("quaterview.swf", "_root");
stop();
Symbol 81 MovieClip [ID_REMOTINGERROR] Frame 1
_root.stop();
_root.BaseRad = 0;
stop();
Symbol 96 Button
on (release) {
closeMsg();
}
Symbol 97 MovieClip [id_fukidashi] Frame 1
#initclip 60
Object.registerClass("id_fukidashi", dialog);
#endinitclip
Symbol 107 MovieClip [NPC_002] Frame 1
#initclip 24
Object.registerClass("NPC_002", npcFigure);
#endinitclip
function npcSays() {
switch (pAvatar.npcTemp) {
case 0 :
pAvatar.putMessage("\u5C4B\u6577\u3092\u63A2\u691C\u3057\u3066\u304A\u5B9D\u3092\u63A2\u3059\u306E\u3060");
break;
case 1 :
pAvatar.putMessage("\u3042\u3084\u3057\u3044\u3068\u3053\u308D\u304C\u3042\u3063\u305F\u3089\u8FD1\u3065\u3044\u3066\u30AF\u30EA\u30C3\u30AF\u3059\u3079\u3057");
break;
case 2 :
pAvatar.putMessage("\u5DE6\u306E\u30C9\u30A2\u304C\u5165\u308A\u53E3\u3060\u3088");
break;
case 3 :
pAvatar.putMessage("\u53F3\u306E\u6249\u306E\u3080\u3053\u3046\u306B\u304A\u5B9D\u304C\u7720\u3063\u3066\u308B\u3068\u304B");
break;
case 4 :
pAvatar.putMessage("\u3069\u3053\u306B\u4F55\u304C\u3042\u308B\u306E\u304B\u8AB0\u306B\u3082\u308F\u304B\u3089\u306A\u3044");
}
pAvatar.npcTemp++;
if (pAvatar.npcTemp == 5) {
pAvatar.npcTemp = 0;
}
}
stop();
Symbol 107 MovieClip [NPC_002] Frame 2
stop();
Symbol 107 MovieClip [NPC_002] Frame 3
stop();
Symbol 107 MovieClip [NPC_002] Frame 4
stop();
Symbol 107 MovieClip [NPC_002] Frame 5
stop();
Symbol 107 MovieClip [NPC_002] Frame 6
stop();
Symbol 107 MovieClip [NPC_002] Frame 7
stop();
Symbol 107 MovieClip [NPC_002] Frame 8
stop();
Symbol 114 MovieClip [NPC_001A] Frame 1
#initclip 25
Object.registerClass("NPC_001A", npcFigure);
#endinitclip
function npcSays() {
pAvatar.putMessage("\u91D1\u306E\u30AB\u30AE\u306F\u898B\u3064\u304B\u3063\u305F\uFF1F");
}
stop();
Symbol 114 MovieClip [NPC_001A] Frame 2
stop();
Symbol 114 MovieClip [NPC_001A] Frame 3
stop();
Symbol 114 MovieClip [NPC_001A] Frame 4
stop();
Symbol 114 MovieClip [NPC_001A] Frame 5
stop();
Symbol 114 MovieClip [NPC_001A] Frame 6
stop();
Symbol 114 MovieClip [NPC_001A] Frame 7
stop();
Symbol 114 MovieClip [NPC_001A] Frame 8
stop();
Symbol 119 MovieClip [NPC_001] Frame 1
#initclip 26
Object.registerClass("NPC_001", npcFigure);
#endinitclip
function npcSays() {
pAvatar.putMessage("FCS\u9AD8\u304F\u3066\u8CB7\u3048\u3093\u3068\u3067\u3059\u2026");
}
stop();
Symbol 119 MovieClip [NPC_001] Frame 2
stop();
Symbol 119 MovieClip [NPC_001] Frame 3
stop();
Symbol 119 MovieClip [NPC_001] Frame 4
stop();
Symbol 119 MovieClip [NPC_001] Frame 5
stop();
Symbol 119 MovieClip [NPC_001] Frame 6
stop();
Symbol 119 MovieClip [NPC_001] Frame 7
stop();
Symbol 119 MovieClip [NPC_001] Frame 8
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 1
r = random(100);
if (r & 1) {
mcEyes.gotoAndStop(1);
} else {
mcEyes.gotoAndStop(2);
}
Symbol 125 MovieClip Frame 63
if (r > 40) {
gotoAndPlay (1);
}
Symbol 138 MovieClip [AVATAR_0] Frame 1
#initclip 27
Object.registerClass("AVATAR_0", avatarFigure);
#endinitclip
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 2
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 3
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 4
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 5
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 6
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 7
stop();
Symbol 138 MovieClip [AVATAR_0] Frame 8
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 1
r = random(100);
if (r & 1) {
mcEyes.gotoAndStop(1);
} else {
mcEyes.gotoAndStop(2);
}
Symbol 145 MovieClip Frame 63
if (r > 40) {
gotoAndPlay (1);
}
Symbol 158 MovieClip [AVATAR_1] Frame 1
#initclip 28
Object.registerClass("AVATAR_1", avatarFigure);
#endinitclip
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 2
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 3
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 4
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 5
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 6
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 7
stop();
Symbol 158 MovieClip [AVATAR_1] Frame 8
stop();
Symbol 160 MovieClip [ID_AURAROAD] Frame 1
#initclip 29
Object.registerClass("ID_AURAROAD", auraRoad);
#endinitclip
Symbol 160 MovieClip [ID_AURAROAD] Frame 5
stop();
Symbol 164 MovieClip [ID_POWERGAGE] Frame 1
#initclip 30
Object.registerClass("ID_POWERGAGE", powerGage);
#endinitclip
stop();
Symbol 164 MovieClip [ID_POWERGAGE] Frame 25
gotoAndStop (1);
Symbol 175 MovieClip [ID_PLANT] Frame 1
#initclip 31
Object.registerClass("ID_PLANT", material);
#endinitclip
function putItem(itemId) {
if (itemId == 0) {
action();
}
return(false);
}
stop();
Symbol 175 MovieClip [ID_PLANT] Frame 2
function cbfunc() {
gotoAndPlay (3);
}
if (_root.mainController.hasItem(0)) {
_root.mainController.useItem(0);
_root.PutDialogMessage("", "\u7A2E\u3092\u3046\u3081\u305F", cbfunc);
} else {
gotoAndStop (1);
}
Symbol 175 MovieClip [ID_PLANT] Frame 23
setInitialFrame(this._currentFrame);
Symbol 175 MovieClip [ID_PLANT] Frame 29
stop();
Symbol 178 MovieClip [ID_ITEM2F] Frame 1
#initclip 32
Object.registerClass("ID_ITEM2F", material);
#endinitclip
stop();
Symbol 178 MovieClip [ID_ITEM2F] Frame 2
play();
Symbol 178 MovieClip [ID_ITEM2F] Frame 9
setAttr(this._currentFrame);
eventFinished();
stop();
Symbol 179 MovieClip [ID_CLICKABLE_L] Frame 1
#initclip 33
Object.registerClass("ID_CLICKABLE_L", material);
#endinitclip
stop();
Symbol 179 MovieClip [ID_CLICKABLE_L] Frame 2
play();
Symbol 179 MovieClip [ID_CLICKABLE_L] Frame 4
stop();
Symbol 180 MovieClip [ID_POINT] Frame 1
#initclip 34
Object.registerClass("ID_POINT", material);
#endinitclip
stop();
Symbol 180 MovieClip [ID_POINT] Frame 2
play();
Symbol 180 MovieClip [ID_POINT] Frame 4
stop();
Symbol 181 MovieClip [ID_ITEM] Frame 1
#initclip 35
Object.registerClass("ID_ITEM", material);
#endinitclip
stop();
Symbol 181 MovieClip [ID_ITEM] Frame 2
play();
Symbol 181 MovieClip [ID_ITEM] Frame 9
setAttr(this._currentFrame);
eventFinished();
stop();
Symbol 183 MovieClip [ID_ROOMCHANGE] Frame 12
_root.mcGround.roomIn();
Symbol 183 MovieClip [ID_ROOMCHANGE] Frame 23
removeMovieClip(this);
Symbol 184 MovieClip [BLOCK_1] Frame 1
#initclip 36
Object.registerClass("BLOCK_1", material);
#endinitclip
ngDirFlg = 0;
stop();
Symbol 184 MovieClip [BLOCK_1] Frame 2
var closet = _root.mcGround.getObjInfo(14);
closet.mc.gotoAndPlay("MOVE");
_root.mcGround.setObjPosDataByIndex(16, 3, 4);
eventFinished();
Symbol 188 MovieClip [ID_MSGBOARD] Frame 73
removeMovieClip(this);
Symbol 192 MovieClip Frame 12
stop();
Symbol 197 Button
on (release) {
gotoAndPlay ("CLOSE");
}
Symbol 200 MovieClip Frame 8
_parent.removeMovieClip();
stop();
Symbol 201 MovieClip [ID_SIMPLEDLG] Frame 1
_root.mainController.freeze(true);
Symbol 201 MovieClip [ID_SIMPLEDLG] Frame 3
play();
Symbol 201 MovieClip [ID_SIMPLEDLG] Frame 15
stop();
Symbol 201 MovieClip [ID_SIMPLEDLG] Frame 22
_root.mainController.freeze(false);
callBack.call(this);
stop();
Symbol 202 Button
on (release) {
gotoAndPlay ("CLOSE");
}
Symbol 204 MovieClip [ID_SHORTDLG] Frame 1
_root.mainController.freeze(true);
Symbol 204 MovieClip [ID_SHORTDLG] Frame 3
play();
Symbol 204 MovieClip [ID_SHORTDLG] Frame 15
stop();
Symbol 204 MovieClip [ID_SHORTDLG] Frame 22
_root.mainController.freeze(false);
callBack.call(this);
stop();
Symbol 205 Button
on (release) {
gotoAndStop ("CLOSE");
}
Symbol 208 MovieClip [ID_COMMONDLG1] Frame 1
_root.mainController.freeze(true);
Symbol 208 MovieClip [ID_COMMONDLG1] Frame 3
play();
Symbol 208 MovieClip [ID_COMMONDLG1] Frame 15
stop();
Symbol 208 MovieClip [ID_COMMONDLG1] Frame 16
_root.mainController.freeze(false);
Symbol 209 Button
on (release) {
mci.removeMovieClip();
gotoAndStop ("CLOSE");
}
Symbol 212 Button
on (release) {
gotoAndStop ("CLOSE");
}
Symbol 214 MovieClip [ID_ITEMGET] Frame 1
_root.mainController.freeze(true);
Symbol 214 MovieClip [ID_ITEMGET] Frame 2
if ((stat != undefined) && (stat > 0)) {
if (stat == 1) {
gotoAndPlay ("GET");
} else {
gotoAndPlay ("NOTHING");
}
} else {
_root.mainController.freeze(false);
removeMovieClip(this);
}
Symbol 214 MovieClip [ID_ITEMGET] Frame 15
_root.mainController.getItem(itemId);
var imiName = ("mcItemImage" + eventId);
var mci = attachMovie("ID_ITEM" + itemId, imiName, 0);
mci._y = mci._y - 8;
itemName.text = _root.ITEM_LIST[itemId].name;
stop();
Symbol 214 MovieClip [ID_ITEMGET] Frame 28
stop();
Symbol 214 MovieClip [ID_ITEMGET] Frame 29
_root.mainController.freeze(false);
play();
Symbol 214 MovieClip [ID_ITEMGET] Frame 35
if (_root.mainController.hasItem(10) && (_root.mainController.hasItem(20))) {
_root.attachMovie("ID_RESULT", "mcFin", 11008);
}
stop();
Symbol 216 Button
on (release) {
_root.mainController.freeze(false);
removeMovieClip(this);
}
Symbol 219 MovieClip [ID_EVENT_000] Frame 1
_root.mainController.freeze(true);
Symbol 219 MovieClip [ID_EVENT_000] Frame 2
if ((stat != undefined) && (stat > 0)) {
gotoAndStop(stat + 2);
}
Symbol 219 MovieClip [ID_EVENT_000] Frame 3
_root.mainController.eventMgr.setEventStatus(eventId, 2);
stop();
Symbol 219 MovieClip [ID_EVENT_000] Frame 4
stop();
Symbol 222 MovieClip Frame 12
stop();
Symbol 229 Button
on (release) {
gotoAndPlay ("CLOSE");
}
Symbol 230 Button
on (release) {
go = true;
gotoAndPlay ("CLOSE");
}
Symbol 231 Button
on (release) {
removeMovieClip(this);
}
Symbol 232 MovieClip Frame 8
_parent.removeMovieClip();
stop();
Symbol 233 MovieClip [ID_SELECTBOX] Frame 1
var go = false;
_root.mainController.freeze(true);
Symbol 233 MovieClip [ID_SELECTBOX] Frame 20
if (_root.mainController.nowTargetMaterial == null) {
btnUse.enabled = false;
}
stop();
Symbol 233 MovieClip [ID_SELECTBOX] Frame 25
_root.mainController.freeze(false);
if (go) {
_root.mcCtrlPanel.mcIpalRoot.mcItemPal.invoke(this.id);
}
stop();
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 1
var cnt = 0;
var dy = 3.1;
var level = 0;
var pg = _root.mcGround;
var myCtr = _root.mainController;
if (pg.serfaceLevel == 0) {
removeMovieClip(this);
} else {
_root.noCheck = true;
myCtr.freeze(true);
myCtr.myAvatarObject.move(dir);
myCtr.myAvatarObject.depthFirst();
}
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 3
if (myCtr.myAvatarObject.mcAvatar.command != -1) {
gotoAndPlay ("LOOP2");
}
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 4
cnt = 0;
pg.changeSurfaceLevel(-1, dir);
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 5
pg.surface._y = pg.surface._y + dy;
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 6
cnt++;
if (cnt == 12) {
level++;
if (level < stepNum) {
cnt = 0;
pg.changeSurfaceLevel(-1, dir);
gotoAndPlay ("LOOP1");
} else {
gotoAndPlay ("EXIT");
}
} else {
gotoAndPlay ("LOOP1");
}
Symbol 234 MovieClip [ID_SURFACE_DOWN] Frame 8
pg.surface._y = 0;
myCtr.freeze(false);
_root.noCheck = false;
removeMovieClip(this);
Symbol 235 MovieClip [ID_SURFACE_UP] Frame 1
var dy = 3.1;
var level = 0;
var pg = _root.mcGround;
var main = _root.mainController;
main.freeze(true);
_root.noCheck = true;
var cnt = 0;
var orgDepth = main.myAvatarObject.depth;
pg.changeSurfaceLevel(1, dir);
Symbol 235 MovieClip [ID_SURFACE_UP] Frame 2
pg.surface._y = pg.surface._y - dy;
Symbol 235 MovieClip [ID_SURFACE_UP] Frame 3
cnt++;
if (cnt == 12) {
gotoAndPlay ("LOOP2");
} else {
main.myAvatarObject.keepDepth(orgDepth);
gotoAndPlay ("LOOP1");
}
Symbol 235 MovieClip [ID_SURFACE_UP] Frame 5
if (main.myAvatarObject.mcAvatar.command != -1) {
gotoAndPlay ("LOOP2");
} else {
main.myAvatarObject.keepDepth(orgDepth);
level++;
if (level < stepNum) {
cnt = 0;
pg.changeSurfaceLevel(1, dir);
gotoAndPlay (2);
}
}
Symbol 235 MovieClip [ID_SURFACE_UP] Frame 6
_root.mainController.myAvatarObject.move(dir);
main.myAvatarObject.keepDepth(orgDepth);
_root.mainController.freeze(false);
_root.noCheck = false;
removeMovieClip(this);
Symbol 236 MovieClip [IDFX_EARTHQUAKE_S] Frame 1
var cnt = 0;
var dx = 1;
var LIM = 14;
Symbol 236 MovieClip [IDFX_EARTHQUAKE_S] Frame 2
_root.mcGround._x = _root.mcGround._x - dx;
Symbol 236 MovieClip [IDFX_EARTHQUAKE_S] Frame 3
_root.mcGround._x = _root.mcGround._x + dx;
Symbol 236 MovieClip [IDFX_EARTHQUAKE_S] Frame 4
cnt++;
if (cnt == LIM) {
if ((callBack != undefined) && (callBack != null)) {
callBack.call(this);
}
removeMovieClip(this);
} else {
gotoAndPlay ("LOOP1");
}
Symbol 237 MovieClip [IDFX_EARTHQUAKE] Frame 1
var cnt = 0;
var dx = 2;
var LIM = 20;
Symbol 237 MovieClip [IDFX_EARTHQUAKE] Frame 2
_root.mcGround._x = _root.mcGround._x - dx;
Symbol 237 MovieClip [IDFX_EARTHQUAKE] Frame 3
_root.mcGround._x = _root.mcGround._x + dx;
Symbol 237 MovieClip [IDFX_EARTHQUAKE] Frame 4
cnt++;
if (cnt == LIM) {
if ((callBack != undefined) && (callBack != null)) {
callBack.call(this);
}
removeMovieClip(this);
} else {
if (cnt == (LIM / 2)) {
dx = 1;
}
gotoAndPlay ("LOOP1");
}
Symbol 238 MovieClip [D1R] Frame 1
#initclip 37
Object.registerClass("D1R", doorturn);
#endinitclip
stop();
Symbol 238 MovieClip [D1R] Frame 2
stop();
Symbol 238 MovieClip [D1R] Frame 3
stop();
Symbol 238 MovieClip [D1R] Frame 4
stop();
Symbol 238 MovieClip [D1R] Frame 5
stop();
Symbol 238 MovieClip [D1R] Frame 12
stop();
Symbol 239 MovieClip [D1] Frame 1
#initclip 38
Object.registerClass("D1", door);
#endinitclip
stop();
Symbol 239 MovieClip [D1] Frame 2
stop();
Symbol 239 MovieClip [D1] Frame 3
stop();
Symbol 239 MovieClip [D1] Frame 4
stop();
Symbol 239 MovieClip [D1] Frame 5
stop();
Symbol 240 MovieClip [ID_STAIRUP] Frame 1
#initclip 39
Object.registerClass("ID_STAIRUP", stairsUp);
#endinitclip
Symbol 241 MovieClip [ID_STAIRDOWN] Frame 1
#initclip 40
Object.registerClass("ID_STAIRDOWN", stairsDown);
#endinitclip
Symbol 242 MovieClip [ID_STAIR1] Frame 1
#initclip 41
Object.registerClass("ID_STAIR1", stairs);
#endinitclip
Symbol 244 MovieClip [ID_GRAVESTONE] Frame 1
#initclip 42
Object.registerClass("ID_GRAVESTONE", material);
#endinitclip
function action() {
_root.PutShortMessageCb("(C) 2005 fargenius.com All Rights Reserved", cbf);
ha.enabled = false;
_root.mcGround.mousePress = false;
}
function cbf() {
ha.enabled = true;
}
ngDirFlg = 1;
Symbol 256 MovieClip [ID_PLATE] Frame 1
#initclip 43
Object.registerClass("ID_PLATE", material);
#endinitclip
Symbol 284 MovieClip [ID_STOVE] Frame 1
#initclip 44
Object.registerClass("ID_STOVE", material);
#endinitclip
function putItem(itemId) {
if (ctrlObj.frame != 1) {
return(true);
}
if (itemId == 1) {
action();
return(true);
}
return(false);
}
function action() {
if (ctrlObj.frame == 1) {
if (_root.mainController.hasItem(1)) {
gotoAndPlay (3);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop(ctrlObj.frame);
}
}
function cb(param) {
if (param == 1) {
_root.invokeFx("IDFX_DANROMSG", null);
}
}
ngDirFlg = 13;
stop();
Symbol 284 MovieClip [ID_STOVE] Frame 26
setInitialFrame(_currentframe);
_root.PutYesNoDlg("\u6587\u5B57\u304C\u6D6E\u304B\u3093\u3067\u304D\u307E\u3057\u305F\u3002\u8AAD\u307F\u307E\u3059\u304B\uFF1F", cb);
stop();
Symbol 285 MovieClip [ID_ALIES] Frame 1
#initclip 45
Object.registerClass("ID_ALIES", materialAlies);
#endinitclip
ngDirFlg = 13;
Symbol 297 MovieClip [ID_UNLOCKEDDOOR] Frame 1
#initclip 46
Object.registerClass("ID_UNLOCKEDDOOR", door);
#endinitclip
stop();
Symbol 297 MovieClip [ID_UNLOCKEDDOOR] Frame 2
stop();
Symbol 297 MovieClip [ID_UNLOCKEDDOOR] Frame 3
stop();
Symbol 297 MovieClip [ID_UNLOCKEDDOOR] Frame 4
stop();
Symbol 300 MovieClip [ID_CHATDOOR] Frame 1
#initclip 47
Object.registerClass("ID_CHATDOOR", material);
#endinitclip
function action() {
_root.mainController.gotoAndStop("CHATROOM");
}
ngDirFlg = 7;
stop();
Symbol 300 MovieClip [ID_CHATDOOR] Frame 5
stop();
Symbol 302 MovieClip [ID_LOCKEDDOOR] Frame 1
#initclip 48
Object.registerClass("ID_LOCKEDDOOR", material);
#endinitclip
function putItem(itemId) {
if (ctrlObj.frame != 1) {
return(true);
}
if (itemId == 2) {
action();
return(true);
}
return(false);
}
function action() {
if (_root.mainController.hasItem(2)) {
ha.enabled = false;
_root.PutShortMessageCb("\u91D1\u306E\u30AB\u30AE\u3067\u30C9\u30A2\u304C\u958B\u3044\u305F", cbf);
stop();
} else {
ha.enabled = false;
_root.PutShortMessageCb("\u30AB\u30AE\u304C\u304B\u304B\u3063\u3066\u3044\u308B", cbfng);
gotoAndStop (1);
}
}
function cbf() {
ha.enabled = true;
gotoAndPlay (2);
}
function cbfng() {
ha.enabled = true;
}
ngDirFlg = 7;
stop();
Symbol 302 MovieClip [ID_LOCKEDDOOR] Frame 2
ctrlObj.ID = "ID_UNLOCKEDDOOR";
ctrlObj.frame = 4;
ctrlObj.eventId = 2416575239;
_root.mainController.roomChangeByDoor(ctrlObj.eventId);
Symbol 302 MovieClip [ID_LOCKEDDOOR] Frame 10
stop();
Symbol 305 MovieClip [ID_RDOOR_A] Frame 1
#initclip 49
Object.registerClass("ID_RDOOR_A", door);
#endinitclip
Symbol 334 Button
on (release) {
gotoAndStop ("CLOSE");
}
Symbol 336 Button
on (release) {
result = 1;
gotoAndStop ("CLOSE");
}
Symbol 338 MovieClip [ID_YESNO] Frame 1
_root.mainController.freeze(true);
var result = 0;
Symbol 338 MovieClip [ID_YESNO] Frame 12
stop();
Symbol 338 MovieClip [ID_YESNO] Frame 13
_root.mainController.freeze(false);
callBack.call(this, result);
stop();
Symbol 346 Button
on (release) {
removeMovieClip(this);
}
Symbol 353 Button
on (release) {
_root.mainController.gotoAndStop("GAMEEND");
removeMovieClip(this);
}
Symbol 357 MovieClip [ID_RESULT CEL] Frame 1
#initclip 50
Object.registerClass("ID_RESULT CEL", resultsWindow);
#endinitclip
Symbol 360 MovieClip [ID_RESULT] Frame 1
#initclip 51
Object.registerClass("ID_RESULT", resultsWindow);
#endinitclip
Symbol 362 MovieClip [itemBox] Frame 1
#initclip 52
Object.registerClass("itemBox", itemIcon);
#endinitclip
stop();
Symbol 362 MovieClip [itemBox] Frame 2
myIcon._xscale = myIcon._xscale + 2;
myIcon._yscale = myIcon._yscale + 2;
Symbol 362 MovieClip [itemBox] Frame 3
myIcon._xscale = myIcon._xscale + 2;
myIcon._yscale = myIcon._yscale + 2;
Symbol 362 MovieClip [itemBox] Frame 4
myIcon._xscale = myIcon._xscale + 2;
myIcon._yscale = myIcon._yscale + 2;
Symbol 362 MovieClip [itemBox] Frame 5
myIcon._xscale = myIcon._xscale + 3;
myIcon._yscale = myIcon._yscale + 3;
Symbol 362 MovieClip [itemBox] Frame 6
myIcon._xscale = myIcon._xscale + 3;
myIcon._yscale = myIcon._yscale + 3;
Symbol 362 MovieClip [itemBox] Frame 7
myIcon._xscale = myIcon._xscale + 4;
myIcon._yscale = myIcon._yscale + 4;
stop();
Symbol 362 MovieClip [itemBox] Frame 8
myIcon._xscale = myIcon._xscale - 2;
myIcon._yscale = myIcon._yscale - 2;
Symbol 362 MovieClip [itemBox] Frame 9
myIcon._xscale = myIcon._xscale - 2;
myIcon._yscale = myIcon._yscale - 2;
Symbol 362 MovieClip [itemBox] Frame 10
myIcon._xscale = myIcon._xscale - 2;
myIcon._yscale = myIcon._yscale - 2;
Symbol 362 MovieClip [itemBox] Frame 11
myIcon._xscale = myIcon._xscale - 3;
myIcon._yscale = myIcon._yscale - 3;
Symbol 362 MovieClip [itemBox] Frame 12
myIcon._xscale = myIcon._xscale - 3;
myIcon._yscale = myIcon._yscale - 3;
Symbol 362 MovieClip [itemBox] Frame 13
myIcon._xscale = myIcon._xscale - 4;
myIcon._yscale = myIcon._yscale - 4;
myIcon._xscale = 100;
myIcon._yscale = 100;
stop();
Symbol 363 MovieClip [アイテムパレット] Frame 1
#initclip 53
Object.registerClass("\u30A2\u30A4\u30C6\u30E0\u30D1\u30EC\u30C3\u30C8", itemPalette);
#endinitclip
Symbol 368 MovieClip [ID_TRESURE] Frame 1
#initclip 54
Object.registerClass("ID_TRESURE", material);
#endinitclip
stop();
Symbol 368 MovieClip [ID_TRESURE] Frame 2
setInitialFrame(2);
eventFinished();
Symbol 368 MovieClip [ID_TRESURE] Frame 3
stop();
Symbol 372 MovieClip [ID_CLOSET] Frame 1
#initclip 55
Object.registerClass("ID_CLOSET", material);
#endinitclip
stop();
Symbol 372 MovieClip [ID_CLOSET] Frame 2
_root.mainController.freeze(true);
_root.invokeFx("IDFX_EARTHQUAKE_S", null);
Symbol 372 MovieClip [ID_CLOSET] Frame 31
_root.mcGround.setObjPosDataByInstance(this, 4, 3);
_root.mainController.freeze(false);
_root.mcGround.matrixUpdate(1, 6, 0);
_root.mcGround.matrixUpdate(2, 5, 0);
gotoAndStop (1);
stop();
Symbol 375 MovieClip [ID_ROBJ] Frame 1
stop();
Symbol 375 MovieClip [ID_ROBJ] Frame 2
stop();
Symbol 414 MovieClip [地面] Frame 1
#initclip 56
Object.registerClass("\u5730\u9762", ground);
#endinitclip
stop();
Symbol 414 MovieClip [地面] Frame 2
stop();
Symbol 414 MovieClip [地面] Frame 3
stop();
Symbol 414 MovieClip [地面] Frame 4
stop();
Symbol 414 MovieClip [地面] Frame 5
stop();
Symbol 414 MovieClip [地面] Frame 6
stop();
Symbol 414 MovieClip [地面] Frame 7
stop();
Symbol 414 MovieClip [地面] Frame 8
stop();
Symbol 414 MovieClip [地面] Frame 9
stop();
Symbol 414 MovieClip [地面] Frame 10
stop();
Symbol 414 MovieClip [地面] Frame 11
stop();
Symbol 414 MovieClip [地面] Frame 12
stop();
Symbol 414 MovieClip [地面] Frame 13
stop();
Symbol 414 MovieClip [地面] Frame 14
stop();
Symbol 414 MovieClip [地面] Frame 15
stop();
Symbol 414 MovieClip [地面] Frame 16
stop();
Symbol 414 MovieClip [地面] Frame 17
stop();
Symbol 414 MovieClip [地面] Frame 18
stop();
Symbol 414 MovieClip [地面] Frame 19
stop();
Symbol 414 MovieClip [地面] Frame 20
stop();
Symbol 414 MovieClip [地面] Frame 21
surface._x = surface._x + 2;
surface._y = surface._y - 68;
Symbol 414 MovieClip [地面] Frame 22
surface._x = surface._x + 18;
surface._y = surface._y - 48;
Symbol 414 MovieClip [地面] Frame 23
stop();
Symbol 414 MovieClip [地面] Frame 26
surface._y = surface._y - 40;
Symbol 417 MovieClip [ボタンアバター2] Frame 1
#initclip 57
Object.registerClass("\u30DC\u30BF\u30F3\u30A2\u30D0\u30BF\u30FC\uFF12", mvcCheckBox);
#endinitclip
Symbol 417 MovieClip [ボタンアバター2] Frame 2
stop();
Symbol 417 MovieClip [ボタンアバター2] Frame 4
stop();
Symbol 420 MovieClip [ボタンアバター1] Frame 1
#initclip 58
Object.registerClass("\u30DC\u30BF\u30F3\u30A2\u30D0\u30BF\u30FC\uFF11", mvcCheckBox);
#endinitclip
Symbol 420 MovieClip [ボタンアバター1] Frame 2
stop();
Symbol 420 MovieClip [ボタンアバター1] Frame 4
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
stop();
Symbol 431 MovieClip Frame 3
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 2
stop();
Symbol 433 MovieClip Frame 3
stop();
Symbol 441 MovieClip Frame 5
stop();
Symbol 443 Button
on (release) {
if (gameMode == 0) {
gotoAndStop ("LOGIN");
} else {
gotoAndStop ("ALLOK");
}
}
Symbol 446 Button
on (release) {
if (gameMode == 0) {
gotoAndPlay ("LONELY");
} else {
gotoAndStop ("ALLOK");
}
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 1
#initclip 59
Object.registerClass("\uFF2E\uFF25\uFF34-CONNECTION", mainProc);
#endinitclip
gameMode = 0;
checkAvtBtn();
stop();
Instance of Symbol 431 MovieClip in Symbol 447 MovieClip [NET-CONNECTION] Frame 1
on (release) {
if (_parent.tbName.text.length > 0) {
_parent.loginName = _parent.tbName.text;
_parent.nextFrame();
}
}
Instance of Symbol 433 MovieClip in Symbol 447 MovieClip [NET-CONNECTION] Frame 1
on (release) {
if (_parent.tbName.text.length == 0) {
_parent.loginName = "noname";
} else {
_parent.loginName = tbName.text;
}
_parent.gameMode = 1;
_parent.gotoAndPlay("LONELY");
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 2
if (gameMode == 0) {
_parent.gotoAndPlay("PREPARE1");
play();
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 3
if (gameMode == 0) {
_root.mcGround.gotoAndStop(29);
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 7
if (System.capabilities.language != "ja") {
errorText = "Japanese configuration only";
gotoAndStop ("CONNG");
} else {
ver = Number(getVersion().charAt(4));
if (ver < 7) {
errorText = "Flash\u30D7\u30EC\u30FC\u30E4\u30FC\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u53E4\u3044\u305F\u3081\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093";
gotoAndStop ("CONNG");
} else {
connect(loginName, avatarType);
}
}
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 8
if (gameMode == 0) {
_parent.gotoAndPlay("PREPARE2");
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 18
request_MemberInfo(1);
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 21
request_DialogInfo();
Symbol 447 MovieClip [NET-CONNECTION] Frame 22
if (gameMode == 0) {
_parent.gotoAndPlay("LOGIN");
} else {
freeze(false);
if (connectionOK) {
roomChange(_root.mcGround.CHATROOM_NUMBER);
}
}
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 23
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 26
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 31
if (!prepareOK) {
_parent.gotoAndStop("PREPARE1");
}
Symbol 447 MovieClip [NET-CONNECTION] Frame 33
theLonelyOne();
Symbol 447 MovieClip [NET-CONNECTION] Frame 34
if (!prepareOK) {
_parent.gotoAndPlay("LOGIN");
}
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 35
function onPressFunc(param) {
freeze(false);
if (param == 1) {
gameMode = 1;
gotoAndPlay ("CONNECT");
} else {
gotoAndStop ("VOID");
}
}
freeze(true);
_root.PutYesNoDlg("\u30C1\u30E3\u30C3\u30C8\u30EB\u30FC\u30E0\u306B\u30ED\u30B0\u30A4\u30F3\u3057\u307E\u3059\u304B\uFF1F", onPressFunc);
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 39
stop();
Symbol 447 MovieClip [NET-CONNECTION] Frame 40
function cbf() {
_root.gotoAndPlay("ALLINVAIN");
delete _root.mcGround.stageDataMap;
}
_root.PutShortMessageCb("\u63A2\u7D22\u3092\u3059\u3079\u3066\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002\u3000\u30D7\u30EC\u30A4\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002", cbf);
Symbol 487 MovieClip [__Packages.avatarFigure] Frame 0
class avatarFigure extends MovieClip
{
var freezing, command, pAvatar, count, mcBlink, headDir, hname, tbName, dx, gridW, dy, gridH, lifter, _x, _y, getDepth, swapDepths, gotoAndStop;
function avatarFigure () {
super();
freezing = false;
}
function onLoad() {
command = -1;
if (!pAvatar.thisIsMyAvatar) {
ndiv = 11;
}
count = 0;
mcBlink.gotoAndPlay(random(60) + 1);
headDir = 2;
if (_root.mainController.connectionOK) {
tbName.text = hname;
} else {
tbName._visible = false;
}
dx = gridW / ndiv;
dy = gridH / ndiv;
lifter = 0;
}
function setPos(line, col) {
var _local5 = col * gridW;
var _local4 = line * gridH;
if ((_local5 == _x) && (_local4 == _y)) {
return(undefined);
}
if ((line % 2) == 0) {
if ((col % 2) == 0) {
return(undefined);
}
} else if ((col % 2) != 0) {
return(undefined);
}
_x = _local5;
_y = _local4;
setDepth(line, col);
}
function setDepth(line, col) {
var _local3 = pAvatar.makeDepth(line, col);
if (pAvatar.thisIsMyAvatar) {
if (_local3 != _root.mcGround.surface.getDepth()) {
pAvatar.depth = _local3;
_root.mcGround.surface.swapDepths(_local3);
}
} else if (_local3 != getDepth()) {
pAvatar.depth = _local3;
swapDepths(_local3);
}
}
function onEnterFrame() {
if (command == -1) {
return(undefined);
}
if (count == 0) {
if (pAvatar.thisIsMyAvatar) {
pAvatar.sendMsgToServer(1, command);
}
}
count++;
switch (command) {
case 0 :
_x = _x + dx;
_y = _y + dy;
break;
case 1 :
_x = _x - dx;
_y = _y - dy;
break;
case 2 :
_x = _x - dx;
_y = _y + dy;
break;
case 3 :
_x = _x + dx;
_y = _y - dy;
}
if (count == (ndiv >> 1)) {
setDepth(pAvatar.line, pAvatar.col);
}
if (count >= ndiv) {
var _local3 = command;
count = 0;
command = -1;
if (pAvatar.thisIsMyAvatar) {
_root.mainController.nowTargetMaterial = null;
pAvatar.sendMsgToServer(2, ((headDir << 24) | (pAvatar.line << 12)) | pAvatar.col);
}
setPos(pAvatar.line, pAvatar.col);
switch (_local3) {
case 0 :
(gotoAndStop("STAND0"));// not popped
mcBlink.gotoAndPlay("BLINK");
break;
case 1 :
(gotoAndStop("STAND1"));// not popped
break;
case 2 :
(gotoAndStop("STAND2"));// not popped
mcBlink.gotoAndPlay("BLINK");
break;
case 3 :
(gotoAndStop("STAND3"));// not popped
}
}
}
function turnHead(dir) {
headDir = dir;
switch (headDir) {
case 0 :
(gotoAndStop("STAND0"));// not popped
break;
case 1 :
(gotoAndStop("STAND1"));// not popped
break;
case 2 :
(gotoAndStop("STAND2"));// not popped
break;
case 3 :
(gotoAndStop("STAND3"));// not popped
}
if (pAvatar.thisIsMyAvatar) {
_root.mainController.nowTargetMaterial = null;
pAvatar.sendMsgToServer(0, headDir);
pAvatar.checkPos();
}
}
function freeze(fno) {
freezing = true;
if (fno == 0) {
(gotoAndStop("STAND0"));// not popped
} else {
(gotoAndStop("STAND2"));// not popped
}
mcBlink.gotoAndStop(1);
}
function setCondition(condFlg) {
var _local2 = condFlg & 15;
turnHead(_local2);
}
function act(actNo) {
}
var ndiv = 12;
}
Symbol 488 MovieClip [__Packages.npcFigure] Frame 0
class npcFigure extends avatarFigure
{
var command, dx, ndiv, gridW, dy, gridH, count, headDir, masterClock, lastCmd, dlgCnt, pAvatar, getDepth, swapDepths, turnHead, _x, _y, setPos, gotoAndStop;
function npcFigure () {
super();
}
function onLoad() {
command = -1;
dx = gridW / ndiv;
dy = gridH / ndiv;
count = 0;
headDir = 2;
masterClock = 0;
lastCmd = 0;
dlgCnt = 0;
}
function onUnload() {
_root.mcGround.matrix[pAvatar.roomNo][pAvatar.line][pAvatar.col] = 0;
}
function npcSays() {
}
function setDepth(line, col) {
var _local2 = pAvatar.makeDepth(line, col);
if (_local2 != getDepth()) {
pAvatar.depth = _local2;
swapDepths(_local2);
}
}
function onEnterFrame() {
var _local6 = _root.mainController.myAvatarObject;
if ((_local6.mcAvatar.command == -1) && (command == -1)) {
var _local7 = _local6.line;
var _local5 = _local6.col;
var _local4 = _local6.mcAvatar.headDir;
if (((_local7 == (pAvatar.line - 1)) && (_local5 == (pAvatar.col - 1))) && (_local4 == 0)) {
if (!pAvatar.mcAvatar.mcDialog._visible) {
turnHead(_local4 ^ 1);
npcSays();
}
return(undefined);
}
if (((_local7 == (pAvatar.line + 1)) && (_local5 == (pAvatar.col + 1))) && (_local4 == 1)) {
if (!pAvatar.mcAvatar.mcDialog._visible) {
turnHead(_local4 ^ 1);
npcSays();
}
return(undefined);
}
if (((_local7 == (pAvatar.line - 1)) && (_local5 == (pAvatar.col + 1))) && (_local4 == 2)) {
if (!pAvatar.mcAvatar.mcDialog._visible) {
turnHead(_local4 ^ 1);
npcSays();
}
return(undefined);
}
if (((_local7 == (pAvatar.line + 1)) && (_local5 == (pAvatar.col - 1))) && (_local4 == 3)) {
if (!pAvatar.mcAvatar.mcDialog._visible) {
turnHead(_local4 ^ 1);
npcSays();
}
return(undefined);
}
pAvatar.offMessage();
}
masterClock++;
if (masterClock == 24) {
var _local8;
var _local3 = 0;
do {
_local3++;
if (Math.random() > 0.5) {
_local8 = random(4);
} else {
_local8 = lastCmd;
}
} while ((_local3 < 100) && (pAvatar.checkMatrix(pAvatar.line, pAvatar.col, _local8) < 0));
masterClock = 0;
pAvatar.receiveActionMessage(1, _local8);
lastCmd = _local8;
}
if (command == -1) {
return(undefined);
}
count++;
switch (command) {
case 0 :
_x = _x + dx;
_y = _y + dy;
break;
case 1 :
_x = _x - dx;
_y = _y - dy;
break;
case 2 :
_x = _x - dx;
_y = _y + dy;
break;
case 3 :
_x = _x + dx;
_y = _y - dy;
}
if (count >= ndiv) {
var _local8 = command;
count = 0;
command = -1;
setPos(pAvatar.line, pAvatar.col);
switch (_local8) {
case 0 :
(gotoAndStop("STAND0"));// not popped
break;
case 1 :
(gotoAndStop("STAND1"));// not popped
break;
case 2 :
(gotoAndStop("STAND2"));// not popped
break;
case 3 :
(gotoAndStop("STAND3"));// not popped
}
}
}
}
Symbol 489 MovieClip [__Packages.auraRoad] Frame 0
class auraRoad extends MovieClip
{
var count, tick, tcoef, room, _visible, login, posy, target, removeMovieClip;
function auraRoad () {
super();
count = 0;
tick = 15;
tcoef = 0.97;
}
function onLoad() {
if (room != _root.mainController.currentRoom) {
_visible = false;
}
if (login) {
posy = target._y;
target._y = target._y - (22 * tick);
if (_visible) {
_root.mainController.snd_beam.start(0, 2);
}
}
}
function onEnterFrame() {
count++;
if (login) {
if (count >= 10) {
target._y = target._y + tick;
tick = tick * tcoef;
target._alpha = target._alpha + 5;
if (target._y >= posy) {
target._alpha = 100;
if (room == _root.mainController.currentRoom) {
target._visible = true;
}
target.freezing = false;
(removeMovieClip());// not popped
}
}
} else {
target._y = target._y - 50;
target._alpha = target._alpha - 10;
if (target._alpha <= 0) {
target.removeMovieClip();
(removeMovieClip());// not popped
}
}
}
}
Symbol 490 MovieClip [__Packages.powerGage] Frame 0
class powerGage extends MovieClip
{
var power, nextFrame;
function powerGage () {
super();
power = 0;
}
function onEnterFrame() {
power++;
(nextFrame());// not popped
if (power > 24) {
power = 0;
}
}
function onUnload() {
}
var LIMIT = 24;
}
Symbol 491 MovieClip [__Packages.material] Frame 0
class material extends MovieClip
{
var enable, ctrlObj, ha, line, col, gotoAndStop, removeMovieClip;
function material () {
super();
}
function onLoad() {
enable = false;
if (((ctrlObj.status == 0) || (ctrlObj.eventId < 0)) || (ctrlObj.eventId == undefined)) {
ha._visible = false;
}
if (((ha == undefined) || (!ha._visible)) && (ctrlObj.eventId < 0)) {
onEnterFrame = null;
} else {
ha._visible = false;
ha.enabled = true;
ha.me = this;
ha.onPress = function () {
this.me.action();
};
}
}
function onEnterFrame() {
var _local3 = _root.mainController.myAvatarObject;
if (_local3.mcAvatar.command != -1) {
return(undefined);
}
var _local5 = _local3.line;
var _local4 = _local3.col;
var _local6 = _local3.mcAvatar.headDir;
if ((1 << _local6) & ngDirFlg) {
ha._visible = false;
enable = false;
return(undefined);
}
switch (_local6) {
case 0 :
if ((_local5 == (line - 1)) && (_local4 == (col - 1))) {
if (!enable) {
enable = true;
ha._visible = true;
_root.mainController.nowTargetMaterial = this;
return(undefined);
}
return(undefined);
}
break;
case 1 :
if ((_local5 == (line + 1)) && (_local4 == (col + 1))) {
if (!enable) {
enable = true;
ha._visible = true;
_root.mainController.nowTargetMaterial = this;
return(undefined);
}
return(undefined);
}
break;
case 2 :
if ((_local5 == (line - 1)) && (_local4 == (col + 1))) {
if (!enable) {
enable = true;
ha._visible = true;
_root.mainController.nowTargetMaterial = this;
return(undefined);
}
return(undefined);
}
break;
case 3 :
if (!((_local5 == (line + 1)) && (_local4 == (col - 1)))) {
break;
}
if (!enable) {
enable = true;
ha._visible = true;
_root.mainController.nowTargetMaterial = this;
return(undefined);
}
return(undefined);
}
if (enable) {
ha._visible = false;
enable = false;
}
}
function action() {
if (_root.mainController.isFreeze()) {
return(undefined);
}
_root.mcGround.mousePress = false;
if (ctrlObj.eventId == 2147483647) {
(gotoAndStop("ACTION1"));// not popped
return(undefined);
}
if (ctrlObj.eventId >= 0) {
if (_root.mainController.eventMgr.getEventStatus(ctrlObj.eventId) > 0) {
if (ctrlObj.frame == 1) {
(gotoAndStop("ACTION1"));// not popped
}
var _local3 = _root.mainController.eventMgr.invokeEvent(ctrlObj.eventId);
if (!_local3) {
ha._visible = false;
ha.enabled = false;
}
}
}
}
function putItem(itemId) {
return(false);
}
function setAttr(param) {
ctrlObj.frame = param;
}
function setInitialFrame(frameno) {
setAttr(frameno);
}
function eventFinished() {
onEnterFrame = null;
ctrlObj.eventId = -1;
ha._visible = false;
enable = false;
}
function ignoreMe() {
ctrlObj.eventId = 2147483646 /* 0x7FFFFFFE */;
}
function deleteMe() {
eventFinished();
ignoreMe();
ctrlObj.ID = "";
(removeMovieClip());// not popped
}
var ngDirFlg = 0;
}
Symbol 492 MovieClip [__Packages.avatar] Frame 0
class avatar
{
var theID, thisIsMyAvatar, dialogL, line, col, roomNo, publicName, depth, mcAvatar;
function avatar () {
}
function attach(id, isMine, discription, instName, room, posL, posC, avatarType, fx, dialogisL) {
theID = id;
thisIsMyAvatar = isMine;
dialogL = dialogisL;
line = posL;
col = posC;
roomNo = room;
publicName = discription;
depth = makeDepth(line, col);
if (isMine) {
mcAvatar = _root.mcGround.surface.attachMovie("AVATAR_" + avatarType, instName, depth, {hname:discription, gridW:_root.mcGround.GRID_WIDTH, gridH:_root.mcGround.GRID_HEIGHT, pAvatar:this});
} else {
mcAvatar = _root.mcGround.attachMovie("AVATAR_" + avatarType, instName, depth, {hname:discription, gridW:_root.mcGround.GRID_WIDTH, gridH:_root.mcGround.GRID_HEIGHT, pAvatar:this});
}
if (room != _root.mainController.currentRoom) {
mcAvatar._visible = false;
}
mcAvatar.setPos(line, col);
if (fx) {
mcAvatar._alpha = 0;
var _local5 = getNextDepth(mcAvatar.getDepth());
var _local3;
if (isMine) {
mcAvatar.freezing = true;
_local3 = _root.mcGround.surface.attachMovie("ID_AURAROAD", "ar" + instName, _local5, {target:mcAvatar, login:true, room:roomNo});
} else {
_local3 = _root.mcGround.attachMovie("ID_AURAROAD", "ar" + instName, _local5, {target:mcAvatar, login:true, room:roomNo});
}
_local3._x = mcAvatar._x;
_local3._y = mcAvatar._y;
}
mcAvatar.mcDialog.setPos(dialogL);
return(mcAvatar);
}
function remove() {
var _local4 = makeDepth(line, col);
var _local3 = _root.mcGround.surface.attachMovie("ID_AURAROAD", "ar" + mcAvatar._name, _local4, {target:mcAvatar, login:false, room:roomNo});
_local3._x = mcAvatar._x;
_local3._y = mcAvatar._y;
}
function makeDepth(l, c) {
var _local2 = (((l * _root.DEPTH_CHAR_TICK) + (_root.DEPTH_CHAR_TICK / 2)) + c) + _root.DEPTH_OBJECTS;
while (_root.mcGround.getInstanceAtDepth(_local2) != undefined) {
_local2++;
}
return(_local2);
}
function getNextDepth(dnum) {
var _local2 = dnum + 1;
while (_root.mcGround.getInstanceAtDepth(_local2) != undefined) {
_local2++;
}
return(_local2);
}
function keepDepth(dep) {
if (_root.mcGround.getInstanceAtDepth(dep) == undefined) {
_root.mcGround.surface.swapDepths(dep);
depth = dep;
}
}
function checkAndUpdateMatrix(l, c, d) {
var _local3;
var _local4;
if (_root.noCheck) {
return(true);
}
switch (d) {
case 0 :
_local3 = 1;
_local4 = 1;
break;
case 1 :
if ((l == 0) || (c == 0)) {
return(false);
}
_local3 = -1;
_local4 = -1;
break;
case 2 :
if (c == 0) {
return(false);
}
_local3 = 1;
_local4 = -1;
break;
case 3 :
if (l == 0) {
return(false);
}
_local3 = -1;
_local4 = 1;
}
if (_root.mcGround.matrix[roomNo][l + _local3][c + _local4] == 1) {
return(false);
}
return(true);
}
function move(direction) {
if (mcAvatar.command != -1) {
return(undefined);
}
if (mcAvatar.headDir != direction) {
mcAvatar.turnHead(direction);
} else {
switch (direction) {
case 0 :
if (!checkAndUpdateMatrix(line, col, 0)) {
return(undefined);
}
line++;
col++;
mcAvatar.gotoAndStop("D0");
break;
case 1 :
if (!checkAndUpdateMatrix(line, col, 1)) {
return(undefined);
}
line--;
col--;
mcAvatar.gotoAndStop("D1");
break;
case 2 :
if (!checkAndUpdateMatrix(line, col, 2)) {
return(undefined);
}
line++;
col--;
mcAvatar.gotoAndStop("D2");
break;
case 3 :
if (!checkAndUpdateMatrix(line, col, 3)) {
return(undefined);
}
line--;
col++;
mcAvatar.gotoAndStop("D3");
}
mcAvatar.command = direction;
}
}
function moveon() {
move(mcAvatar.headDir);
}
function depthFirst() {
mcAvatar.setDepth(line, col);
}
function putMessage(msgText) {
var _local2 = true;
if (dialogL != 0) {
_local2 = false;
}
mcAvatar.mcDialog.putDialog(msgText, _local2);
}
function dialogPosition(pos) {
dialogL = pos;
mcAvatar.mcDialog.setPos(pos);
sendMsgToServer(3, pos);
}
function offMessage() {
mcAvatar.mcDialog.offMsg();
}
function act(actNo) {
mcAvatar.act(actNo);
}
function setCondition(condflg) {
mcAvatar.setCondition(condflg);
}
function sendMsgToServer(action, param) {
if ((action >= 0) && (action <= 5)) {
_root.mainController.sendAvatarMessage(theID, action, param);
}
}
function receiveActionMessage(action, param) {
if (thisIsMyAvatar) {
return(undefined);
}
switch (action) {
case 0 :
mcAvatar.turnHead(param);
break;
case 1 :
move(param);
break;
case 2 :
var _local6 = (param & 16773120) >> 12;
var _local4 = param & 4095;
var _local7 = param >> 24;
if ((_local6 != line) || (_local4 != col)) {
line = _local6;
col = _local4;
mcAvatar.setPos(_local6, _local4);
mcAvatar.turnHead(_local7);
}
break;
case 3 :
dialogL = param;
mcAvatar.mcDialog.setPos(param);
break;
case 4 :
mcAvatar.act(param);
break;
case 5 :
_local6 = (param & 16773120) >> 12;
_local4 = param & 4095;
_local7 = param >> 28;
var _local5 = (param >> 24) & 15;
roomNo = _local5;
line = _local6;
col = _local4;
mcAvatar.setPos(_local6, _local4);
mcAvatar.turnHead(_local7);
if (roomNo == _root.mainController.currentRoom) {
mcAvatar._visible = true;
} else {
mcAvatar._visible = false;
}
}
}
function throwPrecheck() {
var _local7 = _root.mcGround.targetL - line;
var _local5 = _root.mcGround.targetC - col;
var _local4 = Math.abs(_local7);
var _local3 = Math.abs(_local5);
if ((_local5 == 0) && (_local7 == 0)) {
return(false);
}
var _local6 = 0;
if ((_local4 <= 2) && (_local3 <= 2)) {
if (!((_local4 == 2) && (_local3 == 2))) {
_local6 = 1;
}
}
if (((_local4 <= 4) && (_local3 <= 4)) && (_local6 == 0)) {
if ((((!((_local4 == 2) && (_local3 == 4))) && (!((_local4 == 4) && (_local3 == 4)))) && (!((_local4 == 3) && (_local3 == 3)))) && (!((_local4 == 4) && (_local3 == 2)))) {
_local6 = 2;
}
}
if (((_local4 <= 6) && (_local3 <= 6)) && (_local6 == 0)) {
if (((((((((!((_local4 == 2) && (_local3 == 6))) && (!((_local4 == 3) && (_local3 == 5)))) && (!((_local4 == 4) && (_local3 == 6)))) && (!((_local4 == 4) && (_local3 == 4)))) && (!((_local4 == 5) && (_local3 == 5)))) && (!((_local4 == 5) && (_local3 == 3)))) && (!((_local4 == 6) && (_local3 == 6)))) && (!((_local4 == 6) && (_local3 == 4)))) && (!((_local4 == 6) && (_local3 == 2)))) {
_local6 = 3;
}
}
if (_local6 == 0) {
return(false);
}
if (_local7 > 0) {
if (_local5 == 0) {
if ((mcAvatar.headDir != 0) && (mcAvatar.headDir != 2)) {
mcAvatar.turnHead(0);
return(true);
}
} else if (_local5 > 0) {
if (mcAvatar.headDir != 0) {
mcAvatar.turnHead(0);
return(true);
}
} else if (_local5 < 0) {
if (mcAvatar.headDir != 2) {
mcAvatar.turnHead(2);
return(true);
}
}
} else if (_local7 < 0) {
if (_local5 == 0) {
if ((mcAvatar.headDir != 1) && (mcAvatar.headDir != 3)) {
mcAvatar.turnHead(3);
return(true);
}
} else if (_local5 > 0) {
if (mcAvatar.headDir != 3) {
mcAvatar.turnHead(3);
return(true);
}
} else if (_local5 < 0) {
if (mcAvatar.headDir != 1) {
mcAvatar.turnHead(1);
return(true);
}
}
} else if (_local7 == 0) {
if (_local5 > 0) {
if ((mcAvatar.headDir != 0) && (mcAvatar.headDir != 3)) {
mcAvatar.turnHead(0);
return(true);
}
} else if (_local5 < 0) {
if ((mcAvatar.headDir != 1) && (mcAvatar.headDir != 2)) {
mcAvatar.turnHead(2);
return(true);
}
}
}
return(true);
}
function throwBall() {
}
function isFree() {
if (mcAvatar.freezing) {
return(false);
}
if (mcAvatar.command == -1) {
return(true);
}
return(false);
}
function checkPos() {
_root.mcGround.checkPos(roomNo, line, col, mcAvatar.headDir);
}
function directMove(d, l, c) {
line = l;
col = c;
mcAvatar.setPos(line, col);
mcAvatar.turnHead(d);
if (thisIsMyAvatar) {
var _local2 = (((mcAvatar.headDir << 28) | (roomNo << 24)) | (line << 12)) | col;
sendMsgToServer(5, _local2);
}
}
}
Symbol 493 MovieClip [__Packages.door] Frame 0
class door extends MovieClip
{
var myFrame, ctrlObj, overDoor, line, col;
function door () {
super();
}
function onLoad() {
myFrame = ctrlObj.frame;
overDoor = ctrlObj.eventId;
}
function onEnterFrame() {
var _local4 = _root.mainController.myAvatarObject;
if (_local4.mcAvatar.command != -1) {
return(undefined);
}
var _local3 = _local4.mcAvatar.headDir;
if ((_local3 + 1) != myFrame) {
return(undefined);
}
var _local6 = _local4.line;
var _local5 = _local4.col;
if (((_local6 == (line - 1)) && (_local5 == (col - 1))) && (_local3 == 0)) {
warp();
} else if (((_local6 == (line + 1)) && (_local5 == (col + 1))) && (_local3 == 1)) {
warp();
} else if (((_local6 == (line - 1)) && (_local5 == (col + 1))) && (_local3 == 2)) {
warp();
} else if (((_local6 == (line + 1)) && (_local5 == (col - 1))) && (_local3 == 3)) {
warp();
}
}
function warp() {
onEnterFrame = null;
_root.mainController.roomChangeByDoor(overDoor);
}
}
Symbol 494 MovieClip [__Packages.doorturn] Frame 0
class doorturn extends door
{
var onEnterFrame, overDoor;
function doorturn () {
super();
}
function warp() {
onEnterFrame = null;
turn();
_root.mainController.roomChangeByDoor(overDoor);
turn();
}
function turn() {
var _local2 = _root.mainController.myAvatarObject.mcAvatar;
var _local3 = _local2.headDir;
_local2.turnHead(_local3 ^ 1);
}
}
Symbol 495 MovieClip [__Packages.stairs] Frame 0
class stairs extends MovieClip
{
var type, ctrlObj, size, stepN, line, col;
function stairs () {
super();
}
function onLoad() {
type = ctrlObj.eventId;
size = ctrlObj.frame;
stepN = ctrlObj.frame;
}
function onEnterFrame() {
var _local4 = _root.mainController.myAvatarObject;
if (_local4.mcAvatar.command != -1) {
return(undefined);
}
var _local3 = _local4.mcAvatar.headDir;
var _local6 = _local4.line;
var _local5 = _local4.col;
switch (type) {
case 2684354560 :
if (((_local6 == (line - 1)) && (_local5 == (col - 1))) && (_local3 == 0)) {
downStairs(_local3);
} else if (((_local6 == (line + 1)) && (_local5 == (col + 1))) && (_local3 == 1)) {
upStairs(_local3);
}
break;
case 2952790016 :
if (((_local6 == (line - 1)) && (_local5 == (col + 1))) && (_local3 == 2)) {
downStairs(_local3);
} else {
if (!(((_local6 == (line + 1)) && (_local5 == (col - 1))) && (_local3 == 3))) {
break;
}
upStairs(_local3);
}
}
}
function upStairs(d) {
if (_root.mcGround.serfaceLevel == 0) {
invokeStairFx("ID_SURFACE_UP", stepN, d);
}
}
function downStairs(d) {
if (_root.mcGround.serfaceLevel == stepN) {
invokeStairFx("ID_SURFACE_DOWN", stepN, d);
}
}
function invokeStairFx(MCID, len, d) {
_root.mcGround.mousePress = false;
var _local2 = _root.GetFreeDepth(_root.DEPTH_FX2);
_root.attachMovie(MCID, "mcTheFx" + _local2, _local2, {stepNum:len, dir:d});
}
}
Symbol 496 MovieClip [__Packages.stairsUp] Frame 0
class stairsUp extends stairs
{
var type, line, col, upStairs;
function stairsUp () {
super();
}
function onEnterFrame() {
var _local4 = _root.mainController.myAvatarObject;
if (_local4.mcAvatar.command != -1) {
return(undefined);
}
var _local3 = _local4.mcAvatar.headDir;
var _local6 = _local4.line;
var _local5 = _local4.col;
switch (type) {
case 2684354560 :
if (((_local6 == (line - 1)) && (_local5 == (col - 1))) && (_local3 == 0)) {
} else if (((_local6 == (line + 1)) && (_local5 == (col + 1))) && (_local3 == 1)) {
upStairs(_local3);
}
break;
case 2952790016 :
if (((_local6 == (line - 1)) && (_local5 == (col + 1))) && (_local3 == 2)) {
} else {
if (!(((_local6 == (line + 1)) && (_local5 == (col - 1))) && (_local3 == 3))) {
break;
}
upStairs(_local3);
}
}
}
}
Symbol 497 MovieClip [__Packages.stairsDown] Frame 0
class stairsDown extends stairs
{
var type, line, col, downStairs;
function stairsDown () {
super();
}
function onEnterFrame() {
var _local4 = _root.mainController.myAvatarObject;
if (_local4.mcAvatar.command != -1) {
return(undefined);
}
var _local3 = _local4.mcAvatar.headDir;
var _local6 = _local4.line;
var _local5 = _local4.col;
switch (type) {
case 2684354560 :
if (((_local6 == (line - 1)) && (_local5 == (col - 1))) && (_local3 == 0)) {
downStairs(_local3);
} else if (((_local6 == (line + 1)) && (_local5 == (col + 1))) && (_local3 == 1)) {
}
break;
case 2952790016 :
if (((_local6 == (line - 1)) && (_local5 == (col + 1))) && (_local3 == 2)) {
downStairs(_local3);
} else {
if (!(((_local6 == (line + 1)) && (_local5 == (col - 1))) && (_local3 == 3))) {
break;
}
}
}
}
}
Symbol 498 MovieClip [__Packages.materialAlies] Frame 0
class materialAlies extends material
{
var ctrlObj, target;
function materialAlies () {
super();
}
function onLoad() {
var _local5 = ctrlObj.eventId;
var _local4 = _root.mcGround.roomObj[_root.mainController.currentRoom][_local5];
if (_local4 != undefined) {
target = _local4.mc;
super.onLoad();
}
}
function action() {
target.action();
}
function putItem(id) {
return(target.putItem(id));
}
}
Symbol 499 MovieClip [__Packages.resultsWindow] Frame 0
class resultsWindow extends MovieClip
{
var itemlist, totalScore, kasu, jem, gj, total, comment;
function resultsWindow () {
super();
}
function onLoad() {
itemlist = _root.mainController.gotItems;
totalScore = 0;
kasu = 0;
jem = 0;
gj = 0;
var _local7 = itemlist.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local5 = this["cel" + _local3];
_local5.itemName.text = _root.ITEM_LIST[itemlist[_local3].id].name;
var _local4 = _root.ITEM_LIST[itemlist[_local3].id].point;
_local5.pts.text = _local4;
_local5.attachMovie("ID_ITEM" + itemlist[_local3].id, "mcIcon" + _local3, _local3 + 100);
totalScore = totalScore + _local4;
if (_local4 <= 100) {
kasu++;
}
if ((_local4 > 200) && (_local4 <= 1000)) {
jem++;
}
if (_local4 > 1000) {
gj++;
}
if (_local4 >= 5000) {
gj = gj + 10;
kasu = 0;
}
_local3++;
}
while (_local3 < 15) {
this["cel" + _local3]._visible = false;
_local3++;
}
total.text = totalScore;
var _local6 = "\u307E\u3042\u3053\u3093\u306A\u3082\u3093\u3067\u3057\u3087\u3046";
if (_local7 > 6) {
if (kasu > 5) {
_local6 = "\u3088\u304F\u3082\u307E\u3042\u3001\u3053\u3093\u306A\u30AC\u30E9\u30AF\u30BF\u3070\u304B\u308A\u96C6\u3081\u3066\u304D\u305F\u3082\u3093\u3067\u3059";
} else if (gj >= 5) {
if (gj >= 10) {
_local6 = "\u30EC\u30A2\u306A\u30A2\u30A4\u30C6\u30E0\u3092\u898B\u3064\u3051\u307E\u3057\u305F\u306D";
} else {
_local6 = "\u3042\u306A\u305F\u306F\u3059\u3070\u3089\u3057\u3044\u63A2\u691C\u5BB6\u3067\u3059\u306D";
}
} else if (jem > 8) {
_local6 = "\u306A\u304B\u306A\u304B\u306E\u7269\u304C\u591A\u304F\u898B\u3064\u304B\u308A\u307E\u3057\u305F";
} else if (jem > 5) {
_local6 = "\u307E\u305A\u307E\u305A\u306E\u53CE\u7A6B\u3067\u3057\u3087\u3046";
}
} else {
_local6 = "\u5E7D\u970A\u307F\u305F\u3044\u306B\u90E8\u5C4B\u3092\u5F98\u5F8A\u3057\u3066\u305F\u3060\u3051\u3067\u3059\u306D";
}
comment.text = _local6;
_root.mainController.freeze(true);
}
}
Symbol 500 MovieClip [__Packages.itemIcon] Frame 0
class itemIcon extends MovieClip
{
var _name, id, enabled, myIcon, _parent, gotoAndPlay;
function itemIcon () {
super();
}
function onLoad() {
if (_name.length == 4) {
id = Number(_name.charAt(3));
} else {
id = Number(_name.substr(3, 2));
}
enabled = false;
myIcon = null;
}
function onRelease() {
_parent.pressBox(id, this);
}
function onRollOver() {
(gotoAndPlay("OVER"));// not popped
}
function onRollOut() {
(gotoAndPlay("OUT"));// not popped
}
}
Symbol 501 MovieClip [__Packages.itemPalette] Frame 0
class itemPalette extends MovieClip
{
var _parent, tags, level, itemSel, localToGlobal;
function itemPalette () {
super();
}
function onLoad() {
_parent._parent.btnSlider._visible = false;
}
function view(itemlist) {
if (tags != undefined) {
delete tags;
}
var _local2 = 0;
while (_local2 < 20) {
var _local5 = this["box" + _local2];
var _local4 = _local5["mcGetItemImage" + _local2];
if (_local4 != undefined) {
_local4.removeMovieClip();
}
_local5.enabled = false;
_local2++;
}
tags = new Array();
var _local9 = itemlist.length;
if (_local9 > 10) {
_parent._parent.btnSlider._visible = true;
}
_local2 = 0;
while (_local2 < _local9) {
var _local3 = this["box" + _local2];
var _local7 = "mcGetItemImage" + _local2;
_local3.enabled = true;
var _local6 = _local3.attachMovie("ID_ITEM" + itemlist[_local2].id, _local7, _local2);
_local3.myIcon = _local6;
tags.push(itemlist[_local2].id);
_local2++;
}
level = 0;
}
function rollOverItem(no) {
if (no < tags.length) {
}
}
function pressBox(no, instance) {
if (itemSel != undefined) {
return(undefined);
}
if (no < tags.length) {
var _local4 = _root.attachMovie("ID_SELECTBOX", "itemSel", _root.DEPTH_MSG, {id:tags[no]});
var _local3 = {x:instance._x, y:instance._y - 24};
localToGlobal(_local3);
_local4._x = _local3.x;
_local4._y = _local3.y;
}
}
function invoke(itemId) {
var _local2 = _root.mainController.nowTargetMaterial;
if (_local2 != null) {
if (_local2.putItem(itemId)) {
} else {
_root.PutShortMessage("\u306A\u306B\u3082\u8D77\u304D\u306A\u304B\u3063\u305F");
}
}
}
function slide() {
if (level == 0) {
level = 1;
_parent.gotoAndPlay("SLIDEUP");
_parent._parent.btnSlider._yscale = -100;
} else {
level = 0;
_parent.gotoAndPlay("SLIDEDOWN");
_parent._parent.btnSlider._yscale = 100;
}
}
}
Symbol 502 MovieClip [__Packages.ground] Frame 0
class ground extends MovieClip
{
var stageDataMap, lastRoom, newRoom, matrixBase, matrixUp, matrix, roomObj, roomObjU, myAvatar, mousePress, surface, createEmptyMovieClip, hitTest, attachMovie, getInstanceAtDepth, newL, newC, rcDir, gotoAndStop;
function ground () {
super();
if (stageDataMap != undefined) {
delete stageDataMap;
}
stageDataMap = new stageData();
var _local6 = 0;
while (_local6 < NUM_ROOM) {
this["StaticObjects" + _local6] = stageDataMap.dataMaps[_local6];
this["StaticObjectsU" + _local6] = stageDataMap.dataMapsU[_local6];
_local6++;
}
lastRoom = 1;
newRoom = 1;
matrixBase = new Array(NUM_ROOM);
var _local7 = 0;
while (_local7 < NUM_ROOM) {
matrixBase[_local7] = new Array(LLIM + 8);
_local6 = 0;
while (_local6 <= (LLIM + 8)) {
matrixBase[_local7][_local6] = new Array(CLIM + 8);
var _local3 = 0;
while (_local3 <= (CLIM + 8)) {
matrixBase[_local7][_local6][_local3] = 1;
_local3++;
}
_local6++;
}
_local7++;
}
_local7 = 0;
while (_local7 < NUM_ROOM) {
var _local4 = 0;
while (_local4 <= LLIM) {
var _local5 = seed[_local4];
var _local8 = (Math.floor(CLIM / 2) + 1) - _local5;
_local6 = 1;
while (_local6 <= _local8) {
matrixBase[_local7][_local4][_local5] = 0;
_local5 = _local5 + 2;
_local6++;
}
_local4++;
}
_local7++;
}
matrixUp = new Array(NUM_ROOM);
_local7 = 0;
while (_local7 < NUM_ROOM) {
matrixUp[_local7] = new Array(LLIM + 8);
_local6 = 0;
while (_local6 <= (LLIM + 8)) {
matrixUp[_local7][_local6] = new Array(CLIM + 8);
var _local3 = 0;
while (_local3 <= (CLIM + 8)) {
matrixUp[_local7][_local6][_local3] = 1;
_local3++;
}
_local6++;
}
_local7++;
}
_local7 = 0;
while (_local7 < NUM_ROOM) {
var _local4 = 0;
while (_local4 <= LLIM) {
var _local5 = seed[_local4];
var _local8 = (Math.floor(CLIM / 2) + 1) - _local5;
_local6 = 1;
while (_local6 <= _local8) {
matrixUp[_local7][_local4][_local5] = 0;
_local5 = _local5 + 2;
_local6++;
}
_local4++;
}
_local7++;
}
matrix = matrixBase;
createRandomRooms();
if (roomObj != undefined) {
delete roomObj;
}
roomObj = new Array(NUM_ROOM);
if (roomObjU != undefined) {
delete roomObjU;
}
roomObjU = new Array(NUM_ROOM);
_local6 = 0;
while (_local6 < NUM_ROOM) {
roomObj[_local6] = this["StaticObjects" + _local6];
roomObjU[_local6] = this["StaticObjectsU" + _local6];
_local6++;
}
randomOtakara_Init();
resetGround();
myAvatar = null;
mousePress = false;
}
function roerChk(obj, n) {
var _local1 = 0;
while (_local1 < n) {
if (obj.link[_local1] == undefined) {
}
_local1++;
}
}
function createRandomRooms() {
var _local15 = _root.playCount % 5;
var _local4 = randomRoomPattern[_local15];
var _local3 = 0;
while (_local3 < 10) {
var _local5 = new Array();
this["StaticObjects" + (_local3 + RANDROOM_OFFSET)] = _local5;
switch (_local4[_local3].type) {
case 1 :
roerChk(_local4[_local3], 1);
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
break;
case 2 :
roerChk(_local4[_local3], 1);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
break;
case 3 :
roerChk(_local4[_local3], 2);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 4 :
roerChk(_local4[_local3], 1);
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
break;
case 5 :
roerChk(_local4[_local3], 2);
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 6 :
roerChk(_local4[_local3], 2);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 7 :
roerChk(_local4[_local3], 3);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[2]) + RANDROOM_OFFSET, npc:null});
break;
case 8 :
roerChk(_local4[_local3], 1);
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
break;
case 9 :
roerChk(_local4[_local3], 2);
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 10 :
roerChk(_local4[_local3], 2);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 11 :
roerChk(_local4[_local3], 3);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[2]) + RANDROOM_OFFSET, npc:null});
break;
case 12 :
roerChk(_local4[_local3], 2);
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
break;
case 13 :
roerChk(_local4[_local3], 3);
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[2]) + RANDROOM_OFFSET, npc:null});
break;
case 14 :
roerChk(_local4[_local3], 3);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[2]) + RANDROOM_OFFSET, npc:null});
break;
case 15 :
roerChk(_local4[_local3], 4);
_local5.push({l:2, c:3, ID:"ID_RDOOR_A", mc:null, frame:2, eventId:(2416577280 + _local4[_local3].link[0]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:(2416118272 + _local4[_local3].link[1]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:11, c:12, ID:"ID_RDOOR_A", mc:null, frame:1, eventId:(2416116736 + _local4[_local3].link[2]) + RANDROOM_OFFSET, npc:null});
_local5.push({l:2, c:11, ID:"ID_RDOOR_A", mc:null, frame:4, eventId:(2416575232 + _local4[_local3].link[3]) + RANDROOM_OFFSET, npc:null});
}
var _local22;
var _local18;
var _local11 = ["ID_CHAIR_WDR", "ID_TON1", "ID_CHAIR_WDB", "ID_TON2", "ID_CHAIR_WD", "ID_TON3", "ID_LABSTEP", "ID_ROBJ", "ID_TON1", "ID_TON2", "ID_TON3"];
var _local8 = 0;
while (_local8 < 6) {
do {
var dat = getRandomPos();
_local22 = dat >> 16;
_local18 = dat & 65535;
} while ((((((((dat == 196612) || (dat == 196618)) || (dat == 655363)) || (dat == 655371)) || (dat == 262149)) || (dat == 262153)) || (dat == 589828)) || (dat == 589834));
if (matrixBase[_local3 + RANDROOM_OFFSET][_local22][_local18] == 1) {
var _local9 = getRandomCenter(_local3 + RANDROOM_OFFSET);
_local22 = sqdat[_local9].l;
_local18 = sqdat[_local9].c;
}
_local5.push({l:_local22, c:_local18, ID:_local11[_root.Rand(11)], mc:null, frame:1, eventId:-1, npc:null});
matrixBase[_local3 + RANDROOM_OFFSET][_local22][_local18] = 1;
_local8++;
}
var _local13 = _root.Rand(3);
_local8 = 0;
while (_local8 < _local13) {
var _local9 = getRandomCenter(_local3 + RANDROOM_OFFSET);
_local22 = sqdat[_local9].l;
_local18 = sqdat[_local9].c;
_local5.push({l:_local22, c:_local18, ID:_local11[_root.Rand(6)], mc:null, frame:1, eventId:-1, npc:null});
matrixBase[_local3 + RANDROOM_OFFSET][_local22][_local18] = 1;
_local8++;
}
_local3++;
}
var _local10 = 0;
while (_local10 < 2) {
var _local6 = _local4[10].link[_local10];
var _local14 = this["StaticObjects" + (_local6 + RANDROOM_OFFSET)];
var _local7 = 0;
while (_local7 < 36) {
var _local9 = getRandomCenter(_local6 + RANDROOM_OFFSET);
var _local22 = sqdat[_local9].l;
var _local18 = sqdat[_local9].c;
if ((((((((matrixBase[_local6 + RANDROOM_OFFSET][_local22 - 2][_local18] == 0) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22 - 1][_local18 - 1] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22][_local18 - 2] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22 + 1][_local18 - 1] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22 + 2][_local18] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22 + 1][_local18 + 1] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22][_local18 + 2] == 0)) && (matrixBase[_local6 + RANDROOM_OFFSET][_local22 - 1][_local18 + 1] == 0)) {
break;
}
_local7++;
}
if (_local10 == 0) {
var _local12 = 20;
_local14.push({l:_local22, c:_local18, ID:"ID_TRESURE", mc:null, frame:1, eventId:_local12, npc:null});
_root.Item_clear(_local12 - 10);
} else {
var _local12 = 30;
_local14.push({l:_local22, c:_local18, ID:"ID_TRESURE", mc:null, frame:1, eventId:_local12, npc:null});
_root.Item_clear(_local12 - 10);
}
_local10++;
}
var _local16 = this["StaticObjects" + RANDROOM_OFFSET];
_local16.push({l:11, c:2, ID:"ID_RDOOR_A", mc:null, frame:3, eventId:2416315649, npc:null});
}
function putPrimeItem(r, l, c, idx) {
var _local2 = this["StaticObjects" + r];
_local2.push({l:l, c:c, ID:"ID_ITEM", mc:null, frame:1, eventId:idx, npc:null});
}
function randomOtakara_Init() {
var _local5 = CandidatePos_Item1.length;
var _local3 = CandidatePos_Item1[_root.Rand(_local5)];
var _local4 = 2;
putPrimeItem(_local3.r, _local3.l, _local3.c, _local4 + 10);
_root.Item_clear(_local4);
_local5 = CandidatePos_Item2.length;
_local3 = CandidatePos_Item2[_root.Rand(_local5)];
_local4 = 28;
putPrimeItem(_local3.r, _local3.l, _local3.c, _local4 + 10);
_root.Item_clear(_local4);
}
function resetGround() {
var _local3 = 0;
while (_local3 < NUM_ROOM) {
var _local13 = roomObj[_local3].length;
var _local8 = 0;
while (_local8 < _local13) {
var _local9 = roomObj[_local3][_local8];
if ((_local9.eventId > 0) && (_local9.eventId < 2415919104)) {
_local9.frame = 1;
}
var _local5 = _local9.l;
var _local12 = _local9.c;
if ((_local5 & 4278190080) == 16777216) {
var _local6 = new Array(3);
_local6[0] = _local5 & 255;
_local6[1] = (_local5 & 65280) >> 8;
_local6[2] = (_local5 & 16711680) >> 16;
var _local11 = _root.Rand(3);
var _local4 = _local6[_local11];
var _local7 = (_local12 >> (_local11 * 8)) & 255;
if (_local4 == 255) {
_local4 = -1;
}
if (_local7 == 255) {
_local7 = -1;
}
roomObj[_local3][_local8].l = _local4;
roomObj[_local3][_local8].c = _local7;
}
if (_local9.ID == "ID_ITEM") {
if (_local9.eventId < 0) {
var _local10 = _root.Item_getRandom();
if (_local10 >= 0) {
_local9.eventId = _local10 + 10;
}
} else {
_root.Item_clear(_local9.eventId - 10);
}
}
_local8++;
}
_local13 = roomObjU[_local3].length;
_local8 = 0;
while (_local8 < _local13) {
var _local9 = roomObjU[_local3][_local8];
matrixUp[_local3][_local9.l][_local9.c] = 1;
_local8++;
}
_local3++;
}
}
function onLoad() {
surface = createEmptyMovieClip("mcsurface", _root.DEPTH_OBJECTS);
serfaceLevel = 0;
}
function attachMyAvatar(pAvatar) {
myAvatar = pAvatar;
}
function onMouseDown() {
if (myAvatar == null) {
return(undefined);
}
if (myAvatar.mcAvatar.freezing) {
return(undefined);
}
if (_root.mainController.currentRoom != myAvatar.roomNo) {
return(undefined);
}
if ((_root._ymouse > 433) || (!hitTest(_root._xmouse, _root._ymouse, false))) {
return(undefined);
}
if (_root.mainController.connectionOK && (_root.mcCtrlPanel.shield.hitTest(_root._xmouse, _root._ymouse, false))) {
return(undefined);
}
mousePress = true;
}
function onMouseUp() {
mousePress = false;
}
function onEnterFrame() {
if (!mousePress) {
return(undefined);
}
if ((surface._xmouse > myAvatar.mcAvatar._x) && (surface._ymouse > myAvatar.mcAvatar._y)) {
myAvatar.move(0);
} else if ((surface._xmouse < myAvatar.mcAvatar._x) && (surface._ymouse < myAvatar.mcAvatar._y)) {
myAvatar.move(1);
} else if ((surface._xmouse < myAvatar.mcAvatar._x) && (surface._ymouse > myAvatar.mcAvatar._y)) {
myAvatar.move(2);
} else if ((surface._xmouse > myAvatar.mcAvatar._x) && (surface._ymouse < myAvatar.mcAvatar._y)) {
myAvatar.move(3);
}
}
function getRandomPos() {
var _local3 = 0;
var _local4 = 0;
var _local8 = false;
var _local6;
var _local5;
_local4 = 0;
while (_local4 < 256) {
while (_local3 <= 1) {
_local3 = _root.Rand(LLIM + 1);
}
_local6 = (Math.floor(CLIM / 2) + 1) - seed[_local3];
_local5 = (_root.Rand(_local6) * 2) + seed[_local3];
if (matrix[newRoom][_local3][_local5] == 0) {
break;
}
_local4++;
}
var _local7 = (_local3 << 16) | _local5;
return(_local7);
}
function getRandomCenter(room) {
var _local5 = _root.Rand(36);
var _local6 = 0;
do {
var _local4 = sqdat[_local5].l;
var _local3 = sqdat[_local5].c;
if (((((_local4 == 4) && (_local3 == 5)) || ((_local4 == 4) && (_local3 == 9))) || ((_local4 == 9) && (_local3 == 4))) || ((_local4 == 9) && (_local3 == 10))) {
} else if (matrix[room][_local4][_local3] == 0) {
return(_local5);
}
_local5++;
if (_local5 == 36) {
_local5 = 0;
}
_local6++;
} while (_local6 < 36);
return(0);
}
function setObjects() {
var _local3 = 0;
var _local6 = roomObj[lastRoom].length;
_local3 = 0;
while (_local3 < _local6) {
var _local2 = roomObj[lastRoom][_local3];
if (_local2.mc != null) {
_local2.mc.removeMovieClip();
_local2.mc = null;
}
if (_local2.npc != null) {
delete _local2.npc;
_local2.npc = null;
}
_local3++;
}
_local6 = roomObj[newRoom].length;
_local3 = 0;
while (_local3 < _local6) {
var _local2 = roomObj[newRoom][_local3];
if (_local2.ID == "") {
matrix[newRoom][_local2.l][_local2.c] = 1;
} else if (_local2.ID == "PUNCH") {
matrix[newRoom][_local2.l][_local2.c] = 0;
} else if ((_local2.eventId >= 2147483648) && (_local2.eventId < 2415919104)) {
_local2.npc = new npc();
_local2.mc = _local2.npc.attach(_local2.ID, "npc" + _local3, newRoom, _local2.l, _local2.c);
} else if (_local2.frame >= 1) {
var _local5 = _local2.l;
var _local4 = _local2.c;
_local2.mc = attachOneObject(_local2.ID, newRoom, _local5, _local4, _local2);
_local2.mc.gotoAndStop(_local2.frame);
if ((_local2.eventId == 2684354560) || (_local2.eventId == 2952790016)) {
matrixUp[newRoom][_local5][_local4] = 1;
matrixBase[newRoom][_local5][_local4] = 1;
}
}
_local3++;
}
}
function attachOneObject(ID_STR, r, l, c, obj) {
if (_root.mainController.currentRoom != r) {
}
var _local6 = makeObjDepth(l, c);
var _local3 = attachMovie(ID_STR, (((("obj_L" + l) + "C") + c) + "_") + _local6, _local6, {line:l, col:c, ctrlObj:obj});
if (((_local3 != null) && (_local3 != undefined)) && (obj.eventId != 2147483646)) {
matrix[r][l][c] = 1;
}
_local3._x = c * GRID_WIDTH;
_local3._y = l * GRID_HEIGHT;
if (((serfaceLevel == 0) && (surface._x != 0)) && (surface._y != 0)) {
_local3._x = _local3._x + surface._x;
_local3._y = _local3._y + surface._y;
}
return(_local3);
}
function makeObjDepth(l, c) {
var _local3 = ((l * _root.DEPTH_CHAR_TICK) + c) + _root.DEPTH_OBJECTS;
while (getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
return(_local3);
}
function setObjPosDataByIndex(no, newL, newC) {
var _local5 = _root.mainController.currentRoom;
var _local4 = roomObj[_local5][no];
if (_local4 != undefined) {
_local4.l = newL;
_local4.c = newC;
var _local3 = _local4.mc;
if (_local3 != null) {
var _local8 = makeObjDepth(newL, newC);
_local3.swapDepths(_local3);
_local3._y = newL * GRID_HEIGHT;
_local3._x = newC * GRID_WIDTH;
matrix[_local5][newL][newC] = 1;
}
}
}
function setObjPosDataByInstance(mcObj, newL, newC) {
var _local8 = _root.mainController.currentRoom;
var _local10 = roomObj[_local8].length;
var _local5 = 0;
while (_local5 < _local10) {
var _local4 = roomObj[_local8][_local5];
if (_local4.mc == mcObj) {
_local4.l = newL;
_local4.c = newC;
var _local3 = _local4.mc;
if (_local3 != null) {
var _local9 = makeObjDepth(newL, newC);
_local3.swapDepths(_local3);
_local3._y = newL * GRID_HEIGHT;
_local3._x = newC * GRID_WIDTH;
matrix[_local8][newL][newC] = 1;
}
return(undefined);
}
_local5++;
}
}
function matrixUpdate(l, c, newVal) {
matrix[_root.mainController.currentRoom][l][c] = newVal;
}
function getObjInfo(no) {
var _local3 = _root.mainController.currentRoom;
if (no < roomObj[_local3].length) {
return(roomObj[_local3][no]);
}
return(null);
}
function roomChangeFxD(oldNumber, roomNumber, dir, l, c) {
mousePress = false;
newRoom = roomNumber;
lastRoom = oldNumber;
newL = l;
newC = c;
rcDir = dir;
_root.attachMovie("ID_ROOMCHANGE", "mcMattb", 7000);
_root.roomn.text = newRoom;
}
function roomIn() {
(gotoAndStop(_root.mainController.currentRoom + 1));// not popped
if ((lastRoom != 17) || (newRoom != 0)) {
surfaceLevel0();
}
setObjects();
if ((lastRoom == 17) && (newRoom == 0)) {
surfaceLevel3();
}
_root.mainController.roomIn(rcDir, newL, newC);
}
function checkPos(room, l, c, d) {
return(undefined);
}
function changeSurfaceLevel(updown, dir) {
if (updown > 0) {
serfaceLevel++;
} else {
if (serfaceLevel <= 0) {
return(undefined);
}
serfaceLevel--;
}
if (serfaceLevel == 0) {
matrix = matrixBase;
} else {
matrix = matrixUp;
}
myAvatar.move(dir);
myAvatar.depthFirst();
}
function surfaceLevel0() {
surface._x = 0;
surface._y = 0;
serfaceLevel = 0;
matrix = matrixBase;
}
function surfaceLevel3() {
surface._x = 0;
surface._y = -111.55;
serfaceLevel = 3;
matrix = matrixUp;
}
var seed = [7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7];
var sqdat = [{l:2, c:7}, {l:3, c:6}, {l:3, c:8}, {l:4, c:5}, {l:4, c:7}, {l:4, c:9}, {l:5, c:4}, {l:5, c:6}, {l:5, c:8}, {l:5, c:10}, {l:6, c:3}, {l:6, c:5}, {l:6, c:7}, {l:6, c:9}, {l:6, c:11}, {l:7, c:2}, {l:7, c:4}, {l:7, c:6}, {l:7, c:8}, {l:7, c:10}, {l:7, c:12}, {l:8, c:3}, {l:8, c:5}, {l:8, c:7}, {l:8, c:9}, {l:8, c:11}, {l:9, c:4}, {l:9, c:6}, {l:9, c:8}, {l:9, c:10}, {l:10, c:5}, {l:10, c:7}, {l:10, c:9}, {l:11, c:6}, {l:11, c:8}, {l:12, c:7}];
var GRID_HEIGHT = 16;
var GRID_WIDTH = 33.8;
var LLIM = 14;
var CLIM = 14;
var targetL = 6;
var targetC = 6;
var serfaceLevel = 0;
var CHATROOM_NUMBER = 28;
var NUM_ROOM = 31;
var RANDROOM_OFFSET = 7;
var randomRoomPattern = [[{type:2, link:[1]}, {type:13, link:[2, 0, 3]}, {type:10, link:[5, 1]}, {type:6, link:[6, 1]}, {type:2, link:[8]}, {type:1, link:[2]}, {type:11, link:[9, 3, 7]}, {type:4, link:[6]}, {type:9, link:[4, 9]}, {type:5, link:[8, 6]}, {type:-1, link:[4, 7]}], [{type:2, link:[2]}, {type:10, link:[4, 2]}, {type:13, link:[1, 0, 3]}, {type:6, link:[5, 2]}, {type:3, link:[6, 1]}, {type:3, link:[8, 3]}, {type:9, link:[4, 7]}, {type:12, link:[6, 8]}, {type:13, link:[7, 5, 9]}, {type:4, link:[8]}, {type:-1, link:[1, 9]}], [{type:2, link:[3]}, {type:8, link:[2]}, {type:14, link:[6, 1, 3]}, {type:13, link:[2, 0, 4]}, {type:14, link:[8, 3, 5]}, {type:4, link:[4]}, {type:9, link:[2, 7]}, {type:12, link:[6, 8]}, {type:13, link:[7, 4, 9]}, {type:4, link:[8]}, {type:-1, link:[6, 9]}], [{type:2, link:[2]}, {type:2, link:[3]}, {type:3, link:[4, 0]}, {type:9, link:[1, 4]}, {type:15, link:[6, 3, 2, 5]}, {type:6, link:[7, 4]}, {type:11, link:[8, 4, 7]}, {type:5, link:[6, 5]}, {type:9, link:[6, 9]}, {type:4, link:[8]}, {type:-1, link:[1, 9]}], [{type:2, link:[3]}, {type:8, link:[2]}, {type:6, link:[6, 1]}, {type:11, link:[7, 0, 4]}, {type:12, link:[3, 5]}, {type:4, link:[4]}, {type:9, link:[2, 7]}, {type:15, link:[9, 6, 3, 8]}, {type:4, link:[7]}, {type:1, link:[7]}, {type:-1, link:[1, 5]}]];
var CandidatePos_Item1 = [{r:22, l:11, c:4}, {r:26, l:6, c:1}];
var CandidatePos_Item2 = [{r:24, l:3, c:4}, {r:19, l:7, c:0}, {r:6, l:4, c:11}];
}
Symbol 503 MovieClip [__Packages.stageData] Frame 0
class stageData
{
var dataMaps, dataMapsU;
function stageData () {
dataMaps = new Array(50);
dataMapsU = new Array(50);
var _local2 = 0;
while (_local2 < 50) {
if ((_local2 >= 7) && (_local2 <= 16)) {
} else {
if (this["data" + _local2] == undefined) {
break;
}
dataMaps[_local2] = this["data" + _local2];
dataMapsU[_local2] = this["dataU" + _local2];
}
_local2++;
}
}
var data0 = [{l:10, c:3, ID:"ID_STAIR_L_F", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:4, ID:"ID_STAIR_L_B", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:2, ID:"ID_STAIRDOWN", mc:null, frame:3, eventId:2684354560, npc:null}, {l:8, c:3, ID:"ID_STAIRDOWN", mc:null, frame:3, eventId:2684354560, npc:null}, {l:11, c:4, ID:"ID_STAIRUP", mc:null, frame:3, eventId:2684354560, npc:null}, {l:10, c:5, ID:"ID_STAIRUP", mc:null, frame:3, eventId:2684354560, npc:null}, {l:7, c:4, ID:"ID_FENCE", mc:null, frame:1, eventId:2147483646, npc:null}, {l:5, c:8, ID:"ID_STAIRFANCE", mc:null, frame:1, eventId:2147483646, npc:null}, {l:2, c:9, ID:"ID_STAIRDOWN", mc:null, frame:3, eventId:2684354560, npc:null}, {l:4, c:11, ID:"ID_STAIRUP", mc:null, frame:3, eventId:2684354560, npc:null}, {l:5, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"ID_PLATE", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416116737, npc:null}, {l:12, c:11, ID:"D1", mc:null, frame:1, eventId:2416116737, npc:null}, {l:4, c:5, ID:"D1", mc:null, frame:2, eventId:2416577283, npc:null}, {l:5, c:4, ID:"D1", mc:null, frame:2, eventId:2416642563, npc:null}, {l:5, c:14, ID:"D1", mc:null, frame:4, eventId:2416772612, npc:null}, {l:2, c:3, ID:"D1", mc:null, frame:2, eventId:2416577297, npc:null}];
var dataU0 = [{l:7, c:4}, {l:6, c:5}, {l:5, c:6}, {l:4, c:7}, {l:3, c:8}];
var data1 = [{l:1, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:2, ID:"ID_GRAVESTONE", mc:null, frame:1, eventId:2147483647, npc:null}, {l:7, c:4, ID:"NPC_002", mc:null, frame:1, eventId:2147483648, npc:null}, {l:5, c:14, ID:"ID_LOCKEDDOOR", mc:null, frame:1, eventId:2147483647, npc:null}, {l:2, c:3, ID:"D1", mc:null, frame:2, eventId:2416642560, npc:null}, {l:3, c:2, ID:"D1", mc:null, frame:2, eventId:2416642560, npc:null}];
var dataU1 = [{l:0, c:0}];
var data2 = [{l:0, c:9, ID:"D1", mc:null, frame:4, eventId:2416443651, npc:null}, {l:11, c:4, ID:"ID_SINK", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:4, ID:"ID_KITCHEN", mc:null, frame:1, eventId:-1, npc:null}, {l:1, c:6, ID:"ID_CHBINET", mc:null, frame:1, eventId:-1, npc:null}, {l:4, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:4, c:11, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:6, ID:"ID_KTABLE_\uFF22", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:7, ID:"ID_KTABLE_F", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:12, ID:"ID_OVEN", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:17237762, c:17566725, ID:"ID_ITEM", mc:null, frame:1, eventId:11, npc:null}];
var dataU2 = [{l:0, c:0}];
var data3 = [{l:6, c:5, ID:"ID_DTABLE_B", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:7, ID:"ID_DTABLE_F", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:5, c:8, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:9, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:10, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:4, ID:"ID_CHAIR_WDT", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:5, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:6, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:7, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:4, c:3, ID:"ID_STOVE", mc:null, frame:1, eventId:2147483647, npc:null}, {l:3, c:4, ID:"ID_ALIES", mc:null, frame:1, eventId:13, npc:null}, {l:6, c:1, ID:"ID_CLICKABLE_L", mc:null, frame:1, eventId:7, npc:null}, {l:9, c:0, ID:"D1", mc:null, frame:3, eventId:2415986690, npc:null}, {l:12, c:11, ID:"D1", mc:null, frame:1, eventId:2416313600, npc:null}, {l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416248320, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU3 = [{l:0, c:0}];
var data4 = [{l:9, c:6, ID:"ID_LOTABLE", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:5, ID:"ID_SOFA_B", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:9, ID:"ID_SOFA_F", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:0, ID:"ID_CHAIR_WDR", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:1, ID:"ID_CHAIR_WDR", mc:null, frame:1, eventId:-1, npc:null}, {l:4, c:11, ID:"ID_WINECABINET", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:5, ID:"ID_CLOSET", mc:null, frame:1, eventId:2147483647, npc:null}, {l:-1, c:6, ID:"BLOCK_1", mc:null, frame:1, eventId:2147483647, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:5, ID:"D1", mc:null, frame:2, eventId:2416446725, npc:null}, {l:14, c:5, ID:"D1", mc:null, frame:3, eventId:2416315648, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:16974337, c:16974337, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:17040387, c:17500938, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}];
var dataU4 = [{l:0, c:0}];
var data5 = [{l:3, c:12, ID:"D1", mc:null, frame:4, eventId:2416706822, npc:null}, {l:4, c:13, ID:"D1", mc:null, frame:4, eventId:2416772614, npc:null}, {l:14, c:7, ID:"ID_DANGERBOX", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:2, ID:"ID_JAILFANCE_0", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:4, ID:"ID_JAILFANCE_1", mc:null, frame:1, eventId:-1, npc:null}, {l:5, c:6, ID:"ID_JAILFANCE_2", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:8, ID:"ID_JAILFANCE_3", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:11, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:12, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:14, ID:"D1", mc:null, frame:1, eventId:2415986180, npc:null}, {l:5, c:0, ID:"D1R", mc:null, frame:2, eventId:2416312594, npc:null}];
var dataU5 = [{l:0, c:0}];
var data6 = [{l:16909825, c:17498378, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:8, ID:"ID_ITEM", mc:null, frame:1, eventId:25, npc:null}, {l:4, c:3, ID:"ID_POINT", mc:null, frame:1, eventId:3, npc:null}, {l:3, c:4, ID:"ID_POINT", mc:null, frame:1, eventId:3, npc:null}, {l:2, c:5, ID:"ID_POINT", mc:null, frame:1, eventId:3, npc:null}, {l:10, c:9, ID:"ID_LABTABLE_F", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:7, ID:"ID_LABTABLE_B", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:3, ID:"ID_LABTABLE_S", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:0, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:4, ID:"D1", mc:null, frame:3, eventId:2416184069, npc:null}, {l:14, c:5, ID:"D1", mc:null, frame:3, eventId:2416249861, npc:null}];
var dataU6 = [{l:0, c:0}];
var data17 = [{l:2, c:3, ID:"D1", mc:null, frame:2, eventId:2416905237, npc:null}, {l:11, c:2, ID:"D1", mc:null, frame:3, eventId:2416249876, npc:null}, {l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416116736, npc:null}, {l:2, c:11, ID:"D1", mc:null, frame:4, eventId:2416575250, npc:null}, {l:6, c:1, ID:"ID_TABLE_SS", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:7, ID:"ID_PLATEF", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:13, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:5, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU17 = [{l:0, c:0}];
var data18 = [{l:3, c:4, ID:"NPC_001A", mc:null, frame:1, eventId:2147483648, npc:null}, {l:5, c:0, ID:"D1R", mc:null, frame:2, eventId:2416312581, npc:null}, {l:11, c:2, ID:"D1", mc:null, frame:3, eventId:2416118289, npc:null}, {l:3, c:12, ID:"D1", mc:null, frame:4, eventId:2416641043, npc:null}, {l:4, c:3, ID:"ID_CHAIR_WDR", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:14, ID:"ID_TABLE_SSR", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU18 = [{l:0, c:0}];
var data19 = [{l:17238282, c:17565703, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:17040392, c:16974597, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:12, c:3, ID:"D1", mc:null, frame:3, eventId:2416184082, npc:null}, {l:8, c:5, ID:"ID_LIBTABLE", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:6, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:9, c:10, ID:"ID_CHAIR_WDT", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:0, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:12, ID:"ID_LIBBOOKS", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU19 = [{l:0, c:0}];
var data20 = [{l:5, c:8, ID:"D1", mc:null, frame:2, eventId:2416577304, npc:null}, {l:11, c:2, ID:"D1", mc:null, frame:2, eventId:2416577303, npc:null}, {l:16, c:1, ID:"D1", mc:null, frame:3, eventId:2416249881, npc:null}, {l:4, c:13, ID:"D1", mc:null, frame:4, eventId:2416575249, npc:null}, {l:12, c:3, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:2, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:4, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:1, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:3, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:5, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:2, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:4, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:6, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:16, c:3, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:16, c:5, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:17, c:4, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU20 = [{l:0, c:0}];
var data21 = [{l:4, c:1, ID:"D1", mc:null, frame:2, eventId:2416773142, npc:null}, {l:16, c:13, ID:"D1", mc:null, frame:1, eventId:2416116753, npc:null}, {l:12, c:11, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:10, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:12, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:9, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:11, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:14, c:13, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:8, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:10, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:15, c:12, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:16, c:9, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:16, c:11, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:17, c:10, ID:"PUNCH", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU21 = [{l:0, c:0}];
var data22 = [{l:17106690, c:17567241, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:14, c:9, ID:"D1", mc:null, frame:1, eventId:2416247317, npc:null}, {l:7, c:0, ID:"ID_CHAIR_WDR", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:11, ID:"ID_SOFA_F", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:4, ID:"ID_BED_TABLE", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:11, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"ID_BED", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:0, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU22 = [{l:0, c:0}];
var data23 = [{l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416706324, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:11, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:12, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:10, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:4, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU23 = [{l:0, c:0}];
var data24 = [{l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416314644, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:2, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:11, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:12, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:13, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:10, ID:"ID_CHAIR_WD", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:12, ID:"ID_CLOSET_R", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU24 = [{l:0, c:0}];
var data25 = [{l:14, c:9, ID:"D1", mc:null, frame:1, eventId:2416312603, npc:null}, {l:4, c:1, ID:"D1", mc:null, frame:2, eventId:2416642586, npc:null}, {l:4, c:13, ID:"D1", mc:null, frame:4, eventId:2416902676, npc:null}, {l:3, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:0, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU25 = [{l:0, c:0}];
var data26 = [{l:17236993, c:17697544, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:12, c:11, ID:"D1", mc:null, frame:1, eventId:2416247321, npc:null}, {l:5, c:6, ID:"ID_BED_L2", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:9, ID:"ID_BED_L1", mc:null, frame:1, eventId:-1, npc:null}, {l:12, c:5, ID:"ID_SOFA_FR", mc:null, frame:1, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:11, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:3, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:1, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:0, ID:"ID_CLOSET", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:7, ID:"ID_LOTABLE_R", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:4, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:5, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:1, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU26 = [{l:0, c:0}];
var data27 = [{l:5, c:0, ID:"D1", mc:null, frame:2, eventId:2416773145, npc:null}, {l:5, c:6, ID:"NPC_001", mc:null, frame:1, eventId:2147483648, npc:null}, {l:17171977, c:17501448, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:16974850, c:17435401, ID:"ID_ITEM", mc:null, frame:1, eventId:-1, npc:null}, {l:1, c:6, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:2, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:3, c:10, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:4, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:5, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:14, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:6, c:11, ID:"ID_LIBBOOKS", mc:null, frame:1, eventId:-1, npc:null}, {l:3, c:4, ID:"ID_LADDER", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:10, ID:"ID_JANK_001", mc:null, frame:1, eventId:-1, npc:null}, {l:10, c:11, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:12, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:13, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:10, c:3, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:11, c:4, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:12, c:5, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:13, c:6, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:14, c:7, ID:"ID_CHAIR_WDB", mc:null, frame:1, eventId:-1, npc:null}, {l:7, c:6, ID:"ID_KTABLE_\uFF22", mc:null, frame:1, eventId:-1, npc:null}, {l:8, c:7, ID:"ID_KTABLE_FB", mc:null, frame:1, eventId:-1, npc:null}, {l:6, c:7, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:7, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:8, c:9, ID:"", mc:null, frame:0, eventId:-1, npc:null}, {l:9, c:8, ID:"", mc:null, frame:0, eventId:-1, npc:null}];
var dataU27 = [{l:0, c:0}];
var data28 = [];
var dataU28 = [{l:0, c:0}];
var data29 = [{l:11, c:2, ID:"D1", mc:null, frame:3, eventId:2416118300, npc:null}];
var dataU29 = [{l:0, c:0}];
var data30 = [{l:11, c:12, ID:"D1", mc:null, frame:1, eventId:2416116764, npc:null}];
var dataU30 = [{l:0, c:0}];
}
Symbol 504 MovieClip [__Packages.npc] Frame 0
class npc extends avatar
{
var theID, thisIsMyAvatar, dialogL, line, col, roomNo, publicName, depth, makeDepth, mcAvatar, npcTemp, move;
function npc () {
super();
}
function attach(MCID, instName, room, posL, posC) {
theID = -1;
thisIsMyAvatar = false;
dialogL = 0;
line = posL;
col = posC;
roomNo = room;
publicName = "";
depth = makeDepth(line, col);
mcAvatar = _root.mcGround.attachMovie(MCID, instName, depth, {gridW:_root.mcGround.GRID_WIDTH, gridH:_root.mcGround.GRID_HEIGHT, pAvatar:this});
mcAvatar.setPos(line, col);
_root.mcGround.matrix[roomNo][posL][posC] = 1;
npcTemp = 0;
return(mcAvatar);
}
function remove() {
if (mcAvatar != null) {
mcAvatar.removeMovieClip();
}
_root.mcGround.matrix[roomNo][line][col] = 0;
}
function sendMsgToServer(action, param) {
}
function checkAndUpdateMatrix(l, c, d) {
var _local3;
var _local4;
switch (d) {
case 0 :
_local3 = 1;
_local4 = 1;
break;
case 1 :
if ((l == 0) || (c == 0)) {
return(false);
}
_local3 = -1;
_local4 = -1;
break;
case 2 :
if (c == 0) {
return(false);
}
_local3 = 1;
_local4 = -1;
break;
case 3 :
if (l == 0) {
return(false);
}
_local3 = -1;
_local4 = 1;
}
if (_root.mcGround.matrix[roomNo][l + _local3][c + _local4] == 1) {
return(false);
}
_root.mcGround.matrix[roomNo][l][c] = 0;
_root.mcGround.matrix[roomNo][l + _local3][c + _local4] = 1;
return(true);
}
function checkMatrix(l, c, d) {
var _local3;
var _local4;
switch (d) {
case 0 :
_local3 = 1;
_local4 = 1;
break;
case 1 :
if ((l == 0) || (c == 0)) {
return(-1);
}
_local3 = -1;
_local4 = -1;
break;
case 2 :
if (c == 0) {
return(-1);
}
_local3 = 1;
_local4 = -1;
break;
case 3 :
if (l == 0) {
return(-1);
}
_local3 = -1;
_local4 = 1;
}
if (_root.mcGround.matrix[roomNo][l + _local3][c + _local4] == 1) {
return(-2);
}
if ((_root.mainController.myAvatarObject.line == (l + _local3)) && (_root.mainController.myAvatarObject.col == (c + _local4))) {
return(-3);
}
return(1);
}
function receiveActionMessage(action, param) {
if (thisIsMyAvatar) {
return(undefined);
}
switch (action) {
case 0 :
mcAvatar.turnHead(param);
break;
case 1 :
move(param);
break;
case 2 :
var _local5 = (param & 16773120) >> 12;
var _local4 = param & 4095;
var _local6 = param >> 24;
if ((_local5 != line) || (_local4 != col)) {
_root.mcGround.matrix[roomNo][line][col] = 0;
line = _local5;
col = _local4;
mcAvatar.setPos(_local5, _local4);
mcAvatar.turnHead(_local6);
_root.mcGround.matrix[roomNo][line][col] = 1;
}
break;
case 3 :
dialogL = param;
mcAvatar.mcDialog.setPos(param);
break;
case 4 :
mcAvatar.act(param);
break;
case 5 :
_local5 = (param & 16773120) >> 12;
_local4 = param & 4095;
_local6 = param >> 28;
var _local7 = (param >> 24) & 15;
_root.mcGround.matrix[roomNo][line][col] = 0;
roomNo = _local7;
line = _local5;
col = _local4;
mcAvatar.setPos(_local5, _local4);
mcAvatar.turnHead(_local6);
_root.mcGround.matrix[roomNo][line][col] = 1;
if (roomNo == _root.mainController.currentRoom) {
mcAvatar._visible = true;
} else {
mcAvatar._visible = false;
}
}
}
function throwPrecheck() {
return(true);
}
function checkPos() {
}
}
Symbol 505 MovieClip [__Packages.mvcButton] Frame 0
class mvcButton extends MovieClip
{
var notifyText, notifyTextDown, notifyTextUpDown, callbackFunc, callbackFuncDown, callbackFuncUpDown, hitZone, draggable, hitRegion, attachMovie, gotoAndPlay, startDrag, stopDrag;
function mvcButton () {
super();
notifyText = new String();
notifyText = "";
notifyTextDown = new String();
notifyTextDown = "";
notifyTextUpDown = new String();
notifyTextUpDown = "";
callbackFunc = null;
callbackFuncDown = null;
callbackFuncUpDown = null;
hitZone = this;
draggable = false;
if (hitRegion != undefined) {
hitRegion._alpha = 0;
}
}
function setup(cbFunc, idtext) {
callbackFunc = cbFunc;
notifyText = idtext;
}
function addListener(cbFunc, param) {
callbackFunc = cbFunc;
notifyText = param;
}
function addListenerOnDown(cbFunc, param) {
callbackFuncDown = cbFunc;
notifyTextDown = param;
}
function addListenerOnUpDown(cbFunc, param) {
callbackFuncUpDown = cbFunc;
notifyTextUpDown = param;
}
function enableDrag(drag) {
draggable = drag;
}
function setRegion(bx, by, width, height) {
if (hitRegion == undefined) {
attachMovie("HITREGION", "hitRegion", 100);
var _local2 = hitRegion;
_local2._x = bx;
_local2._y = by;
_local2._width = width;
_local2._height = height;
_local2._alpha = 0;
} else {
var _local2 = hitRegion;
_local2._x = bx;
_local2._y = by;
if (width > -1) {
_local2._width = width;
}
if (height > -1) {
_local2._height = height;
}
_local2._alpha = 0;
}
}
function onPress() {
if (callbackFuncDown != null) {
callbackFuncDown.call(this, this, notifyTextDown);
}
if (callbackFuncUpDown != null) {
callbackFuncUpDown.call(this, this, true, notifyTextUpDown);
}
gotoAndPlay("DOWN");
if (draggable) {
(startDrag(false));// not popped
}
}
function onRelease() {
if (callbackFunc != null) {
callbackFunc.call(this, this, notifyText);
}
if (callbackFuncUpDown != null) {
callbackFuncUpDown.call(this, this, false, notifyTextUpDown);
}
gotoAndPlay("ROLLOVER");
if (draggable) {
(stopDrag());// not popped
}
}
function onReleaseOutside() {
if (callbackFuncUpDown != null) {
callbackFuncUpDown.call(this, this, false, notifyTextUpDown);
}
gotoAndPlay("UP");
}
function onRollOver() {
gotoAndPlay("ROLLOVER");
}
function onRollOut() {
gotoAndPlay("UP");
}
}
Symbol 506 MovieClip [__Packages.mvcCheckBox] Frame 0
class mvcCheckBox extends mvcButton
{
var btnSwitch, group, gotoAndPlay, callbackFunc, notifyText;
function mvcCheckBox () {
super();
btnSwitch = false;
group = null;
}
function onPress() {
if (group == null) {
btnSwitch = !btnSwitch;
} else {
btnSwitch = true;
}
if (btnSwitch) {
gotoAndPlay("CHECKED");
} else {
gotoAndPlay("1");
}
if (callbackFunc != null) {
callbackFunc.call(this, this, notifyText, btnSwitch);
}
if (group != null) {
group.notify(this, btnSwitch);
}
}
function onRelease() {
}
function onReleaseOutside() {
}
function setupRadio(isChecked, cbFunc, param, gp) {
btnSwitch = isChecked;
callbackFunc = cbFunc;
notifyText = param;
if (group != null) {
group.entry(this);
}
if (btnSwitch) {
(gotoAndPlay("CHECKED"));// not popped
} else {
(gotoAndPlay(1));// not popped
}
}
function setupCheck(isChecked, cbFunc, param) {
btnSwitch = isChecked;
callbackFunc = cbFunc;
notifyText = param;
group = null;
if (btnSwitch) {
(gotoAndPlay("CHECKED"));// not popped
}
}
function addListener(cbFunc, param) {
callbackFunc = cbFunc;
notifyText = param;
}
function removeListener() {
callbackFunc = null;
}
function isChecked() {
return(btnSwitch);
}
function checkit() {
btnSwitch = true;
gotoAndPlay("CHECKED");
return(btnSwitch);
}
function uncheckit() {
btnSwitch = false;
gotoAndPlay(1);
return(btnSwitch);
}
}
Symbol 507 MovieClip [__Packages.mainProc] Frame 0
class mainProc extends MovieClip
{
var loginName, avatarType, dialogPosL, tame, gotItems, avaters, myAvatarObject, nc, chkAvatar0, chkAvatar1, snd_beam, keyObj, connectionOK, gameMode, theID, nowTargetMaterial, eventMgr;
function mainProc () {
super();
loginName = "";
avatarType = 1;
dialogPosL = 0;
tame = false;
gotItems = new Array();
avaters = new Array(10);
var _local4 = 0;
while (_local4 < 10) {
avaters[_local4] = null;
_local4++;
}
myAvatarObject = null;
initEventList();
initKeyObject();
initTimer();
nc = new NetConnection();
nc.myInstance = this;
nc.onStatus = function (infoObj) {
if (infoObj.code == "NetConnection.Connect.Success") {
this.myInstance.goodbyeLonesome();
this.myInstance.initSO(this.myInstance);
this.myInstance.connectionOK = true;
} else if (infoObj.code == "NetConnection.Connect.Closed") {
this.myInstance.prepareConnectionReset();
} else if ((infoObj.code == "NetConnection.Connect.Rejected") || (infoObj.code == "NetConnection.Connect.Failed")) {
if (infoObj.application.reason != undefined) {
this.myInstance.connectionOK = false;
switch (infoObj.application.reason) {
case "001" :
this.myInstance.errorText = "\u9055\u3046\u540D\u524D\u3067\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044";
this.myInstance.gotoAndStop("CONNG");
return(undefined);
case "002" :
this.myInstance.errorText = "\u6E80\u54E1\u306E\u305F\u3081\u30ED\u30B0\u30A4\u30F3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F";
this.myInstance.gotoAndPlay("CONNG");
break;
case "003" :
this.myInstance.errorText = "\u3059\u3067\u306B\u63A5\u7D9A\u3055\u308C\u3066\u3044\u308B\u3088\u3046\u3067\u3059";
this.myInstance.gotoAndStop("CONNG");
return(undefined);
}
} else {
this.myInstance.errorText = "\u30B4\u30E1\u30F3\u30CA\u30B5\u30A4\uFF01\u6E80\u54E1\u307E\u305F\u306F\u30B5\u30FC\u30D0\u30FC\u30C0\u30A6\u30F3\u306E\u305F\u3081\u30ED\u30B0\u30A4\u30F3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002";
}
this.myInstance.gotoAndPlay("CONNG");
}
};
nc.memberRefresh = function (memberList, numList) {
var _local12 = -1;
var _local3 = 0;
while (_local3 < numList) {
if (memberList[_local3].name == this.myInstance.loginName) {
_local12 = _local3;
_root.lastMoveTime = getTimer();
_root.myIpAddress = memberList[_local3].ip;
break;
}
_local3++;
}
if (_local12 == -1) {
this.myInstance.gotoAndPlay("CONNG");
return(undefined);
}
this.myInstance.theID = _local12;
_local3 = 0;
while (_local3 < numList) {
var _local10 = memberList[_local3].name;
var _local8 = memberList[_local3].id;
var _local14 = memberList[_local3].room;
if ((_local10 != null) && (_local8 >= 0)) {
if (_local8 != _local3) {
}
if (this.myInstance.avaters[_local3] != null) {
this.myInstance.avaters[_local3].remove();
delete this.myInstance.avaters[_local3];
}
var _local6 = (this.myInstance.avaters[_local3] = new avatar());
var _local5 = false;
if (_local12 == _local3) {
_local5 = true;
_root.mcGround.attachMyAvatar(_local6);
this.myInstance.myAvatarObject = _local6;
}
var _local11 = (memberList[_local3].condition & 240) >> 4;
var _local7 = _local5;
if (_root.mainController.gameMode == 1) {
_local7 = false;
}
var _local9 = _local6.attach(memberList[_local3].id, _local5, memberList[_local3].name, "mcavatar" + _local3, memberList[_local3].room, memberList[_local3].line, memberList[_local3].col, memberList[_local3].type, _local7, _local11);
if (!_local5) {
_local9.turnHead(memberList[_local3].condition & 15);
}
}
_local3++;
}
this.myInstance.gotoAndPlay("REGISTER_OK");
};
nc.dialogRefresh = function (msgList, numList) {
var _local2 = 0;
while (_local2 < numList) {
var _local3 = this.myInstance.avaters[_local2];
if (_local3 != null) {
if (msgList[_local2].length > 0) {
_local3.putMessage(msgList[_local2]);
}
}
_local2++;
}
};
}
function checkAvtBtn() {
var _local3;
var _local2;
if (avatarType == 0) {
_local3 = true;
_local2 = false;
}
if (avatarType == 1) {
_local3 = false;
_local2 = true;
}
chkAvatar0.setupRadio(_local3, cbCheckBox, "0", null);
chkAvatar1.setupRadio(_local2, cbCheckBox, "1", null);
}
function onLoad() {
snd_beam = new Sound(this);
snd_beam.attachSound("SFX_BEAM");
checkAvtBtn();
}
function cbCheckBox(instance, param) {
var _local1 = Number(param);
instance._parent.avatarType = _local1;
instance._parent["chkAvatar" + (_local1 ^ 1)].uncheckit();
}
function theLonelyOne() {
var _local3 = (avaters[0] = new avatar());
var _local4 = true;
myAvatarObject = _local3;
_root.mcGround.attachMyAvatar(_local3);
var _local5 = _local3.attach(0, _local4, loginName, "mcavatar0", 1, 10, 7, avatarType, false, 0);
if (_root.prepareOK) {
roomChange(1);
}
_root.bgm1.start(0, 65565);
}
function goodbyeLonesome() {
var _local2 = avaters[0];
if (myAvatarObject == null) {
return(undefined);
}
if (_local2 != myAvatarObject) {
return(undefined);
}
_local2.mcAvatar.removeMovieClip();
delete avaters[0];
avaters[0] = null;
}
function putMessage(txt) {
if (_root.mcMsg == undefined) {
var _local2 = _root.attachMovie("ID_MSGBOARD", "mcMsg", _root.DEPTH_MSG);
_local2.msgBox.text = txt;
} else {
var _local2 = _root.mcMsg;
_local2.msgBox.text = txt;
_local2.gotoAndPlay(1);
}
}
function initSO(instance) {
instance.avatar_so = SharedObject.getRemote("memberInfo", instance.nc.uri);
instance.avatar_so.svrNotify_newcomer = function (newInfo, id) {
if (instance.avaters[id] != null) {
instance.avaters[id].remove();
delete instance.avaters[id];
}
var _local4 = (instance.avaters[id] = new avatar());
var _local3 = (newInfo.condition & 240) >> 4;
_local4.attach(id, false, newInfo.name, "mcavatar" + id, newInfo.room, newInfo.line, newInfo.col, newInfo.type, true, _local3);
instance.putMessage(newInfo.name + " \u3055\u3093\u304C\u30ED\u30B0\u30A4\u30F3\u3057\u307E\u3057\u305F");
};
instance.avatar_so.svrNotify_goAway = function (id) {
if (instance.avaters[id] != null) {
instance.putMessage(instance.avaters[id].publicName + " \u3055\u3093\u304C\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F");
instance.avaters[id].remove();
delete instance.avaters[id];
instance.avaters[id] = null;
}
};
instance.avatar_so.avatarNotify = function (id, action, param) {
if (instance.avaters[id] != null) {
instance.avaters[id].receiveActionMessage(action, param);
}
};
instance.avatar_so.svrNotify_fuckOff = function (id, ip) {
if (_root.myIpAddress == ip) {
instance.disconnect();
_root.PutDialogMessage("\u5F37\u5236\u30ED\u30B0\u30A2\u30A6\u30C8", "10\u5206\u767A\u8A00\u304C\u306A\u3044\u306E\u3067\u5F37\u5236\u7684\u306B\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F", instance.connectionReset);
}
};
instance.avatar_so.connect(instance.nc);
instance.msg_so = SharedObject.getRemote("logText", instance.nc.uri);
instance.msg_so.serverNotify = function (text, id) {
var _local2 = instance.avaters[id];
if (text == "") {
_local2.offMessage();
return(undefined);
}
_local2.putMessage(text);
if (_local2 == instance.myAvatarObject) {
_root.lastMoveTime = getTimer();
}
};
instance.msg_so.connect(instance.nc);
instance.msg_so.setFps(4);
instance.gotoAndPlay("CONNECTION_OK");
}
function initKeyObject() {
keyObj = new Object();
keyObj.myInstance = this;
keyObj.onKeyDown = function () {
var _local2 = Key.getCode();
if (_local2 == 13) {
var _local3 = Selection.getFocus();
if (_local3 == "_level0.mcCtrlPanel.text1") {
this.myInstance.sendText();
}
}
};
Key.addListener(keyObj);
}
function initTimer() {
_root.timerID = setInterval(cbTimer, 10000, this);
_root.lastMoveTime = getTimer();
}
function cbTimer(param) {
var _local3 = getTimer() - _root.lastMoveTime;
if ((_local3 > 600000) && (connectionOK)) {
param.disconnect();
}
}
function connect(loginName, avatarTypeNum) {
var _local3;
var _local4;
if (gameMode == 0) {
_local3 = _root.mcGround.getRandomPos();
_local4 = currentRoom;
} else if (gameMode == 1) {
_local3 = 786437 /* 0x0C0005 */;
_local4 = _root.mcGround.CHATROOM_NUMBER;
}
var _local7 = _local3 >> 16;
var _local5 = _local3 & 65535;
var _local6 = {id:0, name:loginName, type:avatarTypeNum, msg:null, line:_local7, col:_local5, condition:2, score:0, room:_local4, ip:"", ctime:0};
nc.connect("rtmp://fargenius.com/farchat", _local6);
}
function disconnect() {
if (connectionOK) {
nc.close();
}
}
function prepareConnectionReset() {
clearInterval(_root.timerID);
var _local3 = getTimer() - _root.lastMoveTime;
if ((_local3 > 600000) && (connectionOK)) {
_root.PutDialogMessage("\u5F37\u5236\u30ED\u30B0\u30A2\u30A6\u30C8", "10\u5206\u767A\u8A00\u304C\u306A\u3044\u306E\u3067\u5F37\u5236\u7684\u306B\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F", connectionReset);
} else {
_root.PutDialogMessage("\u30ED\u30B0\u30A2\u30A6\u30C8", "\u30C1\u30E3\u30C3\u30C8\u30EB\u30FC\u30E0\u304B\u3089\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F", connectionReset);
}
}
function connectionReset() {
connectionOK = false;
var _local3 = 0;
while (_local3 < 10) {
if (avaters[_local3] != null) {
avaters[_local3].mcAvatar.removeMovieClip();
delete avaters[_local3];
avaters[_local3] = null;
}
_local3++;
}
myAvatarObject = null;
_root.loadMovie("quaterview.swf");
}
function request_MemberInfo(rn) {
currentRoom = rn;
if (connectionOK) {
nc.call("requestMemberInfo", null);
}
}
function request_DialogInfo() {
if (connectionOK) {
nc.call("requestCurrMsg", null);
}
}
function sendAvatarMessage(id, action, param) {
if (connectionOK) {
nc.call("sendAvatarMsg", null, id, action, param);
}
}
function sendText() {
var _local3 = _root.mcCtrlPanel.text1;
if (_local3.text == undefined) {
if (connectionOK) {
nc.call("sendClientMsg", null, "", theID);
}
return(undefined);
}
var _local4 = new String(_local3.text);
var _local5 = _local4;
if (connectionOK) {
nc.call("sendClientMsg", null, String(_local5), theID);
}
_root.mcCtrlPanel.text1.text = "";
}
function replaceLtGt(theString, ltgt, replaceStr) {
var _local3 = theString.split(ltgt);
var _local4 = replaceStr;
var _local2 = new String("");
var _local1 = 0;
while (_local1 < (_local3.length - 1)) {
_local2 = _local2.concat(_local3[_local1]);
_local2 = _local2.concat(_local4);
_local1++;
}
_local2 = _local2.concat(_local3[_local1]);
return(_local2);
}
function freeze(sw) {
myAvatarObject.mcAvatar.freezing = sw;
}
function isFreeze() {
return(myAvatarObject.mcAvatar.freezing);
}
function roomChange(roomNumber) {
if ((roomNumber >= _root.mcGround.NUM_ROOM) || (roomNumber < 0)) {
return(undefined);
}
freeze(true);
myAvatarObject.roomNo = roomNumber;
var _local4 = currentRoom;
currentRoom = roomNumber;
_root.mcGround.roomChangeFxD(_local4, roomNumber, myAvatarObject.mcAvatar.headDir, myAvatarObject.line, myAvatarObject.col);
}
function roomChangeByDoor(param) {
var _local3 = param & 255;
var _local5 = (param & 16711680) >> 16;
var _local4 = (param & 65280) >> 8;
if ((_local3 >= _root.mcGround.NUM_ROOM) || (_local3 < 0)) {
return(undefined);
}
freeze(true);
myAvatarObject.roomNo = _local3;
var _local7 = currentRoom;
currentRoom = _local3;
_root.mcGround.roomChangeFxD(_local7, _local3, myAvatarObject.mcAvatar.headDir, _local5, _local4);
}
function roomIn(dir, newL, newC) {
myAvatarObject.directMove(dir, newL, newC);
var _local3 = 0;
while (_local3 < 10) {
if (avaters[_local3] != null) {
if (avaters[_local3].roomNo == currentRoom) {
avaters[_local3].mcAvatar._visible = true;
} else {
avaters[_local3].mcAvatar._visible = false;
}
}
_local3++;
}
freeze(false);
if (connectionOK) {
_root.mcCtrlPanel.gotoAndStop("CONNECT");
} else {
_root.mcCtrlPanel.gotoAndStop("NOCONNECT");
}
}
function initEventList() {
nowTargetMaterial = null;
eventMgr = new eventManager();
eventMgr.setEvent({type:1, uid:0, status:1, param1:"", param2:"\u306A\u306B\u3082\u306A\u3044", once:false});
eventMgr.setEvent({type:-1, uid:1, status:1, param1:"", param2:"", once:true});
eventMgr.setEvent({type:-1, uid:2, status:1, param1:"", param2:"", once:true});
eventMgr.setEvent({type:1, uid:3, status:1, param1:"\u8B0E\u306E\u88C5\u7F6E", param2:"\u505C\u6B62\u3057\u3066\u3044\u308B\u3002\u3068\u308A\u3042\u3048\u305A\u89E6\u3089\u306A\u3044\u307B\u3046\u304C\u3088\u3055\u305D\u3046\u3002", once:false});
eventMgr.setEvent({type:2, uid:4, status:1, param1:"1", param2:"", once:true});
eventMgr.setEvent({type:2, uid:5, status:1, param1:"0", param2:"", once:true});
eventMgr.setEvent({type:2, uid:6, status:1, param1:"2", param2:"", once:true});
eventMgr.setEvent({type:1, uid:7, status:1, param1:"\u3075\u308B\u3044\u6642\u8A08", param2:"\u3053\u308F\u308C\u3066\u3044\u308B\u3088\u3046\u3060\u3002\u7279\u306B\u5909\u308F\u3063\u305F\u3068\u3053\u308D\u306F\u306A\u3044", once:false});
eventMgr.setEvent({type:-1, uid:8, status:1, param1:"", param2:"", once:true});
eventMgr.setEvent({type:-1, uid:9, status:1, param1:"", param2:"", once:true});
eventMgr.setEvent({type:2, uid:10, status:1, param1:"0", param2:"", once:true});
eventMgr.setEvent({type:2, uid:11, status:1, param1:"1", param2:"", once:true});
eventMgr.setEvent({type:2, uid:12, status:1, param1:"2", param2:"", once:true});
eventMgr.setEvent({type:2, uid:13, status:1, param1:"3", param2:"", once:true});
eventMgr.setEvent({type:2, uid:14, status:1, param1:"4", param2:"", once:true});
eventMgr.setEvent({type:2, uid:15, status:1, param1:"5", param2:"", once:true});
eventMgr.setEvent({type:2, uid:16, status:1, param1:"6", param2:"", once:true});
eventMgr.setEvent({type:2, uid:17, status:1, param1:"7", param2:"", once:true});
eventMgr.setEvent({type:2, uid:18, status:1, param1:"8", param2:"", once:true});
eventMgr.setEvent({type:2, uid:19, status:1, param1:"9", param2:"", once:true});
eventMgr.setEvent({type:2, uid:20, status:1, param1:"10", param2:"", once:true});
eventMgr.setEvent({type:2, uid:21, status:1, param1:"11", param2:"", once:true});
eventMgr.setEvent({type:2, uid:22, status:1, param1:"12", param2:"", once:true});
eventMgr.setEvent({type:2, uid:23, status:1, param1:"13", param2:"", once:true});
eventMgr.setEvent({type:2, uid:24, status:1, param1:"14", param2:"", once:true});
eventMgr.setEvent({type:2, uid:25, status:1, param1:"15", param2:"", once:true});
eventMgr.setEvent({type:2, uid:26, status:1, param1:"16", param2:"", once:true});
eventMgr.setEvent({type:2, uid:27, status:1, param1:"17", param2:"", once:true});
eventMgr.setEvent({type:2, uid:28, status:1, param1:"18", param2:"", once:true});
eventMgr.setEvent({type:2, uid:29, status:1, param1:"19", param2:"", once:true});
eventMgr.setEvent({type:2, uid:30, status:1, param1:"20", param2:"", once:true});
eventMgr.setEvent({type:2, uid:31, status:1, param1:"21", param2:"", once:true});
eventMgr.setEvent({type:2, uid:32, status:1, param1:"22", param2:"", once:true});
eventMgr.setEvent({type:2, uid:33, status:1, param1:"23", param2:"", once:true});
eventMgr.setEvent({type:2, uid:34, status:1, param1:"24", param2:"", once:true});
eventMgr.setEvent({type:2, uid:35, status:1, param1:"25", param2:"", once:true});
eventMgr.setEvent({type:2, uid:36, status:1, param1:"26", param2:"", once:true});
eventMgr.setEvent({type:2, uid:37, status:1, param1:"27", param2:"", once:true});
eventMgr.setEvent({type:2, uid:38, status:1, param1:"28", param2:"", once:true});
eventMgr.setEvent({type:2, uid:39, status:1, param1:"29", param2:"", once:true});
eventMgr.setEvent({type:2, uid:40, status:1, param1:"30", param2:"", once:true});
}
function getItem(itemId) {
var _local3 = {id:itemId, flg:0};
var _local7 = gotItems.push(_local3);
_root.mcCtrlPanel.mcIpalRoot.mcItemPal.view(gotItems);
}
function hasItem(itemId) {
var _local2 = 0;
while (_local2 < gotItems.length) {
if (gotItems[_local2].id == itemId) {
return(true);
}
_local2++;
}
return(false);
}
function useItem(itemId) {
var _local3 = 0;
while (_local3 < gotItems.length) {
if (gotItems[_local3].id == itemId) {
gotItems.splice(_local3, 1);
_root.mcCtrlPanel.mcIpalRoot.mcItemPal.view(gotItems);
return(undefined);
}
_local3++;
}
}
function resetAll() {
eventMgr.resetStatus();
var _local4 = gotItems.length;
var _local3 = 0;
while (_local3 < _local4) {
gotItems.pop();
_local3++;
}
_root.mcCtrlPanel.mcIpalRoot.mcItemPal.view(gotItems);
_root.mcGround.resetGround();
roomChange(1);
}
var currentRoom = 1;
}
Symbol 508 MovieClip [__Packages.eventManager] Frame 0
class eventManager
{
var events, gameFlag;
function eventManager () {
events = new Array();
gameFlag = 0;
}
function setEvent(eventObj) {
events.push(eventObj);
return(true);
}
function getEventStatus(id) {
if (id >= events.length) {
return(-1);
}
return(events[id].status);
}
function setEventStatus(id, param) {
if (id >= events.length) {
return(undefined);
}
events[id].status = param;
}
function invokeEvent(id) {
if ((id >= events.length) || (id < 0)) {
return(false);
}
if (events[id].status <= 0) {
return(false);
}
switch (events[id].type) {
case 0 :
movieClip(events[id]);
break;
case 1 :
commonDialog(events[id]);
break;
case 2 :
itemGet(events[id]);
}
if (events[id].once) {
events[id].status = 0;
}
return(true);
}
function movieClip(evt) {
if (evt.param1 == "") {
return(undefined);
}
var _local3 = _root.attachMovie(evt.param1, "mcEvent" + evt.uid, _root.GetFreeDepth(_root.DEPTH_EVENT), {eventId:evt.uid, stat:evt.status});
_local3._x = _root.MAINSCREEN_W / 2;
_local3._y = _root.MAINSCREEN_H / 2;
}
function commonDialog(evt) {
if ((evt.param1 == "") && (evt.param2 == "")) {
return(undefined);
}
var _local4 = "mcEvent" + evt.uid;
if (_root[_local4] != undefined) {
return(undefined);
}
var _local3 = _root.attachMovie("ID_COMMONDLG1", _local4, _root.GetFreeDepth(_root.DEPTH_EVENT), {eventId:evt.uid});
_local3._x = _root.MAINSCREEN_W / 2;
_local3._y = _root.MAINSCREEN_H / 2;
_local3.captionText = evt.param1;
_local3.contentText = evt.param2;
}
function itemGet(evt) {
if (evt.param1 == "") {
return(undefined);
}
var _local4 = Number(evt.param1);
var _local3 = _root.attachMovie("ID_ITEMGET", "mcEvent" + evt.uid, _root.GetFreeDepth(_root.DEPTH_EVENT), {eventId:evt.uid, stat:evt.status, itemId:_local4});
_local3._x = _root.MAINSCREEN_W / 2;
_local3._y = _root.MAINSCREEN_H / 2;
}
function setEventFlag(no, done) {
var _local2 = 1 << no;
if (done) {
gameFlag = gameFlag | _local2;
} else {
gameFlag = gameFlag & (~_local2);
}
}
function resetStatus() {
var _local3 = events.length;
var _local2 = 0;
while (_local2 < _local3) {
events[_local2].status = 1;
_local2++;
}
gameFlag = 0;
}
}
Symbol 509 MovieClip [__Packages.dialog] Frame 0
class dialog extends MovieClip
{
var pParent, my_fmt, theTextField, timerObj, _visible, mcCloseBox, mcBox1, mcBox2, R_tl, R_tr, R_bl, R_br, R_bl_r, R_br_r, _width, _x, getBounds, _parent, _y;
function dialog () {
super();
pParent = this;
depth = pParent.getNextHighestDepth();
my_fmt = new TextFormat();
my_fmt.size = 12;
my_fmt.font = "_\u30B4\u30B7\u30C3\u30AF";
my_fmt.color = 0;
theTextField = null;
timerObj = new Object();
timerObj.myInstance = this;
timerObj.callBack = function () {
clearInterval(this.timerId);
this.myInstance.offMsg();
};
}
function onLoad() {
if (theText == "") {
_visible = false;
}
}
function offMsg() {
if (theTextField != null) {
theTextField.removeMovieClip();
theTextField = null;
}
_visible = false;
}
function closeMsg() {
_root.eraseDialog();
offMsg();
}
function putDialog(theText, right) {
var _local22 = 0;
mcCloseBox._visible = false;
if (((theText == "") || (theText == undefined)) || (theText.length <= 0)) {
offMsg();
return(undefined);
}
var _local14 = new String(theText);
var _local12 = _local14.indexOf("</b");
var _local3;
if (_local12 != -1) {
_local12 = _local12 + 4;
var _local21 = _local14.indexOf("<br>");
_local3 = _local14.substring(_local12, _local21);
} else {
_local3 = theText;
}
if (_local3.length > 256) {
_local3 = _local3.substr(0, 256);
}
var _local16 = 180;
var _local18 = my_fmt.getTextExtent(_local3);
if (_local18.textFieldWidth < 180) {
_local16 = _local18.textFieldWidth;
}
var _local15 = my_fmt.getTextExtent(_local3, _local16);
var _local19 = _local15.textFieldWidth;
var _local17 = _local15.textFieldHeight;
if (theTextField != null) {
theTextField.removeMovieClip();
}
var _local6 = 0;
var _local5 = 0;
pParent.createTextField("myText", depth, 8 + _local6, 8 + _local5, _local19, _local17);
theTextField = pParent.myText;
theTextField.wordWrap = true;
theTextField.text = _local3;
theTextField.border = false;
theTextField.background = true;
theTextField.selectable = false;
theTextField.setTextFormat(my_fmt);
var _local2 = 8;
var _local8 = (_local19 + (8 * _local22)) / 100;
var _local9 = _local17 / 100;
mcBox1._width = 100 * _local8;
mcBox1._height = (100 * _local9) + (_local2 * 2);
mcBox1._x = _local2 + _local6;
mcBox2._width = (100 * _local8) + (_local2 * 2);
mcBox2._height = 100 * _local9;
mcBox2._y = _local2 + _local5;
R_tl._x = _local6;
R_tl._y = _local5;
R_tr._x = ((100 * _local8) + (_local2 * 2)) + _local6;
R_tr._y = _local5;
var _local7 = R_bl;
var _local4 = R_br;
var _local11 = R_bl_r;
var _local10 = R_br_r;
if (!right) {
_local7 = R_bl_r;
_local4 = R_br;
_local11 = R_bl;
_local10 = R_br_r;
R_bl._visible = false;
R_br_r._visible = false;
R_bl_r._visible = true;
R_br._visible = true;
} else {
_local7 = R_bl;
_local4 = R_br_r;
_local11 = R_bl_r;
_local10 = R_br;
R_bl_r._visible = false;
R_br._visible = false;
R_bl._visible = true;
R_br_r._visible = true;
}
_local7._x = _local6;
_local7._y = ((100 * _local9) + (_local2 * 2)) + _local5;
_local4._x = ((100 * _local8) + (_local2 * 2)) + _local6;
_local4._y = ((100 * _local9) + (_local2 * 2)) + _local5;
_local11._x = _local7._x;
_local11._y = _local7._y;
_local10._x = _local4._x;
_local10._y = _local4._y;
mcCloseBox._x = R_tr._x - 12;
mcCloseBox._y = R_tr._y + 4;
POSITION_X[1] = POSITION_X[0] - (_width + 71);
if (right) {
_x = POSITION_X[0];
} else {
_x = POSITION_X[1];
}
var _local20 = getBounds(_parent);
if (_local20.yMax > 0) {
_y = _y - _local20.yMax;
}
_visible = true;
}
function setPos(posNo) {
POSITION_X[1] = POSITION_X[0] - (_width + 71);
_x = POSITION_X[posNo];
if (posNo == 1) {
R_bl._visible = false;
R_br_r._visible = false;
R_bl_r._visible = true;
R_br._visible = true;
} else {
R_bl_r._visible = false;
R_br._visible = false;
R_bl._visible = true;
R_br_r._visible = true;
}
}
var theText = "";
var depth = -1;
var POSITION_X = [41, -90];
}
Symbol 456 Button
on (release) {
gotoAndPlay ("ENTER");
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 10
stop();
Symbol 465 MovieClip Frame 19
stop();
Symbol 469 Button
on (release) {
mcIpalRoot.mcItemPal.slide();
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 479 Button
on (release) {
_root.mainController.sendText();
}
Symbol 480 MovieClip Frame 1
stop();
Instance of Symbol 462 MovieClip "stonedAvatar" in Symbol 480 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.mainController.avatarType + 1);
}
Symbol 480 MovieClip Frame 2
swDialog_R.gotoAndStop("up");
swDialog_L.gotoAndStop("gray");
stop();
Instance of Symbol 472 MovieClip "stonedAvatar" in Symbol 480 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.mainController.avatarType + 1);
}
Instance of Symbol 476 MovieClip "swDialog_L" in Symbol 480 MovieClip Frame 2
on (rollOver) {
}
on (release) {
_root.mainController.myAvatarObject.dialogPosition(1);
this.gotoAndStop("up");
_parent.swDialog_R.gotoAndStop("gray");
}
Instance of Symbol 476 MovieClip "swDialog_R" in Symbol 480 MovieClip Frame 2
on (rollOver) {
}
on (release) {
_root.mainController.myAvatarObject.dialogPosition(0);
this.gotoAndStop("up");
_parent.swDialog_L.gotoAndStop("gray");
}