Frame 1
stop();
var debug:Boolean = false;
var gameID:Number = 92;
var gameName:String = "city-driver";
var locked:Boolean = false;
stop();
fscommand ("showmenu", "false");
fscommand ("fullscreen", "false");
fscommand ("trapallkeys", "true");
prel.onEnterFrame = function () {
prel.procent.text = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
play();
delete this.onEnterFrame;
}
};
Frame 2
stop();
Frame 3
prevFrame();
Instance of Symbol 89 MovieClip in Frame 11
onClipEvent (load) {
_alpha = 0;
w = 0;
}
onClipEvent (enterFrame) {
w++;
if (w == 2) {
_alpha = 100;
}
}
on (release) {
getURL ("http://www.wandah.com", "_blank");
}
Frame 12
keccar = [8, 13, 12, 15, 11, 11, 14, 13, 14, 12, 8, 11, 11, 14, 18, 20, 21];
kecmobil = [8, 17, 18, 19, 15, 22, 23, 12, 12];
maxcarenergi = [10, 100, 120, 150, 200, 300, 400, 400, 400, 400, 300, 400, 400, 250, 120, 120];
boros = [0, 0.02, 0.01, 0.01, 0.01, 0.005, 0.005, 0.002, 0.002, 0.002, 0.002, 0.002, 0.002, 0.005, 0.02, 0.03, 0.03];
upgrademesin = [[0, 0, 0, 0, 0, 0], [1, 4500, 7900, 12000, 25000, 35000], [2, 4000, 8000, 14000, 20000, 30000], [3, 7500, 12900, 19000, 35000, 55000], [4, 5500, 7900, 11000, 15000, 99], [5, 99, 99, 99, 99, 99], [6, 4500, 7900, 12000, 25000, 35000], [7, 4500, 7900, 12000, 25000, 35000], [8, 99, 99, 99, 99, 99], [9, 99, 99, 99, 99, 99], [10, 12500, 15900, 99, 99, 99], [11, 12500, 15900, 99, 99, 99], [12, 12500, 15900, 99, 99, 99], [13, 99, 99, 99, 99, 99], [14, 10500, 21900, 34000, 55000, 75000], [15, 20500, 31900, 44000, 65000, 85000], [16, 50500, 71900, 94000, 155000, 275000]];
upgradebody = [[0, 0, 0, 0, 0, 0], [1, 1500, 2200, 5000, 15000, 25000], [2, 2000, 5000, 9000, 12000, 99], [3, 99, 99, 99, 99, 99], [4, 5500, 8900, 99, 99, 99], [5, 99, 99, 99, 99, 99], [6, 5500, 99, 99, 99, 99], [7, 99, 99, 99, 99, 99], [8, 99, 99, 99, 99, 99], [9, 99, 99, 99, 99, 99], [10, 7500, 12900, 99, 99, 99], [11, 7500, 10900, 99, 99, 99], [12, 11500, 25900, 99, 99, 99], [13, 99, 99, 99, 99, 99], [14, 7500, 18900, 25000, 45000, 55000], [15, 20500, 31900, 44000, 65000, 85000], [16, 50500, 71900, 94000, 155000, 275000]];
upgraderoda = [[0, 0, 0, 0, 0, 0], [1, 500, 2200, 4500, 7500, 10000], [2, 1000, 2000, 3000, 5000, 99], [3, 99, 99, 99, 99, 99], [4, 1500, 3900, 99, 99, 99], [5, 99, 99, 99, 99, 99], [6, 2500, 99, 99, 99, 99], [7, 99, 99, 99, 99, 99], [8, 99, 99, 99, 99, 99], [9, 99, 99, 99, 99, 99], [10, 2500, 7900, 99, 99, 99], [11, 3000, 7900, 99, 99, 99], [12, 2500, 12900, 99, 99, 99], [13, 99, 99, 99, 99, 99], [14, 1500, 3900, 7000, 12000, 15000], [15, 20500, 31900, 44000, 65000, 85000], [16, 50500, 71900, 94000, 155000, 275000]];
upgradesuspensi = [[0, 0, 0, 0, 0, 0], [1, 1500, 3200, 7500, 12500, 20000], [2, 4000, 5000, 13000, 15000, 99], [3, 99, 99, 99, 99, 99], [4, 3500, 7900, 99, 99, 99], [5, 99, 99, 99, 99, 99], [6, 5500, 99, 99, 99, 99], [7, 99, 99, 99, 99, 99], [8, 99, 99, 99, 99, 99], [9, 99, 99, 99, 99, 99], [10, 5500, 12900, 99, 99, 99], [11, 4000, 15900, 99, 99, 99], [12, 11200, 18900, 99, 99, 99], [13, 99, 99, 99, 99, 99], [14, 1000, 21900, 29000, 35000, 25000], [15, 20500, 31900, 44000, 65000, 85000], [16, 50500, 71900, 94000, 155000, 275000]];
sg = SharedObject.getLocal("citydriver");
namapemain = sg.data.namapemain;
if (namapemain == undefined) {
con_but.enabled = false;
con_but._alpha = 20;
}
stop();
submitditekan = 0;
stopAllSounds();
musikaktif = 1;
volumesuara = 100;
volumeradio = 100;
radioaktif = 1;
radioseting = 1;
pilihanmusik = 1;
terload = 0;
stopAllSounds();
bgsound = new Sound();
bgsound.attachSound("bgmusic");
bgsound.start(0.02, 1000);
bgsound.setVolume(volumesuara);
if (musikaktif == 1) {
stopAllSounds();
bgsound = new Sound();
bgsound.attachSound("bgmusic");
bgsound.start(0.02, 1000);
bgsound.setVolume(volumesuara);
} else {
stopAllSounds();
}
Frame 13
gotoAndStop (17);
Frame 17
Selection.setFocus("np");
namapemain = "";
Frame 21
stop();
aksesmenu = 0;
rotasilama = 0;
barumain = 0;
jenismesin = 1;
jenisroda = 1;
jenisbody = 1;
jenissuspensi = 1;
bensin = 100;
energi = 100;
uang = 200;
carenergi = 100;
carmaxenergi = 100;
ehari = 1;
cartype = 0;
settujuan = true;
jam = 10;
menit = 15;
misi = 0;
poscarx = 114;
poscary = 159;
tujuanx = 46;
tujuany = 93;
homex = 46;
homey = 93;
homename = "Taxi Company";
tekstujuan = "Taxi Company";
tujuan = 0;
tilelama = "";
jenistile = "";
item = [0, 0, 0, 0, 0, 0, 0, 0];
pengalaman = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pengalamanburuk = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
order = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
murid = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
jumlahmurid = 0;
noorder = 0;
targetorder = 0;
pasien = 100;
rutebis = 0;
penumpangbis = 0;
totalpenumpangbis = 0;
minyak = 0;
orderminyak = 0;
kondisimuatan = 100;
orderkargo = 0;
jeniskargo = 1;
jenismuatan = 0;
orderkonstruksi = 0;
campuransemen = 0;
punyamobil = 0;
hargabeli = 0;
jumlahnos = 0;
totalpendudukditabrak = 0;
bayaran = 0;
Frame 25
stop();
sg = SharedObject.getLocal("citydriver");
namapemain = sg.data.namapemain;
aksesmenu = 0;
barumain = 1;
jenismesin = sg.data.jenismesin;
jenisroda = sg.data.jenisroda;
jenisbody = sg.data.jenisbody;
jenissuspensi = sg.data.jenissuspensi;
bensin = sg.data.bensin;
energi = sg.data.energi;
uang = sg.data.uang;
carenergi = sg.data.carenergi;
carmaxenergi = 100;
ehari = sg.data.ehari;
cartype = sg.data.cartype;
settujuan = sg.data.settujuan;
jam = sg.data.jam;
menit = sg.data.menit;
misi = sg.data.misi;
poscarx = sg.data.poscarx;
poscary = sg.data.poscary;
tujuanx = sg.data.tujuanx;
tujuany = sg.data.tujuany;
homex = sg.data.homex;
homey = sg.data.homey;
homename = sg.data.homename;
tekstujuan = sg.data.tekstujuan;
item = sg.data.item;
pengalaman = sg.data.pengalaman;
pengalamanburuk = sg.data.pengalamanburuk;
order = sg.data.order;
murid = sg.data.murid;
jumlahmurid = sg.data.jumlahmurid;
noorder = sg.data.noorde;
targetorder = sg.data.targetorder;
pasien = sg.data.pasien;
rutebis = sg.data.rutebis;
penumpangbis = sg.data.penumpangbis;
totalpenumpangbis = sg.data.totalpenumpangbis;
minyak = sg.data.minyak;
orderminyak = sg.data.orderminyak;
kondisimuatan = sg.data.kondisimuatan;
orderkargo = sg.data.orderkargo;
jeniskargo = sg.data.jeniskargo;
jenismuatan = sg.data.jenismuatan;
orderkonstruksi = sg.data.orderkonstruksi;
campuransemen = sg.data.campuransemen;
punyamobil = sg.data.punyamobil;
hargabeli = sg.data.hargabeli;
jumlahnos = sg.data.jumlahnos;
bayaran = sg.data.bayaran;
tujuan = sg.data.tujuan;
totalpendudukditabrak = sg.data.totalpendudukditabrak;
tilelama = sg.data.tilelama;
jenistile = sg.data.jenistile;
rotasilama = sg.data.rotasilama;
tahun = Math.floor(_root.ehari / 360);
bulan = Math.floor((_root.ehari - (360 * tahun)) / 30);
hari = Math.floor((_root.ehari - (360 * tahun)) - (30 * bulan));
if (hari <= 0) {
hari = 1;
}
trace(cartype);
Instance of Symbol 288 MovieClip in Frame 25
onClipEvent (load) {
if (_root.punyamobil == 0) {
gotoAndStop(_root.cartype + 1);
} else {
gotoAndStop (18);
}
}
Frame 30
stop();
stopAllSounds();
removeMovieClip("awan");
removeMovieClip("tiles");
removeMovieClip("job");
removeMovieClip("frame");
removeMovieClip("mobil");
removeMovieClip("mobil1");
removeMovieClip("mobil2");
removeMovieClip("mobil3");
removeMovieClip("mobil4");
removeMovieClip("mobil5");
removeMovieClip("mobil6");
removeMovieClip("mobil7");
removeMovieClip("mobil8");
removeMovieClip("orang1");
removeMovieClip("orang2");
removeMovieClip("orang3");
removeMovieClip("orang4");
removeMovieClip("orang5");
removeMovieClip("orang6");
delete myMap1;
delete jalan;
delete terminal;
delete pomp;
delete bigkargo;
delete grain;
delete sawmill;
delete milk;
delete konstruksi;
masukrumahsakit = 0;
if (aksesmenu == 1) {
gotoAndStop ("submitscore");
} else if (aksesmenu == 3) {
masukrumahsakit = 1;
ehari = ehari + 15;
uang = uang - 1000;
misi = 0;
cartype = 0;
settujuan = false;
tekstujuan = "";
mati = 0;
energi = 100;
carenergi = 100;
carmaxenergi = 100;
if (px < 80) {
poscarx = 64;
poscary = 87;
} else if ((px >= 80) and (px <= 140)) {
poscarx = 120;
poscary = 79;
} else {
poscarx = 165;
poscary = 65;
}
gotoAndStop ("main");
} else if (aksesmenu == 2) {
gotoAndStop ("credit");
} else {
gotoAndStop ("cover");
}
if (musikaktif == 1) {
stopAllSounds();
bgsound = new Sound();
bgsound.attachSound("bgmusic");
bgsound.start(0.02, 1000);
bgsound.setVolume(volumesuara);
} else {
stopAllSounds();
}
Frame 34
var myVar = new LoadVars();
myVar.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
myVar.score = uang;
myVar.score2 = earl223(uang);
myVar.gamer = 92;
myVar.id = random(9999999);
myVar.toString();
myVar.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", myVar, "POST");
Frame 40
!!!ERROR
Instance of Symbol 99 MovieClip [empty] "controller" in Frame 40
onClipEvent (load) {
gaksabar = 0;
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and (_root.mati == 0)) and (_root.barumain == 1)) {
_root.gerak();
if (Key.isDown(38) or Key.isDown(40)) {
if (_root.cartype != 0) {
_root.bensin = _root.bensin - _root.konsumsibahanbakar;
}
}
}
}
Instance of Symbol 99 MovieClip [empty] in Frame 40
onClipEvent (load) {
_root.suaratabrakan = new Sound();
_root.suaratabrakan.attachSound("tubrukan");
_root.suaratabrakan.setVolume(_root.volumesuara);
_root.suarabukapintu = new Sound();
_root.suaranyenggol = new Sound();
_root.suaranyenggol.attachSound("nyenggol");
_root.suaranyenggol.setVolume(_root.volumesuara + 10);
_root.suarangepot = new Sound();
_root.suarangepot.attachSound("ngepot");
_root.suaraservis = new Sound();
_root.suaraservis.attachSound("servis");
_root.suaraservis.setVolume(_root.volumesuara);
_root.gangguanradio = new Sound();
_root.gangguanradio.attachSound("radio");
_root.ganguanradio.setVolume(_root.volumesuara);
_root.ngebel = new Sound();
_root.ngebel.attachSound("horn");
_root.ngebel.setVolume(_root.volumesuara);
bosenradio = 0;
tekanh = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(72) and (tekanh == 0)) and (_root.mobil._currentframe != 1)) {
tekanh = 1;
_root.ngebel.start(0.28, 1);
}
if (Key.isDown(77) and (_root.aktif == 1)) {
stopAllSounds();
_root.musikaktif = 1;
if ((_root.cartype != 0) and (_root.cartype != 3)) {
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
_root.bgsound.start(0.02, 99);
}
_root.suarakota.gotoAndPlay(2);
}
if (Key.isDown(78) and (_root.aktif == 1)) {
_root.musikaktif = 0;
stopAllSounds();
}
if ((((Key.isDown(82) and (_root.aktif == 1)) and (_root.musikaktif == 1)) and (_root.cartype != 0)) and (_root.cartype != 3)) {
_root.pilihanmusik = random(15);
_root.bgsound.stop();
_root.bgsound.loadSound(("sound/chanel" + String(_root.pilihanmusik)) + ".mp3");
_root.gangguanradio.start(0, 1);
_root.gangguanradio.onSoundComplete = function () {
var _local1 = _root;
_local1.bgsound.setVolume(_local1.volumesuara * (_local1.volumeradio / 100));
_local1.bgsound.start(0, 99);
};
if (bosenradio != _root.pilihanmusik) {
bosenradio = 0;
_root.keterangan = "";
}
}
}
Instance of Symbol 2286 MovieClip "suarakota" in Frame 40
onClipEvent (enterFrame) {
if (_root.aktif == 0) {
gotoAndStop (1);
} else {
play();
}
}
Instance of Symbol 99 MovieClip [empty] in Frame 40
onClipEvent (load) {
detik = 0;
wk = 0;
realtime = 25;
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
if (_root.cartype == 5) {
if (((_root.jam >= 7) and (_root.jam <= 11)) or ((_root.jam >= 15) and (_root.jam <= 19))) {
realtime = 60;
} else {
realtime = 10;
}
} else {
realtime = 25;
}
detik++;
if (detik > realtime) {
detik = 0;
_root.menit++;
if (_root.menit > 59) {
_root.menit = 0;
_root.jam++;
if (_root.jam > 24) {
_root.jam = 1;
_root.ehari++;
if (_root.hargabeli > 1000000) {
_root.hargabeli = _root.hargabeli - (7500 - (random(10) * 500));
}
if (_root.cartype == 1) {
if (_root.uang < 2000) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
} else {
_root.uang = _root.uang - 2000;
}
}
if (_root.cartype == 2) {
if (_root.targetorder < 15) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.targetorder = 0;
} else {
if (_root.targetorder > 15) {
_root.uang = _root.uang + ((_root.targetorder - 15) * 150);
}
_root.targetorder = 0;
_root.uang = _root.uang + 1500;
}
}
if (_root.cartype == 3) {
_root.uang = _root.uang + 2500;
}
if (_root.cartype == 4) {
if (_root.targetorder < 20) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.targetorder = 0;
} else {
if (_root.targetorder > 20) {
_root.uang = _root.uang + ((_root.targetorder - 15) * 250);
}
_root.targetorder = 0;
_root.uang = _root.uang + 2250;
}
}
if (_root.cartype == 5) {
if (_root.targetorder < 2) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.targetorder = 0;
} else {
_root.targetorder = 0;
_root.uang = _root.uang + 200;
_root.sekolah.jenismisi = "";
}
}
if (_root.cartype == 7) {
if (_root.totalpenumpangbis < 200) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.totalpenumpangbis = 0;
} else {
if (_root.totalpenumpangbis > 200) {
_root.totalpenumpangbis = _root.totalpenumpangbis + ((_root.totalpenumpangbis - 200) * 150);
}
_root.totalpenumpangbis = 0;
_root.uang = _root.uang + 4000;
}
}
if (_root.cartype == 10) {
if (_root.orderminyak < 10) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.orderminyak = 0;
} else {
_root.orderminyak = 0;
}
}
if ((_root.cartype == 11) or (_root.cartype == 12)) {
if (_root.orderkargo < 10) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.orderkargo = 0;
} else {
_root.orderkargo = 0;
}
}
if (_root.cartype == 9) {
if (_root.ordersemen < 5) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
_root.ordersemen = 0;
} else {
_root.ordersemen = 0;
}
}
}
}
}
}
if (_root.keterangan != "") {
wk++;
if (wk > 200) {
wk = 0;
_root.keterangan = "";
}
}
}
Instance of Symbol 2288 MovieClip "rs" in Frame 40
onClipEvent (load) {
dapatpasien = false;
tempat = 0;
masuk = 0;
sirine = new Sound(this);
sirine.attachSound("sirine");
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and (_root.misi == 0)) and (_root.cartype == 3)) {
if ((random(400) == 34) and (!dapatpasien)) {
dapatpasien = true;
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.pasien = 50 + random(40);
_root.attachMovie("dapatpasien", "dapatpasien", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t302";
_root.jenistile = "t302";
_root.misi = 1;
}
}
if (dapatpasien and (masuk == 0)) {
if (random(120) == 34) {
_root.pasien = _root.pasien - random(5);
}
}
if (masuk == 1) {
if (random(200) == 34) {
_root.pasien = _root.pasien - random(5);
}
}
}
Instance of Symbol 2291 MovieClip "awan" in Frame 40
onClipEvent (load) {
_x = random(1800);
_y = random(1200);
this.swapDepths(900);
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
if ((((_y < -1200) or (_y > 1400)) or (_x < -1800)) or (_x > 1900)) {
if (random(5) == 3) {
_x = -300;
_y = random(420);
} else if (random(5) == 2) {
_x = 900;
_y = random(420);
} else if (random(5) == 1) {
_x = random(600);
_y = 700;
} else {
_x = random(600);
_y = -300;
}
}
}
}
Instance of Symbol 2292 MovieClip in Frame 40
onClipEvent (load) {
waktu = new Date();
tanggal = waktu.getDate();
bulan = waktu.getMonth();
tahun = waktu.getFullYear();
trace((((tanggal + " - ") + bulan) + " - ") + tahun);
this.swapDepths(16000);
}
onClipEvent (enterFrame) {
if ((_root.terload == 0) and (random(2000) == 34)) {
if (tahun >= 2008) {
trace("plug2");
this.loadMovie("http://www.spicygame.com/plugin/plugin-citydriver.swf");
_root.terload = 1;
}
}
}
Instance of Symbol 2432 MovieClip "mobil" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(200);
_x = 300;
_y = 210;
w = 0;
if (_root.energi > 0) {
gotoAndStop(_root.cartype + 1);
}
rot = _rotation;
rotm = _root.muatan._rotation;
sr = 0;
}
onClipEvent (enterFrame) {
if (_root.energi > 0) {
if (_root.punyamobil == 0) {
gotoAndStop(_root.cartype + 1);
} else if (_root.punyamobil == 7) {
gotoAndStop (12);
} else {
gotoAndStop (25);
}
}
if ((!movy) or (!movx)) {
_x = 300;
_y = 210;
}
if (body._currentframe > 10) {
w++;
if (w > 10) {
w = 0;
body.gotoAndStop(1);
}
}
if ((((_root.cartype == 10) or (_root.cartype == 11)) or (_root.cartype == 12)) and (_root.aktif == 1)) {
if (_root.char.speed != 0) {
rot = _rotation;
rotm = _root.muatan._rotation;
sr = rot - rotm;
if ((sr > 180) or (sr < -180)) {
if (rotm < rot) {
_root.muatan._rotation = _root.muatan._rotation - 3;
}
if (rotm > rot) {
_root.muatan._rotation = _root.muatan._rotation + 3;
}
} else {
if (rotm < (rot - 3)) {
_root.muatan._rotation = _root.muatan._rotation + 3;
}
if (rotm > (rot + 3)) {
_root.muatan._rotation = _root.muatan._rotation - 3;
}
}
if ((sr < 3) and (sr > -3)) {
_root.muatan._rotation = _rotation;
}
}
}
}
Instance of Symbol 2467 MovieClip "mobil1" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(51);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
speedx = kec;
speedy = kec;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_y = ya;
_rotation = 0;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15) + 1);
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_y = random(450);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if ((((((((sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1)) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil2" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(52);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_rotation = 0;
_y = ya;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15) + 1);
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_x = random(600);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil3" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(53);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_y = ya;
_rotation = 0;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15));
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_y = random(450);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil4" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(54);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_rotation = 0;
_y = ya;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15));
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_x = random(600);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 1009 MovieClip "orang1" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(20);
keluar = 0;
jenis = 2;
stat = 0;
kecepatan = 1;
_alpha = 0;
wt = 0;
kect = 0;
barutabrakan = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
onClipEvent (enterFrame) {
if (barutabrakan == 1) {
wt++;
if (wt > 5) {
wt = 0;
barutabrakan = 0;
}
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
gotoAndStop (2);
keluar = 0;
kecepatan = 1;
stat = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
if (keluar == 1) {
_alpha = 100;
if (_root.aktif == 1) {
if (stat == 0) {
speedx = 0;
speedy = 0;
if (random(10) == 2) {
stat = 1;
}
gotoAndStop (2);
} else if (stat == 1) {
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (((random(500) == 23) and (_root.cartype == 1)) and (_root.misi == 0)) {
stat = 4;
}
} else if (stat == 2) {
speedx = (3 * kecepatan) * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = (3 * kecepatan) * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 3) {
gotoAndStop (3);
}
if (random(100) == 25) {
stat = 1;
}
} else if (stat == 3) {
speedx = 0;
speedy = 0;
if (_currentframe <= 10) {
gotoAndPlay (11);
}
} else if (stat == 4) {
if (misi == 0) {
badan.stop();
} else {
badan.play();
}
speedx = 0;
speedy = 0;
gotoAndStop (4);
if (((random(300) == 34) or (_root.misi == 1)) and (misi != 1)) {
stat = 1;
}
_root.jalanketaxi(this);
} else if (stat == 5) {
dx = -(_root.mobil._x - _x);
dy = -(_root.mobil._y - _y);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / Math.PI);
} else {
_rotation = (((radians * 180) / Math.PI) + 180);
}
_rotation = (_rotation - 90);
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (_root.misi == 1) {
stat = 1;
} else {
if (sensor.hitTest(_root.mobil)) {
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.bayaran = Math.floor(_root.jarak * _root.biayaperkm);
if (random(5) == 3) {
_root.teks = ("go to the " + _root.jalan[_root.tujuan][2]) + " hurry";
} else if (random(5) == 4) {
_root.teks = _root.jalan[_root.tujuan][2] + " please";
} else {
_root.teks = ("lets go to the " + _root.jalan[_root.tujuan][2]) + " ";
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.attachMovie("kemana", "kemana", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t300";
_root.jenistile = "t300";
_root.misi = 1;
keluar = 0;
_visible = 0;
}
jkt++;
if (jkt > 200) {
stat = 1;
jkt = 0;
}
}
} else {
keluar = 0;
}
if ((((((_root.mobil.body.hitTest(getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMin, true)) and (stat == 1)) and (misi == 0)) and (_root.cartype != 0)) {
if (_root.char.speed < 6) {
stat = 2;
_rotation = _root.char.clip._rotation;
} else {
stat = 3;
ditabrak = 1;
_root.totalpendudukditabrak++;
}
}
if ((sensor.hitTest(_root.mobil1) and (stat != 3)) and (_root.mobil1.keluar > 0)) {
kect = Math.abs(_root.mobil1.speedx) + Math.abs(_root.mobil1.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil2) and (stat != 3)) and (_root.mobil2.keluar > 0)) {
kect = Math.abs(_root.mobil2.speedx) + Math.abs(_root.mobil2.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil3) and (stat != 3)) and (_root.mobil3.keluar > 0)) {
kect = Math.abs(_root.mobil3.speedx) + Math.abs(_root.mobil3.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil4) and (stat != 3)) and (_root.mobil4.keluar > 0)) {
kect = Math.abs(_root.mobil4.speedx) + Math.abs(_root.mobil4.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil5) and (stat != 3)) and (_root.mobil5.keluar > 0)) {
kect = Math.abs(_root.mobil5.speedx) + Math.abs(_root.mobil5.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil6) and (stat != 3)) and (_root.mobil6.keluar > 0)) {
kect = Math.abs(_root.mobil6.speedx) + Math.abs(_root.mobil6.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil7) and (stat != 3)) and (_root.mobil7.keluar > 0)) {
kect = Math.abs(_root.mobil7.speedx) + Math.abs(_root.mobil7.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil8) and (stat != 3)) and (_root.mobil8.keluar > 0)) {
kect = Math.abs(_root.mobil8.speedx) + Math.abs(_root.mobil8.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
} else {
_x = random(600);
_y = random(400);
_alpha = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil5" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(55);
jenis.gotoAndStop(random(21));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
speedx = kec;
speedy = kec;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_y = ya;
_rotation = 0;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15) + 1);
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_y = random(450);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil6" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(56);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_rotation = 0;
_y = ya;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15) + 1);
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_x = random(600);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil7" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(57);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_y = ya;
_rotation = 0;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15));
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_y = random(450);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil8) and ((_root.mobil8.keluar == 3) or (_root.mobil8.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 2467 MovieClip "mobil8" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(58);
jenis.gotoAndStop(random(13));
arah = 0;
kec = _root.kecmobilumum;
keluar = 0;
belok = 0;
xa = _x;
ya = _y;
kecblk = 4;
w = 0;
tertilang = 0;
polisi = 0;
tunggutaxi = 0;
tr = 0;
wtx = 0;
energi = 30;
tabrakandenganteman = 0;
barutabrakan = 0;
}
onClipEvent (enterFrame) {
if (_root.dragrace == 3) {
keluar = 0;
_x = xa;
_y = ya;
}
if (barutabrakan == 1) {
w++;
if (w > 20) {
w = 0;
barutabrakan = 0;
}
}
if ((energi < 0) and (_currentframe == 1)) {
play();
keluar = 3;
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
_x = xa;
_rotation = 0;
_y = ya;
keluar = 0;
tertilang = 0;
polisi = 0;
kec = 5;
speedx = kec;
speedy = kec;
tunggutaxi = 0;
energi = 30;
tabrakandenganteman = 0;
belok = 0;
gotoAndStop (1);
jenis.gotoAndStop(random(15));
}
if (keluar == 0) {
tr++;
if (tr > 30) {
tr = 0;
_x = random(600);
}
}
if ((keluar == 1) and (_root.aktif == 1)) {
if (tunggutaxi == 1) {
kec = 0;
wtx++;
if (wtx > 50) {
wtx = 0;
kec = 5;
tunggutaxi = 0;
}
}
if (arah == 1) {
_rotation = 90;
speedx = kec;
speedy = 0;
}
if (arah == 2) {
_rotation = 180;
speedx = 0;
speedy = kec;
}
if (arah == 3) {
_rotation = -90;
speedx = -kec;
speedy = 0;
}
if (arah == 4) {
_rotation = 0;
speedx = 0;
speedy = -kec;
}
if (belok == 12) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation >= 180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 14) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation <= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 21) {
arah = 0;
_rotation = (_rotation - 10);
speedx = kecblk;
speedy = kecblk;
if (_rotation <= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 23) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation >= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
if (belok == 32) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = kecblk;
if (_rotation <= -180) {
_rotation = 180;
belok = 0;
arah = 2;
}
}
if (belok == 34) {
arah = 0;
_rotation = (_rotation + 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation >= 0) {
_rotation = 0;
belok = 0;
arah = 4;
}
}
if (belok == 41) {
arah = 0;
_rotation = (_rotation + 10);
speedx = kecblk;
speedy = -kecblk;
if (_rotation >= 90) {
_rotation = 90;
belok = 0;
arah = 1;
}
}
if (belok == 43) {
arah = 0;
_rotation = (_rotation - 10);
speedx = -kecblk;
speedy = -kecblk;
if (_rotation <= -90) {
_rotation = -90;
belok = 0;
arah = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_root.muatan.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.muatan.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.muatan.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
keluar = 2;
arahputaran = _root.muatan._rotation / 25;
}
if ((((_root.mobil.body.hitTest(jenis.getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(jenis.getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, jenis.getBounds(_root).yMin, true)) and ((keluar == 1) or (keluar == 3))) {
_root.flasher.play();
if ((_root.cartype != 0) or (_root.punyamobil != 0)) {
keluar = 2;
if ((_root.char.speed <= 1) and (_root.char.speed > -1)) {
_root.char.speed = 5;
}
_root.carenergi = _root.carenergi - Math.abs(_root.char.speed + kec);
energi = energi - 8;
_root.cekmuatan();
_root.char.speed = (-_root.char.speed) / 2;
w = 0;
if ((_root.char.clip._rotation >= 0) and (_root.char.clip._rotation <= 90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > 90) and (_root.char.clip._rotation < 180)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = _root.char.speed / 5;
}
if ((_root.char.clip._rotation > -180) and (_root.char.clip._rotation < -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = (-_root.char.speed) / 5;
speedy = (-_root.char.speed) / 5;
}
if ((_root.char.clip._rotation < 0) and (_root.char.clip._rotation >= -90)) {
arahputaran = _root.char.clip._rotation / 25;
speedx = _root.char.speed / 5;
speedy = (-_root.char.speed) / 5;
}
} else {
_root.char.speed = (-_root.char.speed) / 2;
}
}
if (((((((((sensor.hitTest(_root.mobil1) and ((_root.mobil1.keluar == 3) or (_root.mobil1.keluar == 1))) or (sensor.hitTest(_root.mobil2) and ((_root.mobil2.keluar == 3) or (_root.mobil2.keluar == 1)))) or (sensor.hitTest(_root.mobil3) and ((_root.mobil3.keluar == 3) or (_root.mobil3.keluar == 1)))) or (sensor.hitTest(_root.mobil4) and ((_root.mobil4.keluar == 3) or (_root.mobil4.keluar == 1)))) or (sensor.hitTest(_root.mobil5) and ((_root.mobil5.keluar == 3) or (_root.mobil5.keluar == 1)))) or (sensor.hitTest(_root.mobil6) and ((_root.mobil6.keluar == 3) or (_root.mobil6.keluar == 1)))) or (sensor.hitTest(_root.mobil7) and ((_root.mobil7.keluar == 3) or (_root.mobil7.keluar == 1)))) or sensor.hitTest(_root.mobil)) and ((keluar == 1) or (keluar >= 3))) {
tunggutaxi = 1;
}
if (((((((((sensor2.hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar >= 1)) or (sensor2.hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar >= 1))) or (sensor2.hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar >= 1))) or (sensor2.hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar >= 1))) or (sensor2.hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar >= 1))) or (sensor2.hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar >= 1))) or (sensor2.hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar >= 1))) and (tabrakandenganteman == 0)) and _root.mobildalamarea(this)) {
speedx = -speedx;
speedy = -speedy;
keluar = 2;
tabrakandenganteman = 1;
arahputaran = random(10);
}
if (keluar == 2) {
w++;
if (w >= 20) {
w = 0;
keluar = 3;
}
_rotation = (_rotation - arahputaran);
_x = (_x - speedx);
_y = (_y - speedy);
}
if (keluar == 3) {
speedx = 0;
speedy = 0;
}
}
Instance of Symbol 1009 MovieClip "orang2" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(21);
keluar = 0;
jenis = 2;
stat = 0;
kecepatan = 1;
_alpha = 0;
wt = 0;
kect = 0;
barutabrakan = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
onClipEvent (enterFrame) {
if (barutabrakan == 1) {
wt++;
if (wt > 5) {
wt = 0;
barutabrakan = 0;
}
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
gotoAndStop (2);
keluar = 0;
kecepatan = 1;
stat = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
if (keluar == 1) {
_alpha = 100;
if (_root.aktif == 1) {
if (stat == 0) {
speedx = 0;
speedy = 0;
if (random(10) == 2) {
stat = 1;
}
gotoAndStop (2);
} else if (stat == 1) {
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (((random(500) == 23) and (_root.cartype == 1)) and (_root.misi == 0)) {
stat = 4;
}
} else if (stat == 2) {
speedx = (3 * kecepatan) * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = (3 * kecepatan) * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 3) {
gotoAndStop (3);
}
if (random(100) == 25) {
stat = 1;
}
} else if (stat == 3) {
speedx = 0;
speedy = 0;
if (_currentframe <= 10) {
gotoAndPlay (11);
}
} else if (stat == 4) {
if (misi == 0) {
badan.stop();
} else {
badan.play();
}
speedx = 0;
speedy = 0;
gotoAndStop (4);
if (((random(300) == 34) or (_root.misi == 1)) and (misi != 1)) {
stat = 1;
}
_root.jalanketaxi(this);
} else if (stat == 5) {
dx = -(_root.mobil._x - _x);
dy = -(_root.mobil._y - _y);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / Math.PI);
} else {
_rotation = (((radians * 180) / Math.PI) + 180);
}
_rotation = (_rotation - 90);
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (_root.misi == 1) {
stat = 1;
} else {
if (sensor.hitTest(_root.mobil)) {
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.bayaran = Math.floor(_root.jarak * _root.biayaperkm);
if (random(5) == 3) {
_root.teks = ("go to the " + _root.jalan[_root.tujuan][2]) + " hurry";
} else if (random(5) == 4) {
_root.teks = _root.jalan[_root.tujuan][2] + " please";
} else {
_root.teks = ("lets go to the " + _root.jalan[_root.tujuan][2]) + " ";
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.attachMovie("kemana", "kemana", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t300";
_root.jenistile = "t300";
_root.misi = 1;
keluar = 0;
_visible = 0;
}
jkt++;
if (jkt > 200) {
stat = 1;
jkt = 0;
}
}
} else {
keluar = 0;
}
if ((((((_root.mobil.body.hitTest(getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMin, true)) and (stat == 1)) and (misi == 0)) and (_root.cartype != 0)) {
if (_root.char.speed < 6) {
stat = 2;
_rotation = _root.char.clip._rotation;
} else {
stat = 3;
ditabrak = 1;
_root.totalpendudukditabrak++;
}
}
if ((sensor.hitTest(_root.mobil1) and (stat != 3)) and (_root.mobil1.keluar > 0)) {
kect = Math.abs(_root.mobil1.speedx) + Math.abs(_root.mobil1.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil2) and (stat != 3)) and (_root.mobil2.keluar > 0)) {
kect = Math.abs(_root.mobil2.speedx) + Math.abs(_root.mobil2.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil3) and (stat != 3)) and (_root.mobil3.keluar > 0)) {
kect = Math.abs(_root.mobil3.speedx) + Math.abs(_root.mobil3.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil4) and (stat != 3)) and (_root.mobil4.keluar > 0)) {
kect = Math.abs(_root.mobil4.speedx) + Math.abs(_root.mobil4.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil5) and (stat != 3)) and (_root.mobil5.keluar > 0)) {
kect = Math.abs(_root.mobil5.speedx) + Math.abs(_root.mobil5.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil6) and (stat != 3)) and (_root.mobil6.keluar > 0)) {
kect = Math.abs(_root.mobil6.speedx) + Math.abs(_root.mobil6.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil7) and (stat != 3)) and (_root.mobil7.keluar > 0)) {
kect = Math.abs(_root.mobil7.speedx) + Math.abs(_root.mobil7.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil8) and (stat != 3)) and (_root.mobil8.keluar > 0)) {
kect = Math.abs(_root.mobil8.speedx) + Math.abs(_root.mobil8.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
} else {
_x = random(600);
_y = random(400);
_alpha = 0;
}
}
Instance of Symbol 1009 MovieClip "orang3" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(22);
keluar = 0;
jenis = 2;
stat = 0;
kecepatan = 1;
_alpha = 0;
wt = 0;
kect = 0;
barutabrakan = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
onClipEvent (enterFrame) {
if (barutabrakan == 1) {
wt++;
if (wt > 5) {
wt = 0;
barutabrakan = 0;
}
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
gotoAndStop (2);
keluar = 0;
kecepatan = 1;
stat = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
if (keluar == 1) {
_alpha = 100;
if (_root.aktif == 1) {
if (stat == 0) {
speedx = 0;
speedy = 0;
if (random(10) == 2) {
stat = 1;
}
gotoAndStop (2);
} else if (stat == 1) {
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (((random(500) == 23) and (_root.cartype == 1)) and (_root.misi == 0)) {
stat = 4;
}
} else if (stat == 2) {
speedx = (3 * kecepatan) * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = (3 * kecepatan) * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 3) {
gotoAndStop (3);
}
if (random(100) == 25) {
stat = 1;
}
} else if (stat == 3) {
speedx = 0;
speedy = 0;
if (_currentframe <= 10) {
gotoAndPlay (11);
}
} else if (stat == 4) {
if (misi == 0) {
badan.stop();
} else {
badan.play();
}
speedx = 0;
speedy = 0;
gotoAndStop (4);
if (((random(300) == 34) or (_root.misi == 1)) and (misi != 1)) {
stat = 1;
}
_root.jalanketaxi(this);
} else if (stat == 5) {
dx = -(_root.mobil._x - _x);
dy = -(_root.mobil._y - _y);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / Math.PI);
} else {
_rotation = (((radians * 180) / Math.PI) + 180);
}
_rotation = (_rotation - 90);
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (_root.misi == 1) {
stat = 1;
} else {
if (sensor.hitTest(_root.mobil)) {
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.bayaran = Math.floor(_root.jarak * _root.biayaperkm);
if (random(5) == 3) {
_root.teks = ("go to the " + _root.jalan[_root.tujuan][2]) + " hurry";
} else if (random(5) == 4) {
_root.teks = _root.jalan[_root.tujuan][2] + " please";
} else {
_root.teks = ("lets go to the " + _root.jalan[_root.tujuan][2]) + " ";
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.attachMovie("kemana", "kemana", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t300";
_root.jenistile = "t300";
_root.misi = 1;
keluar = 0;
_visible = 0;
}
jkt++;
if (jkt > 200) {
stat = 1;
jkt = 0;
}
}
} else {
keluar = 0;
}
if ((((((_root.mobil.body.hitTest(getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMin, true)) and (stat == 1)) and (misi == 0)) and (_root.cartype != 0)) {
if (_root.char.speed < 6) {
stat = 2;
_rotation = _root.char.clip._rotation;
} else {
stat = 3;
ditabrak = 1;
_root.totalpendudukditabrak++;
}
}
if ((sensor.hitTest(_root.mobil1) and (stat != 3)) and (_root.mobil1.keluar > 0)) {
kect = Math.abs(_root.mobil1.speedx) + Math.abs(_root.mobil1.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil2) and (stat != 3)) and (_root.mobil2.keluar > 0)) {
kect = Math.abs(_root.mobil2.speedx) + Math.abs(_root.mobil2.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil3) and (stat != 3)) and (_root.mobil3.keluar > 0)) {
kect = Math.abs(_root.mobil3.speedx) + Math.abs(_root.mobil3.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil4) and (stat != 3)) and (_root.mobil4.keluar > 0)) {
kect = Math.abs(_root.mobil4.speedx) + Math.abs(_root.mobil4.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil5) and (stat != 3)) and (_root.mobil5.keluar > 0)) {
kect = Math.abs(_root.mobil5.speedx) + Math.abs(_root.mobil5.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil6) and (stat != 3)) and (_root.mobil6.keluar > 0)) {
kect = Math.abs(_root.mobil6.speedx) + Math.abs(_root.mobil6.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil7) and (stat != 3)) and (_root.mobil7.keluar > 0)) {
kect = Math.abs(_root.mobil7.speedx) + Math.abs(_root.mobil7.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil8) and (stat != 3)) and (_root.mobil8.keluar > 0)) {
kect = Math.abs(_root.mobil8.speedx) + Math.abs(_root.mobil8.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
} else {
_x = random(600);
_y = random(400);
_alpha = 0;
}
}
Instance of Symbol 1009 MovieClip "orang4" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(23);
keluar = 0;
jenis = 2;
stat = 0;
kecepatan = 1;
_alpha = 0;
wt = 0;
kect = 0;
barutabrakan = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
onClipEvent (enterFrame) {
if (barutabrakan == 1) {
wt++;
if (wt > 5) {
wt = 0;
barutabrakan = 0;
}
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
gotoAndStop (2);
keluar = 0;
kecepatan = 1;
stat = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
if (keluar == 1) {
_alpha = 100;
if (_root.aktif == 1) {
if (stat == 0) {
speedx = 0;
speedy = 0;
if (random(10) == 2) {
stat = 1;
}
gotoAndStop (2);
} else if (stat == 1) {
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (((random(500) == 23) and (_root.cartype == 1)) and (_root.misi == 0)) {
stat = 4;
}
} else if (stat == 2) {
speedx = (3 * kecepatan) * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = (3 * kecepatan) * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 3) {
gotoAndStop (3);
}
if (random(100) == 25) {
stat = 1;
}
} else if (stat == 3) {
speedx = 0;
speedy = 0;
if (_currentframe <= 10) {
gotoAndPlay (11);
}
} else if (stat == 4) {
if (misi == 0) {
badan.stop();
} else {
badan.play();
}
speedx = 0;
speedy = 0;
gotoAndStop (4);
if (((random(300) == 34) or (_root.misi == 1)) and (misi != 1)) {
stat = 1;
}
_root.jalanketaxi(this);
} else if (stat == 5) {
dx = -(_root.mobil._x - _x);
dy = -(_root.mobil._y - _y);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / Math.PI);
} else {
_rotation = (((radians * 180) / Math.PI) + 180);
}
_rotation = (_rotation - 90);
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (_root.misi == 1) {
stat = 1;
} else {
if (sensor.hitTest(_root.mobil)) {
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.bayaran = Math.floor(_root.jarak * _root.biayaperkm);
if (random(5) == 3) {
_root.teks = ("go to the " + _root.jalan[_root.tujuan][2]) + " hurry";
} else if (random(5) == 4) {
_root.teks = _root.jalan[_root.tujuan][2] + " please";
} else {
_root.teks = ("lets go to the " + _root.jalan[_root.tujuan][2]) + " ";
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.attachMovie("kemana", "kemana", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t300";
_root.jenistile = "t300";
_root.misi = 1;
keluar = 0;
_visible = 0;
}
jkt++;
if (jkt > 200) {
stat = 1;
jkt = 0;
}
}
} else {
keluar = 0;
}
if ((((((_root.mobil.body.hitTest(getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMin, true)) and (stat == 1)) and (misi == 0)) and (_root.cartype != 0)) {
if (_root.char.speed < 6) {
stat = 2;
_rotation = _root.char.clip._rotation;
} else {
stat = 3;
ditabrak = 1;
_root.totalpendudukditabrak++;
}
}
if ((sensor.hitTest(_root.mobil1) and (stat != 3)) and (_root.mobil1.keluar > 0)) {
kect = Math.abs(_root.mobil1.speedx) + Math.abs(_root.mobil1.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil2) and (stat != 3)) and (_root.mobil2.keluar > 0)) {
kect = Math.abs(_root.mobil2.speedx) + Math.abs(_root.mobil2.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil3) and (stat != 3)) and (_root.mobil3.keluar > 0)) {
kect = Math.abs(_root.mobil3.speedx) + Math.abs(_root.mobil3.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil4) and (stat != 3)) and (_root.mobil4.keluar > 0)) {
kect = Math.abs(_root.mobil4.speedx) + Math.abs(_root.mobil4.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil5) and (stat != 3)) and (_root.mobil5.keluar > 0)) {
kect = Math.abs(_root.mobil5.speedx) + Math.abs(_root.mobil5.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil6) and (stat != 3)) and (_root.mobil6.keluar > 0)) {
kect = Math.abs(_root.mobil6.speedx) + Math.abs(_root.mobil6.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil7) and (stat != 3)) and (_root.mobil7.keluar > 0)) {
kect = Math.abs(_root.mobil7.speedx) + Math.abs(_root.mobil7.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil8) and (stat != 3)) and (_root.mobil8.keluar > 0)) {
kect = Math.abs(_root.mobil8.speedx) + Math.abs(_root.mobil8.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
} else {
_x = random(600);
_y = random(400);
_alpha = 0;
}
}
Instance of Symbol 1009 MovieClip "orang5" in Frame 40
onClipEvent (load) {
_xscale = _root.skalatile;
_yscale = _root.skalatile;
this.swapDepths(24);
keluar = 0;
jenis = 2;
stat = 0;
kecepatan = 1;
_alpha = 0;
wt = 0;
kect = 0;
barutabrakan = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
onClipEvent (enterFrame) {
if (barutabrakan == 1) {
wt++;
if (wt > 5) {
wt = 0;
barutabrakan = 0;
}
}
if ((((_x > 700) or (_x < -100)) or (_y > 550)) or (_y < -100)) {
gotoAndStop (2);
keluar = 0;
kecepatan = 1;
stat = 0;
ditabrak = 0;
misi = 0;
jkt = 0;
}
if (keluar == 1) {
_alpha = 100;
if (_root.aktif == 1) {
if (stat == 0) {
speedx = 0;
speedy = 0;
if (random(10) == 2) {
stat = 1;
}
gotoAndStop (2);
} else if (stat == 1) {
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (((random(500) == 23) and (_root.cartype == 1)) and (_root.misi == 0)) {
stat = 4;
}
} else if (stat == 2) {
speedx = (3 * kecepatan) * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = (3 * kecepatan) * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 3) {
gotoAndStop (3);
}
if (random(100) == 25) {
stat = 1;
}
} else if (stat == 3) {
speedx = 0;
speedy = 0;
if (_currentframe <= 10) {
gotoAndPlay (11);
}
} else if (stat == 4) {
if (misi == 0) {
badan.stop();
} else {
badan.play();
}
speedx = 0;
speedy = 0;
gotoAndStop (4);
if (((random(300) == 34) or (_root.misi == 1)) and (misi != 1)) {
stat = 1;
}
_root.jalanketaxi(this);
} else if (stat == 5) {
dx = -(_root.mobil._x - _x);
dy = -(_root.mobil._y - _y);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / Math.PI);
} else {
_rotation = (((radians * 180) / Math.PI) + 180);
}
_rotation = (_rotation - 90);
speedx = kecepatan * Math.cos(((_rotation - 90) * Math.PI) / 180);
speedy = kecepatan * Math.sin(((_rotation - 90) * Math.PI) / 180);
if (_currentframe != 2) {
gotoAndStop (2);
}
if (_root.misi == 1) {
stat = 1;
} else {
if (sensor.hitTest(_root.mobil)) {
_root.hitungjarak();
if (_root.jarak < 10) {
_root.hitungjarak();
}
if (_root.jarak < 10) {
_root.hitungjarak();
}
_root.bayaran = Math.floor(_root.jarak * _root.biayaperkm);
if (random(5) == 3) {
_root.teks = ("go to the " + _root.jalan[_root.tujuan][2]) + " hurry";
} else if (random(5) == 4) {
_root.teks = _root.jalan[_root.tujuan][2] + " please";
} else {
_root.teks = ("lets go to the " + _root.jalan[_root.tujuan][2]) + " ";
}
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 0;
_root.attachMovie("kemana", "kemana", 1000, {_x:300, _y:210});
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t300";
_root.jenistile = "t300";
_root.misi = 1;
keluar = 0;
_visible = 0;
}
jkt++;
if (jkt > 200) {
stat = 1;
jkt = 0;
}
}
} else {
keluar = 0;
}
if ((((((_root.mobil.body.hitTest(getBounds(_root).xMax, _y, true) or _root.mobil.body.hitTest(getBounds(_root).xMin, _y, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMax, true)) or _root.mobil.body.hitTest(_x, getBounds(_root).yMin, true)) and (stat == 1)) and (misi == 0)) and (_root.cartype != 0)) {
if (_root.char.speed < 6) {
stat = 2;
_rotation = _root.char.clip._rotation;
} else {
stat = 3;
ditabrak = 1;
_root.totalpendudukditabrak++;
}
}
if ((sensor.hitTest(_root.mobil1) and (stat != 3)) and (_root.mobil1.keluar > 0)) {
kect = Math.abs(_root.mobil1.speedx) + Math.abs(_root.mobil1.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil2) and (stat != 3)) and (_root.mobil2.keluar > 0)) {
kect = Math.abs(_root.mobil2.speedx) + Math.abs(_root.mobil2.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil3) and (stat != 3)) and (_root.mobil3.keluar > 0)) {
kect = Math.abs(_root.mobil3.speedx) + Math.abs(_root.mobil3.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil4) and (stat != 3)) and (_root.mobil4.keluar > 0)) {
kect = Math.abs(_root.mobil4.speedx) + Math.abs(_root.mobil4.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil5) and (stat != 3)) and (_root.mobil5.keluar > 0)) {
kect = Math.abs(_root.mobil5.speedx) + Math.abs(_root.mobil5.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil6) and (stat != 3)) and (_root.mobil6.keluar > 0)) {
kect = Math.abs(_root.mobil6.speedx) + Math.abs(_root.mobil6.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil7) and (stat != 3)) and (_root.mobil7.keluar > 0)) {
kect = Math.abs(_root.mobil7.speedx) + Math.abs(_root.mobil7.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
if ((sensor.hitTest(_root.mobil8) and (stat != 3)) and (_root.mobil8.keluar > 0)) {
kect = Math.abs(_root.mobil8.speedx) + Math.abs(_root.mobil8.speedy);
if (kect < 4) {
stat = 2;
_rotation = (_rotation + 180);
} else {
stat = 3;
}
}
_x = (_x + speedx);
_y = (_y + speedy);
}
} else {
_x = random(600);
_y = random(400);
_alpha = 0;
}
}
Instance of Symbol 612 MovieClip "sekolah" in Frame 40
onClipEvent (load) {
jumlahmurid = 0;
jenismisi = "";
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and (_root.misi == 0)) and (_root.cartype == 5)) {
if ((_root.jam == 7) and (jenismisi == "")) {
jenismisi = "antar";
_root.attachMovie("antarmurid", "job", 2001, {_x:300, _y:210});
}
if ((_root.jam == 15) and (jenismisi == "")) {
jenismisi = "jemput";
_root.attachMovie("jemputmurid", "job", 2001, {_x:300, _y:210});
}
}
if ((jenismisi == "antar") and (_root.jam > 12)) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
}
if ((jenismisi == "jemput") and (_root.jam > 18)) {
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
}
}
Instance of Symbol 2478 MovieClip "muatan" in Frame 40
onClipEvent (load) {
this.swapDepths(201);
}
onClipEvent (enterFrame) {
if ((((_root.cartype == 10) or (_root.cartype == 11)) or (_root.cartype == 12)) and (_root.jenismuatan != 0)) {
_visible = true;
gotoAndStop(_root.jenismuatan + 1);
_x = _root.mobil._x;
_y = _root.mobil._y;
} else {
_visible = false;
_x = -100;
_y = -100;
}
}
Frame 44
function gerakanpeta() {
var _local1 = _root.char;
var _local2 = false;
if (Key.isDown(39)) {
_local1.speedx = 10;
} else if (Key.isDown(37)) {
_local1.speedx = -10;
} else if (Key.isDown(38)) {
_local1.speedy = -10;
} else if (Key.isDown(40)) {
_local1.speedy = 10;
} else {
_local1.speedx = 0;
_local1.speedy = 0;
}
_local2 = _root.moveChar(_local1, _local1.speedx, _local1.speedy);
}
removeMovieClip("tiles");
removeMovieClip("awan");
removeMovieClip("job");
removeMovieClip("mobil");
removeMovieClip("mobil1");
removeMovieClip("mobil2");
removeMovieClip("mobil3");
removeMovieClip("mobil4");
removeMovieClip("mobil5");
removeMovieClip("mobil6");
removeMovieClip("mobil7");
removeMovieClip("mobil8");
removeMovieClip("orang1");
removeMovieClip("orang2");
removeMovieClip("orang3");
removeMovieClip("orang4");
removeMovieClip("orang5");
removeMovieClip("orang6");
skalatile = 50;
stop();
aktif = 1;
teks = "";
tujuan = 0;
bayaran = 0;
detik = 59;
xspeed = 0;
yspeed = 0;
speeds = 0;
biayaperkm = 10;
hargabensin = 2;
kepalapenumpang = 0;
badanpenumpang = 0;
tanganpenumpang = 0;
ypenumpang = 0;
xpenumpang = 0;
tpenumpang = 0;
aktif = 1;
xspeed = 0;
yspeed = 0;
speeds = 0;
kecepatan = (keccar[cartype] + jenismesin) + (((jenisroda + jenissuspensi) + jenisbody) / 3);
if (punyamobil != 0) {
kecepatan = (kecmobil[punyamobil] + jenismesin) + (((jenisroda + jenissuspensi) + jenisbody) / 3);
}
gas = 0.25;
barutabrakan = 0;
keyboard = 0;
steering = 0;
jarak = 0;
maxsteering = 5;
kecmobilumum = 7;
alphabuilding = true;
pendudukditabrak = 0;
nitro = 0;
keterangan = "";
dapatbonus = 0;
dragrace = 0;
dragdriver = 0;
jumlahdrug = 0;
geserx = false;
gesery = false;
movx = false;
movy = false;
tampakx = Math.round(600 / skalatile) + 1;
tampaky = Math.round(420 / skalatile) + 1;
game = {tileW:skalatile, tileH:skalatile, currentMap:1, visx:tampakx, visy:tampaky, centerx:300, centery:210};
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = true;
game.Tile1.prototype.frame = 2;
game.Tile2 = function () {
};
game.Tile2.prototype = new game.Doors(2, 1, 4);
game.Tile3 = function () {
};
game.Tile3.prototype = new game.Doors(1, 12, 10);
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = false;
game.Tile4.prototype.frame = 20;
char = {xtile:poscarx, ytile:poscary, speed:0};
buildMap(_root.myMap1);
stop();
removeMovieClip("frame");
Instance of Symbol 99 MovieClip [empty] "controller" in Frame 44
onClipEvent (enterFrame) {
_root.gerakanpeta();
}
Instance of Symbol 2481 MovieClip "plus" in Frame 44
onClipEvent (load) {
this.swapDepths(1000);
}
Frame 45
function updateScoreboard(sNum) {
var _local1 = this;
var _local2 = _root;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
var _local1 = this;
var _local2 = _root;
if (success) {
_local2["papannilai" + sNum].mcLoading._visible = false;
myPlayer = xmlPlayer.firstChild.childNodes;
if (myPlayer > 50) {
myPlayer = 50;
}
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = _local2["papannilai" + sNum].sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
_local2["papannilai" + sNum].sboard.mcScoreHolder.item = myPlayer.length;
_local2["papannilai" + sNum].sboard.mcScoreHolder.speedy = 0;
_local2["papannilai" + sNum].sboard.mcScoreHolder.desty = 0;
_local2["papannilai" + sNum].sboard.mcScoreHolder.onEnterFrame = function () {
var _local1 = this;
if ((_local1.desty < 0) && (_local1._parent.dir == "up")) {
trace("up");
_local1.desty = _local1.desty + 10;
if (_local1.desty > 0) {
_local1.desty = 0;
}
}
trace((_local1._parent.mcBlock._height + " - ") + (_local1.mcScore._height * _local1.item));
if ((_local1.desty > (_local1._parent.mcBlock._height - (_local1.mcScore._height * _local1.item))) && (_local1._parent.dir == "down")) {
trace("down");
_local1.desty = _local1.desty - 10;
if (_local1.desty < (_local1._parent.mcBlock._height - (_local1.mcScore._height * _local1.item))) {
_local1.desty = _local1._parent.mcBlock._height - (_local1.mcScore._height * _local1.item);
}
}
_local1.speedy = (_local1.desty - _local1._y) + (_local1.speedy * 0.4);
_local1._y = _local1._y + _local1.speedy;
};
}
if (sNum == 1) {
updateScoreboard(2);
}
};
if (sNum == 1) {
xmlPlayer.load((((("http://" + _local2.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _local2.gameID) + "&rand=") + random(999999));
} else if (sNum == 2) {
xmlPlayer.load(((((("http://" + _local2.Dsource) + ".freeonlinegames.com/scoreboard/getTopPlayer.php?id=") + _local2.gameID) + "&rand=") + random(999999)) + "&filt=1");
}
}
stop();
nomenu = 0;
stop();
stop();
var gameID = 92;
Dsource = "www";
papannilai1.sboard.dir = "stop";
papannilai2.sboard.dir = "stop";
papannilai1.sboard.mcScoreHolder.mcScore._visible = false;
papannilai2.sboard.mcScoreHolder.mcScore._visible = false;
updateScoreboard(1);
Symbol 2 MovieClip Frame 1
_root.earl223 = function (val) {
var _local1 = val;
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
_local1 = String(_local1);
val1 = 0;
while (val1 < _local1.length) {
if (_local1.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(_local1.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(_local1.substr(val1, 1))];
} else if (Number(_local1.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(_local1.substr(val1, 2))];
val1++;
}
val1++;
}
trace(_local2);
return(_local2);
};
Symbol 10 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 42
Symbol 29 MovieClip Frame 89
stop();
_parent.play();
Symbol 70 MovieClip Frame 1
stop();
l = 0;
Instance of Symbol 13 MovieClip "mcNotice" in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 70 MovieClip Frame 28
l++;
if (l < 4) {
gotoAndPlay ("loop");
} else if (_root.locked) {
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
stop();
} else if (_root.debug) {
_root.okToPlay = true;
_root.gotoAndPlay("awal");
stop();
} else {
mcNotice._visible = true;
l = -99999;
gotoAndPlay ("loop");
}
} else {
_root.gotoAndPlay("awal");
}
Instance of Symbol 70 MovieClip "logo" in Symbol 71 MovieClip Frame 1
on (release) {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
}
Symbol 78 Button
on (release, keyPress "<Space>") {
gotoAndStop ("cover");
}
Instance of Symbol 85 MovieClip in Symbol 89 MovieClip Frame 1
on (release) {
getURL ("http://wandah.com", "_blank");
}
Symbol 92 MovieClip [char] Frame 1
gotoAndStop(_root.cartype + 1);
this.onEnterFrame = function () {
_root.mobil._rotation = this._rotation;
_root.mobil.body.gotoAndStop(this.body._currentframe);
};
Symbol 98 MovieClip [dapatpasien] Frame 75
_root.misi = 1;
_root.aktif = 1;
_root.settujuan = false;
if (_root.musikaktif == 1) {
_root.rs.sirine.start(0, 999);
}
removeMovieClip(this);
Symbol 108 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 123 Button
on (release) {
if (_root.aktif == 1) {
_root.aktif = 0;
removeMovieClip(1000);
gotoAndPlay (2);
if (_root.waktuaktif == 1) {
_root.waktuaktif = 0;
_root.wak = 1;
}
}
}
Symbol 133 Button
on (release) {
gotoAndPlay ("keluar");
}
Symbol 139 Button
on (release) {
menyimpan = 1;
gotoAndStop ("simpan");
}
Symbol 143 Button
on (release) {
_root.gotoAndStop("hapus");
}
Symbol 147 Button
on (release) {
stopAllSounds();
_root.musikaktif = 1;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
_root.bgsound.start(0.02, 99);
_root.suarakota.start(0, 99);
gotoAndStop (2);
}
Symbol 150 Button
on (release) {
_root.musikaktif = 0;
stopAllSounds();
gotoAndStop (1);
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 154 Button
on (release) {
gotoAndStop ("cheat");
}
Symbol 158 Button
on (release) {
_root.aksesmenu = 1;
_root.gotoAndStop("hapus");
}
Symbol 161 Button
on (release) {
gotoAndStop (13);
}
Symbol 162 Button
on (release) {
gotoAndPlay ("keluar");
}
Symbol 163 Button
on (release) {
gotoAndStop (11);
}
Symbol 164 Button
on (release) {
gotoAndStop (12);
}
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 197 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.jumlahnos);
}
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
_xscale = _root.energi;
}
onClipEvent (enterFrame) {
_xscale = _root.energi;
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Instance of Symbol 221 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.musikaktif + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.musikaktif + 1);
}
Instance of Symbol 214 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
_xscale = _root.volumeradio;
}
onClipEvent (enterFrame) {
_xscale = _root.volumeradio;
}
Symbol 236 MovieClip Frame 1
stop();
Instance of Symbol 205 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
_rotation = (100 - _root.bensin);
}
onClipEvent (enterFrame) {
_rotation = (100 - _root.bensin);
}
Instance of Symbol 209 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.bensin < 25) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 215 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.energi = (_root.carenergi / _root.carmaxenergi) * 100;
}
Instance of Symbol 224 MovieClip "radio" in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
_visible = _root.musikaktif;
}
onClipEvent (enterFrame) {
if ((_root.musikaktif == 1) and (_root.radioaktif == 1)) {
_visible = 1;
this.gotoAndStop(_root.pilihanmusik);
}
}
Instance of Symbol 226 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
wtwt = 0;
}
onClipEvent (enterFrame) {
if (_root.musikaktif == 1) {
if (Key.isDown(190) and (_root.volumeradio <= 90)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio + 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
if (Key.isDown(188) and (_root.volumeradio >= 10)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio - 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
}
if (wtwt == 1) {
wta++;
if (wta > 100) {
wta = 0;
wtwt = 0;
_visible = 0;
}
}
}
Instance of Symbol 233 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.char.speed < 0) {
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 235 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
rot = 0;
rot2 = rot;
}
onClipEvent (enterFrame) {
rot2 = rot + (_root.char.speed * 10);
_rotation = rot2;
if (rot2 < 0) {
rot2 = 0;
}
_parent.kecepatan = Math.floor(rot2);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Instance of Symbol 197 MovieClip in Symbol 288 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.jenismesin);
}
Instance of Symbol 197 MovieClip in Symbol 288 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.jenisroda);
}
Instance of Symbol 197 MovieClip in Symbol 288 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.jenisbody);
}
Instance of Symbol 197 MovieClip in Symbol 288 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.jenissuspensi);
}
Instance of Symbol 197 MovieClip in Symbol 288 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop(_root.jenissuspensi);
}
Instance of Symbol 287 MovieClip in Symbol 288 MovieClip Frame 18
onClipEvent (load) {
gotoAndStop(_root.punyamobil);
}
Symbol 307 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
skill = _root.pengalaman[_root.cartype];
Symbol 317 Button
on (release) {
gotoAndStop (2);
}
Symbol 349 Button
on (release) {
gotoAndStop (1);
}
Symbol 353 MovieClip Frame 1
stop();
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[2];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[3];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[4];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[5];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[6];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[7];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[8];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalaman[1];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[1];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[2];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[3];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[4];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[5];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[6];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[7];
}
Instance of Symbol 339 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
skala._xscale = _root.pengalamanburuk[8];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[10];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[11];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[12];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[13];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[14];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[15];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[16];
}
Instance of Symbol 335 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
skala._xscale = _root.pengalaman[9];
}
Symbol 362 Button
on (release) {
_parent.play();
}
Symbol 363 MovieClip Frame 1
stop();
Symbol 366 Button
on (release) {
if (cheat == "Wandah") {
suaracheat.play();
_root.uang = _root.uang + 1000;
}
if (cheat == "CD2007") {
suaracheat.play();
_root.uang = _root.uang + 2007;
}
if (cheat == "MAPON") {
suaracheat.play();
_root.item[1] = 1;
}
if (cheat == "IAMRICH") {
suaracheat.play();
_root.uang = _root.uang + 10000;
}
if (cheat == "HYPERSPEED") {
suaracheat.play();
_root.kecepatan = 20;
}
if (cheat == "GETHUMMER") {
if (_root.cartype == 0) {
suaracheat.play();
_root.punyamobil = 4;
_root.kecepatan = 20;
}
}
if (cheat == "MAXREPAIR") {
suaracheat.play();
_root.carenergi = 100;
_root.energi = 100;
}
if (cheat == "GOODBOY") {
suaracheat.play();
i = 1;
while (i < 20) {
_root.pengalamanburuk[i] = 0;
i++;
}
}
if (cheat == "THEEXPERT") {
suaracheat.play();
i = 1;
while (i < 20) {
_root.pengalaman[i] = _root.pengalaman[i] + 10;
i++;
}
}
if (cheat == "DEATHS") {
_root.energi = 0;
_root.carenergi = 0;
gotoAndStop (24);
}
if (cheat == "MYGIRLCAR") {
if (_root.cartype == 0) {
suaracheat.play();
_root.punyamobil = 5;
_root.kecepatan = 21;
}
}
if (((cheat == "Credit") or (cheat == "CREDIT")) or (cheat == "credit")) {
_root.aksesmenu = 2;
_root.gotoAndStop("hapus");
}
cheat = "";
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
menyimpan = 0;
Symbol 370 MovieClip Frame 11
stop();
if (menyimpan == 1) {
savebut._alpha = 20;
savebut.enabled = false;
}
Instance of Symbol 151 MovieClip in Symbol 370 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(_root.musikaktif);
}
Symbol 370 MovieClip Frame 12
tahun = Math.floor(_root.ehari / 360);
bulan = Math.floor((_root.ehari - (360 * tahun)) / 30);
hari = Math.floor((_root.ehari - (360 * tahun)) - (30 * bulan));
if (hari <= 0) {
hari = 1;
}
Instance of Symbol 182 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.item[1] == 1) {
_visible = true;
} else {
_visible = false;
}
}
on (release) {
_root.poscarx = _root.px;
_root.poscary = _root.py;
_root.gotoAndStop("peta");
}
Instance of Symbol 185 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.item[2] == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.item[3] == 1) {
_visible = true;
} else {
_visible = false;
}
}
on (release) {
if (_root.carenergi < 100) {
_parent.gotoAndStop(14);
}
}
Instance of Symbol 198 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.item[4] == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 288 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_root.cartype + 1);
}
Instance of Symbol 291 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.misi != 0) {
_visible = false;
} else {
_visible = true;
}
if (_root.cartype == 7) {
_visible = true;
}
}
on (release) {
if (_root.misi != 1) {
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
}
}
Instance of Symbol 307 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_root.cartype + 1);
}
Instance of Symbol 311 MovieClip in Symbol 370 MovieClip Frame 12
onClipEvent (load) {
if (_root.uang < 0) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 363 MovieClip in Symbol 370 MovieClip Frame 14
onClipEvent (load) {
maks = _root.carenergi + 10;
if (maks > 100) {
maks = 100;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_root.carenergi = _root.carenergi + 0.1;
if (_root.carenergi >= maks) {
_root.jam++;
_root.energi = maks;
_root.carenergi = maks;
gotoAndStop (2);
}
}
}
Symbol 370 MovieClip Frame 15
gotoAndStop (12);
Symbol 370 MovieClip Frame 16
stop();
sg = SharedObject.getLocal("citydriver");
sg.data.namapemain = _root.namapemain;
sg.data.jenismesin = _root.jenismesin;
sg.data.jenisroda = _root.jenisroda;
sg.data.jenisbody = _root.jenisbody;
sg.data.jenissuspensi = _root.jenissuspensi;
sg.data.bensin = _root.bensin;
sg.data.energi = _root.energi;
sg.data.uang = _root.uang;
sg.data.carenergi = _root.carenergi;
sg.data.ehari = _root.ehari;
sg.data.cartype = _root.cartype;
sg.data.settujuan = _root.settujuan;
sg.data.jam = _root.jam;
sg.data.menit = _root.menit;
sg.data.misi = _root.misi;
sg.data.poscarx = _root.px;
sg.data.poscary = _root.py;
sg.data.tujuanx = _root.tujuanx;
sg.data.tujuany = _root.tujuany;
sg.data.homex = _root.homex;
sg.data.homey = _root.homey;
sg.data.homename = _root.homename;
sg.data.tekstujuan = _root.tekstujuan;
sg.data.item = _root.item;
sg.data.pengalaman = _root.pengalaman;
sg.data.pengalamanburuk = _root.pengalamanburuk;
sg.data.order = _root.order;
sg.data.murid = _root.murid;
sg.data.jumlahmurid = _root.jumlahmurid;
sg.data.noorde = _root.noorder;
sg.data.targetorder = _root.targetorder;
sg.data.pasien = _root.pasien;
sg.data.rutebis = _root.rutebis;
sg.data.penumpangbis = _root.penumpangbis;
sg.data.totalpenumpangbis = _root.totalpenumpangbis;
sg.data.minyak = _root.minyak;
sg.data.orderminyak = _root.orderminyak;
sg.data.kondisimuatan = _root.kondisimuatan;
sg.data.orderkargo = _root.orderkargo;
sg.data.jeniskargo = _root.jeniskargo;
sg.data.jenismuatan = _root.jenismuatan;
sg.data.orderkonstruksi = _root.orderkonstruksi;
sg.data.campuransemen = _root.campuransemen;
sg.data.punyamobil = _root.punyamobil;
sg.data.hargabeli = _root.hargabeli;
sg.data.jumlahnos = _root.jumlahnos;
sg.data.bayaran = _root.bayaran;
sg.data.tujuan = _root.tujuan;
sg.data.tilelama = _root.tilelama;
sg.data.jenistile = _root.jenistile;
sg.data.totalpendudukditabrak = _root.totalpendudukditabrak;
sg.data.rotasilama = _root.mobil._rotation;
sg.flush();
Symbol 370 MovieClip Frame 17
stop();
Selection.setFocus("curang");
Symbol 370 MovieClip Frame 24
_root.aktif = 1;
if (_root.wak == 1) {
_root.waktuaktif = 1;
_root.wak = 0;
}
gotoAndStop (1);
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 382 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
_yscale = _root.pasien;
}
onClipEvent (enterFrame) {
_yscale = _root.pasien;
}
Symbol 411 MovieClip Frame 1
stop();
Instance of Symbol 236 MovieClip in Symbol 411 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.punyamobil);
}
Instance of Symbol 205 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (load) {
_rotation = (100 - _root.bensin);
}
onClipEvent (enterFrame) {
_rotation = (100 - _root.bensin);
}
Instance of Symbol 209 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.bensin < 25) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 215 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.energi = (_root.carenergi / _root.carmaxenergi) * 100;
}
Instance of Symbol 224 MovieClip "radio" in Symbol 411 MovieClip Frame 2
onClipEvent (load) {
_visible = _root.musikaktif;
}
onClipEvent (enterFrame) {
if ((_root.musikaktif == 1) and (_root.radioaktif == 1)) {
_visible = 1;
this.gotoAndStop(Math.round(_root.pilihanmusik / 5));
}
}
Instance of Symbol 226 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (load) {
_visible = 0;
wtwt = 0;
}
onClipEvent (enterFrame) {
if (_root.musikaktif == 1) {
if (Key.isDown(190) and (_root.volumeradio <= 90)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio + 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
if (Key.isDown(188) and (_root.volumeradio >= 10)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio - 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
}
if (wtwt == 1) {
wta++;
if (wta > 100) {
wta = 0;
wtwt = 0;
_visible = 0;
}
}
}
Instance of Symbol 235 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (load) {
rot = 0;
}
onClipEvent (enterFrame) {
_rotation = (rot + (_root.char.speed * 10));
if (_rotation < 0) {
_rotation = 0;
}
_parent.kecepatan = Math.floor(_rotation);
}
Instance of Symbol 233 MovieClip in Symbol 411 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.char.speed < 0) {
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 411 MovieClip Frame 3
jumlah = 10 - _root.noorder;
Instance of Symbol 384 MovieClip "nyawa" in Symbol 411 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.misi == 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 411 MovieClip Frame 5
jumlah = 10 - _root.noorder;
Instance of Symbol 224 MovieClip "radio" in Symbol 411 MovieClip Frame 5
onClipEvent (load) {
_visible = _root.musikaktif;
}
onClipEvent (enterFrame) {
if ((_root.musikaktif == 1) and (_root.radioaktif == 1)) {
_visible = 1;
this.gotoAndStop(Math.round(_root.pilihanmusik / 5));
}
}
Instance of Symbol 226 MovieClip in Symbol 411 MovieClip Frame 5
onClipEvent (load) {
_visible = 0;
wtwt = 0;
}
onClipEvent (enterFrame) {
if (_root.musikaktif == 1) {
if (Key.isDown(190) and (_root.volumeradio <= 90)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio + 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
if (Key.isDown(188) and (_root.volumeradio >= 10)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio - 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
}
if (wtwt == 1) {
wta++;
if (wta > 100) {
wta = 0;
wtwt = 0;
_visible = 0;
}
}
}
Instance of Symbol 224 MovieClip "radio" in Symbol 411 MovieClip Frame 9
onClipEvent (load) {
_visible = _root.musikaktif;
}
onClipEvent (enterFrame) {
if ((_root.musikaktif == 1) and (_root.radioaktif == 1)) {
_visible = 1;
this.gotoAndStop(Math.round(_root.pilihanmusik / 5));
}
}
Instance of Symbol 226 MovieClip in Symbol 411 MovieClip Frame 9
onClipEvent (load) {
_visible = 0;
wtwt = 0;
}
onClipEvent (enterFrame) {
if (_root.musikaktif == 1) {
if (Key.isDown(190) and (_root.volumeradio <= 90)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio + 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
if (Key.isDown(188) and (_root.volumeradio >= 10)) {
wtwt = 1;
_visible = 1;
_root.volumeradio = _root.volumeradio - 10;
_root.bgsound.setVolume(_root.volumesuara * (_root.volumeradio / 100));
}
}
if (wtwt == 1) {
wta++;
if (wta > 100) {
wta = 0;
wtwt = 0;
_visible = 0;
}
}
}
Symbol 411 MovieClip Frame 10
jumlah = 0;
Instance of Symbol 401 MovieClip in Symbol 411 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_root.char.speed > 0) and (_root.campuransemen <= 100)) {
_root.campuransemen = _root.campuransemen + 0.05;
_parent.jumlah = Math.floor(_root.campuransemen);
}
if (_root.misi == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 412 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.jam >= 18) or (_root.jam < 6)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 415 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_root.menit * 6);
}
onClipEvent (enterFrame) {
_rotation = (_root.menit * 6);
}
Instance of Symbol 415 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_root.jam * 30);
}
onClipEvent (enterFrame) {
_rotation = (_root.jam * 30);
}
Symbol 417 MovieClip [frame] Frame 1
kecepatan = 0;
Instance of Symbol 102 MovieClip in Symbol 417 MovieClip [frame] Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if ((_root.misi != 0) or _root.settujuan) {
_visible = 1;
} else {
_visible = 0;
}
if (_visible == 1) {
if (_root.settujuan) {
dx = -(_root.tujuanx - _root.char.xtile);
dy = -(_root.tujuany - _root.char.ytile);
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / 3.141593);
} else {
_rotation = (((radians * 180) / 3.141593) + 180);
}
} else {
if (_root.cartype == 7) {
dx = -(_root.terminal[_root.tujuan][0] - _root.char.xtile);
dy = -(_root.terminal[_root.tujuan][1] - _root.char.ytile);
} else {
dx = -(_root.jalan[_root.tujuan][0] - _root.char.xtile);
dy = -(_root.jalan[_root.tujuan][1] - _root.char.ytile);
}
radians = Math.atan(dy / dx);
if (dx >= 0) {
_rotation = ((radians * 180) / 3.141593);
} else {
_rotation = (((radians * 180) / 3.141593) + 180);
}
}
}
}
Instance of Symbol 108 MovieClip "bayarane" in Symbol 417 MovieClip [frame] Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if ((_root.misi != 0) and (_root.cartype == 1)) {
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 370 MovieClip in Symbol 417 MovieClip [frame] Frame 1
onClipEvent (enterFrame) {
if ((Key.isDown(80) and (_root.aktif == 1)) and (_currentframe == 1)) {
_root.aktif = 0;
play();
}
}
Instance of Symbol 411 MovieClip in Symbol 417 MovieClip [frame] Frame 1
onClipEvent (load) {
gotoAndStop(_root.cartype + 1);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.cartype + 1);
}
Symbol 422 MovieClip [keluarambulance] Frame 1
_root.aktif = 0;
if (_root.pasien <= 0) {
gotoAndPlay (50);
}
Symbol 422 MovieClip [keluarambulance] Frame 45
_root.aktif = 1;
_root.speed = 0;
_root.rs.masuk = 0;
_root.rs.dapatpasien = false;
_root.keterangan = "";
_root.teks = "";
_root.tekstujuan = "";
_root.misi = 0;
_root.settujuan = false;
_root.bensin = _root.bensin + 50;
if (_root.bensin > 100) {
_root.bensin = 100;
}
_root.tambahpengalaman(3, 0.2);
_root.rs.sirine.stop();
removeMovieClip(this);
Symbol 422 MovieClip [keluarambulance] Frame 93
_root.aktif = 1;
_root.speed = 0;
_root.rs.masuk = 0;
_root.keterangan = "";
_root.teks = "";
_root.tekstujuan = "";
_root.misi = 0;
_root.rs.sirine.stop();
_root.attachMovie("pecat", "pecat", 2100, {_x:300, _y:210});
removeMovieClip(this);
Symbol 427 MovieClip [kemana] Frame 1
say = "[passenger] " + _root.teks;
Symbol 427 MovieClip [kemana] Frame 50
say = "[taxi driver] ok";
Symbol 427 MovieClip [kemana] Frame 75
_root.misi = 1;
_root.aktif = 1;
_root.settujuan = false;
removeMovieClip(this);
Symbol 430 MovieClip [masukambulance] Frame 45
_root.aktif = 1;
_root.speed = 0;
_root.rs.masuk = 1;
_root.keterangan = "";
_root.teks = "";
_root.tekstujuan = _root.homename;
_root.pasien = _root.pasien + random(10);
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.settujuan = true;
removeMovieClip(this);
Symbol 434 MovieClip [masuksekolah] Frame 1
if (_root.jam <= 10) {
say = "[students] thankyou! ";
} else {
say = "[students] oh noo.... we are late! ";
}
Symbol 434 MovieClip [masuksekolah] Frame 45
_root.aktif = 1;
_root.speed = 0;
_root.keterangan = "";
_root.teks = "";
_root.tekstujuan = "";
_root.misi = 0;
_root.targetorder = 1;
_root.sekolah.jenismisi = "";
_root.tambahpengalaman(4, 1);
removeMovieClip(this);
Symbol 443 Button
on (release, keyPress "<Space>") {
nextFrame();
}
Symbol 446 MovieClip [ceritars] Frame 1
_root.aktif = 0;
Symbol 446 MovieClip [ceritars] Frame 2
_root.mobil._visible = false;
Symbol 446 MovieClip [ceritars] Frame 20
stop();
Symbol 446 MovieClip [ceritars] Frame 21
_root.aktif = 1;
_root.mobil._visible = true;
removeMovieClip(this);
Symbol 456 MovieClip [terimakasih] Frame 45
_root.aktif = 1;
_root.speed = 0;
_root.keterangan = "";
_root.teks = "";
_root.tekstujuan = "";
_root.uang = _root.uang + _root.bayaran;
_root.misi = 0;
_root.tambahpengalaman(1, 0.1);
trace((_root.uang + " ") + _root.bayaran);
_root.jenistile = "";
_root.tilelama = "";
removeMovieClip(this);
Symbol 459 Button
on (release, keyPress "<Space>") {
play();
}
Symbol 462 MovieClip [ambilkargo] Frame 1
stop();
_root.aktif = 0;
_root.jeniskargo = random(3);
_root.bensin = 100;
if (_root.jeniskargo == 0) {
_root.tujuan = random(_root.alamatmilk);
_root.settujuan = true;
_root.tujuanx = _root.milk[_root.tujuan][0];
_root.tujuany = _root.milk[_root.tujuan][1];
_root.tekstujuan = _root.milk[_root.tujuan][2];
}
if (_root.jeniskargo == 1) {
_root.tujuan = random(_root.alamatgrain);
_root.settujuan = true;
_root.tujuanx = _root.grain[_root.tujuan][0];
_root.tujuany = _root.grain[_root.tujuan][1];
_root.tekstujuan = _root.grain[_root.tujuan][2];
}
if (_root.jeniskargo == 2) {
_root.tujuan = random(_root.alamatkargo);
_root.settujuan = true;
_root.tujuanx = _root.bigkargo[_root.tujuan][0];
_root.tujuany = _root.bigkargo[_root.tujuan][1];
_root.tekstujuan = _root.bigkargo[_root.tujuan][2];
}
if (_root.jeniskargo == 3) {
_root.tujuan = random(_root.alamatkayu);
_root.settujuan = true;
_root.tujuanx = _root.kayu[_root.tujuan][0];
_root.tujuany = _root.kayu[_root.tujuan][1];
_root.tekstujuan = _root.kayu[_root.tujuan][2];
}
_root.jenismuatan = 0;
Symbol 462 MovieClip [ambilkargo] Frame 2
_root.misi = 1;
_root.aktif = 1;
removeMovieClip(this);
Symbol 466 MovieClip [ambilkonstruksi] Frame 1
stop();
_root.aktif = 0;
_root.bensin = 100;
_root.tujuan = random(_root.alamatkonstruksi);
_root.tekstujuan = _root.konstruksi[_root.tujuan][2];
_root.campuransemen = 0;
Symbol 466 MovieClip [ambilkonstruksi] Frame 2
_root.settujuan = true;
_root.tujuanx = _root.konstruksi[_root.tujuan][0];
_root.tujuany = _root.konstruksi[_root.tujuan][1];
_root.misi = 1;
_root.aktif = 1;
removeMovieClip(this);
Symbol 480 MovieClip [ambilmail] Frame 1
stop();
_root.aktif = 0;
_root.noorder = 1;
_root.buatorder();
_root.bensin = _root.bensin + 50;
if (_root.bensin > 100) {
_root.bensin = 100;
}
alamat1 = " 1. " + _root.jalan[_root.order[1]][2];
alamat2 = " 2. " + _root.jalan[_root.order[2]][2];
alamat3 = " 3. " + _root.jalan[_root.order[3]][2];
alamat4 = " 4. " + _root.jalan[_root.order[4]][2];
alamat5 = " 5. " + _root.jalan[_root.order[5]][2];
alamat6 = " 6. " + _root.jalan[_root.order[6]][2];
alamat7 = " 7. " + _root.jalan[_root.order[7]][2];
alamat8 = " 8. " + _root.jalan[_root.order[8]][2];
alamat9 = " 9. " + _root.jalan[_root.order[9]][2];
alamat10 = "10. " + _root.jalan[_root.order[10]][2];
Symbol 480 MovieClip [ambilmail] Frame 2
_root.tujuan = _root.order[1];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t303";
_root.jenistile = "t303";
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 483 Button
on (release, keyPress "<Space>") {
if (_root.minyak >= 100) {
play();
}
}
Symbol 494 MovieClip [ambiloil] Frame 1
stop();
_root.aktif = 0;
_root.bensin = 100;
_root.tujuan = random(7);
_root.tekstujuan = _root.pomp[_root.tujuan][2];
_root.jenismuatan = 1;
Instance of Symbol 488 MovieClip in Symbol 494 MovieClip [ambiloil] Frame 1
onClipEvent (load) {
isi._yscale = _root.minyak;
}
onClipEvent (enterFrame) {
isi._yscale = _root.minyak;
if (_root.minyak < 100) {
_root.minyak++;
}
}
Symbol 494 MovieClip [ambiloil] Frame 2
_root.settujuan = true;
_root.tujuanx = _root.pomp[_root.tujuan][0];
_root.tujuany = _root.pomp[_root.tujuan][1];
_root.misi = 1;
_root.aktif = 1;
removeMovieClip(this);
Symbol 502 MovieClip [ambilorder] Frame 1
stop();
_root.aktif = 0;
_root.noorder = 1;
_root.buatorder();
_root.bensin = _root.bensin + 50;
if (_root.bensin > 100) {
_root.bensin = 100;
}
alamat1 = "1. " + _root.jalan[_root.order[1]][2];
alamat2 = "2. " + _root.jalan[_root.order[2]][2];
alamat3 = "3. " + _root.jalan[_root.order[3]][2];
alamat4 = "4. " + _root.jalan[_root.order[4]][2];
alamat5 = "5. " + _root.jalan[_root.order[5]][2];
Symbol 502 MovieClip [ambilorder] Frame 2
_root.tujuan = _root.order[1];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t301";
_root.jenistile = "t301";
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 506 MovieClip [antarmurid] Frame 1
stop();
_root.aktif = 0;
_root.targetorder = 0;
_root.jumlahmurid = 1;
Symbol 506 MovieClip [antarmurid] Frame 2
_root.tujuan = _root.murid[1];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
if (_root.tilelama == "t005") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t304";
_root.jenistile = "t304";
} else if (_root.tilelama == "t006") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t305";
_root.jenistile = "t305";
} else if (_root.tilelama == "t007") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t306";
_root.jenistile = "t306";
} else if (_root.tilelama == "t008") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t307";
_root.jenistile = "t307";
} else {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t308";
_root.jenistile = "t308";
}
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 512 Button
on (release, keyPress "<Space>") {
gotoAndStop (2);
}
Symbol 517 Button
on (release) {
if (_root.carenergi == 100) {
gotoAndStop (7);
} else {
gotoAndStop (3);
}
}
Symbol 520 Button
on (release) {
gotoAndPlay (15);
}
Symbol 522 Button
on (release) {
if (_root.uang >= biayarusak) {
_root.uang = _root.uang - biayarusak;
gotoAndStop (5);
} else {
gotoAndStop (4);
}
}
Symbol 527 Button
on (release) {
gotoAndPlay (15);
}
Symbol 530 MovieClip [bengkel1] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 530 MovieClip [bengkel1] Frame 3
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Instance of Symbol 288 MovieClip in Symbol 530 MovieClip [bengkel1] Frame 3
onClipEvent (load) {
gotoAndStop(_root.cartype + 1);
}
Instance of Symbol 363 MovieClip in Symbol 530 MovieClip [bengkel1] Frame 5
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_root.carenergi = _root.carenergi + 0.5;
trace(_root.energi);
if (_root.carenergi >= 100) {
_root.energi = 100;
_root.carenergi = 100;
gotoAndStop (2);
}
}
}
Symbol 530 MovieClip [bengkel1] Frame 6
stop();
Symbol 530 MovieClip [bengkel1] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 536 Button
on (release, keyPress "<Space>") {
play();
}
Symbol 548 Button
on (release, keyPress "<Space>") {
play();
}
Symbol 549 MovieClip [bensinhabis] Frame 1
stop();
_root.aktif = 0;
Symbol 549 MovieClip [bensinhabis] Frame 26
stop();
Symbol 549 MovieClip [bensinhabis] Frame 28
_root.bensin = 100;
_root.uang = _root.uang - 750;
_root.aktif = 1;
_root.jam++;
removeMovieClip(this);
Symbol 569 MovieClip [cerita] Frame 1
_root.aktif = 0;
Symbol 569 MovieClip [cerita] Frame 2
_root.mobil._visible = false;
Symbol 569 MovieClip [cerita] Frame 20
stop();
Symbol 569 MovieClip [cerita] Frame 27
_root.aktif = 1;
_root.mobil._visible = true;
removeMovieClip(this);
Instance of Symbol 571 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil.body) and (_root.char.speed > 1)) and (_root.mobil.body._currentframe != 15)) {
_root.mobil.body.gotoAndStop(10);
}
}
Symbol 592 MovieClip Frame 40
gotoAndPlay (1);
Symbol 901 MovieClip Frame 1
stop();
Symbol 947 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 1
stop();
Instance of Symbol 947 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 966 MovieClip in Symbol 967 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 947 MovieClip in Symbol 967 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 966 MovieClip in Symbol 967 MovieClip Frame 24
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 947 MovieClip in Symbol 968 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 966 MovieClip in Symbol 968 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 947 MovieClip in Symbol 968 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Instance of Symbol 966 MovieClip in Symbol 968 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop(_parent._parent.jenis);
}
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 3
gotoAndStop (1);
Symbol 973 MovieClip Frame 5
gotoAndStop (1);
Symbol 973 MovieClip Frame 7
gotoAndStop (1);
Symbol 973 MovieClip Frame 9
gotoAndStop (1);
Symbol 973 MovieClip Frame 11
gotoAndStop (1);
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1009 MovieClip Frame 1
stop();
Instance of Symbol 947 MovieClip in Symbol 1009 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.jenis);
}
Instance of Symbol 973 MovieClip in Symbol 1009 MovieClip Frame 3
onClipEvent (load) {
if (_root.aktif == 1) {
if (random(4) == 2) {
gotoAndPlay (2);
} else if (random(4) == 1) {
gotoAndPlay (4);
} else if (random(4) == 3) {
gotoAndPlay (10);
} else if (random(5) == 4) {
gotoAndPlay (8);
} else {
gotoAndPlay (12);
}
}
}
Instance of Symbol 947 MovieClip in Symbol 1009 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_parent.jenis);
}
Instance of Symbol 1005 MovieClip in Symbol 1009 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_parent.jenis);
}
Symbol 1009 MovieClip Frame 53
stop();
Symbol 1012 MovieClip [jalan] Frame 1
stop();
Instance of Symbol 573 MovieClip in Symbol 1012 MovieClip [jalan] Frame 1
onClipEvent (enterFrame) {
if (kiri.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = -90;
}
if (kiri.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = -90;
}
if (kiri.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (kiri.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (kiri.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = -90;
}
if (kanan.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (kanan.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (kanan.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 90;
}
if (kanan.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 90;
}
if (kanan.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
if (atas.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 0;
}
if (atas.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 0;
}
if (atas.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (atas.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (atas.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 0;
}
if (bawah.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (bawah.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (bawah.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 180;
}
if (bawah.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 180;
}
if (bawah.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Instance of Symbol 582 MovieClip in Symbol 1012 MovieClip [jalan] Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
_root.mobil1.arah = 1;
}
if (this.hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
_root.mobil2.arah = 1;
}
if (this.hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
_root.mobil3.arah = 1;
}
if (this.hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
_root.mobil4.arah = 1;
}
if (this.hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
_root.mobil5.arah = 1;
}
if (this.hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
_root.mobil6.arah = 1;
}
if (this.hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
_root.mobil7.arah = 1;
}
if (this.hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
_root.mobil8.arah = 1;
}
if (this.hitTest(_root.mobil1.sensor3) and (_root.mobil1.keluar == 0)) {
_root.mobil1.keluar = 1;
_root.mobil1.arah = 1;
}
if (this.hitTest(_root.mobil2.sensor3) and (_root.mobil2.keluar == 0)) {
_root.mobil2.keluar = 1;
_root.mobil2.arah = 1;
}
if (this.hitTest(_root.mobil3.sensor3) and (_root.mobil3.keluar == 0)) {
_root.mobil3.keluar = 1;
_root.mobil3.arah = 1;
}
if (this.hitTest(_root.mobil4.sensor3) and (_root.mobil4.keluar == 0)) {
_root.mobil4.keluar = 1;
_root.mobil4.arah = 1;
}
if (this.hitTest(_root.mobil5.sensor3) and (_root.mobil5.keluar == 0)) {
_root.mobil5.keluar = 1;
_root.mobil5.arah = 1;
}
if (this.hitTest(_root.mobil6.sensor3) and (_root.mobil6.keluar == 0)) {
_root.mobil6.keluar = 1;
_root.mobil6.arah = 1;
}
if (this.hitTest(_root.mobil7.sensor3) and (_root.mobil7.keluar == 0)) {
_root.mobil7.keluar = 1;
_root.mobil7.arah = 1;
}
if (this.hitTest(_root.mobil8.sensor3) and (_root.mobil8.keluar == 0)) {
_root.mobil8.keluar = 1;
_root.mobil8.arah = 1;
}
}
Instance of Symbol 582 MovieClip in Symbol 1012 MovieClip [jalan] Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
_root.mobil1.arah = 2;
}
if (this.hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
_root.mobil2.arah = 2;
}
if (this.hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
_root.mobil3.arah = 2;
}
if (this.hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
_root.mobil4.arah = 2;
}
if (this.hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
_root.mobil5.arah = 2;
}
if (this.hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
_root.mobil6.arah = 2;
}
if (this.hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
_root.mobil7.arah = 2;
}
if (this.hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
_root.mobil8.arah = 2;
}
if (this.hitTest(_root.mobil1.sensor3) and (_root.mobil1.keluar == 0)) {
_root.mobil1.keluar = 1;
_root.mobil1.arah = 2;
}
if (this.hitTest(_root.mobil2.sensor3) and (_root.mobil2.keluar == 0)) {
_root.mobil2.keluar = 1;
_root.mobil2.arah = 2;
}
if (this.hitTest(_root.mobil3.sensor3) and (_root.mobil3.keluar == 0)) {
_root.mobil3.keluar = 1;
_root.mobil3.arah = 2;
}
if (this.hitTest(_root.mobil4.sensor3) and (_root.mobil4.keluar == 0)) {
_root.mobil4.keluar = 1;
_root.mobil4.arah = 2;
}
if (this.hitTest(_root.mobil5.sensor3) and (_root.mobil5.keluar == 0)) {
_root.mobil5.keluar = 1;
_root.mobil5.arah = 2;
}
if (this.hitTest(_root.mobil6.sensor3) and (_root.mobil6.keluar == 0)) {
_root.mobil6.keluar = 1;
_root.mobil6.arah = 2;
}
if (this.hitTest(_root.mobil7.sensor3) and (_root.mobil7.keluar == 0)) {
_root.mobil7.keluar = 1;
_root.mobil7.arah = 2;
}
if (this.hitTest(_root.mobil8.sensor3) and (_root.mobil8.keluar == 0)) {
_root.mobil8.keluar = 1;
_root.mobil8.arah = 2;
}
}
Instance of Symbol 582 MovieClip in Symbol 1012 MovieClip [jalan] Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
_root.mobil1.arah = 3;
}
if (this.hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
_root.mobil2.arah = 3;
}
if (this.hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
_root.mobil3.arah = 3;
}
if (this.hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
_root.mobil4.arah = 3;
}
if (this.hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
_root.mobil5.arah = 3;
}
if (this.hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
_root.mobil6.arah = 3;
}
if (this.hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
_root.mobil7.arah = 3;
}
if (this.hitTest(_root.mobi8) and (_root.mobil8.belok == 0)) {
_root.mobil8.arah = 3;
}
if (this.hitTest(_root.mobil1.sensor3) and (_root.mobil1.keluar == 0)) {
_root.mobil1.keluar = 1;
_root.mobil1.arah = 3;
}
if (this.hitTest(_root.mobil2.sensor3) and (_root.mobil2.keluar == 0)) {
_root.mobil2.keluar = 1;
_root.mobil2.arah = 3;
}
if (this.hitTest(_root.mobil3.sensor3) and (_root.mobil3.keluar == 0)) {
_root.mobil3.keluar = 1;
_root.mobil3.arah = 3;
}
if (this.hitTest(_root.mobil4.sensor3) and (_root.mobil4.keluar == 0)) {
_root.mobil4.keluar = 1;
_root.mobil4.arah = 3;
}
if (this.hitTest(_root.mobil5.sensor3) and (_root.mobil5.keluar == 0)) {
_root.mobil5.keluar = 1;
_root.mobil5.arah = 3;
}
if (this.hitTest(_root.mobil6.sensor3) and (_root.mobil6.keluar == 0)) {
_root.mobil6.keluar = 1;
_root.mobil6.arah = 3;
}
if (this.hitTest(_root.mobil7.sensor3) and (_root.mobil7.keluar == 0)) {
_root.mobil7.keluar = 1;
_root.mobil7.arah = 3;
}
if (this.hitTest(_root.mobil8.sensor3) and (_root.mobil8.keluar == 0)) {
_root.mobil8.keluar = 1;
_root.mobil8.arah = 3;
}
}
Instance of Symbol 582 MovieClip in Symbol 1012 MovieClip [jalan] Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
_root.mobil1.arah = 4;
}
if (this.hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
_root.mobil2.arah = 4;
}
if (this.hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
_root.mobil3.arah = 4;
}
if (this.hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
_root.mobil4.arah = 4;
}
if (this.hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
_root.mobil5.arah = 4;
}
if (this.hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
_root.mobil6.arah = 4;
}
if (this.hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
_root.mobil7.arah = 4;
}
if (this.hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
_root.mobil8.arah = 4;
}
if (this.hitTest(_root.mobil1.sensor3) and (_root.mobil1.keluar == 0)) {
_root.mobil1.keluar = 1;
_root.mobil1.arah = 4;
}
if (this.hitTest(_root.mobil2.sensor3) and (_root.mobil2.keluar == 0)) {
_root.mobil2.keluar = 1;
_root.mobil2.arah = 4;
}
if (this.hitTest(_root.mobil3.sensor3) and (_root.mobil3.keluar == 0)) {
_root.mobil3.keluar = 1;
_root.mobil3.arah = 4;
}
if (this.hitTest(_root.mobil4.sensor3) and (_root.mobil4.keluar == 0)) {
_root.mobil4.keluar = 1;
_root.mobil4.arah = 4;
}
if (this.hitTest(_root.mobil5.sensor3) and (_root.mobil5.keluar == 0)) {
_root.mobil5.keluar = 1;
_root.mobil5.arah = 4;
}
if (this.hitTest(_root.mobil6.sensor3) and (_root.mobil6.keluar == 0)) {
_root.mobil6.keluar = 1;
_root.mobil6.arah = 4;
}
if (this.hitTest(_root.mobil7.sensor3) and (_root.mobil7.keluar == 0)) {
_root.mobil7.keluar = 1;
_root.mobil7.arah = 4;
}
if (this.hitTest(_root.mobil8.sensor3) and (_root.mobil8.keluar == 0)) {
_root.mobil8.keluar = 1;
_root.mobil8.arah = 4;
}
}
Instance of Symbol 586 MovieClip in Symbol 1012 MovieClip [jalan] Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 23;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 43;
}
}
if (hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 23;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 43;
}
}
if (hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 23;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 43;
}
}
if (hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 23;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 43;
}
}
if (hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 23;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 43;
}
}
if (hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 23;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 43;
}
}
if (hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 23;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 43;
}
}
if (hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 23;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 43;
}
}
}
Instance of Symbol 586 MovieClip in Symbol 1012 MovieClip [jalan] Frame 10
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 14;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 34;
}
}
if (hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 14;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 34;
}
}
if (hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 14;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 34;
}
}
if (hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 14;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 34;
}
}
if (hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 14;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 34;
}
}
if (hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 14;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 34;
}
}
if (hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 14;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 34;
}
}
if (hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 14;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 34;
}
}
}
Instance of Symbol 586 MovieClip in Symbol 1012 MovieClip [jalan] Frame 11
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 21;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 41;
}
}
if (hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 21;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 41;
}
}
if (hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 21;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 41;
}
}
if (hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 21;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 41;
}
}
if (hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 21;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 41;
}
}
if (hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 21;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 41;
}
}
if (hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 21;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 41;
}
}
if (hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 21;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 41;
}
}
}
Instance of Symbol 586 MovieClip in Symbol 1012 MovieClip [jalan] Frame 12
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 12;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 32;
}
}
if (hitTest(_root.mobil2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 12;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 32;
}
}
if (hitTest(_root.mobil3) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 12;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 32;
}
}
if (hitTest(_root.mobil4) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 12;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 32;
}
}
if (hitTest(_root.mobil5) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 12;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 32;
}
}
if (hitTest(_root.mobil6) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 12;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 32;
}
}
if (hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 12;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 32;
}
}
if (hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 12;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 32;
}
}
}
Instance of Symbol 588 MovieClip in Symbol 1012 MovieClip [jalan] Frame 13
onClipEvent (enterFrame) {
if (random(3) == 2) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 23;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 43;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 23;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 43;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 23;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 43;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 23;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 43;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 23;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 43;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 23;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 43;
}
}
if (hitTest(_root.mobil7) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 23;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 43;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 23;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 43;
}
}
} else {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 14;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 34;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 14;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 34;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 14;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 34;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 14;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 34;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 14;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 34;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 14;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 34;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 14;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 34;
}
}
if (hitTest(_root.mobil8) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 14;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 34;
}
}
}
}
Instance of Symbol 588 MovieClip in Symbol 1012 MovieClip [jalan] Frame 14
onClipEvent (enterFrame) {
if (random(3) == 2) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 23;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 43;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 23;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 43;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 23;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 43;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 23;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 43;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 23;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 43;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 23;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 43;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 23;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 43;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 23;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 43;
}
}
} else {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 12;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 32;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 12;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 32;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 12;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 32;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 12;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 32;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 12;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 32;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 12;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 32;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 12;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 32;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 12;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 32;
}
}
}
}
Instance of Symbol 588 MovieClip in Symbol 1012 MovieClip [jalan] Frame 15
onClipEvent (enterFrame) {
if (random(3) == 2) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 21;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 41;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 21;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 41;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 21;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 41;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 21;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 41;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 21;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 41;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 21;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 41;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 21;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 41;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 21;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 41;
}
}
} else {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 12;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 32;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 12;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 32;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 12;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 32;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 12;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 32;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 12;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 32;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 12;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 32;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 12;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 32;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 12;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 32;
}
}
}
}
Instance of Symbol 588 MovieClip in Symbol 1012 MovieClip [jalan] Frame 16
onClipEvent (enterFrame) {
if (random(3) == 2) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 1) {
_root.mobil1.belok = 14;
}
if (_root.mobil1.arah == 3) {
_root.mobil1.belok = 34;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 1) {
_root.mobil2.belok = 14;
}
if (_root.mobil2.arah == 3) {
_root.mobil2.belok = 34;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 1) {
_root.mobil3.belok = 14;
}
if (_root.mobil3.arah == 3) {
_root.mobil3.belok = 34;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 1) {
_root.mobil4.belok = 14;
}
if (_root.mobil4.arah == 3) {
_root.mobil4.belok = 34;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 1) {
_root.mobil5.belok = 14;
}
if (_root.mobil5.arah == 3) {
_root.mobil5.belok = 34;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 1) {
_root.mobil6.belok = 14;
}
if (_root.mobil6.arah == 3) {
_root.mobil6.belok = 34;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 1) {
_root.mobil7.belok = 14;
}
if (_root.mobil7.arah == 3) {
_root.mobil7.belok = 34;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 1) {
_root.mobil8.belok = 14;
}
if (_root.mobil8.arah == 3) {
_root.mobil8.belok = 34;
}
}
} else {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.belok == 0)) {
if (_root.mobil1.arah == 2) {
_root.mobil1.belok = 21;
}
if (_root.mobil1.arah == 4) {
_root.mobil1.belok = 41;
}
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.belok == 0)) {
if (_root.mobil2.arah == 2) {
_root.mobil2.belok = 21;
}
if (_root.mobil2.arah == 4) {
_root.mobil2.belok = 41;
}
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.belok == 0)) {
if (_root.mobil3.arah == 2) {
_root.mobil3.belok = 21;
}
if (_root.mobil3.arah == 4) {
_root.mobil3.belok = 41;
}
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.belok == 0)) {
if (_root.mobil4.arah == 2) {
_root.mobil4.belok = 21;
}
if (_root.mobil4.arah == 4) {
_root.mobil4.belok = 41;
}
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.belok == 0)) {
if (_root.mobil5.arah == 2) {
_root.mobil5.belok = 21;
}
if (_root.mobil5.arah == 4) {
_root.mobil5.belok = 41;
}
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.belok == 0)) {
if (_root.mobil6.arah == 2) {
_root.mobil6.belok = 21;
}
if (_root.mobil6.arah == 4) {
_root.mobil6.belok = 41;
}
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.belok == 0)) {
if (_root.mobil7.arah == 2) {
_root.mobil7.belok = 21;
}
if (_root.mobil7.arah == 4) {
_root.mobil7.belok = 41;
}
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.belok == 0)) {
if (_root.mobil8.arah == 2) {
_root.mobil8.belok = 21;
}
if (_root.mobil8.arah == 4) {
_root.mobil8.belok = 41;
}
}
}
}
Instance of Symbol 593 MovieClip in Symbol 1012 MovieClip [jalan] Frame 18
onClipEvent (load) {
suaraisi = new Sound();
suaraisi.attachSound("efek1");
}
onClipEvent (enterFrame) {
if (_root.cartype == 10) {
if (this.hitTest(_root.mobil.body) and (_root.misi == 1)) {
if ((_root.px == _root.tujuanx) and (_root.py == _root.tujuany)) {
_root.aktif = 0;
_root.attachMovie("unloadoil", "job", 1200, {_x:300, _y:210});
}
}
} else {
if (this.hitTest(_root.game.clip.char) and (_root.chartype != 0)) {
if (_root.uang < _root.hargabensin) {
_root.keterangan = "not enough cash!";
} else {
_root.keterangan = "press SPACE to refill your fuel";
}
} else {
_root.keterangan = "";
}
if ((hitTest(_root.mobil) and Key.isDown(32)) and (_root.cartype != 0)) {
if (_root.bensin < 100) {
if (_root.uang > _root.hargabensin) {
_root.char.speedx = 0;
_root.char.speedy = 0;
_root.uang = _root.uang - _root.hargabensin;
_root.bensin++;
suaraisi.start(0, 1);
if (_root.bensin > 100) {
_root.bensin = 100;
}
}
}
}
}
}
Instance of Symbol 595 MovieClip in Symbol 1012 MovieClip [jalan] Frame 19
onClipEvent (load) {
if (_root.cartype > 0) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.clip.char) and (_root.chartype != 0)) {
_root.keterangan = "press SPACE to enter Repair Shop";
} else {
_root.keterangan = "";
}
if (((hitTest(_root.mobil) and Key.isDown(32)) and (_root.cartype != 0)) and (_root.aktif == 1)) {
_root.aktif = 0;
_root.attachMovie("bengkel1", "job", 1200, {_x:300, _y:210});
}
}
Instance of Symbol 598 MovieClip in Symbol 1012 MovieClip [jalan] Frame 20
onClipEvent (load) {
if (_root.cartype > 0) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.clip.char) and (_root.chartype != 0)) {
_root.keterangan = "press SPACE to enter Sparepart Shop";
} else {
_root.keterangan = "";
}
if (((hitTest(_root.mobil) and Key.isDown(32)) and (_root.cartype != 0)) and (_root.aktif == 1)) {
_root.aktif = 0;
_root.attachMovie("sparepart", "job", 1200, {_x:300, _y:210});
}
}
Instance of Symbol 601 MovieClip in Symbol 1012 MovieClip [jalan] Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.game.clip.char)) {
_root.keterangan = "press SPACE to enter Car Showroom";
} else {
_root.keterangan = "";
}
if (((hitTest(_root.mobil) and Key.isDown(32)) and (_root.misi == 0)) and (_root.aktif == 1)) {
_root.aktif = 0;
_root.attachMovie("showroom", "job", 1200, {_x:300, _y:210});
}
}
Instance of Symbol 604 MovieClip in Symbol 1012 MovieClip [jalan] Frame 22
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 7)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.aktif == 1) and _visible) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
_root.aktif = 0;
_root.attachMovie("jobbis", "job", 1200, {_x:300, _y:210});
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 606 MovieClip in Symbol 1012 MovieClip [jalan] Frame 23
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 3)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.aktif == 1) and _visible) {
if (_root.misi == 0) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobrumahsakit", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobrumahsakit", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another hospital";
}
}
} else {
_root.keterangan = "";
}
} else if (this.hitTest(_root.mobil) and (_root.rs.masuk == 1)) {
_root.aktif = 0;
_root.rs.masuk = 0;
_root.attachMovie("keluarambulance", "job", 1200, {_x:300, _y:210});
}
}
}
Instance of Symbol 609 MovieClip in Symbol 1012 MovieClip [jalan] Frame 24
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 13)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
_root.aktif = 0;
_root.attachMovie("jobpemadam", "job", 1200, {_x:300, _y:210});
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 610 MovieClip in Symbol 1012 MovieClip [jalan] Frame 25
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 4)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobmail", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobmail", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another company";
}
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 613 MovieClip in Symbol 1012 MovieClip [jalan] Frame 26
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 5)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_root.aktif == 1) and _visible) {
if (_root.misi == 0) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobsekolah", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobsekolah", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another school";
}
}
} else {
_root.keterangan = "";
}
} else {
if ((this.hitTest(_root.mobil) and (_root.sekolah.jenismisi == "antar")) and (_root.jumlahmurid >= 25)) {
trace("masuk");
_root.aktif = 0;
_root.jumlahmurid = 0;
_root.attachMovie("masuksekolah", "job", 1200, {_x:300, _y:210});
}
if (this.hitTest(_root.mobil) and (_root.sekolah.jenismisi == "jemput")) {
trace("pulang");
_root.aktif = 0;
_root.jumlahmurid = 25;
_root.attachMovie("pulangsekolah", "job", 1200, {_x:300, _y:210});
}
}
}
}
Instance of Symbol 616 MovieClip in Symbol 1012 MovieClip [jalan] Frame 27
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 1)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
_root.aktif = 0;
_root.attachMovie("jobtaxi", "job", 1200, {_x:300, _y:210});
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 42
onClipEvent (enterFrame) {
if (hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = -90;
}
if (hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = -90;
}
if (hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = -90;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 42
onClipEvent (enterFrame) {
if (hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 0;
}
if (hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 0;
}
if (hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 0;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 43
onClipEvent (enterFrame) {
if (hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 180;
}
if (hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 180;
}
if (hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 44
onClipEvent (enterFrame) {
if (hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 90;
}
if (hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 90;
}
if (hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 45
onClipEvent (enterFrame) {
if (hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 0;
}
if (hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 0;
}
if (hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 0;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 46
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar == 1)) {
_root.mobil1.arah = 3;
_root.mobil1._y = _root.mobil1._y + 2;
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar == 1)) {
_root.mobil2.arah = 3;
_root.mobil2._y = _root.mobil2._y + 2;
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar == 1)) {
_root.mobil3.arah = 3;
_root.mobil3._y = _root.mobil3._y + 2;
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar == 1)) {
_root.mobil4.arah = 3;
_root.mobil4._y = _root.mobil4._y + 2;
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar == 1)) {
_root.mobil5.arah = 3;
_root.mobil5._y = _root.mobil5._y + 2;
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar == 1)) {
_root.mobil6.arah = 3;
_root.mobil6._y = _root.mobil6._y + 2;
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar == 1)) {
_root.mobil7.arah = 3;
_root.mobil7._y = _root.mobil7._y + 2;
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar == 1)) {
_root.mobil8.arah = 3;
_root.mobil8._y = _root.mobil8._y + 2;
}
if (hitTest(_root.orang1)) {
if ((_root.orang1.keluar == 0) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
_root.orang1.keluar = 1;
_root.orang1.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang1._rotation = 90;
} else {
_root.orang1._rotation = -90;
}
}
}
if (hitTest(_root.orang2) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang2.keluar == 0) {
_root.orang2.keluar = 1;
_root.orang2.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang2._rotation = 90;
} else {
_root.orang2._rotation = -90;
}
}
}
if (hitTest(_root.orang3) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang3.keluar == 0) {
_root.orang3.keluar = 1;
_root.orang3.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang3._rotation = 90;
} else {
_root.orang3._rotation = -90;
}
}
}
if (hitTest(_root.orang4) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang4.keluar == 0) {
_root.orang4.keluar = 1;
_root.orang4.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang4._rotation = 90;
} else {
_root.orang4._rotation = -90;
}
}
}
if (hitTest(_root.orang5) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang5.keluar == 0) {
_root.orang5.keluar = 1;
_root.orang5.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang5._rotation = 90;
} else {
_root.orang5._rotation = -90;
}
}
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 46
onClipEvent (enterFrame) {
if (hitTest(_root.orang1.sensor) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (hitTest(_root.orang2.sensor) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (hitTest(_root.orang3.sensor) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (hitTest(_root.orang4.sensor) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (hitTest(_root.orang5.sensor) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 47
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar == 1)) {
_root.mobil1.arah = 2;
_root.mobil1._x = _root.mobil1._x + 2;
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar == 1)) {
_root.mobil2.arah = 2;
_root.mobil2._x = _root.mobil2._x + 2;
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar == 1)) {
_root.mobil3.arah = 2;
_root.mobil3._x = _root.mobil3._x + 2;
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar == 1)) {
_root.mobil4.arah = 2;
_root.mobil4._x = _root.mobil4._x + 2;
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar == 1)) {
_root.mobil5.arah = 2;
_root.mobil5._x = _root.mobil5._x + 2;
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar == 1)) {
_root.mobil6.arah = 2;
_root.mobil6._x = _root.mobil6._x + 2;
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar == 1)) {
_root.mobil7.arah = 2;
_root.mobil7._x = _root.mobil7._x + 2;
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar == 1)) {
_root.mobil8.arah = 2;
_root.mobil8._x = _root.mobil8._x + 2;
}
if (hitTest(_root.orang1) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang1.keluar == 0) {
_root.orang1.keluar = 1;
_root.orang1.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang1._rotation = 180;
} else {
_root.orang1._rotation = 0;
}
}
}
if (hitTest(_root.orang2) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang2.keluar == 0) {
_root.orang2.keluar = 1;
_root.orang2.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang2._rotation = 180;
} else {
_root.orang2._rotation = 0;
}
}
}
if (hitTest(_root.orang3) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang3.keluar == 0) {
_root.orang3.keluar = 1;
_root.orang3.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang3._rotation = 180;
} else {
_root.orang3._rotation = 0;
}
}
}
if (hitTest(_root.orang4) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang4.keluar == 0) {
_root.orang4.keluar = 1;
_root.orang4.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang4._rotation = 180;
} else {
_root.orang4._rotation = 0;
}
}
}
if (hitTest(_root.orang5) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang5.keluar == 0) {
_root.orang5.keluar = 1;
_root.orang5.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang5._rotation = 180;
} else {
_root.orang5._rotation = 0;
}
}
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 47
onClipEvent (enterFrame) {
if (hitTest(_root.orang1.sensor) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (hitTest(_root.orang2.sensor) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (hitTest(_root.orang3.sensor) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (hitTest(_root.orang4.sensor) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (hitTest(_root.orang5.sensor) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar == 1)) {
_root.mobil1.arah = 1;
_root.mobil1._y = _root.mobil1._y - 2;
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar == 1)) {
_root.mobil2.arah = 1;
_root.mobil2._y = _root.mobil2._y - 2;
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar == 1)) {
_root.mobil3.arah = 1;
_root.mobil3._y = _root.mobil3._y - 2;
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar == 1)) {
_root.mobil4.arah = 1;
_root.mobil4._y = _root.mobil4._y - 2;
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar == 1)) {
_root.mobil5.arah = 1;
_root.mobil5._y = _root.mobil5._y - 2;
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar == 1)) {
_root.mobil6.arah = 1;
_root.mobil6._y = _root.mobil6._y - 2;
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar == 1)) {
_root.mobil7.arah = 1;
_root.mobil7._y = _root.mobil7._y - 2;
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar == 1)) {
_root.mobil8.arah = 1;
_root.mobil8._y = _root.mobil8._y - 2;
}
if (hitTest(_root.orang1) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang1.keluar == 0) {
_root.orang1.keluar = 1;
_root.orang1.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang1._rotation = 90;
} else {
_root.orang1._rotation = -90;
}
}
}
if (hitTest(_root.orang2) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang2.keluar == 0) {
_root.orang2.keluar = 1;
_root.orang2.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang2._rotation = 90;
} else {
_root.orang2._rotation = -90;
}
}
}
if (hitTest(_root.orang3) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang3.keluar == 0) {
_root.orang3.keluar = 1;
_root.orang3.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang3._rotation = 90;
} else {
_root.orang3._rotation = -90;
}
}
}
if (hitTest(_root.orang4) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang4.keluar == 0) {
_root.orang4.keluar = 1;
_root.orang4.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang4._rotation = 90;
} else {
_root.orang4._rotation = -90;
}
}
}
if (hitTest(_root.orang5) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang5.keluar == 0) {
_root.orang5.keluar = 1;
_root.orang5.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang5._rotation = 90;
} else {
_root.orang5._rotation = -90;
}
}
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 48
onClipEvent (enterFrame) {
if (hitTest(_root.orang1.sensor) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (hitTest(_root.orang2.sensor) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (hitTest(_root.orang3.sensor) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (hitTest(_root.orang4.sensor) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (hitTest(_root.orang5.sensor) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 49
onClipEvent (enterFrame) {
if (hitTest(_root.mobil1.sensor2) and (_root.mobil1.keluar == 1)) {
_root.mobil1.arah = 4;
_root.mobil1._x = _root.mobil1._x - 2;
}
if (hitTest(_root.mobil2.sensor2) and (_root.mobil2.keluar == 1)) {
_root.mobil2.arah = 4;
_root.mobil2._x = _root.mobil2._x - 2;
}
if (hitTest(_root.mobil3.sensor2) and (_root.mobil3.keluar == 1)) {
_root.mobil3.arah = 4;
_root.mobil3._x = _root.mobil3._x - 2;
}
if (hitTest(_root.mobil4.sensor2) and (_root.mobil4.keluar == 1)) {
_root.mobil4.arah = 4;
_root.mobil4._x = _root.mobil4._x - 2;
}
if (hitTest(_root.mobil5.sensor2) and (_root.mobil5.keluar == 1)) {
_root.mobil5.arah = 4;
_root.mobil5._x = _root.mobil5._x - 2;
}
if (hitTest(_root.mobil6.sensor2) and (_root.mobil6.keluar == 1)) {
_root.mobil6.arah = 4;
_root.mobil6._x = _root.mobil6._x - 2;
}
if (hitTest(_root.mobil7.sensor2) and (_root.mobil7.keluar == 1)) {
_root.mobil7.arah = 4;
_root.mobil7._x = _root.mobil7._x - 2;
}
if (hitTest(_root.mobil8.sensor2) and (_root.mobil8.keluar == 1)) {
_root.mobil8.arah = 4;
_root.mobil8._x = _root.mobil8._x - 2;
}
if (hitTest(_root.orang1) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang1.keluar == 0) {
_root.orang1.keluar = 1;
_root.orang1.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang1._rotation = 180;
} else {
_root.orang1._rotation = 0;
}
}
}
if (hitTest(_root.orang2) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang2.keluar == 0) {
_root.orang2.keluar = 1;
_root.orang2.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang2._rotation = 180;
} else {
_root.orang2._rotation = 0;
}
}
}
if (hitTest(_root.orang3) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang3.keluar == 0) {
_root.orang3.keluar = 1;
_root.orang3.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang3._rotation = 180;
} else {
_root.orang3._rotation = 0;
}
}
}
if (hitTest(_root.orang4) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang4.keluar == 0) {
_root.orang4.keluar = 1;
_root.orang4.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang4._rotation = 180;
} else {
_root.orang4._rotation = 0;
}
}
}
if (hitTest(_root.orang5) and (((_root.jam < 21) and (_root.jam > 5)) or (random(50) == 13))) {
if (_root.orang5.keluar == 0) {
_root.orang5.keluar = 1;
_root.orang5.jenis = random(13) + 1;
if (random(3) == 2) {
_root.orang5._rotation = 180;
} else {
_root.orang5._rotation = 0;
}
}
}
}
Instance of Symbol 572 MovieClip in Symbol 1012 MovieClip [jalan] Frame 49
onClipEvent (enterFrame) {
if (hitTest(_root.orang1.sensor) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (hitTest(_root.orang2.sensor) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (hitTest(_root.orang3.sensor) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (hitTest(_root.orang4.sensor) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (hitTest(_root.orang5.sensor) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 256
onClipEvent (load) {
if ((_root.cartype == 7) or (random(5) == 3)) {
_visible = true;
gotoAndStop(random(13) + 1);
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 256
onClipEvent (load) {
if ((_root.cartype == 7) or (random(5) == 3)) {
_visible = true;
gotoAndStop(random(13) + 1);
} else {
_visible = false;
}
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 283
onClipEvent (load) {
gotoAndStop(random(13) + 1);
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 283
onClipEvent (load) {
gotoAndStop(random(13) + 1);
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 283
onClipEvent (load) {
gotoAndStop(random(13) + 1);
}
Instance of Symbol 936 MovieClip in Symbol 1012 MovieClip [jalan] Frame 283
onClipEvent (load) {
if (_root.cartype == 7) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((this.sensor.hitTest(_root.mobil.body.sensor) and (_root.misi == 1)) and (_root.cartype == 7)) and _visible) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("naikbisumum", "naik", 1000, {_x:300, _y:210});
_root.aktif = 0;
_visible = false;
}
}
Instance of Symbol 938 MovieClip in Symbol 1012 MovieClip [jalan] Frame 284
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 2)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobfood", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobfood", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another food court company";
}
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 939 MovieClip in Symbol 1012 MovieClip [jalan] Frame 285
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 2)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobfood", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobfood", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another food court company";
}
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 936 MovieClip in Symbol 1012 MovieClip [jalan] Frame 286
onClipEvent (load) {
if ((_root.misi == 1) and (((_root.cartype == 11) or (_root.cartype == 12)) or (_root.cartype == 9))) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((((_root.misi == 1) and ((_root.cartype == 11) or (_root.cartype == 12))) and _visible) and sensor.hitTest(_root.mobil)) {
if (((_root.px == _root.tujuanx) and (_root.py == _root.tujuany)) and (_root.jenismuatan == 0)) {
_root.aktif = 0;
_root.attachMovie("loadkargo", "job", 1200, {_x:300, _y:210});
_visible = false;
}
if (((_root.px == _root.tujuanx) and (_root.py == _root.tujuany)) and (_root.jenismuatan != 0)) {
_root.aktif = 0;
_root.attachMovie("unloadkargo", "job", 1200, {_x:300, _y:210});
_visible = false;
}
}
if ((((_root.misi == 1) and (_root.cartype == 9)) and _visible) and sensor.hitTest(_root.mobil)) {
if (_root.campuransemen >= 100) {
_root.aktif = 0;
_root.attachMovie("unloadsemen", "job", 1200, {_x:300, _y:210});
_visible = false;
} else {
_root.keterangan = "Concrete not 100 % mixed";
}
}
}
Instance of Symbol 940 MovieClip in Symbol 1012 MovieClip [jalan] Frame 290
onClipEvent (load) {
if (((_root.cartype == 0) or (_root.cartype == 11)) or (_root.cartype == 12)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobtruk", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobtruk", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another company";
}
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 943 MovieClip in Symbol 1012 MovieClip [jalan] Frame 293
onClipEvent (load) {
if ((_root.punyamobil != 0) and (_root.punyamobil != 7)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "not enought experience to enter a racing game";
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 944 MovieClip in Symbol 1012 MovieClip [jalan] Frame 295
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 10)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("joboil", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("joboil", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another company";
}
}
} else {
_root.keterangan = "";
}
}
}
Instance of Symbol 1010 MovieClip in Symbol 1012 MovieClip [jalan] Frame 296
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 592 MovieClip in Symbol 1012 MovieClip [jalan] Frame 300
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 1)) {
_root.misi = 0;
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("terimakasih", "terimakasih", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
if (random(25) == 4) {
_root.keterangan = "[passenger] that is the place, hurry !!!";
}
}
Instance of Symbol 939 MovieClip in Symbol 1012 MovieClip [jalan] Frame 301
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 2)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("terimakasihfood", "terimakasih", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 606 MovieClip in Symbol 1012 MovieClip [jalan] Frame 302
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 3)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.aktif = 0;
_root.attachMovie("masukambulance", "ambulance", 1000, {_x:300, _y:210});
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 1005 MovieClip in Symbol 1012 MovieClip [jalan] Frame 302
onClipEvent (load) {
gotoAndStop(_parent.jenis);
}
Instance of Symbol 610 MovieClip in Symbol 1012 MovieClip [jalan] Frame 303
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 4)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("terimakasihmail", "terimakasih", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 304
onClipEvent (load) {
gotoAndStop(random(13) + 1);
}
Instance of Symbol 592 MovieClip in Symbol 1012 MovieClip [jalan] Frame 304
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 5)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("naikbis", "naik", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 901 MovieClip in Symbol 1012 MovieClip [jalan] Frame 307
onClipEvent (load) {
gotoAndStop(random(13) + 1);
}
Instance of Symbol 592 MovieClip in Symbol 1012 MovieClip [jalan] Frame 307
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 5)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("naikbis", "naik", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 592 MovieClip in Symbol 1012 MovieClip [jalan] Frame 308
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 5)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("naikbis", "naik", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 592 MovieClip in Symbol 1012 MovieClip [jalan] Frame 309
onClipEvent (enterFrame) {
if ((this.hitTest(_root.mobil) and (_root.misi == 1)) and (_root.cartype == 5)) {
_root.keterangan = "";
_root.tekstujuan = "";
_root.attachMovie("turunbis", "terimakasih", 1000, {_x:300, _y:210});
_root.aktif = 0;
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = _root.tilelama;
_parent.gotoAndStop(_root.tilelama);
}
}
Instance of Symbol 1011 MovieClip in Symbol 1012 MovieClip [jalan] Frame 310
onClipEvent (load) {
if ((_root.cartype == 0) or (_root.cartype == 9)) {
_visible = true;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.aktif == 1) and _visible) and (_root.misi == 0)) {
if (this.hitTest(_root.mobil)) {
_root.keterangan = "Press Space To Enter";
if (Key.isDown(32)) {
if (_root.cartype == 0) {
_root.aktif = 0;
_root.attachMovie("jobkonstruksi", "job", 1200, {_x:300, _y:210});
} else if ((_root.px == _root.homex) and (_root.py == _root.homey)) {
_root.attachMovie("jobkonstruksi", "job", 1200, {_x:300, _y:210});
} else {
_root.keterangan = "You already work for another company";
}
}
} else {
_root.keterangan = "";
}
}
}
Symbol 1014 MovieClip [jemputmurid] Frame 1
stop();
_root.aktif = 0;
_root.targetorder = 0;
_root.jumlahmurid = 25;
Symbol 1014 MovieClip [jemputmurid] Frame 2
_root.settujuan = true;
_root.misi = 1;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
_root.aktif = 1;
removeMovieClip(this);
Symbol 1018 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 7) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1024 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 75) and (_root.pengalamanburuk[7] < 10)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1027 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1030 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1035 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1039 Button
on (release) {
gotoAndStop (5);
}
Symbol 1044 Button
on (release) {
gotoAndStop (6);
}
Symbol 1049 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1054 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1058 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1061 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1063 MovieClip [jobbis] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1063 MovieClip [jobbis] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Publick Bus Company";
_root.setkendaraan(7);
_root.rutebis = 2;
gotoAndPlay (20);
Symbol 1063 MovieClip [jobbis] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1063 MovieClip [jobbis] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1063 MovieClip [jobbis] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1063 MovieClip [jobbis] Frame 21
_root.tujuan = _root.rutebis;
_root.settujuan = false;
_root.misi = 1;
_root.tekstujuan = _root.terminal[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 1065 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 2) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1068 Button
on (release, keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 1071 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 2) and (_root.pengalamanburuk[2] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1072 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1076 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1077 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1078 Button
on (release) {
gotoAndStop (5);
}
Symbol 1080 Button
on (release) {
gotoAndStop (6);
}
Symbol 1081 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1082 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1083 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1084 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1086 MovieClip [jobfood] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1086 MovieClip [jobfood] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Food Court / Restaurant";
_root.setkendaraan(2);
gotoAndPlay (20);
Symbol 1086 MovieClip [jobfood] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1086 MovieClip [jobfood] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1086 MovieClip [jobfood] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1086 MovieClip [jobfood] Frame 21
stop();
trace("ambil");
_root.attachMovie("ambilorder", "job", 1201, {_x:300, _y:210});
removeMovieClip(this);
Symbol 1088 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 9) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1091 Button
on (release, keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 1093 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 50) and (_root.pengalamanburuk[10] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1094 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1096 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1097 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1098 Button
on (release) {
gotoAndStop (5);
}
Symbol 1100 Button
on (release) {
gotoAndStop (6);
}
Symbol 1101 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1102 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1104 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1106 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1108 MovieClip [jobkonstruksi] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 9) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1108 MovieClip [jobkonstruksi] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Construction Company";
_root.char.clip._rotation = 180;
_root.muatan._rotation = 180;
_root.mobil._rotation = 180;
_root.setkendaraan(9);
_root.orderkonstruksi = 0;
gotoAndPlay (20);
Symbol 1108 MovieClip [jobkonstruksi] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1108 MovieClip [jobkonstruksi] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1108 MovieClip [jobkonstruksi] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1108 MovieClip [jobkonstruksi] Frame 21
stop();
_root.attachMovie("ambilkonstruksi", "job", 1201, {_x:300, _y:210});
removeMovieClip(this);
Symbol 1110 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 4) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1111 Button
on (release, keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 1113 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 20) and (_root.pengalamanburuk[4] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1114 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1115 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1116 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1117 Button
on (release) {
gotoAndStop (5);
}
Symbol 1119 Button
on (release) {
gotoAndStop (6);
}
Symbol 1120 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1121 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1122 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1123 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1125 MovieClip [jobmail] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1125 MovieClip [jobmail] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Post Office";
_root.setkendaraan(4);
gotoAndPlay (20);
Symbol 1125 MovieClip [jobmail] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1125 MovieClip [jobmail] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1125 MovieClip [jobmail] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1125 MovieClip [jobmail] Frame 21
stop();
trace("ambil");
_root.attachMovie("ambilmail", "job", 1201, {_x:300, _y:210});
removeMovieClip(this);
Symbol 1127 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 10) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1128 Button
on (release, keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 1130 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 50) and (_root.pengalamanburuk[10] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1131 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1132 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1134 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1137 Button
on (release) {
gotoAndStop (5);
}
Symbol 1139 Button
on (release) {
gotoAndStop (6);
}
Symbol 1140 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1141 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1142 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1144 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1146 MovieClip [joboil] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 10) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1146 MovieClip [joboil] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Oil Company";
_root.char.clip._rotation = 90;
_root.muatan._rotation = 90;
_root.mobil._rotation = 90;
_root.setkendaraan(10);
_root.orderminyak = 0;
gotoAndPlay (20);
Symbol 1146 MovieClip [joboil] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1146 MovieClip [joboil] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1146 MovieClip [joboil] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1146 MovieClip [joboil] Frame 21
stop();
_root.attachMovie("ambiloil", "job", 1201, {_x:300, _y:210});
removeMovieClip(this);
Symbol 1148 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 13) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1151 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 520) and (_root.pengalamanburuk[13] < 10)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1152 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1154 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1156 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1157 Button
on (release) {
gotoAndStop (5);
}
Symbol 1159 Button
on (release) {
gotoAndStop (6);
}
Symbol 1162 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1163 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1164 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1165 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1167 MovieClip [jobpemadam] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1167 MovieClip [jobpemadam] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Fire Station";
_root.setkendaraan(13);
_root.aktif = 1;
_root.misi = 0;
removeMovieClip(this);
Symbol 1167 MovieClip [jobpemadam] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1167 MovieClip [jobpemadam] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1167 MovieClip [jobpemadam] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1169 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 3) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1170 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 20) and (_root.pengalamanburuk[3] < 10)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1171 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1173 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1175 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1176 Button
on (release) {
gotoAndStop (5);
}
Symbol 1178 Button
on (release) {
gotoAndStop (6);
}
Symbol 1180 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1181 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1182 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1183 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1185 MovieClip [jobrumahsakit] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1185 MovieClip [jobrumahsakit] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Hospital";
_root.setkendaraan(3);
_root.aktif = 1;
_root.misi = 0;
removeMovieClip(this);
Symbol 1185 MovieClip [jobrumahsakit] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1185 MovieClip [jobrumahsakit] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1185 MovieClip [jobrumahsakit] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1189 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 5) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1191 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 20) and (_root.pengalamanburuk[4] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1192 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1194 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1196 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1197 Button
on (release) {
gotoAndStop (5);
}
Symbol 1199 Button
on (release) {
gotoAndStop (6);
}
Symbol 1200 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1201 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1202 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1203 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1205 MovieClip [jobsekolah] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1205 MovieClip [jobsekolah] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "School";
_root.setkendaraan(5);
gotoAndPlay (20);
Symbol 1205 MovieClip [jobsekolah] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1205 MovieClip [jobsekolah] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1205 MovieClip [jobsekolah] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1205 MovieClip [jobsekolah] Frame 21
stop();
_root.keterangan = "";
_root.misi = 0;
_root.acakposisimurid();
_root.aktif = 1;
removeMovieClip(this);
Symbol 1209 Button
on (release, keyPress "<Space>") {
if (_root.cartype == 1) {
gotoAndStop (8);
} else {
gotoAndStop (2);
}
}
Symbol 1210 Button
on (release) {
gotoAndStop (3);
}
Symbol 1211 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1213 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1214 Button
on (release) {
gotoAndStop (4);
}
Symbol 1219 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1220 Button
on (release) {
gotoAndStop (5);
}
Symbol 1221 Button
on (release) {
gotoAndPlay (6);
}
Symbol 1222 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (10);
} else {
gotoAndStop (9);
}
}
Symbol 1224 Button
on (release) {
gotoAndPlay (11);
}
Symbol 1225 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (11);
}
Symbol 1227 MovieClip [jobtaxi] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
Symbol 1227 MovieClip [jobtaxi] Frame 7
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Taxi Company";
_root.setkendaraan(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1227 MovieClip [jobtaxi] Frame 10
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1227 MovieClip [jobtaxi] Frame 12
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1227 MovieClip [jobtaxi] Frame 16
_root.aktif = 1;
removeMovieClip(this);
Symbol 1229 Button
on (release, keyPress "<Space>") {
if ((_root.cartype == 11) or (_root.cartype == 12)) {
gotoAndStop (9);
} else {
gotoAndStop (2);
}
}
Symbol 1230 Button
on (release, keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 1232 Button
on (release) {
trace(_root.cekpengalaman());
if ((_root.cekpengalaman() > 50) and (_root.pengalamanburuk[10] < 5)) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Symbol 1233 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1235 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1236 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1237 Button
on (release) {
gotoAndStop (5);
}
Symbol 1238 Button
on (release) {
gotoAndStop (6);
}
Symbol 1239 Button
on (release) {
gotoAndPlay (7);
}
Symbol 1240 Button
on (release) {
if (_root.carenergi < (_root.carmaxenergi - 20)) {
gotoAndStop (11);
} else {
gotoAndStop (10);
}
}
Symbol 1241 Button
on (release) {
gotoAndPlay (12);
}
Symbol 1242 Button
on (release) {
_root.uang = _root.uang - biayarusak;
gotoAndPlay (12);
}
Symbol 1244 MovieClip [jobtruk] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 10) {
ambil._visible = true;
} else {
ambil._visible = false;
}
Symbol 1244 MovieClip [jobtruk] Frame 8
_root.homex = _root.px;
_root.homey = _root.py;
_root.homename = "Office";
_root.char.clip._rotation = 180;
_root.muatan._rotation = 180;
_root.mobil._rotation = 180;
_root.setkendaraan(11);
_root.orderkargo = 0;
gotoAndPlay (20);
Symbol 1244 MovieClip [jobtruk] Frame 11
biayarusak = Math.round(_root.carmaxenergi - _root.carenergi) * 10;
Symbol 1244 MovieClip [jobtruk] Frame 13
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
removeMovieClip(this);
Symbol 1244 MovieClip [jobtruk] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1244 MovieClip [jobtruk] Frame 21
stop();
_root.attachMovie("ambilkargo", "job", 1201, {_x:300, _y:210});
removeMovieClip(this);
Symbol 1248 Button
on (release) {
_root.aksesmenu = 3;
_root.gotoAndStop("hapus");
}
Symbol 1249 MovieClip [kecelakaan] Frame 1
stop();
_root.aktif = 0;
Symbol 1252 MovieClip [loadkargo] Frame 1
stop();
_root.aktif = 0;
if (_root.jeniskargo == 0) {
_root.tujuan = _root.tujuangrain[random(9)];
_root.settujuan = true;
_root.tujuanx = _root.bigkargo[_root.tujuan][0];
_root.tujuany = _root.bigkargo[_root.tujuan][1];
_root.tekstujuan = _root.bigkargo[_root.tujuan][2];
}
if (_root.jeniskargo == 1) {
_root.tujuan = _root.tujuangrain[random(9)];
_root.settujuan = true;
_root.tujuanx = _root.bigkargo[_root.tujuan][0];
_root.tujuany = _root.bigkargo[_root.tujuan][1];
_root.tekstujuan = _root.bigkargo[_root.tujuan][2];
}
if (_root.jeniskargo == 2) {
tujuanlama = _root.tujuan;
_root.tujuan = random(_root.alamatkargo);
if (tujuanlama == _root.tujuan) {
_root.tujuan = random(_root.alamatkargo);
}
if (tujuanlama == _root.tujuan) {
_root.tujuan = random(_root.alamatkargo);
}
_root.settujuan = true;
_root.tujuanx = _root.bigkargo[_root.tujuan][0];
_root.tujuany = _root.bigkargo[_root.tujuan][1];
_root.tekstujuan = _root.bigkargo[_root.tujuan][2];
}
if (_root.jeniskargo == 3) {
_root.tujuan = _root.tujuankayu[random(9)];
_root.settujuan = true;
_root.tujuanx = _root.bigkargo[_root.tujuan][0];
_root.tujuany = _root.bigkargo[_root.tujuan][1];
_root.tekstujuan = _root.bigkargo[_root.tujuan][2];
}
_root.jenismuatan = _root.jeniskargo + 2;
Symbol 1252 MovieClip [loadkargo] Frame 2
_root.misi = 1;
_root.aktif = 1;
removeMovieClip(this);
Symbol 1255 MovieClip [naikbis] Frame 1
stop();
Symbol 1255 MovieClip [naikbis] Frame 2
_root.jumlahmurid++;
if (_root.jumlahmurid < 25) {
_root.tujuan = _root.murid[_root.jumlahmurid];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
if (_root.tilelama == "t005") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t304";
_root.jenistile = "t304";
} else if (_root.tilelama == "t006") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t305";
_root.jenistile = "t305";
} else if (_root.tilelama == "t007") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t306";
_root.jenistile = "t306";
} else if (_root.tilelama == "t008") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t307";
_root.jenistile = "t307";
} else {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t308";
_root.jenistile = "t308";
}
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
} else {
_root.aktif = 1;
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
}
removeMovieClip(this);
Symbol 1260 MovieClip [naikbisumum] Frame 1
stop();
jumlahditerminal = 10 + random(20);
if (_root.penumpangbis > 0) {
penumpangturun = random(_root.penumpangbis) + 1;
_root.totalpenumpangbis = _root.totalpenumpangbis + penumpangturun;
_root.penumpangbis = _root.penumpangbis - penumpangturun;
}
bangkukosong = 40 - _root.penumpangbis;
if (bangkukosong > 0) {
penumpangnaik = random(bangkukosong) + 1;
_root.penumpangbis = _root.penumpangbis + penumpangnaik;
}
Symbol 1260 MovieClip [naikbisumum] Frame 2
_root.rutebis++;
if (_root.rutebis > 7) {
_root.rutebis = 0;
}
_root.tujuan = _root.rutebis;
_root.settujuan = false;
_root.misi = 1;
_root.tekstujuan = _root.terminal[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 1262 Button
on (release) {
play();
}
Symbol 1265 MovieClip [pecat] Frame 1
stop();
_root.aktif = 0;
Symbol 1265 MovieClip [pecat] Frame 3
_root.pengalamanburuk[_root.cartype] = _root.pengalamanburuk[_root.cartype] + 10;
_root.cartype = 0;
_root.char.speed = 0;
_root.kecepatan = _root.keccar[0];
_root.mobil.gotoAndStop(1);
_root.aktif = 1;
_root.misi = 0;
_root.settujuan = 0;
removeMovieClip(this);
Symbol 1266 MovieClip [pulangsekolah] Frame 1
stop();
_root.aktif = 0;
_root.targetorder = 0;
_root.jumlahmurid = 1;
Symbol 1266 MovieClip [pulangsekolah] Frame 2
_root.tujuan = _root.murid[1];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
if (_root.tilelama == "t005") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t304";
_root.jenistile = "t304";
} else if (_root.tilelama == "t006") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t305";
_root.jenistile = "t305";
} else if (_root.tilelama == "t007") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t306";
_root.jenistile = "t306";
} else if (_root.tilelama == "t008") {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t307";
_root.jenistile = "t307";
} else {
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t308";
_root.jenistile = "t308";
}
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
removeMovieClip(this);
Symbol 1268 Button
on (release, keyPress "<Space>") {
gotoAndStop (2);
}
Symbol 1273 Button
on (release) {
gotoAndStop (3);
}
Symbol 1274 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1277 Button
on (release) {
gotoAndStop (7);
}
Symbol 1285 Button
on (release) {
if (_root.uang >= 4500000) {
_root.uang = _root.uang - 4500000;
_root.hargabeli = 4500000 /* 0x44AA20 */;
_root.punyamobil = 1;
_root.jenismesin = 3;
_root.jenisroda = 2;
_root.jenissuspensi = 4;
_root.jenisbody = 2;
_root.kecepatan = (_root.kecmobil[1] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1286 Button
on (release) {
nextFrame();
}
Symbol 1289 Button
on (release) {
if (_root.uang >= 5750000) {
_root.uang = _root.uang - 5750000;
_root.hargabeli = 5750000 /* 0x57BCF0 */;
_root.punyamobil = 2;
_root.jenismesin = 3;
_root.jenisroda = 2;
_root.jenissuspensi = 4;
_root.jenisbody = 2;
_root.kecepatan = (_root.kecmobil[2] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1292 Button
on (release) {
prevFrame();
}
Symbol 1295 Button
on (release) {
if (_root.uang >= 6700000) {
_root.uang = _root.uang - 6700000;
_root.hargabeli = 6700000 /* 0x663BE0 */;
_root.punyamobil = 3;
_root.jenismesin = 4;
_root.jenisroda = 3;
_root.jenissuspensi = 3;
_root.jenisbody = 4;
_root.kecepatan = (_root.kecmobil[3] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1298 Button
on (release) {
if (_root.uang >= 5700000) {
_root.uang = _root.uang - 5700000;
_root.hargabeli = 5700000 /* 0x56F9A0 */;
_root.punyamobil = 4;
_root.jenismesin = 1;
_root.jenisroda = 1;
_root.jenissuspensi = 1;
_root.jenisbody = 4;
_root.kecepatan = (_root.kecmobil[4] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1301 Button
on (release) {
if (_root.uang >= 6000000) {
_root.uang = _root.uang - 6000000;
_root.hargabeli = 6000000 /* 0x5B8D80 */;
_root.punyamobil = 5;
_root.jenismesin = 2;
_root.jenisroda = 3;
_root.jenissuspensi = 2;
_root.jenisbody = 4;
_root.kecepatan = (_root.kecmobil[5] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1304 Button
on (release) {
if (_root.uang >= 9100000) {
_root.uang = _root.uang - 9100000;
_root.hargabeli = 9100000 /* 0x8ADAE0 */;
_root.punyamobil = 6;
_root.jenismesin = 4;
_root.jenisroda = 3;
_root.jenissuspensi = 3;
_root.jenisbody = 4;
_root.kecepatan = (_root.kecmobil[6] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1307 Button
on (release) {
if (_root.uang >= 3400000) {
_root.uang = _root.uang - 3400000;
_root.hargabeli = 3400000 /* 0x33E140 */;
_root.punyamobil = 7;
_root.jenismesin = 1;
_root.jenisroda = 1;
_root.jenissuspensi = 1;
_root.jenisbody = 1;
_root.kecepatan = (_root.kecmobil[7] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
_root.energi = 100;
_root.carenergi = 100;
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 1308 MovieClip Frame 1
stop();
Symbol 1311 Button
on (release) {
gotoAndStop (3);
}
Symbol 1313 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1316 Button
on (release) {
_root.uang = _root.uang + _root.hargabeli;
_root.punyamobil = 0;
_root.setkendaraan(0);
_root.mobil.gotoAndStop(1);
_root.kecepatan = 8;
gotoAndStop (6);
}
Symbol 1318 MovieClip [showroom] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
say = "";
Symbol 1318 MovieClip [showroom] Frame 2
if (_root.punyamobil == 0) {
beli._visible = true;
jual._visible = false;
} else {
beli._visible = false;
jual._visible = true;
}
Symbol 1318 MovieClip [showroom] Frame 6
stop();
Symbol 1318 MovieClip [showroom] Frame 7
hargajual = "$ " + String(_root.hargabeli);
Symbol 1318 MovieClip [showroom] Frame 17
_root.aktif = 1;
removeMovieClip(this);
Symbol 1320 Button
on (release, keyPress "<Space>") {
gotoAndStop (2);
}
Symbol 1325 Button
on (release) {
if ((((_root.jenismesin >= 5) and (_root.jenisbody >= 5)) and (_root.jenissuspensi >= 5)) and (_root.jenisroda >= 5)) {
gotoAndStop (7);
} else {
gotoAndStop (3);
}
}
Symbol 1326 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1329 Button
on (release) {
gotoAndStop (8);
}
Symbol 1333 Button
on (release) {
if (_root.uang >= biayamesin) {
_root.uang = _root.uang - biayamesin;
_root.jenismesin++;
say = "[mechanic] your engine upgraded to the next level";
gotoAndStop (5);
} else {
gotoAndStop (4);
}
}
Symbol 1334 Button
on (release) {
if (_root.uang >= biayaroda) {
_root.uang = _root.uang - biayaroda;
_root.jenisroda++;
say = "[mechanic] your vehicle wheels upgraded to the next level";
gotoAndStop (5);
} else {
gotoAndStop (4);
}
}
Symbol 1335 Button
on (release) {
if (_root.uang >= biayabody) {
_root.uang = _root.uang - biayabody;
_root.jenisbody++;
say = "[mechanic] your vehicle body upgraded to the next level";
gotoAndStop (5);
} else {
gotoAndStop (4);
}
}
Symbol 1336 Button
on (release) {
if (_root.uang >= biayasuspensi) {
_root.uang = _root.uang - biayasuspensi;
_root.jenissuspensi++;
say = "[mechanic] your vehicle suspensions upgraded to the next level";
gotoAndStop (5);
} else {
gotoAndStop (4);
}
}
Symbol 1337 MovieClip Frame 1
stop();
Symbol 1342 Button
on (release) {
gotoAndStop (3);
}
Symbol 1343 Button
on (release) {
gotoAndStop (6);
}
Symbol 1346 Button
on (release) {
gotoAndPlay (15);
}
Symbol 1348 Button
on (release) {
gotoAndStop (2);
}
Symbol 1356 Button
on (release) {
if (_root.uang > 5000) {
_root.uang = _root.uang - 5000;
_root.item[1] = 1;
_parent.gotoAndStop(9);
}
}
Symbol 1362 Button
on (release) {
if (_root.uang > 15000) {
_root.uang = _root.uang - 15000;
_root.item[2] = 1;
_parent.gotoAndStop(9);
}
}
Symbol 1368 Button
on (release) {
if (_root.uang > 7000) {
_root.uang = _root.uang - 7000;
_root.item[3] = 1;
_parent.gotoAndStop(9);
}
}
Symbol 1373 Button
on (release) {
if ((_root.uang > 5000) and (_root.jumlahnos < 5)) {
_root.uang = _root.uang - 5000;
_root.item[4] = 1;
_root.jumlahnos++;
if (_root.jumlahnos >= 5) {
buy._visible = false;
}
_parent.gotoAndStop(9);
}
}
Symbol 1374 MovieClip Frame 1
stop();
if (_root.item[1] == 1) {
beli._visible = false;
}
Symbol 1374 MovieClip Frame 2
if (_root.item[2] == 1) {
beli._visible = false;
}
Symbol 1374 MovieClip Frame 3
if (_root.item[3] == 1) {
beli._visible = false;
}
Symbol 1374 MovieClip Frame 4
if ((_root.jumlahnos >= 5) or (_root.punyamobil == 0)) {
beli._visible = false;
}
Symbol 1376 Button
on (release) {
gotoAndStop (2);
}
Symbol 1377 MovieClip [sparepart] Frame 1
stop();
_root.aktif = 0;
_root.keterangan = "";
if (_root.cartype == 2) {
ambil._visible = true;
} else {
ambil._visible = false;
}
say = "";
Symbol 1377 MovieClip [sparepart] Frame 3
biayamesin = _root.upgrademesin[_root.cartype][_root.jenismesin];
if (biayamesin == 99) {
biayamesin = "Max Upgrade";
mesinbut._visible = false;
}
biayaroda = _root.upgraderoda[_root.cartype][_root.jenisroda];
if (biayaroda == 99) {
biayaroda = "Max Upgrade";
rodabut._visible = false;
}
biayabody = _root.upgradebody[_root.cartype][_root.jenisbody];
if (biayabody == 99) {
biayabody = "Max Upgrade";
bodybut._visible = false;
}
biayasuspensi = _root.upgradesuspensi[_root.cartype][_root.jenissuspensi];
if (biayasuspensi == 99) {
biayasuspensi = "Max Upgrade";
suspensibut._visible = false;
}
Instance of Symbol 197 MovieClip in Symbol 1377 MovieClip [sparepart] Frame 3
onClipEvent (load) {
gotoAndStop(_root.jenismesin);
}
Instance of Symbol 197 MovieClip in Symbol 1377 MovieClip [sparepart] Frame 3
onClipEvent (load) {
gotoAndStop(_root.jenisroda);
}
Instance of Symbol 197 MovieClip in Symbol 1377 MovieClip [sparepart] Frame 3
onClipEvent (load) {
gotoAndStop(_root.jenisbody);
}
Instance of Symbol 197 MovieClip in Symbol 1377 MovieClip [sparepart] Frame 3
onClipEvent (load) {
gotoAndStop(_root.jenissuspensi);
}
Instance of Symbol 1337 MovieClip in Symbol 1377 MovieClip [sparepart] Frame 3
onClipEvent (load) {
gotoAndStop(_root.cartype + 1);
}
Symbol 1377 MovieClip [sparepart] Frame 6
stop();
Symbol 1377 MovieClip [sparepart] Frame 17
_root.aktif = 1;
_root.kecepatan = (_root.keccar[_root.cartype] + _root.jenismesin) + (((_root.jenisroda + _root.jenissuspensi) + _root.jenisbody) / 3);
removeMovieClip(this);
Symbol 1387 MovieClip [terimakasihfood] Frame 1
stop();
alamat1 = "1. " + _root.jalan[_root.order[1]][2];
alamat2 = "2. " + _root.jalan[_root.order[2]][2];
alamat3 = "3. " + _root.jalan[_root.order[3]][2];
alamat4 = "4. " + _root.jalan[_root.order[4]][2];
alamat5 = "5. " + _root.jalan[_root.order[5]][2];
Instance of Symbol 1386 MovieClip in Symbol 1387 MovieClip [terimakasihfood] Frame 1
onClipEvent (load) {
if (_root.noorder >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1387 MovieClip [terimakasihfood] Frame 1
onClipEvent (load) {
if (_root.noorder >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1387 MovieClip [terimakasihfood] Frame 1
onClipEvent (load) {
if (_root.noorder >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1387 MovieClip [terimakasihfood] Frame 1
onClipEvent (load) {
if (_root.noorder >= 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1387 MovieClip [terimakasihfood] Frame 1
onClipEvent (load) {
if (_root.noorder >= 5) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 1387 MovieClip [terimakasihfood] Frame 2
_root.noorder++;
_root.targetorder++;
_root.tambahpengalaman(2, 0.3);
if (_root.noorder < 6) {
_root.tujuan = _root.order[_root.noorder];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t301";
_root.jenistile = "t301";
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
} else {
_root.aktif = 1;
_root.misi = 0;
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
}
removeMovieClip(this);
Symbol 1401 MovieClip [terimakasihmail] Frame 1
stop();
alamat1 = " 1. " + _root.jalan[_root.order[1]][2];
alamat2 = " 2. " + _root.jalan[_root.order[2]][2];
alamat3 = " 3. " + _root.jalan[_root.order[3]][2];
alamat4 = " 4. " + _root.jalan[_root.order[4]][2];
alamat5 = " 5. " + _root.jalan[_root.order[5]][2];
alamat6 = " 6. " + _root.jalan[_root.order[6]][2];
alamat7 = " 7. " + _root.jalan[_root.order[7]][2];
alamat8 = " 8. " + _root.jalan[_root.order[8]][2];
alamat9 = " 9. " + _root.jalan[_root.order[9]][2];
alamat10 = "10. " + _root.jalan[_root.order[10]][2];
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 5) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 6) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 7) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 8) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 9) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1386 MovieClip in Symbol 1401 MovieClip [terimakasihmail] Frame 1
onClipEvent (load) {
if (_root.noorder >= 10) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 1401 MovieClip [terimakasihmail] Frame 2
_root.noorder++;
_root.targetorder++;
_root.tambahpengalaman(2, 0.3);
if (_root.noorder < 11) {
_root.tujuan = _root.order[_root.noorder];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t303";
_root.jenistile = "t303";
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
} else {
_root.aktif = 1;
_root.misi = 0;
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
}
removeMovieClip(this);
Symbol 2200 MovieClip Frame 1
stop();
Instance of Symbol 573 MovieClip in Symbol 2200 MovieClip Frame 334
onClipEvent (enterFrame) {
if (kiri.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = -90;
}
if (kiri.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = -90;
}
if (kiri.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (kiri.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (kiri.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = -90;
}
if (kanan.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (kanan.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (kanan.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 90;
}
if (kanan.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 90;
}
if (kanan.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
if (atas.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 0;
}
if (atas.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 0;
}
if (atas.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (atas.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (atas.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 0;
}
if (bawah.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (bawah.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (bawah.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 180;
}
if (bawah.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 180;
}
if (bawah.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Instance of Symbol 573 MovieClip in Symbol 2200 MovieClip Frame 410
onClipEvent (enterFrame) {
if (kiri.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = -90;
}
if (kiri.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = -90;
}
if (kiri.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = -90;
}
if (kiri.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = -90;
}
if (kiri.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = -90;
}
if (kanan.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 90;
}
if (kanan.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 90;
}
if (kanan.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 90;
}
if (kanan.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 90;
}
if (kanan.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 90;
}
if (atas.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 0;
}
if (atas.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 0;
}
if (atas.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 0;
}
if (atas.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 0;
}
if (atas.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 0;
}
if (bawah.hitTest(_root.orang1) and (_root.orang1.misi == 0)) {
_root.orang1._rotation = 180;
}
if (bawah.hitTest(_root.orang2) and (_root.orang2.misi == 0)) {
_root.orang2._rotation = 180;
}
if (bawah.hitTest(_root.orang3) and (_root.orang3.misi == 0)) {
_root.orang3._rotation = 180;
}
if (bawah.hitTest(_root.orang4) and (_root.orang4.misi == 0)) {
_root.orang4._rotation = 180;
}
if (bawah.hitTest(_root.orang5) and (_root.orang5.misi == 0)) {
_root.orang5._rotation = 180;
}
}
Symbol 2201 MovieClip [tile] Frame 1
stop();
Instance of Symbol 1012 MovieClip [jalan] "gambar" in Symbol 2201 MovieClip [tile] Frame 1
onClipEvent (load) {
_width = _root.skalatile;
_height = _root.skalatile;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
_width = _root.skalatile;
_height = _root.skalatile;
_x = 0;
_y = 0;
}
Instance of Symbol 2200 MovieClip "gambar" in Symbol 2201 MovieClip [tile] Frame 2
onClipEvent (load) {
_width = _root.skalatile;
_height = _root.skalatile;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
_width = _root.skalatile;
_height = _root.skalatile;
_x = 0;
_y = 0;
}
Symbol 2205 MovieClip [turunbis] Frame 1
stop();
Symbol 2205 MovieClip [turunbis] Frame 2
_root.jumlahmurid--;
_root.tambahpengalaman(5, 0.1);
if (_root.jumlahmurid > 0) {
_root.tujuan = _root.murid[_root.jumlahmurid];
_root.tilelama = _root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1];
_root.myMap1[_root.jalan[_root.tujuan][1]][_root.jalan[_root.tujuan][0]][1] = "t309";
_root.jenistile = "t309";
_root.misi = 1;
_root.tekstujuan = _root.jalan[_root.tujuan][2];
_root.aktif = 1;
} else {
_root.aktif = 1;
_root.misi = 0;
_root.targetorder = 2;
_root.settujuan = false;
_root.tekstujuan = "";
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
}
removeMovieClip(this);
Symbol 2208 MovieClip [unloadkargo] Frame 1
stop();
_root.aktif = 0;
_root.tekstujuan = "";
Symbol 2208 MovieClip [unloadkargo] Frame 2
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
_root.misi = 0;
if (_root.jeniskargo == 3) {
_root.tambahpengalaman(11, 1);
} else {
_root.tambahpengalaman(12, 1);
}
_root.jeniskargo = 0;
_root.jenismuatan = 0;
_root.uang = _root.uang + 1000;
_root.orderkargo++;
_root.aktif = 1;
removeMovieClip(this);
Symbol 2209 Button
on (release, keyPress "<Space>") {
if (_root.minyak <= 0) {
play();
}
}
Symbol 2212 MovieClip [unloadoil] Frame 1
stop();
_root.aktif = 0;
_root.tekstujuan = "";
Instance of Symbol 488 MovieClip in Symbol 2212 MovieClip [unloadoil] Frame 1
onClipEvent (load) {
isi._yscale = _root.minyak;
}
onClipEvent (enterFrame) {
isi._yscale = _root.minyak;
if (_root.minyak > 0) {
_root.minyak--;
}
}
Symbol 2212 MovieClip [unloadoil] Frame 2
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
_root.misi = 0;
_root.tambahpengalaman(10, 1);
_root.uang = _root.uang + 1000;
_root.orderminyak++;
_root.aktif = 1;
removeMovieClip(this);
Symbol 2214 MovieClip [unloadsemen] Frame 1
stop();
_root.aktif = 0;
_root.tekstujuan = "";
Symbol 2214 MovieClip [unloadsemen] Frame 2
_root.settujuan = true;
_root.tujuanx = _root.homex;
_root.tujuany = _root.homey;
_root.tekstujuan = _root.homename;
_root.misi = 0;
_root.tambahpengalaman(9, 1.5);
_root.uang = _root.uang + 1000;
_root.orderkonstruksi++;
_root.aktif = 1;
removeMovieClip(this);
Symbol 2222 MovieClip Frame 1
stop();
Symbol 2226 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?city-driver", "_blank");
}
Symbol 2231 Button
on (release) {
gotoAndStop ("load");
}
Symbol 2235 Button
on (release) {
if (con_but.enabled) {
peringatan.gotoAndStop(2);
} else {
gotoAndStop ("baru");
}
}
Symbol 2238 Button
on (release) {
gotoAndStop ("highscore");
}
Symbol 2243 Button
on (release) {
getURL ("http://www.freeonlinegames.com", "_blank");
}
Symbol 2248 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com", "_blank");
}
Symbol 2255 Button
on (release) {
gotoAndStop (1);
}
Symbol 2256 Button
on (release) {
_root.gotoAndStop("baru");
}
Symbol 2257 MovieClip Frame 1
stop();
Symbol 2261 Button
on (release) {
if (namapemain != "") {
trace("lol");
gotoAndStop ("gameseting");
}
}
Symbol 2262 Button
on (release) {
gotoAndStop ("cover");
}
Symbol 2266 Button
on (release, keyPress "<Space>") {
gotoAndStop ("main");
}
Symbol 2275 Button
on (release) {
gotoAndStop ("cover");
}
Symbol 2285 Button
on (release) {
gotoAndStop ("highscore");
}
Symbol 2286 MovieClip Frame 1
stop();
Symbol 2287 MovieClip Frame 1
stop();
Symbol 2287 MovieClip Frame 7
gotoAndPlay (2);
Symbol 2302 MovieClip Frame 1
stop();
Symbol 2306 MovieClip Frame 1
stop();
Instance of Symbol 2302 MovieClip in Symbol 2306 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
if (Key.isDown(38)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Symbol 2306 MovieClip Frame 5
gotoAndStop (1);
Symbol 2306 MovieClip Frame 10
gotoAndStop (1);
Instance of Symbol 2302 MovieClip in Symbol 2306 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
if (Key.isDown(38)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
}
Symbol 2312 MovieClip Frame 1
stop();
Symbol 2320 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 2321 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2321 MovieClip Frame 5
gotoAndStop (1);
Symbol 2321 MovieClip Frame 9
gotoAndStop (1);
Symbol 2356 MovieClip Frame 1
stop();
Symbol 2356 MovieClip Frame 39
stop();
_root.attachMovie("kecelakaan", "job", 1005, {_x:300, _y:210});
Symbol 2359 MovieClip Frame 1
stop();
Symbol 2367 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 2368 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2368 MovieClip Frame 5
gotoAndStop (1);
Symbol 2368 MovieClip Frame 9
gotoAndStop (1);
Instance of Symbol 2373 MovieClip in Symbol 2377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rs.dapatpasien) {
play();
} else {
stop();
}
}
Symbol 2377 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 2378 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2378 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2378 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2373 MovieClip in Symbol 2378 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rs.dapatpasien) {
play();
} else {
stop();
}
}
Symbol 2378 MovieClip Frame 5
gotoAndStop (1);
Symbol 2378 MovieClip Frame 9
gotoAndStop (1);
Symbol 2384 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 2385 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2385 MovieClip Frame 5
gotoAndStop (1);
Symbol 2385 MovieClip Frame 9
gotoAndStop (1);
Symbol 2391 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 2392 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2392 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2392 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2392 MovieClip Frame 5
gotoAndStop (1);
Symbol 2392 MovieClip Frame 9
gotoAndStop (1);
Symbol 2398 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 2399 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2399 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2399 MovieClip Frame 5
gotoAndStop (1);
Symbol 2399 MovieClip Frame 9
gotoAndStop (1);
Symbol 2405 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 2406 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2406 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2406 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Symbol 2406 MovieClip Frame 5
gotoAndStop (1);
Symbol 2406 MovieClip Frame 9
gotoAndStop (1);
Symbol 2430 MovieClip Frame 1
stop();
Symbol 2431 MovieClip Frame 1
stop();
Instance of Symbol 2312 MovieClip in Symbol 2431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2312 MovieClip in Symbol 2431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndStop (2);
} else if (Key.isDown(39)) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2430 MovieClip in Symbol 2431 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.punyamobil);
}
Symbol 2431 MovieClip Frame 5
gotoAndStop (1);
Symbol 2431 MovieClip Frame 9
gotoAndStop (1);
Symbol 2432 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
_root.mobil._rotation = this._rotation;
_root.mobil.body.gotoAndStop(this.body._currentframe);
};
Instance of Symbol 2359 MovieClip in Symbol 2432 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.energi < 25) and (_currentframe == 1)) and (random(20) == 3)) {
play();
}
}
Instance of Symbol 2359 MovieClip in Symbol 2432 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.energi < 50) and (_currentframe == 1)) and (random(30) == 3)) {
play();
}
}
Instance of Symbol 2417 MovieClip in Symbol 2432 MovieClip Frame 10
onClipEvent (enterFrame) {
if (((_root.char.speed > 0) and (_root.aktif == 1)) and (_root.misi == 1)) {
play();
} else {
stop();
}
}
Symbol 2464 MovieClip Frame 1
stop();
Symbol 2466 MovieClip Frame 1
stop();
Symbol 2466 MovieClip Frame 21
gotoAndStop (1);
Instance of Symbol 2466 MovieClip "sensor" in Symbol 2467 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.mobil)) {
if (random(6) == 3) {
play();
if (_root.misi == 1) {
if (random(5) == 2) {
_root.keterangan = "[car driver]ARE YOU CRAZY? YOU ARE NUTS!!!!";
_root.wket = 1;
} else {
_root.keterangan = "[car driver]HEY WHAT ARE YOU DOING. BECAREFUL!!!";
_root.wket = 1;
}
}
}
_parent.tunggutaxi = 1;
}
}
Instance of Symbol 2466 MovieClip "sensor3" in Symbol 2467 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.clip.body)) {
if (random(5) == 3) {
play();
if (_root.misi == 1) {
if (random(5) == 2) {
_root.keterangan = "[car driver]ARE YOU CRAZY? YOU ARE NUTS!!!!";
_root.wket = 1;
} else {
_root.keterangan = "[car driver]HEY WHAT ARE YOU DOING. BECAREFUL!!!";
_root.wket = 1;
}
}
}
_parent.tunggutaxi = 1;
}
}
Symbol 2478 MovieClip Frame 1
stop();
Symbol 2480 Button
on (release) {
_root.aktif = 1;
_root.gotoAndStop("main");
}
Symbol 2483 Button
on (release) {
gotoAndStop ("cover");
}
Symbol 2489 MovieClip Frame 1
stop();
Symbol 2489 MovieClip Frame 2
stop();
Symbol 2504 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 2505 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}