Frame 1
if (_framesloaded >= 2) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 5
function UpdateLives() {
il = 1;
while (10 >= il) {
if (Lives >= il) {
eval ("Status.l" + il)._visible = true;
} else {
eval ("Status.l" + il)._visible = false;
}
il++;
}
if (0 >= Lives) {
gotoAndPlay (8);
}
}
function UpdateScore() {
if (Score == 0) {
Status.Scr.d1._visible = true;
Status.Scr.d1.gotoAndStop(1);
is = 2;
while (10 >= is) {
eval ("Status.Scr.d" + is)._visible = false;
is++;
}
} else {
TheNum = Score;
is = 0;
while (9 >= is) {
Digits[9 - is] = Math.floor(TheNum % 10);
Thenum = Math.floor(Score / Math.pow(10, is + 1));
is++;
}
OffSet = 0;
while (Digits[OffSet] == 0) {
OffSet++;
}
is = 1;
while (10 >= is) {
if ((10 - Offset) >= is) {
eval ("Status.ScR.d" + is).gotoAndStop(Digits[(is - 1) + OffSet] + 1);
eval ("Status.ScR.d" + is)._visible = true;
} else {
eval ("Status.ScR.d" + is)._visible = false;
}
is++;
}
}
}
function FindTable(num) {
ATN = 0;
it = 1;
while (TT >= it) {
if (!TablesOc[it - 1]) {
ATN++;
}
it++;
}
Sel = random(ATN) + 1;
if (0 < ATN) {
it = 1;
while (TT >= it) {
if (!TablesOc[it - 1]) {
Sel--;
if (Sel == 0) {
eval ("Scene.C" + num).Table = it;
TablesOc[it - 1] = true;
eval ("Scene.C" + num).Place = random(2) + 1;
return;
}
}
it++;
}
}
}
function InitiateClient(num) {
eval ("Scene.C" + num).Mode = 0;
eval ("Scene.C" + num)._x = -300;
eval ("Scene.C" + num)._xscale = 100;
eval ("Scene.C" + num).Type = random(4) + 1;
eval ("Scene.C" + num).Partner = 0;
eval ("Scene.C" + num).Active = true;
eval ("Scene.C" + num).Time = 0;
eval ("Scene.C" + num).Table = 0;
eval ("Scene.C" + num).free = false;
eval ("Scene.C" + num).move = true;
eval ("Scene.C" + num).Body.index = num;
eval ("Scene.C" + num).Plate = 0;
eval ("Scene.C" + num).Drink = 0;
eval ("Scene.C" + num).ReturnToMode3 = false;
eval ("Scene.C" + num).finished = false;
eval ("Scene.C" + num).Steps = 0;
eval ("Scene.C" + num).Patience = 0;
eval ("Scene.C" + num).WalkTime = 0;
eval ("Scene.C" + num).Failed = false;
eval ("Scene.C" + num).swapDepths(10 + num);
i = 1;
while (Cmax >= i) {
if ((((eval ("Scene.C" + i).Mode == 0) and (i != num)) and (eval ("Scene.C" + i).Partner == 0)) and (0 < eval ("Scene.C" + i).Table)) {
eval ("Scene.C" + num).Partner = i;
eval ("Scene.C" + i).Partner = num;
eval ("Scene.C" + num).Table = eval ("Scene.C" + i).Table;
if (eval ("Scene.C" + i).Place == 1) {
eval ("Scene.C" + num).Place = 2;
eval ("Scene.C" + num).Active = false;
} else {
eval ("Scene.C" + num).Place = 1;
eval ("Scene.C" + num).Active = false;
}
}
i++;
}
if (eval ("Scene.C" + num).Partner == 0) {
FindTable(num);
}
TheTable = eval ("Scene.C" + num).Table;
ThePlace = eval ("Scene.C" + num).Place;
eval ("Scene.Table" + TheTable).Places[ThePlace] = num;
if (eval ("Scene.C" + num).Type == 1) {
eval ("Scene.C" + num)._y = 0;
eval ("Scene.C" + num).WalkSpeed = 20;
eval ("Scene.C" + num).Anim = new Array(0, 1, 10, 22, 25, 26, 29, 30, 33, 36, 44, 47, 71, 75, 83, 86, 94);
}
if (eval ("Scene.C" + num).Type == 2) {
eval ("Scene.C" + num)._y = 0;
eval ("Scene.C" + num).WalkSpeed = 16;
eval ("Scene.C" + num).Anim = new Array(0, 1, 10, 21, 24, 25, 27, 28, 30, 38, 49, 57, 81, 83, 91, 95, 104);
}
if (eval ("Scene.C" + num).Type == 3) {
eval ("Scene.C" + num)._y = 0;
eval ("Scene.C" + num).WalkSpeed = 20;
eval ("Scene.C" + num).Anim = new Array(0, 1, 10, 21, 24, 52, 55, 56, 66, 70, 86, 91, 122, 133, 143, 146, 155);
}
if (eval ("Scene.C" + num).Type == 4) {
eval ("Scene.C" + num)._y = 0;
eval ("Scene.C" + num).WalkSpeed = 20;
eval ("Scene.C" + num).Anim = new Array(0, 1, 10, 21, 24, 25, 28, 29, 33, 35, 44, 46, 65, 70, 76, 79, 88);
}
}
function AddClient() {
Cmax++;
Scene.ClientExample.duplicateMovieClip("C" + Cmax, Cmax + 10);
InitiateClient(Cmax);
eval ("Scene.C" + Cmax).Snd = new Sound(eval ("_root.Scene.C" + Cmax));
}
function AnimPhase(num, phase) {
if ((eval ("Scene.C" + num).Body._currentFrame < eval ("Scene.C" + num).Anim[phase]) or (eval ("Scene.C" + num).Anim[phase + 1] < eval ("Scene.C" + num).Body._currentFrame)) {
eval ("Scene.C" + num).Body.gotoAndPlay(eval ("Scene.C" + num).Anim[phase]);
} else {
eval ("Scene.C" + num).Body.play();
}
}
function ActivateClient(num) {
eval ("Scene.C" + num).gotoAndStop(eval ("Scene.C" + num).Type);
if (eval ("Scene.C" + num).Mode == 0) {
if (0 < eval ("Scene.C" + num).Table) {
MinWTime = 11;
i = 1;
while (Cmax >= i) {
if ((eval ("Scene.C" + i).Mode == 1) and (eval ("Scene.C" + i).WalkTime < MinWTime)) {
MinWTime = eval ("Scene.C" + i).WalkTime;
}
i++;
}
if (10 < MinWTime) {
if (((random(200) == 0) or (0 < eval ("Scene.C" + num).Partner)) or (Level == 1)) {
eval ("Scene.C" + num).gotoAndPlay(1);
eval ("Scene.C" + num).Mode = 1;
}
}
}
}
if (eval ("Scene.C" + num).Mode == 1) {
eval ("Scene.C" + num).WalkTime++;
if (eval ("Scene.C" + num).move) {
eval ("Scene.C" + num)._x = eval ("Scene.C" + num)._x + eval ("Scene.C" + num).WalkSpeed;
}
if (eval ("Scene.C" + num)._x >= PlacesX[((eval ("Scene.C" + num).Table * 2) + eval ("Scene.C" + num).Place) - 3]) {
eval ("Scene.C" + num)._x = PlacesX[((eval ("Scene.C" + num).Table * 2) + eval ("Scene.C" + num).Place) - 3];
eval ("Scene.C" + num).move = false;
if (eval ("Scene.C" + num).Place == 1) {
AnimPhase(num, 2);
eval ("Scene.C" + num).Mode = 1.5;
eval ("Scene.C" + num).swapDepths(num);
}
if (eval ("Scene.C" + num).Place == 2) {
AnimPhase(num, 15);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[16]) {
eval ("Scene.C" + num)._xscale = -100;
eval ("Scene.C" + num)._x = eval ("Scene.C" + num)._x - 14.5;
eval ("Scene.C" + num).swapDepths(num);
eval ("Scene.C" + num).Mode = 1.5;
AnimPhase(num, 2);
}
}
}
}
if (eval ("Scene.C" + num).Mode == 1.5) {
if (eval ("Scene.C" + num).Body._currentFrame == (eval ("Scene.C" + num).Anim[3] - 1)) {
if (!eval ("Scene.Table" + eval ("Scene.C" + num).Table).Dirty) {
eval ("Scene.C" + num).Mode = 2;
} else {
eval ("Scene.C" + num).Body.stop();
}
}
}
if (eval ("Scene.C" + num).Mode == 2) {
if (eval ("Scene.C" + num).Active) {
if ((eval ("Scene.C" + num).Body._currentFrame < eval ("Scene.C" + num).Anim[4]) or (eval ("Scene.C" + num).Body._currentFrame >= eval ("Scene.C" + num).Anim[5])) {
AnimPhase(num, 3);
}
}
}
if (eval ("Scene.C" + num).Mode == 3) {
if (eval ("Scene.C" + num).Active and (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[4])) {
AnimPhase(num, 5);
}
if ((0 < eval ("Scene.C" + num).Plate) or (0 < eval ("Scene.C" + num).Drink)) {
AnimPhase(num, 7);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[8]) {
eval ("Scene.C" + num).Mode = 4;
}
}
if ((((eval ("Scene.C" + num).Plate == 0) and (eval ("Scene.C" + num).Drink == 0)) and (eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderD[eval ("Scene.C" + num).Place] == 0)) and (eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderP[eval ("Scene.C" + num).Place] == 0)) {
eval ("Scene.C" + num).Finished = true;
}
if ((eval ("Scene.C" + num).Finished and (eval ("Scene.C" + num).Partner == 0)) or (eval ("Scene.C" + num).Finished and eval ("Scene.C" + eval ("Scene.C" + num).Partner).Finished)) {
eval ("Scene.C" + num).Mode = 10;
}
}
if (eval ("Scene.C" + num).Mode == 4) {
if (0 < eval ("Scene.C" + num).Plate) {
AnimPhase(num, 8);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[9]) {
eval ("Scene.C" + num).Mode = 5;
}
} else if (0 < eval ("Scene.C" + num).Drink) {
eval ("Scene.C" + num).Mode = 7;
}
}
if (eval ("Scene.C" + num).Mode == 5) {
AnimPhase(num, 9);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[10]) {
if ((0 < eval ("Scene.C" + num).Drink) and (random(4) == 0)) {
eval ("Scene.C" + num).JumpTo = 7;
eval ("Scene.C" + num).Mode = 6;
}
eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Plate") + eval ("Scene.C" + num).Place).filled = eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Plate") + eval ("Scene.C" + num).Place).filled - 1;
if (0 >= eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Plate") + eval ("Scene.C" + num).Place).filled) {
eval ("Scene.Table" + eval ("Scene.C" + num).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).DirtyP[eval ("Scene.C" + num).Place] = eval ("Scene.C" + num).Plate;
eval ("Scene.C" + num).Plate = 0;
eval ("Scene.C" + num).JumpTo = 8;
eval ("Scene.C" + num).Mode = 6;
eval ("Scene.C" + num).ReturnToMode3 = true;
}
}
}
if (eval ("Scene.C" + num).Mode == 6) {
AnimPhase(num, 10);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[11]) {
eval ("Scene.C" + num).Mode = eval ("Scene.C" + num).JumpTo;
}
}
if (eval ("Scene.C" + num).Mode == 7) {
AnimPhase(num, 11);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[12]) {
if (0 < eval ("Scene.C" + num).Plate) {
eval ("Scene.C" + num).Mode = 4;
} else {
eval ("Scene.C" + num).Mode = 8;
eval ("Scene.C" + num).JumpTo = 9;
}
eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Drink") + eval ("Scene.C" + num).Place).filled = eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Drink") + eval ("Scene.C" + num).Place).filled - 1;
if (0 >= eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Drink") + eval ("Scene.C" + num).Place).filled) {
eval ("Scene.Table" + eval ("Scene.C" + num).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).DirtyD[eval ("Scene.C" + num).Place] = eval ("Scene.C" + num).Drink;
eval ((("Scene.Table" + eval ("Scene.C" + num).Table) + ".Drink") + eval ("Scene.C" + num).Place).gotoAndStop(eval ("Scene.C" + num).Drink + 4);
eval ("Scene.C" + num).Drink = 0;
eval ("Scene.C" + num).ReturnToMode3 = true;
eval ("Scene.C" + num).Mode = 8;
}
}
}
if (eval ("Scene.C" + num).Mode == 8) {
AnimPhase(num, 12);
if (eval ("Scene.C" + num).Body._currentFrame == (eval ("Scene.C" + num).Anim[13] - 1)) {
eval ("Scene.C" + num).Body.stop();
eval ("Scene.C" + num).Mode = eval ("Scene.C" + num).JumpTo;
if (eval ("Scene.C" + num).ReturnToMode3) {
eval ("Scene.C" + num).ReturnToMode3 = false;
eval ("Scene.C" + num).Mode = 3;
}
}
}
if (eval ("Scene.C" + num).Mode == 9) {
if (random(100) == 0) {
eval ("Scene.C" + num).Mode = 3;
}
}
if (eval ("Scene.C" + num).Mode == 10) {
AnimPhase(num, 13);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[14]) {
ResetTable(eval ("Scene.C" + num).Table);
if (eval ("Scene.C" + num).Failed) {
eval ("Scene.C" + num).Failed = false;
Lives--;
UpdateLives();
} else {
Fanfare.start();
Score = Score + Math.round((100 - (eval ("Scene.C" + num).Patience / 100)) * Ko);
UpdateScore();
}
eval ("Scene.C" + num).Mode = 11;
if (eval ("Scene.C" + num).Active) {
TablesOc[eval ("Scene.C" + num).Table - 1] = false;
}
ResetList(eval ("Scene.C" + num).Table);
eval ("Scene.Table" + eval ("Scene.C" + num).Table).Places[eval ("Scene.C" + num).Place] = 0;
i = 1;
while (Cmax >= i) {
if ((eval ("Scene.C" + i).Mode == 0) and (eval ("Scene.C" + i).Table == 0)) {
InitiateClient(i);
}
i++;
}
}
}
if (eval ("Scene.C" + num).Mode == 11) {
AnimPhase(num, 14);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[15]) {
eval ("Scene.C" + num).Steps++;
eval ("Scene.C" + num)._y = eval ("Scene.C" + num)._y + 7;
if (eval ("Scene.C" + num).Steps == 2) {
eval ("Scene.C" + num).swapDepths(20 + num);
eval ("Scene.C" + num).Mode = 12;
}
}
}
if (eval ("Scene.C" + num).Mode == 12) {
if (eval ("Scene.C" + num).Place == 1) {
AnimPhase(num, 15);
if (eval ("Scene.C" + num).Body._currentFrame == eval ("Scene.C" + num).Anim[16]) {
eval ("Scene.C" + num).Mode = 13;
eval ("Scene.C" + num)._x = eval ("Scene.C" + num)._x - 14.5;
eval ("Scene.C" + num)._xscale = -100;
}
}
if (eval ("Scene.C" + num).Place == 2) {
if ((eval ("Scene.C" + num).Partner == 0) or (eval ("Scene.C" + eval ("Scene.C" + num).Partner).Mode == 13)) {
eval ("Scene.C" + num).Mode = 13;
} else {
eval ("Scene.C" + num).Body.stop();
}
}
}
if (eval ("Scene.C" + num).Mode == 13) {
AnimPhase(num, 1);
if (eval ("Scene.C" + num)._x >= -300) {
eval ("Scene.C" + num)._x = eval ("Scene.C" + num)._x - eval ("Scene.C" + num).WalkSpeed;
} else if ((0 < eval ("Scene.C" + num).Partner) and eval ("Scene.C" + num).Active) {
if (random(200) == 0) {
InitiateClient(num);
}
} else {
InitiateClient(num);
}
}
eval ("Scene.C" + num).Time++;
if (eval ("Scene.C" + num).Mode == 1.5) {
eval ("Scene.C" + num).Patience = eval ("Scene.C" + num).Patience + (3 * Ko);
}
if (eval ("Scene.C" + num).Mode == 2) {
eval ("Scene.C" + num).Patience = eval ("Scene.C" + num).Patience + (2 * Ko);
}
if ((eval ("Scene.C" + num).Mode >= 3) and (9 >= eval ("Scene.C" + num).Mode)) {
if (0 < eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderD[eval ("Scene.C" + num).Place]) {
eval ("Scene.C" + num).Patience = eval ("Scene.C" + num).Patience + (0.5 * Ko);
}
if (0 < eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderP[eval ("Scene.C" + num).Place]) {
eval ("Scene.C" + num).Patience = eval ("Scene.C" + num).Patience + (0.5 * Ko);
}
}
eval ("Scene.C" + num).St.Body.gotoAndStop(Math.round(eval ("Scene.C" + num).Patience / 100) + 1);
if ((eval ("Scene.C" + num).Patience >= 10000) and (eval ("Scene.C" + num).Mode < 10)) {
eval ("Scene.C" + num).Failed = true;
eval ("Scene.C" + num).St.gotoAndPlay(8);
eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderD[1] = 0;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderD[2] = 0;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderP[1] = 0;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).OrderP[2] = 0;
if (0 < eval ("Scene.C" + num).Plate) {
eval ("Scene.Table" + eval ("Scene.C" + num).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).DirtyP[eval ("Scene.C" + num).Place] = eval ("Scene.C" + num).Plate;
}
if (0 < eval ("Scene.C" + num).Drink) {
eval ("Scene.Table" + eval ("Scene.C" + num).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + num).Table).DirtyD[eval ("Scene.C" + num).Place] = eval ("Scene.C" + num).Drink;
}
eval ("Scene.C" + num).Mode = 10;
if (0 < eval ("Scene.C" + num).Partner) {
if (0 < eval ("Scene.C" + eval ("Scene.C" + num).Partner).Plate) {
eval ("Scene.Table" + eval ("Scene.C" + eval ("Scene.C" + num).Partner).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + eval ("Scene.C" + num).Partner).Table).DirtyP[eval ("Scene.C" + eval ("Scene.C" + num).Partner).Place] = eval ("Scene.C" + eval ("Scene.C" + num).Partner).Plate;
}
if (0 < eval ("Scene.C" + eval ("Scene.C" + num).Partner).Drink) {
eval ("Scene.Table" + eval ("Scene.C" + eval ("Scene.C" + num).Partner).Table).Dirty = true;
eval ("Scene.Table" + eval ("Scene.C" + eval ("Scene.C" + num).Partner).Table).DirtyD[eval ("Scene.C" + eval ("Scene.C" + num).Partner).Place] = eval ("Scene.C" + eval ("Scene.C" + num).Partner).Drink;
}
eval ("Scene.C" + eval ("Scene.C" + num).Partner).Failed = true;
eval ("Scene.C" + eval ("Scene.C" + num).Partner).Mode = 10;
eval ("Scene.C" + eval ("Scene.C" + num).Partner).St.gotoAndPlay(8);
}
}
}
function InitWaitress() {
Scene.W._x = 200;
Scene.W._y = 13;
Scene.W.dir = 0;
Scene.W.Mode = 0;
Scene.W.Drinks = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
Scene.W.Plates = new Array(0, 0, 0);
Scene.W.TotalPlates = 0;
Scene.W.TotalDrinks = 0;
Scene.W.Serve = 0;
Scene.W.ServeDish = false;
Scene.W.SelectDrink = 0;
Scene.W.MenuActive = false;
Scene.Cook.Busy = false;
TrashCan = 0;
DDOT = 0;
Scene.WExample._visible = false;
}
function ActivateWaitress() {
if (Scene.W.Mode == 0) {
if (Scene.W.dir == 0) {
Scene.W.gotoAndStop(14);
} else {
Scene.W.gotoAndStop(40);
}
Scene.W.Busy = false;
Scene.W.Tnum = 0;
}
if (Scene.W.Mode == 1) {
if (Scene.W.dir == 0) {
if (9 < Scene.W._currentFrame) {
Scene.W.gotoAndPlay(2);
}
Scene.W._x = Scene.W._x - 22;
} else {
if ((Scene.W._currentFrame < 28) or (36 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(29);
}
Scene.W._x = Scene.W._x + 22;
}
if ((Scene.W.dir == 0) and (Scene.W.DesX >= Scene.W._x)) {
Scene.W.DesReached = true;
}
if ((Scene.W.dir == 1) and (Scene.W._x >= Scene.W.DesX)) {
Scene.W.DesReached = true;
}
if (Scene.W.DesReached) {
Scene.W._x = Scene.W.DesX;
Scene.W.Mode = 2;
}
}
if (Scene.W.Mode == 2) {
if (Scene.W.dir == 0) {
if ((Scene.W._currentFrame < 11) or (14 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(11);
}
if (Scene.W._currentFrame == 14) {
Scene.W.Mode = 4;
}
}
if (Scene.W.dir == 1) {
if ((Scene.W._currentFrame < 37) or (40 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(37);
}
if (Scene.W._currentFrame == 40) {
Scene.W.Mode = 4;
}
}
if (Scene.W.Tnum == 7) {
Scene.W.Mode = 12;
}
}
if (Scene.W.Mode == 3) {
if (Scene.W.dir == 1) {
if ((Scene.W._currentFrame < 15) or (23 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(15);
}
if (Scene.W._currentFrame == 18) {
Scene.W.gotoAndPlay(21);
}
if (Scene.W._currentFrame == 23) {
Scene.W.Mode = 1;
}
}
if (Scene.W.dir == 0) {
if ((Scene.W._currentFrame < 41) or (49 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(41);
}
if (Scene.W._currentFrame == 44) {
Scene.W.gotoAndPlay(47);
}
if (Scene.W._currentFrame == 49) {
Scene.W.Mode = 1;
}
}
}
if (Scene.W.Mode == 4) {
if (((4 >= Scene.W.Tnum) and (!TablesOc[Scene.W.Tnum - 1])) and (!eval ("Scene.Table" + Scene.W.Tnum).Dirty)) {
Scene.W.Mode = 0;
} else {
if (Scene.W.dir == 0) {
if ((Scene.W._currentFrame < 15) or (20 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(15);
}
if (Scene.W._currentFrame == 20) {
if (4 >= Scene.W.Tnum) {
Scene.W.Mode = 5;
}
if (Scene.W.Tnum == 5) {
Scene.W.Mode = 10;
}
if (Scene.W.Tnum == 6) {
Scene.W.Mode = 11;
}
if (Scene.W.Tnum == 8) {
Scene.W.Mode = 13;
}
if (Scene.W.Tnum == 9) {
Scene.W.Mode = 16;
}
if (Scene.W.Tnum == 10) {
Scene.W.Mode = 19;
}
if (Scene.W.Tnum < 8) {
Scene.W.Busy = true;
}
}
}
if (Scene.W.dir == 1) {
if ((Scene.W._currentFrame < 41) or (46 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(41);
}
if (Scene.W._currentFrame == 46) {
if (4 >= Scene.W.Tnum) {
Scene.W.Mode = 5;
}
if (Scene.W.Tnum == 5) {
Scene.W.Mode = 10;
}
if (Scene.W.Tnum == 6) {
Scene.W.Mode = 11;
}
if (Scene.W.Tnum == 8) {
Scene.W.Mode = 13;
}
if (Scene.W.Tnum == 9) {
Scene.W.Mode = 16;
}
if (Scene.W.Tnum == 10) {
Scene.W.Mode = 19;
}
if (Scene.W.Tnum < 8) {
Scene.W.Busy = true;
}
}
}
}
}
if (Scene.W.Mode == 5) {
Cancel = true;
if (eval ("Scene.Table" + Scene.W.Tnum).Dirty) {
Scene.W.Mode = 9;
}
if ((eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[1]).Mode == 2) or (eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[2]).Mode == 2)) {
Scene.W.Mode = 7;
}
if ((eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[1]).Mode != 2) and (eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[2]).Mode != 2)) {
if ((((0 < eval ("Scene.Table" + Scene.W.Tnum).OrderP[1]) or (0 < eval ("Scene.Table" + Scene.W.Tnum).OrderP[2])) or (0 < eval ("Scene.Table" + Scene.W.Tnum).OrderD[1])) or (0 < eval ("Scene.Table" + Scene.W.Tnum).OrderD[2])) {
Scene.W.Mode = 8;
} else if (!eval ("Scene.Table" + Scene.W.Tnum).Dirty) {
Scene.W.Mode = 6;
}
}
}
if (Scene.W.Mode == 6) {
Scene.W.Busy = false;
if (Scene.W.dir == 1) {
if ((Scene.W._currentFrame < 21) or (26 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(21);
}
if (Scene.W._currentFrame == 26) {
if (!Scene.W.MenuActive) {
Scene.W.Mode = 0;
} else {
Scene.W.MenuActive = false;
Wgo(Scene.W.XDes);
}
}
}
if (Scene.W.dir == 0) {
if ((Scene.W._currentFrame < 47) or (53 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(47);
}
if (Scene.W._currentFrame == 53) {
if (!Scene.W.MenuActive) {
Scene.W.Mode = 0;
} else {
Scene.W.MenuActive = false;
Wgo(Scene.W.XDes);
}
}
}
}
if (Scene.W.Mode == 7) {
Cancel = false;
if ((Scene.W._currentFrame < 56) or (76 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(56);
}
if (Scene.W._currentFrame == 76) {
i = 1;
while (2 >= i) {
if (1 < eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[i]).Mode) {
eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[i]).Mode = 3;
}
if (0 < eval ("Scene.Table" + Scene.W.Tnum).Places[i]) {
eval ("Scene.Table" + Scene.W.Tnum).OrderD[i] = random(4) + 1;
eval ("Scene.Table" + Scene.W.Tnum).OrderP[i] = random(4) + 1;
eval ("Menu.List" + Scene.W.Tnum)._visible = true;
AddToList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderP[i] + 4);
AddToList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderD[i]);
}
i++;
}
Cancel = true;
}
if (Cancel) {
Scene.W.Mode = 6;
}
}
if (Scene.W.Mode == 8) {
if ((Scene.W._currentFrame < 77) or ((79 < Scene.W._currentFrame) and (Scene.W.Serve == 0))) {
Scene.W.gotoAndPlay(77);
}
if (Scene.W._currentFrame == 79) {
Scene.W.Serve = 1;
}
if (Scene.W.Serve == 1) {
Item = 0;
Item = FindPlate(eval ("Scene.Table" + Scene.W.Tnum).OrderP[1]);
if (0 < Item) {
Scene.W.ServeDish = true;
Scene.W.Clean = false;
eval ("Scene.Table" + Scene.W.Tnum).Plate1._visible = true;
eval ("Scene.Table" + Scene.W.Tnum).Plate1.gotoAndStop(eval ("Scene.Table" + Scene.W.Tnum).OrderP[1]);
eval ("scene.Table" + Scene.W.Tnum).Plate1.filled = 50;
if ((Scene.W._currentFrame < 97) or (105 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(97);
}
if (Scene.W._currentFrame == 105) {
Scene.W.Serve = 2;
Scene.W.Plates[Item] = 0;
Scene.W.gotoAndPlay(78);
eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[1]).Plate = eval ("Scene.Table" + Scene.W.Tnum).OrderP[1];
RemoveFromList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderP[1] + 4);
eval ("Scene.Table" + Scene.W.Tnum).OrderP[1] = 0;
Scene.W.ServeDish = false;
eval ("Scene.Table" + Scene.W.Tnum).Fork1._visible = true;
}
} else {
Scene.W.Serve = 2;
}
}
if (Scene.W.Serve == 2) {
Item = 0;
Item = FindDrink(eval ("Scene.Table" + Scene.W.Tnum).OrderD[1]);
if (0 < Item) {
Scene.W.Clean = false;
eval ("Scene.Table" + Scene.W.Tnum).Drink1._visible = true;
eval ("Scene.Table" + Scene.W.Tnum).Drink1.gotoAndStop(eval ("Scene.Table" + Scene.W.Tnum).OrderD[1]);
eval ("scene.Table" + Scene.W.Tnum).Drink1.filled = 10;
if ((Scene.W._currentFrame < 97) or (104 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(97);
}
if (Scene.W._currentFrame == 104) {
Scene.W.Serve = 3;
Scene.W.Drinks[Item] = 0;
eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[1]).Drink = eval ("Scene.Table" + Scene.W.Tnum).OrderD[1];
RemoveFromList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderD[1]);
eval ("Scene.Table" + Scene.W.Tnum).OrderD[1] = 0;
}
} else {
Scene.W.Serve = 3;
}
}
if (Scene.W.Serve == 3) {
Item = 0;
Item = FindPlate(eval ("Scene.Table" + Scene.W.Tnum).OrderP[2]);
if (0 < Item) {
Scene.W.Clean = false;
if (!Scene.W.ServeDish) {
eval ("Scene.Table" + Scene.W.Tnum).Plate2._x = -0.8;
eval ("Scene.Table" + Scene.W.Tnum).Plate2._y = -68;
}
Scene.W.ServeDish = true;
eval ("Scene.Table" + Scene.W.Tnum).Plate2._visible = true;
eval ("Scene.Table" + Scene.W.Tnum).Plate2.gotoAndStop(eval ("Scene.Table" + Scene.W.Tnum).OrderP[2]);
eval ("scene.Table" + Scene.W.Tnum).Plate2.filled = 50;
if ((Scene.W._currentFrame < 79) or (88 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(79);
}
if (Scene.W._currentFrame == 88) {
Scene.W.Serve = 4;
Scene.W.Plates[Item] = 0;
Scene.W.ServeDish = false;
eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[2]).Plate = eval ("Scene.Table" + Scene.W.Tnum).OrderP[2];
RemoveFromList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderP[2] + 4);
eval ("Scene.Table" + Scene.W.Tnum).OrderP[2] = 0;
eval ("Scene.Table" + Scene.W.Tnum).Fork2._visible = true;
}
} else {
Scene.W.Serve = 4;
}
}
if (Scene.W.Serve == 4) {
Item = 0;
Item = FindDrink(eval ("Scene.Table" + Scene.W.Tnum).OrderD[2]);
if (0 < Item) {
Scene.W.Clean = false;
eval ("Scene.Table" + Scene.W.Tnum).Drink2._visible = true;
eval ("Scene.Table" + Scene.W.Tnum).Drink2.gotoAndStop(eval ("Scene.Table" + Scene.W.Tnum).OrderD[2]);
eval ("scene.Table" + Scene.W.Tnum).Drink2.filled = 10;
if ((Scene.W._currentFrame < 89) or (96 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(89);
}
if (Scene.W._currentFrame == 96) {
eval ("Scene.C" + eval ("Scene.Table" + Scene.W.Tnum).Places[2]).Drink = eval ("Scene.Table" + Scene.W.Tnum).OrderD[2];
RemoveFromList(Scene.W.Tnum, eval ("Scene.Table" + Scene.W.Tnum).OrderD[2]);
eval ("Scene.Table" + Scene.W.Tnum).OrderD[2] = 0;
Scene.W.Drinks[Item] = 0;
Scene.W.Serve = 0;
if (eval ("Scene.Table" + Scene.W.Tnum).Dirty) {
Scene.W.Mode = 9;
} else {
Scene.W.Mode = 6;
}
}
OrganizeTray();
ResetTable(Scene.W.Tnum);
} else {
Scene.W.Serve = 0;
if (eval ("Scene.Table" + Scene.W.Tnum).Dirty) {
Scene.W.Mode = 9;
} else {
Scene.W.Mode = 6;
}
}
OrganizeTray();
ResetTable(Scene.W.Tnum);
}
}
if (Scene.W.Mode == 9) {
if ((Scene.W._currentFrame < 77) or ((79 < Scene.W._currentFrame) and (Scene.W.Serve == 0))) {
Scene.W.gotoAndPlay(77);
}
if (Scene.W._currentFrame == 79) {
Scene.W.Serve = 1;
}
if (Scene.W.Serve == 1) {
if (PlaceOnTray(2) and (0 < eval ("Scene.Table" + Scene.W.Tnum).DirtyP[1])) {
Scene.W.ServeDish = true;
Scene.W.Clean = true;
eval ("Scene.Table" + Scene.W.Tnum).Fork1._visible = false;
if ((Scene.W._currentFrame < 97) or (105 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(97);
}
if (Scene.W._currentFrame == 105) {
Scene.W.Serve = 2;
eval ("Scene.Table" + Scene.W.Tnum).Plate1._visible = false;
eval ("Scene.Table" + Scene.W.Tnum).DirtyP[1] = 0;
Scene.W.gotoAndPlay(78);
Scene.W.TotalPlates++;
Scene.W.Plates[Scene.W.TotalPlates] = 5;
Scene.W.ServeDish = false;
}
} else {
Scene.W.Serve = 2;
}
}
if (Scene.W.Serve == 2) {
if (PlaceOnTray(1) and (0 < eval ("Scene.Table" + Scene.W.Tnum).DirtyD[1])) {
Scene.W.ServeDish = false;
Scene.W.Clean = true;
if ((Scene.W._currentFrame < 97) or (105 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(97);
}
if (Scene.W._currentFrame == 105) {
Scene.W.Serve = 3;
eval ("Scene.Table" + Scene.W.Tnum).Drink1._visible = false;
Scene.W.TotalDrinks++;
Scene.W.Drinks[Scene.W.TotalDrinks] = eval ("Scene.Table" + Scene.W.Tnum).DirtyD[1] + 4;
eval ("Scene.Table" + Scene.W.Tnum).DirtyD[1] = 0;
}
} else {
Scene.W.Serve = 3;
}
}
if (Scene.W.Serve == 3) {
if (PlaceOnTray(2) and (0 < eval ("Scene.Table" + Scene.W.Tnum).DirtyP[2])) {
Scene.W.ServeDish = true;
Scene.W.Clean = true;
eval ("Scene.Table" + Scene.W.Tnum).Fork2._visible = false;
if ((Scene.W._currentFrame < 79) or (88 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(79);
}
if (Scene.W._currentFrame == 88) {
Scene.W.Serve = 4;
eval ("Scene.Table" + Scene.W.Tnum).Plate2._visible = false;
eval ("Scene.Table" + Scene.W.Tnum).DirtyP[2] = 0;
Scene.W.TotalPlates++;
Scene.W.Plates[Scene.W.TotalPlates] = 5;
Scene.W.ServeDish = false;
}
} else {
Scene.W.Serve = 4;
}
}
if (Scene.W.Serve == 4) {
if (PlaceOnTray(1) and (0 < eval ("Scene.Table" + Scene.W.Tnum).DirtyD[2])) {
Scene.W.ServeDish = false;
Scene.W.Clean = true;
if ((Scene.W._currentFrame < 89) or (96 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(89);
}
if (Scene.W._currentFrame == 96) {
Scene.W.Serve = 0;
eval ("Scene.Table" + Scene.W.Tnum).Drink2._visible = false;
Scene.W.TotalDrinks++;
Scene.W.Drinks[Scene.W.TotalDrinks] = eval ("Scene.Table" + Scene.W.Tnum).DirtyD[2] + 4;
eval ("Scene.Table" + Scene.W.Tnum).DirtyD[2] = 0;
eval ("Scene.Table" + Scene.W.Tnum).Dirty = IsDirty(Scene.W.Tnum);
Scene.W.Mode = 6;
}
ResetTable(Scene.W.Tnum);
} else {
Scene.W.Serve = 0;
eval ("Scene.Table" + Scene.W.Tnum).Dirty = IsDirty(Scene.W.Tnum);
Scene.W.Mode = 6;
ResetTable(Scene.W.Tnum);
}
}
}
if (Scene.W.Mode == 10) {
i = 1;
while (8 >= i) {
if (((4 < Scene.W.Drinks[i]) and (TrashCan < 20)) and Scene.TCan._visible) {
Scene.W.Drinks[i] = 0;
TrashCan++;
DDOT++;
}
i++;
}
if (0 < DDOT) {
if ((Scene.W._currentFrame < 106) or (125 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(106);
}
}
if (Scene.W._currentFrame == 125) {
Scene.W.Mode = 6;
DDOT = 0;
}
if (DDOT == 0) {
Scene.W.Mode = 6;
}
}
if (Scene.W.Mode == 11) {
if ((0 >= Cups) or (!PlaceOnTray(1))) {
Scene.W.Mode = 6;
} else {
if ((Scene.W._currentFrame < 126) or (158 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(126);
}
if (Scene.W._currentFrame == 131) {
Cups--;
}
if (Scene.W._currentFrame == 158) {
Scene.W.Mode = 6;
Scene.W.TotalDrinks++;
Scene.W.Drinks[Scene.W.TotalDrinks] = 4;
}
}
}
if (Scene.W.Mode == 12) {
Scene.W.Busy = true;
if ((PinB < 9) and (0 < FindPlate(5))) {
Scene.W.Mode = 12.5;
} else {
Scene.W.Mode = 0;
}
}
if (Scene.W.Mode == 12.5) {
item = FindPlate(5);
if ((Scene.W._currentFrame < 183) or (193 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(183);
} else {
Scene.W.play();
}
if (Scene.W._currentFrame == 188) {
PinB++;
}
if (Scene.W._currentFrame == 185) {
Scene.W.Plates[item] = 0;
OrganizeTray();
}
if (Scene.W._currentFrame == 193) {
Scene.W.Mode = 12;
Scene.W.gotoAndStop(183);
}
}
if (Scene.W.Mode == 13) {
Scene.W.MenuActive = true;
Scene.W.stop();
Scene.W.SelectDrink = 0;
Menu.Buttons.gotoAndStop(2);
Scene.W.Mode = 14;
}
if (Scene.W.Mode == 14) {
if (((0 < Scene.W.SelectDrink) and PlaceOnTray(1)) and (0 < ColdDrinks[Scene.W.SelectDrink])) {
Scene.W.Mode = 15;
}
if (Scene.W.Tnum != 8) {
Scene.W.Mode = 6;
Menu.Buttons.gotoAndStop(1);
if (Scene.W.XDes >= Scene.W._x) {
Scene.W.dir = 1;
} else {
Scene.W.dir = 0;
}
}
}
if (Scene.W.Mode == 15) {
Scene.W.Busy = true;
if ((Scene.W._currentFrame < 169) or (182 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(169);
}
if (Scene.W._currentFrame == 172) {
ColdDrinks[Scene.W.SelectDrink]--;
}
if (Scene.W._currentFrame == 182) {
Scene.W.TotalDrinks++;
Scene.W.Drinks[Scene.W.TotalDrinks] = Scene.W.SelectDrink;
Scene.W.SelectDrink = 0;
Scene.W.gotoAndStop(168);
Scene.W.Busy = false;
Scene.W.Mode = 14;
}
}
if (Scene.W.Mode == 16) {
if ((!Scene.Cook.Busy) and (!DishReady)) {
Scene.W.stop();
Scene.Cook.gotoAndPlay(2);
Scene.W.MenuActive = true;
Menu.Buttons.gotoAndStop(3);
Scene.W.Mode = 17;
SelectDish = 0;
}
if (Scene.Cook.Busy) {
Scene.W.Mode = 6;
}
if (DishReady) {
Scene.W.Mode = 18;
Scene.W.Busy = true;
}
}
if (Scene.W.Mode == 17) {
if (Scene.W.Tnum != 9) {
Menu.Buttons.gotoAndStop(1);
Scene.Cook.gotoAndPlay(23);
Scene.W.Mode = 6;
if (Scene.W.XDes >= Scene.W._x) {
Scene.W.dir = 1;
} else {
Scene.W.dir = 0;
}
}
if (0 < SelectDish) {
Scene.Cook.Busy = true;
Scene.Cook.Type = SelectDish;
Scene.Cook.gotoAndPlay(12);
Scene.W.MenuActive = false;
Menu.Buttons.gotoAndStop(4);
Menu.Buttons.Plate.gotoAndStop(SelectDish);
Scene.W.Mode = 17.5;
}
}
if (Scene.W.Mode == 18) {
if (PlaceOnTray(2)) {
if ((Scene.W._currentFrame < 159) or (168 < Scene.W._currentFrame)) {
Scene.W.gotoAndPlay(159);
}
if (Scene.W._currentFrame == 168) {
Scene.W.TotalPlates++;
Scene.W.Plates[Scene.W.TotalPlates] = Scene.KitPlate.Type;
Scene.KitPlate.gotoAndStop(1);
DishReady = false;
StopAtDish = false;
Scene.W.Busy = false;
Scene.W.Mode = 6;
}
} else {
Scene.W.Mode = 6;
}
}
if (Scene.W.Mode == 19) {
Scene.W.stop();
Scene.W.MenuActive = true;
Menu.Buttons.gotoAndStop(5);
SelectAction = 0;
Scene.W.Mode = 20;
}
if (Scene.W.Mode == 20) {
if (Scene.W.Tnum != 10) {
Menu.Buttons.gotoAndStop(1);
Scene.W.Mode = 6;
if (Scene.W.XDes >= Scene.W._x) {
Scene.W.dir = 1;
} else {
Scene.W.dir = 0;
}
}
if (SelectAction == 1) {
Scene.Worker.gotoAndPlay(2);
}
if ((SelectAction == 2) and (Cups < 20)) {
Scene.Worker.CupN = 20 - Cups;
Scene.Worker.gotoAndPlay(59);
}
if ((SelectAction == 3) and (((ColdDrinks[1] + ColdDrinks[2]) + ColdDrinks[3]) < 30)) {
Scene.Worker.gotoAndPlay(84);
}
if ((SelectAction == 4) and (0 < PinB)) {
Scene.PBox.gotoAndPlay(2);
}
if (0 < SelectAction) {
Scene.W.MenuActive = false;
Menu.Buttons.gotoAndStop(1);
Scene.W.Mode = 6;
}
}
}
function Wgo(X) {
oldDir = Scene.W.dir;
if (X < Scene.W._x) {
Scene.W.dir = 0;
} else {
Scene.W.dir = 1;
}
if (oldDir != Scene.W.dir) {
Scene.W.Mode = 3;
} else {
Scene.W.Mode = 1;
}
Scene.W.DesX = X;
Scene.W.DesReached = false;
}
function InitTables() {
i = 1;
while (TT >= i) {
eval ("Scene.Table" + i).index = i;
eval ("Scene.Table" + i).Places = new Array(0, 0, 0);
eval ("Scene.Table" + i).OrderD = new Array(0, 0, 0);
eval ("Scene.Table" + i).OrderP = new Array(0, 0, 0);
eval ("Scene.Table" + i).DirtyD = new Array(0, 0, 0);
eval ("Scene.Table" + i).DirtyP = new Array(0, 0, 0);
eval ("Scene.Table" + i).Plate1._visible = false;
eval ("Scene.Table" + i).Plate2._visible = false;
eval ("Scene.Table" + i).Drink1._visible = false;
eval ("Scene.Table" + i).Drink2._visible = false;
eval ("Scene.Table" + i).Fork1._visible = false;
eval ("Scene.Table" + i).Fork2._visible = false;
eval ("Scene.Table" + i).Dirty = false;
i++;
}
}
function FindPlate(type) {
resp = 0;
i = 1;
while (2 >= i) {
if ((Scene.W.Plates[i] == type) and (0 < type)) {
resp = i;
}
i++;
}
return(resp);
}
function FindDrink(type) {
i = 1;
while (8 >= i) {
if ((Scene.W.Drinks[i] == type) and (0 < type)) {
return(i);
}
i++;
}
}
function OrganizeTray() {
if ((0 < Scene.W.Plates[2]) and (Scene.W.Plates[1] == 0)) {
Scene.W.Plates[1] = Scene.W.Plates[2];
Scene.W.Plates[2] = 0;
}
Scene.W.TotalPlates = 0;
if (0 < Scene.W.Plates[1]) {
Scene.W.TotalPlates++;
}
if (0 < Scene.W.Plates[2]) {
Scene.W.TotalPlates++;
}
i = 1;
while (7 >= i) {
if (Scene.W.Drinks[i] == 0) {
j = i + 1;
while (8 >= j) {
if (0 < Scene.W.Drinks[j]) {
Scene.W.Drinks[i] = Scene.W.Drinks[j];
Scene.W.Drinks[j] = 0;
break;
}
j++;
}
}
i++;
}
Scene.W.TotalDrinks = 0;
i = 1;
while (8 >= i) {
if (0 < Scene.W.Drinks[i]) {
Scene.W.TotalDrinks++;
}
i++;
}
}
function CheckOrder(table) {
i = 1;
while (2 >= i) {
if ((0 < eval ("Scene.Table" + table).OrderP[i]) or (0 < eval ("Scene.Table" + i).OrderD[i])) {
return(true);
}
i++;
}
}
function PlaceOnTray(dp) {
YES = false;
OrganizeTray();
if (dp == 1) {
if ((Scene.W.TotalPlates == 0) and (Scene.W.TotalDrinks < 8)) {
YES = true;
}
if ((Scene.W.TotalPlates == 1) and (Scene.W.TotalDrinks < 5)) {
YES = true;
}
if ((Scene.W.TotalPlates == 2) and (Scene.W.TotalDrinks < 2)) {
YES = true;
}
}
if (dp == 2) {
if ((Scene.W.TotalPlates == 0) and (5 >= Scene.W.TotalDrinks)) {
YES = true;
}
if ((Scene.W.TotalPlates == 1) and (2 >= Scene.W.TotalDrinks)) {
YES = true;
}
}
if (!YES) {
Menu.Buttons.Flash.gotoAndPlay(2);
}
return(YES);
}
function IsDirty(num) {
result = true;
if ((((eval ("Scene.Table" + num).DirtyP[1] == 0) and (eval ("Scene.Table" + num).DirtyP[2] == 0)) and (eval ("Scene.Table" + num).DirtyD[1] == 0)) and (eval ("Scene.Table" + num).DirtyD[2] == 0)) {
result = false;
}
return(result);
}
function InitLists() {
i = 1;
while (4 >= i) {
eval ("Menu.List" + i).List = new Array(0, 0, 0, 0, 0);
eval ("Menu.List" + i).Done = new Array(false, false, false, false, false);
eval ("Menu.List" + i).TotalItems = 0;
eval ("Menu.List" + i)._visible = false;
i++;
}
}
function ResetList(table) {
i = 1;
while (4 >= i) {
eval ("Menu.List" + table).List[i] = 0;
eval ("Menu.List" + table).Done[i] = false;
i++;
}
eval ("Menu.List" + table).TotalItems = 0;
eval ("Menu.List" + table)._visible = false;
}
function AddToList(table, item) {
eval ("Menu.List" + table).TotalItems++;
eval ("Menu.List" + table).List[eval ("Menu.List" + table).TotalItems] = item;
}
function RemoveFromList(table, item) {
i = 1;
while (4 >= i) {
if ((eval ("Menu.List" + table).List[i] == item) and (!eval ("Menu.List" + table).Done[i])) {
eval ("Menu.List" + table).Done[i] = true;
return;
}
i++;
}
}
function PointerSymbol() {
Symbol = 0;
if (Scene.Table1.hitTest(_xmouse, _ymouse, false)) {
Symbol = 1;
}
if (Scene.Table2.hitTest(_xmouse, _ymouse, false)) {
Symbol = 2;
}
if (Scene.Table3.hitTest(_xmouse, _ymouse, false)) {
Symbol = 3;
}
if (Scene.Table4.hitTest(_xmouse, _ymouse, false)) {
Symbol = 4;
}
if (Scene.TCan.hitTest(_xmouse, _ymouse, false)) {
Symbol = 5;
}
if (Scene.CMachine.hitTest(_xmouse, _ymouse, false)) {
Symbol = 6;
}
if (Scene.PBox.Body.hitTest(_xmouse, _ymouse, false)) {
Symbol = 7;
}
if (Scene.Fridge.hitTest(_xmouse, _ymouse, true)) {
Symbol = 8;
}
if (Scene.Kitchen.hitTest(_xmouse, _ymouse, false)) {
Symbol = 9;
}
if (Scene.Worker.hitTest(_xmouse, _ymouse, true)) {
Symbol = 10;
}
if (Symbol == 0) {
Menu.Pointer._visible = false;
} else {
Menu.Pointer._visible = true;
Menu.Pointer.gotoAndStop(Symbol);
}
if (0 < Scene.W.Tnum) {
Menu.Target._visible = true;
Menu.Target.Symbol.gotoAndStop(Scene.W.Tnum);
if ((Scene.W.dir == 0) and (!Scene.W.Busy)) {
Menu.Target.Status.gotoAndStop(1);
}
if ((Scene.W.dir == 1) and (!Scene.W.Busy)) {
Menu.Target.Status.gotoAndStop(2);
}
if (Scene.W.MenuActive) {
Menu.Target.Status.gotoAndStop(4);
}
if (Scene.W.Busy) {
Menu.Target.Status.gotoAndStop(3);
}
} else {
Menu.Target._visible = false;
}
if (Scene.W.Busy) {
Menu.Busy._visible = true;
} else {
Menu.Busy._visible = false;
}
}
function ResetTable(tn) {
eval ("Scene.Table" + tn).Plate1._x = -26.4;
eval ("Scene.Table" + tn).Plate1._y = -43.2;
eval ("Scene.Table" + tn).Plate2._x = 26.6;
eval ("Scene.Table" + tn).Plate2._y = -43.2;
eval ("Scene.Table" + tn).Drink1._x = -12.4;
eval ("Scene.Table" + tn).Drink1._y = -45.6;
eval ("Scene.Table" + tn).Drink2._x = 12.6;
eval ("Scene.Table" + tn).Drink2._y = -45.7;
}
Pause = false;
Cmax = 0;
Cups = 20;
PinB = 0;
TT = 4;
PlacesX = new Array(-20, 112.5, 263.9, 396.6, 538.8, 671.5, 813.7, 946.5);
TablesOc = new Array(false, false, false, false);
Dexchange = new Array(1, 2, 6, 7, 8, 3, 4, 5);
ColdDrinks = new Array(0, 10, 10, 10);
DishReady = false;
TrashCan = 0;
Ko = 1;
Level = 1;
MinWTime = 0;
Score = 0;
Lives = 3;
Digits = new Array(10);
Fanfare = new Sound();
Fanfare.attachSound("FANFARE");
Scene.ClientExample._visible = false;
Scene.Cook.Type = 1;
InitTables();
InitLists();
AddClient();
Scene.WExample.duplicateMovieClip("W", 20);
InitWaitress();
UpdateScore();
UpdateLives();
HLP._visible = false;
Instance of Symbol 868 MovieClip "Scene" in Frame 5
/* no clip actions */
Instance of Symbol 1053 MovieClip "BP" in Frame 5
onClipEvent (mouseDown) {
if (_root.Scene.W.Busy) {
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
if (_root.Scene.W.Busy) {
gotoAndStop (1);
}
}
Frame 6
if (!Pause) {
if ((31 < Scene.Cook._currentframe) and (120 >= Scene.Cook._currentframe)) {
Scene.Cook.play();
}
ic = 1;
while (Cmax >= ic) {
ActivateClient(ic);
pos = (eval ("Scene.C" + ic)._x + Scene._x) - 300;
pan = pos / 3;
if (pan < -100) {
pan = -100;
}
if (100 < pan) {
pan = 100;
}
vol = 100 - Math.abs(pos / 10);
if (vol < 0) {
vol = 0;
}
eval ("Scene.C" + ic).Snd.setPan(pan);
eval ("Scene.C" + ic).Snd.setVolume(vol);
ic++;
}
ActivateWaitress();
PointerSymbol();
if ((Level == 1) and (Scene.C1.Mode == 4)) {
Level = 2;
AddClient();
}
if ((300 < Score) and (Level < 3)) {
Level = 3;
AddClient();
Ko = 2;
}
if ((500 < Score) and (Level < 4)) {
Level = 4;
Ko = 3;
}
if ((1000 < Score) and (Level < 5)) {
Level = 5;
AddClient();
Ko = 4;
}
if ((2000 < Score) and (Level < 6)) {
Level = 6;
Ko = 4.25;
}
if ((3000 < Score) and (Level < 7)) {
Level = 7;
AddClient();
}
if ((5000 < Score) and (Level < 8)) {
Level = 8;
Ko = 4.5;
}
if ((7500 < Score) and (Level < 9)) {
Level = 9;
AddClient();
}
if ((10000 < Score) and (Level < 10)) {
Level = 10;
Ko = 4.75;
Lives++;
UpdateLives();
}
if ((12500 < Score) and (Level < 11)) {
Level = 11;
Ko = 5;
}
if ((15000 < Score) and (Level < 13)) {
Level = 13;
AddClient();
Lives++;
UpdateLives();
}
if ((17500 < Score) and (Level < 14)) {
Level = 14;
Ko = 5.25;
Lives++;
UpdateLives();
}
if ((20000 < Score) and (Level < 15)) {
Level = 15;
AddClient();
Lives++;
UpdateLives();
}
if ((25000 < Score) and (Level < 16)) {
Level = 16;
Ko = 5.5;
Lives++;
UpdateLives();
}
if ((30000 < Score) and (Level < 17)) {
Level = 17;
Ko = 5.75;
Lives++;
UpdateLives();
}
if ((40000 < Score) and (Level < 18)) {
Level = 18;
Ko = 6;
Lives++;
UpdateLives();
}
if ((50000 < Score) and (Level < 19)) {
Level = 19;
Lives++;
UpdateLives();
}
if (((500 < _xmouse) and (-900 < Scene._x)) and (_ymouse < 250)) {
Scene._x = Scene._x - ((_xmouse - 500) / 4);
}
if (((_xmouse < 100) and (Scene._x < 150)) and (_ymouse < 250)) {
Scene._x = Scene._x - ((_xmouse - 100) / 4);
}
if (Scene.W.Busy) {
BP._visible = true;
Mouse.hide();
BP._x = _xmouse;
BP._y = _ymouse;
} else {
BP._visible = false;
BP.gotoAndStop(1);
Mouse.show();
}
} else {
if ((31 < Scene.Cook._currentframe) and (120 >= Scene.Cook._currentframe)) {
Scene.Cook.stop();
}
HLP._visible = true;
Menu._visible = false;
Scene._visible = false;
Status._visible = false;
Mouse.show();
}
Frame 7
gotoAndPlay (6);
Frame 8
TS = Score;
stop();
Instance of Symbol 63 MovieClip "Plates" in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 82 Button
on (rollOver) {
Scroll = 2;
}
on (press) {
Scroll = 15;
}
on (release) {
Scroll = 2;
}
on (releaseOutside) {
Scroll = 0;
}
on (rollOut) {
Scroll = 0;
}
Symbol 86 Button
on (rollOver) {
Scroll = -2;
}
on (press) {
Scroll = -15;
}
on (release) {
Scroll = -2;
}
on (releaseOutside) {
Scroll = 0;
}
on (rollOut) {
Scroll = 0;
}
Symbol 90 Button
on (press) {
getURL ("http://www.d-mah.com", "_blank");
}
Symbol 96 Button
on (press) {
_root.gotoAndPlay(4);
}
Symbol 98 Button
on (press) {
_root.Pause = false;
_root.Menu._visible = true;
_root.Scene._visible = true;
_root.Status._visible = true;
_root.HLP._visible = false;
}
Symbol 100 Button
on (press) {
_root.Pause = false;
_root.Menu._visible = true;
_root.Scene._visible = true;
_root.Status._visible = true;
_root.HLP._visible = false;
_root.gotoAndPlay(4);
}
Instance of Symbol 74 MovieClip "Cont" in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.Scroll) {
if (_y < 30) {
_y = (_y + _parent.Scroll);
} else {
_y = 43;
}
}
if ((_parent.Scroll < 0) and (-645 < _y)) {
_y = (_y + _parent.Scroll);
}
}
Instance of Symbol 101 MovieClip in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._currentFrame == 3) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_visible = false;
_root.Clock._visible = true;
} else {
_visible = true;
_root.Clock._visible = false;
}
}
Symbol 108 Button
on (press) {
if (!_root.Scene.W.Busy) {
_root.Scene.W.Tnum = 9;
if (!_root.StopAtDish) {
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1195);
} else {
_root.Scene.W.XDes = 1195;
}
} else if (!_root.Scene.W.MenuActive) {
_root.Wgo(1160);
} else {
_root.Scene.W.XDes = 1160;
}
}
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 3
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 11
stop();
Symbol 161 MovieClip Frame 23
if (_root.Scene.W.Mode == 17.5) {
_root.Scene.W.dir = 0;
_root.Scene.W.Mode = 6;
}
if (_root.Menu.Buttons._currentFrame == 4) {
_root.Menu.Buttons.gotoAndStop(1);
}
Symbol 161 MovieClip Frame 31
if (_root.SelectDish == 0) {
stop();
} else {
_root.StopAtDish = true;
}
Symbol 161 MovieClip Frame 121
Plate.gotoAndStop(Type);
Symbol 161 MovieClip Frame 122
Plate.gotoAndStop(Type);
Symbol 161 MovieClip Frame 123
Plate.gotoAndStop(Type);
Symbol 161 MovieClip Frame 124
Plate.gotoAndStop(Type);
Symbol 161 MovieClip Frame 125
_parent.KitPlate.gotoAndStop(2);
_parent.KitPlate.Type = Type;
_root.DishReady = true;
Symbol 161 MovieClip Frame 130
Busy = false;
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
Plate.gotoAndStop(Type);
Symbol 180 Button
on (press) {
if (!_root.Scene.W.Busy) {
_root.Scene.W.Tnum = 8;
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1420);
} else {
_root.Scene.W.XDes = 1420;
}
}
}
Symbol 190 MovieClip Frame 1
stop();
Instance of Symbol 187 MovieClip "Cups" in Symbol 190 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.Cups == 0) {
_visible = false;
} else {
_visible = true;
gotoAndStop(_root.Cups);
}
}
Instance of Symbol 189 MovieClip "Cups" in Symbol 190 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent.CupN);
}
onClipEvent (enterFrame) {
if (_y < (61.5 - (_root.Cups * 5))) {
_y = (_y + 5);
} else {
_root.Cups = _root.Cups + _parent.CupN;
_parent.gotoAndStop(1);
}
}
Symbol 192 Button
on (press) {
if (!_root.Scene.W.Busy) {
_root.Scene.W.Tnum = 6;
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1230);
} else {
_root.Scene.W.XDes = 1230;
}
}
}
Symbol 195 Button
on (press) {
if (!_root.Scene.W.Busy) {
_root.Scene.W.Tnum = 5;
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1230);
} else {
_root.Scene.W.XDes = 1230;
}
}
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
_parent.WButton._visible = true;
stop();
Symbol 352 MovieClip Frame 2
_parent.WButton._visible = false;
Symbol 352 MovieClip Frame 11
Frame = _parent.TCan._currentFrame;
_parent.TCan._visible = false;
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 12
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 13
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 14
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 25
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 26
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 27
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 28
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 29
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 30
Can.Button._visible = false;
Can.gotoAndStop(Frame);
Symbol 352 MovieClip Frame 45
Can.Button._visible = false;
Symbol 352 MovieClip Frame 46
Can.Button._visible = false;
Symbol 352 MovieClip Frame 47
Can.Button._visible = false;
Symbol 352 MovieClip Frame 48
Can.Button._visible = false;
Symbol 352 MovieClip Frame 49
Can.Button._visible = false;
Symbol 352 MovieClip Frame 50
Can.Button._visible = false;
Symbol 352 MovieClip Frame 51
_root.TrashCan = 0;
_parent.TCan._visible = true;
Symbol 352 MovieClip Frame 58
gotoAndStop (1);
Symbol 352 MovieClip Frame 59
_parent.WButton._visible = false;
Symbol 352 MovieClip Frame 67
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 68
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 69
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 70
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 71
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 72
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 73
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 74
Cup.gotoAndStop(CupN);
Symbol 352 MovieClip Frame 75
_parent.CHolder.gotoAndStop(2);
_parent.CHolder.CupN = CupN;
Symbol 352 MovieClip Frame 83
gotoAndStop (1);
Symbol 352 MovieClip Frame 84
_parent.WButton._visible = false;
Symbol 352 MovieClip Frame 152
_root.ColdDrinks[1] = 10;
_root.ColdDrinks[2] = 10;
_root.ColdDrinks[3] = 10;
Symbol 352 MovieClip Frame 172
gotoAndStop (1);
Symbol 353 Button
on (press) {
if (!_root.Scene.W.Busy) {
_root.Scene.W.Tnum = 10;
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1310);
} else {
_root.Scene.W.XDes = 1310;
}
}
}
Symbol 394 Button
on (press) {
if (!_parent.W.Busy) {
_parent.W.Tnum = index;
if (!_root.Scene.W.MenuActive) {
_root.Wgo(_x);
} else {
_root.Scene.W.XDes = _x;
}
}
}
Instance of Symbol 379 MovieClip "Plate1" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate2" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate1" in Symbol 396 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate2" in Symbol 396 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate1" in Symbol 397 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate2" in Symbol 397 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate1" in Symbol 398 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Instance of Symbol 379 MovieClip "Plate2" in Symbol 398 MovieClip Frame 1
onClipEvent (enterFrame) {
if (10 < filled) {
Content.gotoAndStop(1);
}
if ((25 >= filled) and (0 < filled)) {
Content.gotoAndStop(2);
}
if (0 >= filled) {
gotoAndStop (5);
}
}
Symbol 461 MovieClip Frame 1
function MD(x, y, ro) {
if (_parent.Place == 1) {
xx = -12.4 - x;
yy = -45.6 - y;
rr = -ro;
} else {
xx = 12.6 + x;
yy = -45.6 - y;
rr = ro;
}
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._x = xx;
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._y = yy;
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._rotation = rr;
}
Symbol 461 MovieClip Frame 9
gotoAndPlay (1);
Symbol 461 MovieClip Frame 10
_parent.free = false;
Symbol 461 MovieClip Frame 21
stop();
_parent.free = true;
Symbol 461 MovieClip Frame 25
stop();
Symbol 461 MovieClip Frame 29
stop();
_parent.free = true;
Symbol 461 MovieClip Frame 34
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = false;
Symbol 461 MovieClip Frame 47
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = true;
Symbol 461 MovieClip Frame 52
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = false;
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 53
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 54
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 55
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 56
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 57
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 58
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 59
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 60
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 61
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 62
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 63
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 64
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 65
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 66
Drink.gotoAndStop(_parent.Drink);
Symbol 461 MovieClip Frame 67
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = true;
Symbol 461 MovieClip Frame 74
stop();
Symbol 461 MovieClip Frame 75
if (0 < _parent.Drink) {
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = true;
}
Symbol 461 MovieClip Frame 94
_parent.free = true;
Symbol 481 MovieClip Frame 7
gotoAndPlay (1);
Symbol 481 MovieClip Frame 20
stop();
Symbol 535 MovieClip Frame 9
gotoAndPlay (1);
Symbol 535 MovieClip Frame 20
stop();
Symbol 535 MovieClip Frame 24
stop();
Symbol 535 MovieClip Frame 27
stop();
Symbol 535 MovieClip Frame 35
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = false;
Symbol 535 MovieClip Frame 52
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = true;
Symbol 535 MovieClip Frame 62
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = false;
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 63
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 64
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 65
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 66
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 67
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 68
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 69
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 70
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 71
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 72
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 73
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 74
Drink.gotoAndStop(_parent.Drink);
Symbol 535 MovieClip Frame 75
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = true;
Symbol 535 MovieClip Frame 83
stop();
Symbol 637 MovieClip Frame 9
gotoAndPlay (1);
Symbol 637 MovieClip Frame 20
stop();
Symbol 637 MovieClip Frame 51
gotoAndPlay (24);
Symbol 637 MovieClip Frame 55
stop();
Symbol 637 MovieClip Frame 67
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = false;
Symbol 637 MovieClip Frame 89
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = true;
Symbol 637 MovieClip Frame 95
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = false;
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 96
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 97
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 98
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 99
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 100
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 101
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 102
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 103
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 104
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 105
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 106
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 107
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 108
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 109
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 110
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 111
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 112
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 113
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 114
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 115
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 116
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 117
Drink.gotoAndStop(_parent.Drink);
Symbol 637 MovieClip Frame 118
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = true;
Symbol 637 MovieClip Frame 132
stop();
Symbol 703 MovieClip Frame 9
gotoAndPlay (1);
Symbol 703 MovieClip Frame 20
stop();
Symbol 703 MovieClip Frame 24
stop();
Symbol 703 MovieClip Frame 28
stop();
Symbol 703 MovieClip Frame 33
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = false;
Symbol 703 MovieClip Frame 46
eval ((("_root.Scene.Table" + _parent.Table) + ".Fork") + _parent.Place)._visible = true;
Symbol 703 MovieClip Frame 48
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = false;
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 49
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 50
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 51
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 52
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 53
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 54
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 55
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 56
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 57
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 58
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 59
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 60
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 61
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 62
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = false;
Drink.gotoAndStop(_parent.Drink);
Symbol 703 MovieClip Frame 63
eval ((("_root.Scene.Table" + _parent.Table) + ".Drink") + _parent.Place)._visible = true;
Symbol 703 MovieClip Frame 69
stop();
Instance of Symbol 481 MovieClip "St" in Symbol 704 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_parent.Mode >= 1.5) and (_parent.Mode < 10)) {
_visible = true;
}
if (_parent.Mode >= 10) {
if ((_currentframe == 20) or (_currentframe < 8)) {
gotoAndPlay (1);
_visible = false;
}
}
if (_parent.Mode < 1.5) {
_visible = false;
}
}
Symbol 709 Button
on (press) {
if (!_root.Scene.W.Busy) {
if (!_root.Scene.W.MenuActive) {
_root.Wgo(1475 - (_root.PinB * 5));
} else {
_root.Scene.W.XDes = 1475 - (_root.PinB * 5);
}
_root.Scene.W.Tnum = 7;
}
}
Symbol 715 MovieClip Frame 1
stop();
Instance of Symbol 708 MovieClip "Body" in Symbol 715 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 >= _root.PinB) {
Plates._visible = false;
} else {
Plates._visible = true;
Plates.gotoAndStop(_root.PinB);
}
}
Symbol 715 MovieClip Frame 27
_root.PinB = 0;
Instance of Symbol 708 MovieClip "Body" in Symbol 715 MovieClip Frame 39
onClipEvent (enterFrame) {
if (0 >= _root.PinB) {
Plates._visible = false;
} else {
Plates._visible = true;
Plates.gotoAndStop(_root.PinB);
}
}
Symbol 715 MovieClip Frame 47
gotoAndStop (1);
Symbol 727 MovieClip Frame 1
stop();
i = 1;
while (8 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = _root.Dexchange[i - 1];
} else {
index = i;
}
if (0 < _parent.Drinks[i]) {
eval ("D" + index)._visible = true;
eval ("D" + index).gotoAndStop(_parent.Drinks[i]);
} else {
eval ("D" + index)._visible = false;
}
i++;
}
i = 1;
while (2 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = 3 - i;
} else {
index = i;
}
if (0 < _parent.Plates[i]) {
eval ("P" + index)._visible = true;
eval ("P" + index).gotoAndStop(_parent.Plates[i]);
} else {
eval ("P" + index)._visible = false;
}
i++;
}
Symbol 727 MovieClip Frame 2
i = 1;
while (8 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = _root.Dexchange[i - 1];
} else {
index = i;
}
if (0 < _parent.Drinks[i]) {
eval ("D" + index)._visible = true;
eval ("D" + index).gotoAndStop(_parent.Drinks[i]);
} else {
eval ("D" + index)._visible = false;
}
i++;
}
i = 1;
while (2 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = 3 - i;
} else {
index = i;
}
if (0 < _parent.Plates[i]) {
eval ("P" + index)._visible = true;
eval ("P" + index).gotoAndStop(_parent.Plates[i]);
} else {
eval ("P" + index)._visible = false;
}
i++;
}
Symbol 727 MovieClip Frame 3
i = 1;
while (8 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = _root.Dexchange[i - 1];
} else {
index = i;
}
if (0 < _parent.Drinks[i]) {
eval ("D" + index)._visible = true;
eval ("D" + index).gotoAndStop(_parent.Drinks[i]);
} else {
eval ("D" + index)._visible = false;
}
i++;
}
i = 1;
while (2 >= i) {
if ((20 < _parent._currentFrame) and (_parent._currentFrame < 47)) {
index = 3 - i;
} else {
index = i;
}
if (0 < _parent.Plates[i]) {
eval ("P" + index)._visible = true;
eval ("P" + index).gotoAndStop(_parent.Plates[i]);
} else {
eval ("P" + index)._visible = false;
}
i++;
}
Symbol 867 MovieClip Frame 9
gotoAndPlay (1);
Symbol 867 MovieClip Frame 15
Tray.gotoAndStop(2);
Symbol 867 MovieClip Frame 16
Tray.gotoAndStop(3);
Symbol 867 MovieClip Frame 17
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 21
Tray.gotoAndStop(3);
Symbol 867 MovieClip Frame 22
Tray.gotoAndStop(2);
Symbol 867 MovieClip Frame 23
Tray.gotoAndStop(1);
Symbol 867 MovieClip Frame 36
gotoAndPlay (28);
Symbol 867 MovieClip Frame 41
Tray.gotoAndStop(2);
Symbol 867 MovieClip Frame 42
Tray.gotoAndStop(3);
Symbol 867 MovieClip Frame 43
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 47
Tray.gotoAndStop(3);
Symbol 867 MovieClip Frame 48
Tray.gotoAndStop(2);
Symbol 867 MovieClip Frame 49
Tray.gotoAndStop(1);
Symbol 867 MovieClip Frame 55
gotoAndPlay (1);
Symbol 867 MovieClip Frame 56
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 77
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 79
if (ServeDish and (!Clean)) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = -0.8;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -68;
}
Symbol 867 MovieClip Frame 80
if (ServeDish and (!Clean)) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 21.7;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -71.5;
}
Symbol 867 MovieClip Frame 81
if (!Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 22.7;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -60.5;
}
Symbol 867 MovieClip Frame 82
if (!Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 25.2;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -52;
}
Symbol 867 MovieClip Frame 83
eval ("_root.Scene.Table" + Tnum).Plate2._x = 26.6;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -43.2;
if (!Clean) {
PutSound.start();
}
Symbol 867 MovieClip Frame 84
if (Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 25.2;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -52;
}
Symbol 867 MovieClip Frame 85
if (Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 22.7;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -60.5;
}
Symbol 867 MovieClip Frame 86
if (ServeDish and Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = 21.7;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -71.5;
}
Symbol 867 MovieClip Frame 87
if (ServeDish and Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._x = -0.8;
eval ("_root.Scene.Table" + Tnum).Plate2._y = -68;
}
Symbol 867 MovieClip Frame 88
if (ServeDish and Clean) {
eval ("_root.Scene.Table" + Tnum).Plate2._visible = false;
}
Symbol 867 MovieClip Frame 89
if ((!Clean) and (Serve == 4)) {
eval ("_root.Scene.Table" + Tnum).Drink2._x = 0;
eval ("_root.Scene.Table" + Tnum).Drink2._y = -50;
}
Symbol 867 MovieClip Frame 91
if (!Clean) {
eval ("_root.Scene.Table" + Tnum).Drink2._x = 10;
eval ("_root.Scene.Table" + Tnum).Drink2._y = -50;
}
Symbol 867 MovieClip Frame 92
eval ("_root.Scene.Table" + Tnum).Drink2._x = 12.6;
eval ("_root.Scene.Table" + Tnum).Drink2._y = -45.7;
if (!Clean) {
PutSound.start();
}
Symbol 867 MovieClip Frame 93
if (Clean) {
eval ("_root.Scene.Table" + Tnum).Drink2._x = 10;
eval ("_root.Scene.Table" + Tnum).Drink2._y = -50;
}
Symbol 867 MovieClip Frame 94
if (Clean) {
eval ("_root.Scene.Table" + Tnum).Drink2._visible = false;
}
Symbol 867 MovieClip Frame 97
if (ServeDish and (!Clean)) {
eval ("_root.Scene.Table" + Tnum).Plate1._x = -18;
eval ("_root.Scene.Table" + Tnum).Plate1._y = -55;
}
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 98
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 99
if (ServeDish and (!Clean)) {
eval ("_root.Scene.Table" + Tnum).Plate1._x = -23;
eval ("_root.Scene.Table" + Tnum).Plate1._y = -46;
}
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 100
if (ServeDish and (!Clean)) {
eval ("_root.Scene.Table" + Tnum).Plate1._x = -26.6;
eval ("_root.Scene.Table" + Tnum).Plate1._y = -43.2;
}
if (!Clean) {
PutSound.start();
}
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 101
if (ServeDish and Clean) {
eval ("_root.Scene.Table" + Tnum).Plate1._x = -23;
eval ("_root.Scene.Table" + Tnum).Plate1._y = -46;
}
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 102
if (ServeDish and Clean) {
eval ("_root.Scene.Table" + Tnum).Plate1._visible = false;
}
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 103
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 104
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 106
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 107
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 108
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 109
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 110
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 122
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 123
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 124
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 125
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 126
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 159
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 169
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 170
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 171
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 172
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 174
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 175
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 176
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 177
Tray.gotoAndStop(4);
Symbol 867 MovieClip Frame 183
Tray.gotoAndStop(1);
Symbol 867 MovieClip Frame 186
Tray.gotoAndStop(1);
Instance of Symbol 199 MovieClip "TCan" in Symbol 868 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.TrashCan < 17) {
gotoAndStop (1);
}
if ((_root.TrashCan >= 17) and (_root.TrashCan < 20)) {
gotoAndStop (2);
}
if (_root.TrashCan >= 20) {
gotoAndStop (3);
}
}
Instance of Symbol 395 MovieClip "Table1" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(1);
}
Instance of Symbol 396 MovieClip "Table2" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(2);
}
Instance of Symbol 397 MovieClip "Table3" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(3);
}
Instance of Symbol 398 MovieClip "Table4" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(4);
}
Instance of Symbol 867 MovieClip "WExample" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
PutSound = new Sound(this);
PutSound.attachSound("Put");
}
Instance of Symbol 898 MovieClip in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[1]) {
_visible = true;
gotoAndStop(_parent.List[1]);
if (_parent.Done[1]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 899 MovieClip in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[2]) {
_visible = true;
gotoAndStop(_parent.List[2]);
if (_parent.Done[2]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 900 MovieClip in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[3]) {
_visible = true;
gotoAndStop(_parent.List[3]);
if (_parent.Done[3]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[4]) {
_visible = true;
gotoAndStop(_parent.List[4]);
if (_parent.Done[4]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 898 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[1]) {
_visible = true;
gotoAndStop(_parent.List[1]);
if (_parent.Done[1]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 899 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[2]) {
_visible = true;
gotoAndStop(_parent.List[2]);
if (_parent.Done[2]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 900 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[3]) {
_visible = true;
gotoAndStop(_parent.List[3]);
if (_parent.Done[3]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 904 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[4]) {
_visible = true;
gotoAndStop(_parent.List[4]);
if (_parent.Done[4]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 898 MovieClip in Symbol 905 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[1]) {
_visible = true;
gotoAndStop(_parent.List[1]);
if (_parent.Done[1]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 899 MovieClip in Symbol 905 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[2]) {
_visible = true;
gotoAndStop(_parent.List[2]);
if (_parent.Done[2]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 900 MovieClip in Symbol 905 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[3]) {
_visible = true;
gotoAndStop(_parent.List[3]);
if (_parent.Done[3]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 905 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[4]) {
_visible = true;
gotoAndStop(_parent.List[4]);
if (_parent.Done[4]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 898 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[1]) {
_visible = true;
gotoAndStop(_parent.List[1]);
if (_parent.Done[1]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 899 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[2]) {
_visible = true;
gotoAndStop(_parent.List[2]);
if (_parent.Done[2]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 900 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[3]) {
_visible = true;
gotoAndStop(_parent.List[3]);
if (_parent.Done[3]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 906 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _parent.List[4]) {
_visible = true;
gotoAndStop(_parent.List[4]);
if (_parent.Done[4]) {
Done._visible = true;
} else {
Done._visible = false;
}
} else {
_visible = false;
}
}
Symbol 913 Button
on (press) {
_root.Scene._x = 160;
}
Symbol 914 Button
on (press) {
_root.Scene._x = -16;
}
Symbol 915 Button
on (press) {
_root.Scene._x = -300;
}
Symbol 916 Button
on (press) {
_root.Scene._x = -570;
}
Symbol 943 MovieClip Frame 1
stop();
Symbol 958 Button
on (press) {
_root.Scene._x = -890;
}
Symbol 973 Button
on (release) {
_root.Pause = true;
}
Symbol 1010 Button
on (release) {
if (_root.Scene.W.Mode == 14) {
_root.Scene.W.SelectDrink = 1;
}
}
Symbol 1015 Button
on (release) {
if (_root.Scene.W.Mode == 14) {
_root.Scene.W.SelectDrink = 2;
}
}
Symbol 1020 Button
on (release) {
if (_root.Scene.W.Mode == 14) {
_root.Scene.W.SelectDrink = 3;
}
}
Symbol 1024 Button
on (release) {
_root.SelectDish = 1;
}
Symbol 1028 Button
on (release) {
_root.SelectDish = 2;
}
Symbol 1032 Button
on (release) {
_root.SelectDish = 3;
}
Symbol 1036 Button
on (release) {
_root.SelectDish = 4;
}
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1037 MovieClip Frame 2
stop();
Symbol 1037 MovieClip Frame 3
stop();
Symbol 1038 MovieClip Frame 1
stop();
Symbol 1038 MovieClip Frame 2
stop();
Symbol 1043 Button
on (release) {
_root.SelectAction = 1;
}
Symbol 1044 Button
on (release) {
_root.SelectAction = 2;
}
Symbol 1047 Button
on (release) {
_root.SelectAction = 3;
}
Symbol 1048 Button
on (release) {
_root.SelectAction = 4;
}
Symbol 1049 MovieClip Frame 1
i = 1;
while (8 >= i) {
eval ("D" + i)._visible = false;
i++;
}
i = 1;
while (2 >= i) {
eval ("P" + i)._visible = false;
i++;
}
PSymbol._visible = false;
stop();
Instance of Symbol 957 MovieClip "PSymbol" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((31 < _root.Scene.Cook._currentFrame) or _root.DishReady) {
_visible = true;
gotoAndStop(_root.Scene.Cook.Type);
} else {
_visible = false;
}
if (_root.DishReady) {
Wait._visible = false;
} else {
Wait._visible = true;
}
}
Instance of Symbol 959 MovieClip "D1" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[1]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[1]);
} else {
_visible = false;
}
}
Instance of Symbol 960 MovieClip "P1" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Plates[1]) {
_visible = true;
gotoAndStop(_root.Scene.W.Plates[1]);
} else {
_visible = false;
}
}
Instance of Symbol 961 MovieClip "P2" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Plates[2]) {
_visible = true;
gotoAndStop(_root.Scene.W.Plates[2]);
} else {
_visible = false;
}
}
Instance of Symbol 962 MovieClip "D2" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[2]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[2]);
} else {
_visible = false;
}
}
Instance of Symbol 963 MovieClip "D3" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[3]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[3]);
} else {
_visible = false;
}
}
Instance of Symbol 964 MovieClip "D4" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[4]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[4]);
} else {
_visible = false;
}
}
Instance of Symbol 965 MovieClip "D5" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[5]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[5]);
} else {
_visible = false;
}
}
Instance of Symbol 966 MovieClip "D6" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[6]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[6]);
} else {
_visible = false;
}
}
Instance of Symbol 967 MovieClip "D7" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[7]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[7]);
} else {
_visible = false;
}
}
Instance of Symbol 968 MovieClip "D8" in Symbol 1049 MovieClip Frame 1
onClipEvent (enterFrame) {
if (0 < _root.Scene.W.Drinks[8]) {
_visible = true;
gotoAndStop(_root.Scene.W.Drinks[8]);
} else {
_visible = false;
}
}
Instance of Symbol 878 MovieClip in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if ((1 < eval ("_root.Scene.C" + _root.Scene.Table1.Places[1]).Mode) or (1 < eval ("_root.Scene.C" + _root.Scene.Table1.Places[2]).Mode)) {
Oc._visible = true;
} else {
Oc._visible = false;
}
}
Instance of Symbol 879 MovieClip in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if ((1 < eval ("_root.Scene.C" + _root.Scene.Table2.Places[1]).Mode) or (1 < eval ("_root.Scene.C" + _root.Scene.Table2.Places[2]).Mode)) {
Oc._visible = true;
} else {
Oc._visible = false;
}
}
Instance of Symbol 880 MovieClip in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
if ((1 < eval ("_root.Scene.C" + _root.Scene.Table3.Places[1]).Mode) or (1 < eval ("_root.Scene.C" + _root.Scene.Table3.Places[2]).Mode)) {
Oc._visible = true;
} else {
Oc._visible = false;
}
}
Instance of Symbol 881 MovieClip in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
onClipEvent (enterFrame) {
if ((1 < eval ("_root.Scene.C" + _root.Scene.Table4.Places[1]).Mode) or (1 < eval ("_root.Scene.C" + _root.Scene.Table4.Places[2]).Mode)) {
Oc._visible = true;
} else {
Oc._visible = false;
}
}
Instance of Symbol 903 MovieClip "List1" in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(1);
}
Instance of Symbol 904 MovieClip "List2" in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(2);
}
Instance of Symbol 905 MovieClip "List3" in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(3);
}
Instance of Symbol 906 MovieClip "List4" in Symbol 1050 MovieClip Frame 1
onClipEvent (load) {
Number.gotoAndStop(4);
}
Instance of Symbol 1049 MovieClip "Buttons" in Symbol 1050 MovieClip Frame 1
onClipEvent (enterFrame) {
Num1.gotoAndStop(_root.ColdDrinks[1] + 1);
Num2.gotoAndStop(_root.ColdDrinks[2] + 1);
Num3.gotoAndStop(_root.ColdDrinks[3] + 1);
}
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1069 Button
on (press) {
gotoAndStop (3);
}