Frame 1
function abs(x) {
if (x >= 0) {
return(x);
}
return(-x);
}
function decir(clip, c, t) {
var _local2;
var _local5;
_local5 = 0;
_local2 = 0;
while (_local2 < 10) {
if (_root[("Bocadillo" + clip) + _local2].apilar > -1) {
_root[("Bocadillo" + clip) + _local2].apilar++;
_local5 = _local2 + 1;
}
_local2++;
}
var _local4 = _root.attachMovie("Bocadillo", ("Bocadillo" + clip) + _local5, _root.getNextHighestDepth(), {_x:-3000, _y:-3000});
_local4.tiempo = t;
_local4.texto = c;
_local4.clip = clip;
_local4.apilar = 0;
_local4._xscale = _root.abs(clip._xscale);
_local4._yscale = _root.abs(clip._yscale);
return(_local4);
}
function init_DB_obj() {
var _local3;
var _local2 = new item();
_local3 = 0;
while (_local3 < _global.DB_MAXobj) {
DB_obj[_local3] = new item();
if (_local3 == 0) {
_local2.N = "Item_Champi";
_local2.sup = true;
_local2.n = 1;
_local2.d = "This mushroom seems fit to be eaten. But my intuition says I shouldn't eat it.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 10;
_local2.H = 3;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 1) {
_local2.N = "Item_ChampiM";
_local2.sup = true;
_local2.n = 1;
_local2.d = "This mushroom seems delicious.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 15;
_local2.H = 5;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 2) {
_local2.N = "Item_ChampiV";
_local2.sup = true;
_local2.n = 1;
_local2.d = "This mushroom doesn't seem good.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 10;
_local2.H = -5;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 3) {
_local2.N = "Item_PotionH1";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Heals 5 HP";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 15;
_local2.H = 5;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 4) {
_local2.N = "Item_PotionM1";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Recovers 5 MP";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 15;
_local2.H = 0;
_local2.M = 5;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 5) {
_local2.N = "Item_PotionHM1";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Heals 5 HP and Recovers 5 MP";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 20;
_local2.H = 5;
_local2.M = 5;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 6) {
_local2.N = "Item_Gold";
_local2.sup = true;
_local2.n = -1;
_local2.d = "Gold coins";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 7) {
_local2.N = "Item_Llave1";
_local2.sup = false;
_local2.n = 1;
_local2.d = "A key for a metal chest.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 8) {
_local2.N = "Item_Anillo_Elfita";
_local2.sup = false;
_local2.n = 1;
_local2.d = "The ring of the little elf girl.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 9) {
_local2.N = "Item_Carta_Vieja";
_local2.sup = false;
_local2.n = 1;
_local2.d = "It says: I went to my house deep in the forest. Come visit me and I'll explain where you are. I opened a passage to the west.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 10) {
_local2.N = "Item_Carta_Gnomo";
_local2.sup = false;
_local2.n = 1;
_local2.d = "It says: Sorry pretty girl, but I have to go to the town to buy supplies. So I won't be able to save you from rats for a long time.";
_local2.t = 0;
_local2.e = 0;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 11) {
_local2.N = "Item_Gafas";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Sexy graduated glasses. My vision isn't that bad so I don't really need them. Just for reading, but I like them.";
_local2.t = 1;
_local2.e = 8;
_local2.ds = 7;
_local2.precio = 80;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 12) {
_local2.N = "Item_SujeB";
_local2.sup = false;
_local2.n = 1;
_local2.d = "White and sexy underwear.";
_local2.t = 1;
_local2.e = 1;
_local2.ds = 7;
_local2.precio = 65;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 2;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 13) {
_local2.N = "Item_Braguitas";
_local2.sup = false;
_local2.n = 1;
_local2.d = "White and sexy underwear.";
_local2.t = 1;
_local2.e = 2;
_local2.ds = 7;
_local2.precio = 60;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 2;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 14) {
_local2.N = "Item_Brazal1";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Elvish bracers enchanted to protec.";
_local2.t = 1;
_local2.e = 5;
_local2.ds = 7;
_local2.precio = 70;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 2;
_local2.RF = 2;
} else if (_local3 == 15) {
_local2.N = "Item_Camiseta1";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Green T-Shirt with a pink heart on it.";
_local2.t = 1;
_local2.e = 6;
_local2.ds = 7;
_local2.precio = 50;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 16) {
_local2.N = "Item_Camiseta2";
_local2.sup = false;
_local2.n = 1;
_local2.d = "White provocative shirt.";
_local2.t = 1;
_local2.e = 6;
_local2.ds = 7;
_local2.precio = 110;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 2;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 17) {
_local2.N = "Item_Camiseta3";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Black T-Shirt with a purple skull.";
_local2.t = 1;
_local2.e = 6;
_local2.ds = 7;
_local2.precio = 40;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 18) {
_local2.N = "Item_Top";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Ultrasexy top.";
_local2.t = 1;
_local2.e = 6;
_local2.ds = 7;
_local2.precio = 70;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 19) {
_local2.N = "Item_Top2";
_local2.sup = false;
_local2.n = 1;
_local2.d = "I love this top.";
_local2.t = 1;
_local2.e = 6;
_local2.ds = 7;
_local2.precio = 90;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 20) {
_local2.N = "Item_Panta1";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Short cute pants.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 60;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 21) {
_local2.N = "Item_Panta2";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Fashion white pants.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 80;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 22) {
_local2.N = "Item_Panta3";
_local2.sup = false;
_local2.n = 1;
_local2.d = "My favourite jeans.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 60;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 23) {
_local2.N = "Item_Panta4";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Leather pants.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 60;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 2;
_local2.RF = 0;
} else if (_local3 == 24) {
_local2.N = "Item_Panta5";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Elvish leather pants.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 80;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 2;
_local2.CA = 2;
_local2.RF = 1;
} else if (_local3 == 25) {
_local2.N = "Item_Falda1";
_local2.sup = false;
_local2.n = 1;
_local2.d = "Short enough purple skirt.";
_local2.t = 1;
_local2.e = 7;
_local2.ds = 7;
_local2.precio = 30;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 26) {
_local2.N = "Item_Zapato1";
_local2.sup = true;
_local2.n = 1;
_local2.d = "White shoes.";
_local2.t = 1;
_local2.e = 3;
_local2.ds = 7;
_local2.precio = 50;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 27) {
_local2.N = "Item_Zapato2";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Pink sport shoes.";
_local2.t = 1;
_local2.e = 3;
_local2.ds = 7;
_local2.precio = 50;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 28) {
_local2.N = "Item_Zapato3";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Black sandals.";
_local2.t = 1;
_local2.e = 3;
_local2.ds = 7;
_local2.precio = 50;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 2;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 29) {
_local2.N = "Item_BotasElficas";
_local2.sup = true;
_local2.n = 1;
_local2.d = "Resistant elvish boots for adventurers.";
_local2.t = 1;
_local2.e = 3;
_local2.ds = 7;
_local2.precio = 50;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 1;
_local2.CA = 2;
_local2.RF = 1;
} else if (_local3 == 30) {
_local2.N = "Item_Runa_Fuego";
_local2.sup = true;
_local2.n = 1;
_local2.d = "A rock with a symbol painted on.";
_local2.t = 2;
_local2.e = 4;
_local2.ds = 7;
_local2.precio = 100;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 31) {
_local2.N = "Item_Ojo";
_local2.sup = true;
_local2.n = 1;
_local2.d = "The eye of a deity of the Death.";
_local2.t = 2;
_local2.e = 4;
_local2.ds = 7;
_local2.precio = 100;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 32) {
_local2.N = "Mando";
_local2.sup = true;
_local2.n = 1;
_local2.d = "This option opens Setup menu.";
_local2.t = 0;
_local2.e = 1;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else if (_local3 == 33) {
_local2.N = "Item_Remove";
_local2.sup = true;
_local2.n = 1;
_local2.d = "This option removes clothes. The clothes I take off depend of how shy I feel.";
_local2.t = 1;
_local2.e = 1;
_local2.ds = 7;
_local2.precio = 0;
_local2.H = 0;
_local2.M = 0;
_local2.sed = 0;
_local2.CA = 0;
_local2.RF = 0;
} else {
_local2.N = "No Item";
}
DB_obj[_local3].copiar(_local2);
_local3++;
}
}
function str2obj(s) {
var _local2;
var _local3 = new item();
_local2 = 0;
while (_local2 < _global.DB_MAXobj) {
if (s == DB_obj[_local2].N) {
_local3.copiar(DB_obj[_local2]);
}
_local2++;
}
if (_local3.N == "") {
_local3.N = "No Item";
}
return(_local3);
}
function codigoDeTecla(x) {
var _local1;
if (x == 38) {
_local1 = "Up";
} else if (x == 40) {
_local1 = "Down";
} else if (x == 37) {
_local1 = "Left";
} else if (x == 39) {
_local1 = "Right";
} else if (x == 32) {
_local1 = "Space";
} else if (x == 17) {
_local1 = "CTRL";
} else if (x == 46) {
_local1 = "Del";
} else if (x == 13) {
_local1 = "Enter";
} else if (x == 16) {
_local1 = "Shift";
} else if (x == 45) {
_local1 = "Ins";
} else if (x == 8) {
_local1 = "Bspc";
} else if (x == 27) {
_local1 = "Esc";
} else if (x == 9) {
_local1 = "Tab";
} else {
_local1 = String.fromCharCode(x);
}
return(_local1);
}
_global.Titulo = "SEX REALM";
_global.Version = "v0.375";
_global.keyA = 90;
_global.keyB = 88;
_global.keyC = 67;
_global.keyX = 65;
_global.keyY = 83;
_global.keyZ = 68;
_global.keyL = 81;
_global.keyR = 87;
_global.keyUP = 38;
_global.keyDO = 40;
_global.keyLE = 37;
_global.keyRI = 39;
_global.ITEMScOBJ = 4;
_global.ITEMScCLO = 3;
_global.ITEMScWPN = 3;
_global.ITEMSc = (_global.ITEMScOBJ + _global.ITEMScCLO) + _global.ITEMScWPN;
_global.ITEMSf = 3;
_global.MAXITEMS = _global.ITEMSc * _global.ITEMSf;
_global.MAXEQUIP = 9;
_global.DB_MAXobj = 50;
var DB_obj = new Array();
fscommand ("showmenu", "false");
str_preloader = "Warning:\nThis game contains animated violence and weird sex. It's absolutely not recommended for people under 18 and even for most people over.\n\nThis game is totally free. If you've paid for it, you are a dumbass.";
str_desc1 = "This is the amazing story of a gorgeous girl named Beth, and her dangerous adventure to escape from a world of depravity and hazard.";
str_desc2 = "Beth is a beautiful girl that loves spending her time:";
str_desc3 = "reading and studying.\ngoing shopping.\npractising martial arts.\nplaying Warcraft.";
str_desc4 = "She likes looking:";
str_desc5 = "discrete.\nsexy.\nprovocative.";
str_desc6 = "The sex she has had until now is:";
str_desc7 = "with herself only.\nkissing and petting with a boyfriend she had.\ntried penetration and oral with a couple of boyfriends, and she liked it.";
str_intro1 = "One day, when Beth was going back home from class, she found one of her classmates. He was a shy boy who had never said more than five words to her before.";
str_intro2 = "Hi Beth. Can I ask you something?";
str_intro3 = "Sure. Go ahead.";
str_intro4 = "Would you like to go on a date with me?";
str_intro5 = "Mmmmmmmmmm, you must be fucking crazy. Hahahahahaha";
str_intro6 = "What a fucking bitch!";
str_intro7 = "\n\nActually, she was pretty unfair with him. But that day she had received a bad mark in a test and didn't feel any desire to be polite.";
str_intro8 = "And so, this angry boy started his evil vengeance plan.";
str_intro9 = "\n\nHe planned to use an old book he stole from the library of a university in Massachusetts a few years ago. This book contains the translation to pseudocode of ancient and unspeakable necromancy rituals. It also describes how to channel the archaic powers of those relics using a computer.";
str_intro10 = "He bought on eBay all the relics described in the book that he could find. Then, he programmed some malign subroutines to simulate a Virtual Reality environment based in the hentai games he had played. This virtual world was full of the obscene dangers he wanted her to suffer.\n\nHis evil plan was almost finished.";
str_intro11 = "Beth was at home with her computer when suddenly...";
str_intro12 = "\n...her laptop's webcam self-activated and shot a red light.";
str_intro13 = "\n\nWhen the light ceased, she had vanished.";
bytes_cargados = getBytesLoaded();
bytes_totales = getBytesTotal();
var c;
_root.barraCarga.b1 = bytes_cargados;
_root.barraCarga.b2 = 0;
_root.barraCarga.b3 = 0;
_root.barraCarga.Mb1 = bytes_totales;
_root.barraCarga.Mb2 = 1;
_root.barraCarga.Mb3 = 1;
c = (100 * bytes_cargados) / bytes_totales;
_global.carga = Math.round(c) + "%";
if (c > 20) {
_root.Warning._visible = true;
} else {
_root.Warning._visible = false;
}
if (c < 100) {
_root.Boton_over18._visible = false;
} else {
_root.Boton_over18._visible = true;
}
Frame 2
gotoAndPlay ("Preloader");
Frame 3
_global.inGameMenu = false;
_global.ColorParpado = 1;
_global.BasicAP = 0;
_global.Slut = 4;
_global.piel = 1;
_global.cup = 2;
_global.GeekBoca = 1;
_global.GeekMejillas = false;
_global.GeekMano = 1;
var obje = new Array();
var equip = new Array();
var i = 0;
while (i < _global.MAXITEMS) {
obje[i] = new item();
i++;
}
var i = 0;
while (i < _global.MAXEQUIP) {
equip[i] = new item();
i++;
}
init_DB_obj();
_root.equip[6].N = "Item_Camiseta1";
_root.equip[7].N = "Item_Panta1";
_root.equip[3].N = "Item_Zapato1";
stop();
Frame 6
function round(xx) {
var _local1 = Math.round(xx);
if (_local1 > xx) {
_local1--;
}
return(_local1);
}
function mod(x, y) {
return(round(x) - (round(y) * round(x / y)));
}
function max(x, y) {
if (y > x) {
x = y;
}
return(x);
}
function dentrodelcamino(vx, vy) {
return(_root.Camino.hitTest(vx, vy, true));
}
function costeVentaModificado(x) {
return(_root.round((x * (200 - _root.Beth.sexy)) / 200));
}
function moverA(c, x, y, vx, vy) {
var _local3;
var _local2;
if (c._y < (y - vy)) {
_local2 = c._y + vy;
} else if (c._y > (y + vy)) {
_local2 = c._y - vy;
} else {
_local2 = c._y;
}
if (c._x < (x - vx)) {
_local3 = c._x + vx;
c._xscale = 10;
} else if (c._x > (x + vx)) {
_local3 = c._x - vx;
c._xscale = -10;
} else {
_local3 = c._x;
}
if (dentrodelcamino(c._x, _local2)) {
c._y = _local2;
}
if (dentrodelcamino(_local3, c._y)) {
c._x = _local3;
}
}
function textoflotante(t, x, y, c) {
var _local3 = _root.attachMovie("TextoFlotante", "textoF" + _global.numtextos, _root.getNextHighestDepth());
_local3._x = x;
_local3._y = y;
_local3.t = t;
_local3.c = c;
_global.numtextos++;
if (_global.numtextos > 20) {
_global.numtextos = 0;
}
}
function heal(x, px, py) {
var _local2 = ("+" + x) + " HP";
_root.textoflotante(_local2, px, py, 3);
return(x);
}
function da\u00F1o(x, y, px, py) {
x = x - y;
if (x < 0) {
x = 0;
}
var _local3 = ("-" + x) + " HP";
_root.textoflotante(_local3, px, py, 2);
return(x);
}
function expMob(n) {
var _local1 = 2;
if (n > 1) {
_local1 = round(1.5 * expMob(n - 1));
}
return(_local1);
}
function exp(x, px, py) {
var _local2 = ("+" + x) + " EXP";
_root.Beth.XP = _root.Beth.XP + x;
_root.textoflotante(_local2, px, py, 1);
if (_root.Beth.XP >= nextlevel(_root.Beth.level)) {
_root.textoflotante("LEVEL UP!", _root.Beth._x, _root.Beth._y, 3);
_root.Beth.level++;
_root.Beth.MAP = _root.Beth.level * 10;
_root.Beth.MHP = (_root.Beth.level * 5) + 5;
if (_root.Beth.MMP > 0) {
_root.Beth.MMP = _root.Beth.level * 5;
_root.Beth.MP = _root.Beth.MP + 5;
}
_root.Beth.HP = _root.Beth.HP + 5;
checkRopa();
}
return(x);
}
function d(x, y) {
return(round(round(Math.random() * x) + y));
}
function barra(cl, sc, x, Mx, y, My, z, Mz) {
var _local1 = cl.attachMovie("Barras3", "Bar", cl.getNextHighestDepth());
_local1.b3 = 1;
_local1.Mb3 = 1;
_local1._xscale = sc;
_local1._yscale = sc;
_local1._y = (-cl._height) * 10;
_local1.b1 = x;
_local1.b2 = y;
_local1.b3 = z;
_local1.Mb1 = Mx;
_local1.Mb2 = My;
_local1.Mb3 = Mz;
return(_local1);
}
function darSombra(cl) {
var _local3 = _root.Sombra.attachMovie("sombra", "sombra" + _global.SOMBRAS, _root.Sombra.getNextHighestDepth());
_local3.objetivo = cl;
_global.SOMBRAS++;
return(_local3);
}
function darSombraInmovil(cl) {
var _local3 = _root.Sombra.attachMovie("sombra_inmovil", "sombra" + _global.SOMBRAS, _root.Sombra.getNextHighestDepth());
_local3.objetivo = cl;
_global.SOMBRAS++;
return(_local3);
}
function nextlevel(x) {
var _local2;
if (x < MAXLEVEL) {
return(levelExp[x]);
}
return(levelExp[MAXLEVEL]);
}
function distancia(c1, c2, vx, vy) {
return((Math.abs(c2._y - c1._y) < vy) && (Math.abs(c2._x - c1._x) < vx));
}
function darProfundidad(c) {
var _local3 = _root.ancla.getDepth() + c._y;
return(c);
}
function lanzarConjuro(caster, Sspell, altura, _arg6, abso) {
var _local2 = 0;
while (_root.spell[_local2]._visible && (_local2 < MAXspell)) {
_local2++;
}
if (_local2 < MAXspell) {
_root.spell[_local2]._visible = true;
_root.spell[_local2]._xscale = caster._xscale * 10;
_root.spell[_local2]._x = caster._x + (caster._xscale * 2);
_root.spell[_local2]._y = caster._y;
_root.spell[_local2].vel = (caster._xscale * 4) / 10;
var _local4 = _root.spell[_local2].attachMovie(Sspell, "S_FB", _root.spell[_local2].getNextHighestDepth());
_local4._y = -altura;
_root.spell[_local2].clip = _local4;
_root.spell[_local2].fin = false;
_root.spell[_local2].timer = 30;
_root.spell[_local2]["da\u00F1o"] = _arg6;
_root.spell[_local2].abso = abso;
}
}
function itemInv(m, c1, n) {
var _local7;
var _local4;
var _local3 = m.attachMovie(c1, "itemInv" + n, m.getNextHighestDepth());
_local7 = _local3._height;
_local4 = _local3._width;
_local4 = max(_local7, _local4);
_local3._height = (100 * _local3._height) / _local4;
_local3._width = (100 * _local3._width) / _local4;
_local3._x = (((100 - _local3.getBounds(m).xMax) - ((100 - _local3._width) / 2)) + 50) + (150 * _root.round(n / _global.ITEMSf));
_local3._y = (100 - _local3.getBounds(m).yMax) + (100 + (200 * _root.mod(n, _global.ITEMSf)));
_local3._visible = true;
_local3.onEnterFrame = _root.nula;
return(_local3);
}
function addToInv(o) {
var _local3;
var _local4 = -1;
var _local6;
if (o.N == "Item_Anillo_Elfita") {
_root.elfita._visible = false;
_root.dawm._visible = false;
_root.exp(3 * _root.expMob(4), _root.Beth._x, _root.Beth._y);
}
_local3 = _global.MAXITEMS - 1;
while (_local3 > -1) {
if (o.N == _root.obje[_local3].N) {
if (_root.obje[_local3].n > 0) {
_local4 = _local3;
}
}
_local3--;
}
if (_local4 > -1) {
_root.obje[_local4].n = _root.obje[_local4].n + o.n;
} else {
if (o.t == 0) {
_local6 = 0;
o.e = -1;
} else if (o.t == 1) {
_local6 = _global.ITEMScOBJ;
} else {
_local6 = _global.ITEMScOBJ + _global.ITEMScCLO;
}
_local6 = (_local6 * _global.ITEMSf) - 1;
_local3 = _global.MAXITEMS - 1;
while (_local3 > _local6) {
if (_root.obje[_local3].n == 0) {
_local4 = _local3;
}
_local3--;
}
_root.obje[_local4].copiar(o);
_root.obje[_local4].clip = _root.itemInv(_root.Inventario, o.N, _local4);
}
}
function checkRopa() {
var _local3;
_root.Beth.sexy = 10 + _root.Beth.level;
_root.Beth.CAF = 0;
_root.Beth.RF = 0;
_local3 = 0;
while (_local3 < _global.MAXEQUIP) {
if (equip[_local3].N != "") {
_root.Beth.sexy = _root.Beth.sexy + equip[_local3].sed;
_root.Beth.CAF = _root.Beth.CAF + equip[_local3].CA;
_root.Beth.RF = _root.Beth.RF + equip[_local3].RF;
}
_local3++;
}
if (equip[6].N != "") {
_root.Beth.sexy = _root.Beth.sexy - equip[1].sed;
}
if (equip[7].N != "") {
_root.Beth.sexy = _root.Beth.sexy - equip[2].sed;
}
if ((equip[6].N == "") && (equip[1].N == "")) {
_root.Beth.sexy = _root.Beth.sexy + 3;
}
if ((equip[7].N == "") && (equip[2].N == "")) {
_root.Beth.sexy = _root.Beth.sexy + 3;
}
_local3 = 0;
while (_local3 < _global.MAXEQUIP) {
_root.Beth.slot[_local3] = equip[_local3].N;
_local3++;
}
_root.Beth.vestir();
}
function equiparObjeto(i) {
var _local2 = obje[i].e;
if (obje[i].N == "Item_Remove") {
desequiparObjeto(0);
desequiparObjeto(4);
desequiparObjeto(5);
desequiparObjeto(8);
if (_root.Beth.slut > 0) {
desequiparObjeto(3);
}
if (_root.Beth.slut > 9) {
desequiparObjeto(6);
}
if (_root.Beth.slut > 14) {
desequiparObjeto(7);
}
if (_root.Beth.slut > 29) {
desequiparObjeto(1);
}
if (_root.Beth.slut > 49) {
desequiparObjeto(2);
}
} else {
if (obje[i].N == "Item_Ojo") {
_root.Beth.HP = round(_root.Beth.HP / 2);
}
if (equip[_local2].N != "") {
desequiparObjeto(_local2);
}
equip[_local2].copiar(obje[i]);
equip[_local2].clip = obje[i].clip.duplicateMovieClip("equip" + _local2, _root.Inventario.getNextHighestDepth());
equip[_local2].clip._x = 0;
equip[_local2].clip._y = 0;
equip[_local2].clip._xscale = equip[_local2].clip._xscale * 0.75;
equip[_local2].clip._yscale = equip[_local2].clip._yscale * 0.75;
equip[_local2].clip._x = (75 - equip[_local2].clip.getBounds(_root.Inventario).xMax) - ((75 - equip[_local2].clip._width) / 2);
equip[_local2].clip._y = 75 - equip[_local2].clip.getBounds(_root.Inventario).yMax;
equip[_local2].clip._x = equip[_local2].clip._x + (1560 + (355 * _root.round(_local2 / 4)));
equip[_local2].clip._y = equip[_local2].clip._y + (100 + (100 * _root.mod(_local2, 4)));
}
checkRopa();
}
function desequiparObjeto(n) {
equip[n].N = "";
equip[n].clip.removeMovieClip();
checkRopa();
}
function usarObjeto(i) {
if (obje[i].N == "Mando") {
_root.Inventario.attachMovie("Menu_Setup", "Menu_Setup", _root.Inventario.getNextHighestDepth());
_global.inGameMenu = true;
}
if (obje[i].M > 0) {
if (_root.Beth.MMP > 1) {
_root.Beth.MP = _root.Beth.MP + obje[i].M;
obje[i].n--;
}
}
if (obje[i].H > 0) {
_root.Beth.HP = _root.Beth.HP + _root.heal(obje[i].H, _root.Beth._x, _root.Beth._y);
obje[i].n--;
}
if (obje[i].H < 0) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(-obje[i].H, 0, _root.Beth._x, _root.Beth._y);
obje[i].n--;
}
if (obje[i].n < 1) {
obje[i].N = "";
obje[i].d = "";
obje[i].clip.removeMovieClip();
}
if (_root.Beth.HP > _root.Beth.MHP) {
_root.Beth.HP = _root.Beth.MHP;
}
if (_root.Beth.MP > _root.Beth.MMP) {
_root.Beth.MP = _root.Beth.MMP;
}
}
function isItemInInv(it, cantidad) {
var _local3 = false;
var _local2;
_local2 = 0;
while (_local2 < _global.MAXITEMS) {
if (obje[_local2].N == it) {
if (obje[_local2].n >= cantidad) {
_local3 = true;
}
}
_local2++;
}
return(_local3);
}
function removeItemInInv(it, cantidad) {
var _local2;
var _local3 = -1;
_local2 = 0;
while (_local2 < _global.MAXITEMS) {
if (obje[_local2].N == it) {
_local3 = _local2;
}
_local2++;
}
if (_local3 >= 0) {
if (obje[_local3].n >= cantidad) {
obje[_local3].n = obje[_local3].n - cantidad;
if (obje[_local3].n < 1) {
obje[_local3].N = "";
obje[_local3].d = "";
obje[_local3].clip.removeMovieClip();
}
}
}
}
function addItemToTrader(trader, it, cantidad) {
var _local3;
var _local4 = -1;
_local3 = 0;
while (_local3 < _global.MAXITEMS) {
if (trader.obje[_local3].N == it) {
_local4 = _local3;
trader.obje[_local4].n = trader.obje[_local4].n + cantidad;
}
_local3++;
}
if (_local4 < 0) {
_local3 = _global.MAXITEMS - 1;
while (_local3 > -1) {
if (trader.obje[_local3].N == "") {
_local4 = _local3;
}
_local3--;
}
trader.obje[_local4].copiar(_root.str2obj(it));
trader.obje[_local4].n = cantidad;
}
}
function removeItemInTrader(trader, it, cantidad) {
var _local2;
_local2 = 0;
while (_local2 < _global.MAXITEMS) {
if (trader.obje[_local2].N == it) {
trader.obje[_local2].n = trader.obje[_local2].n - cantidad;
if (trader.obje[_local2].n <= 0) {
trader.obje[_local2].N = "";
trader.obje[_local2].n = 0;
trader.obje[_local2].clip.removeMovieClip();
}
}
_local2++;
}
}
function crearTraderInv(trader) {
var _local3;
_local3 = 0;
while (_local3 < _global.MAXITEMS) {
trader.obje[_local3].clip = _root.itemInv(_root.Inventario.trade, trader.obje[_local3].N, _local3);
_local3++;
}
}
function removeTraderInv(trader) {
var _local2;
_local2 = 0;
while (_local2 < _global.MAXITEMS) {
trader.obje[_local2].clip.removeMovieClip();
_local2++;
}
}
function tradeItem(trader, s) {
var _local4 = new item();
var _local3;
var _local5;
if (_root.Beth.subinv) {
_local4.copiar(trader.obje[s]);
_local4.n = 1;
_local4.precio = costeVentaModificado(_local4.precio);
if (isItemInInv("Item_Gold", _local4.precio)) {
removeItemInInv("Item_Gold", _local4.precio);
removeItemInTrader(trader, _local4.N, 1);
addToInv(_local4);
} else {
_root.decir(_root.Beth, "I don't have enough gold.", 50);
}
} else {
_local4.copiar(_root.obje[s]);
if ((_local4.N == "Item_Gold") || (_local4.precio < 1)) {
_root.decir(_root.Beth, "I can't sell this item.", 50);
} else {
_local5 = false;
_local3 = 0;
while (_local3 < _global.MAXEQUIP) {
if (_local4.N == _root.equip[_local3].N) {
_local5 = true;
}
_local3++;
}
if (_local5) {
_root.decir(_root.Beth, "I can't sell an item I'm wearing.", 50);
} else {
addItemToTrader(trader, _local4.N, 1);
removeItemInInv(_local4.N, 1);
_local4.copiar(_root.str2obj("Item_Gold"));
_local4.n = _root.round(_root.obje[s].precio / 4);
addToInv(_local4);
removeTraderInv(trader);
crearTraderInv(trader);
}
}
}
}
function crearInventarioInicial() {
_root.addToInv(_root.str2obj("Mando"));
_root.addToInv(_root.str2obj("Item_Remove"));
_root.addToInv(_root.str2obj("Item_SujeB"));
_root.addToInv(_root.str2obj("Item_Braguitas"));
_root.addToInv(_root.str2obj(_root.equip[8].N));
_root.addToInv(_root.str2obj(_root.equip[6].N));
_root.addToInv(_root.str2obj(_root.equip[7].N));
_root.addToInv(_root.str2obj(_root.equip[3].N));
var _local3 = 0;
while (_local3 < _global.MAXITEMS) {
if (_root.obje[_local3].e >= 0) {
_root.equiparObjeto(_local3);
}
_local3++;
}
}
function nula() {
}
function addSprite(c) {
var _local1;
var _local2 = -1;
_local1 = 0;
while (_local1 < numsprites) {
if (c == sprite[_local1]) {
_local2 = _local1;
}
_local1++;
}
if (_local2 < 0) {
sprite[numsprites] = c;
numsprites++;
}
}
function ordenarSprites() {
var _local2;
var _local1;
var _local3;
_local2 = 1;
while (_local2 < numsprites) {
if (sprite[_local2]._y < sprite[_local2 - 1]._y) {
_local1 = _local2;
while ((_local1 > 0) && (sprite[_local1]._y < sprite[_local1 - 1]._y)) {
_local3 = sprite[_local1];
sprite[_local1] = sprite[_local1 - 1];
sprite[_local1 - 1] = _local3;
_local1--;
}
}
_local2++;
}
_local2 = 1;
while (_local2 < numsprites) {
if (sprite[_local2].getDepth() < sprite[_local2 - 1].getDepth()) {
_local1 = _local2;
while ((_local1 > 0) && (sprite[_local1].getDepth() < sprite[_local1 - 1].getDepth())) {
sprite[_local1].swapDepths(sprite[_local1 - 1]);
_local1--;
}
}
_local2++;
}
}
function labelNumber(c, etiqueta) {
c.gotoAndStop(etiqueta);
return(c._currentframe);
}
_global.numtextos = 0;
_global.SOMBRAS = 0;
_root.Camino._visible = false;
var numsprites = 0;
var sprite = new Array();
var MAXspell = 10;
var spell = new Array();
var levelExp = new Array();
var MAXLEVEL = 100;
levelExp[0] = 0;
var i = 1;
while (i < MAXLEVEL) {
levelExp[i] = levelExp[i - 1] + (10 * expMob(i));
i++;
}
spell[0] = Spell0;
spell[1] = Spell1;
spell[2] = Spell2;
spell[3] = Spell3;
spell[4] = Spell4;
spell[5] = Spell5;
spell[6] = Spell6;
spell[7] = Spell7;
spell[8] = Spell8;
spell[9] = Spell9;
_root.RataBoss._visible = false;
_root.slime_boss._visible = false;
_root.Gnomo._visible = false;
_root.dawm._visible = false;
_root.Item_Carta_Gnomo._visible = false;
_root.Item_Carta_Vieja._visible = false;
_root.cofre1_botin1._visible = false;
_root.cofre1_botin2._visible = false;
_root.cofre1_botin3._visible = false;
_root.cofre1_botin4._visible = false;
_root.cofre1_botin5._visible = false;
_root.cofre1_botin6._visible = false;
_global.muertesPorRata = 0;
stop();
Instance of Symbol 298 MovieClip [Item_Anillo_Elfita] "Anillo_Elfita" in Frame 6
onClipEvent (enterFrame) {
if (this._visible) {
if (_root.elfita.estado == 3) {
if (_root.lizard_boss.HP < 1) {
this._x = _root.lizard_boss._x;
this._y = _root.lizard_boss._y + 5;
}
}
}
}
Instance of Symbol 613 MovieClip "Beth" in Frame 6
onClipEvent (load) {
function mover_beth(xx, yy) {
var _local4;
var _local3;
var _local5;
_local4 = this._x + xx;
_local3 = this._y + yy;
_local5 = _root.dentrodelcamino(_local4, _local3);
if (_local5) {
if (xx > 0) {
this._xscale = 10;
}
if (xx < 0) {
this._xscale = -10;
}
this._x = _local4;
this._y = _local3;
if (!andando) {
andando = true;
ac = frame_andar1;
}
tecla = true;
}
}
function decir(c, t) {
_root.Bocadillo_Beth.tiempo = t;
_root.Bocadillo_Beth.texto = c;
}
function da\u00F1oPatadaBeth() {
if (AP < MAP) {
if ((Math.random() * MAP) > AP) {
AP++;
}
}
return(_root.d(6, AP / 10));
}
function nosesale() {
if (this._xscale > 0) {
if (!_root.ZonaPatadas.hitTest(this._x, this._y, true)) {
while ((!_root.dentrodelcamino(this.getBounds(_root).xMax, this._y)) && (_root.dentrodelcamino(this._x, this._y))) {
this._x = this._x - 2;
}
if (!_root.dentrodelcamino(this._x, this._y)) {
this._x = this._x + 2;
}
}
} else if (!_root.ZonaPatadas.hitTest(this._x, this._y, true)) {
while ((!_root.dentrodelcamino(this.getBounds(_root).xMin, this._y)) && (_root.dentrodelcamino(this._x, this._y))) {
this._x = this._x + 2;
}
if (!_root.dentrodelcamino(this._x, this._y)) {
this._x = this._x - 2;
}
}
}
_global.interaccion = 0;
var frame_patada = _root.labelNumber(this, "patada");
var frame_respirar = _root.labelNumber(this, "fin_de_respiracion");
var frame_andar1 = _root.labelNumber(this, "andar");
var frame_andar2 = _root.labelNumber(this, "andar2");
var frame_andar_fin = _root.labelNumber(this, "fin_de_andar");
var frame_spell = _root.labelNumber(this, "spell");
var estado = 101;
var level = 1;
var HP = 10;
var MP = 0;
var SP = 0;
var XP = 0;
var AP = 0;
var CAF = 0;
var RF = 0;
var slut = _global.Slut;
var sexy = 9;
var MHP = 10;
var MMP = 1;
var MSP = 100;
var MAP = 10;
var vel = 3;
var vel_2 = 2;
var tecla = false;
var andando = false;
var stats = false;
_root.Stats._visible = false;
var inventario = false;
_root.Inventario._visible = false;
var subinv = false;
var confirmacion = false;
var nopress;
_root.addSprite(this);
var sombra = _root.darSombra(this);
var velx2 = (vel * 2);
var gui\u00F1o = 0;
var raper;
var trader;
}
onClipEvent (enterFrame) {
var i;
var j;
var ac;
tecla = false;
if (estado < 20) {
i = 0;
while (i < _root.MAXspell) {
if (_root.spell[i]._visible) {
if (_root.spell[i].timer > 0) {
if (_root.distancia(_root.spell[i], this, 10, 10)) {
_root.spell[i].timer = 0;
var abso = CAF;
if (_root.spell[i].abso == 1) {
abso = RF;
}
this._xscale = (-_root.spell[i]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[i]["da\u00F1o"], abso, this._x, this._y);
HP = HP - ac;
}
}
}
i++;
}
}
if (!Key.isDown(nopress)) {
nopress = 0;
}
if (estado == 0) {
if (_root.Inventario._visible) {
if (nopress == 0) {
if (confirmacion) {
if (Key.isDown(_global.keyA)) {
confirmacion = false;
nopress = _global.keyA;
}
if (Key.isDown(_global.keyB)) {
confirmacion = false;
nopress = _global.keyB;
_root.tradeItem(trader, _root.Inventario.selec);
}
} else if (!_global.inGameMenu) {
if (Key.isDown(_global.keyRI)) {
i = _root.Inventario.selec + _global.ITEMSf;
if (i < _global.MAXITEMS) {
_root.Inventario.selec = i;
}
nopress = _global.keyRI;
}
if (Key.isDown(_global.keyLE)) {
i = _root.Inventario.selec - _global.ITEMSf;
if (i >= 0) {
_root.Inventario.selec = i;
}
nopress = _global.keyLE;
}
if (Key.isDown(_global.keyDO)) {
if (_root.mod(_root.Inventario.selec, _global.ITEMSf) < (_global.ITEMSf - 1)) {
_root.Inventario.selec++;
} else if (trader != null) {
_root.Inventario.selec = _root.Inventario.selec - _root.mod(_root.Inventario.selec, _global.ITEMSf);
subinv = subinv == false;
}
nopress = _global.keyDO;
}
if (Key.isDown(_global.keyUP)) {
if (_root.mod(_root.Inventario.selec, _global.ITEMSf) > 0) {
_root.Inventario.selec--;
} else if (trader != null) {
_root.Inventario.selec = _root.Inventario.selec - ((_root.mod(_root.Inventario.selec, _global.ITEMSf) - _global.ITEMSf) + 1);
subinv = subinv == false;
}
nopress = _global.keyUP;
}
if (Key.isDown(_global.keyC)) {
if (_root.obje[_root.Inventario.selec].n > 0) {
if (_root.obje[_root.Inventario.selec].e >= 0) {
_root.equiparObjeto(_root.Inventario.selec);
} else {
_root.usarObjeto(_root.Inventario.selec);
}
}
nopress = _global.keyC;
}
if (Key.isDown(_global.keyA)) {
if (trader != null) {
if (subinv && (trader.obje[_root.Inventario.selec].n > 0)) {
confirmacion = true;
}
if ((!subinv) && (_root.obje[_root.Inventario.selec].n > 0)) {
confirmacion = true;
}
nopress = _global.keyA;
}
}
}
}
} else {
if (Key.isDown(_global.keyRI)) {
mover_beth(vel, 0);
}
if (Key.isDown(_global.keyLE)) {
mover_beth(-vel, 0);
}
if (Key.isDown(_global.keyDO)) {
mover_beth(0, vel_2);
}
if (Key.isDown(_global.keyUP)) {
mover_beth(0, -vel_2);
}
if (Key.isDown(_global.keyC)) {
gotoAndPlay ("patada");
estado = 3;
tecla = true;
ac = 0;
}
if (Key.isDown(_global.keyB)) {
if (nopress == 0) {
if ((_root.equip[4].N != "") && (_root.equip[4].N != "Item_Ojo")) {
gotoAndPlay ("spell");
ac = 0;
estado = 10;
tecla = true;
} else {
_root.decir(this, "No Rune equiped.", 50);
}
nopress = _global.keyB;
}
} else if (Key.isDown(_global.keyA)) {
if (nopress == 0) {
estado = 18;
ac = 0;
tecla = false;
nopress = _global.keyA;
}
} else if (Key.isDown(_global.keyX)) {
if (nopress == 0) {
estado = 19;
ac = 0;
tecla = false;
nopress = _global.keyX;
}
}
if (!tecla) {
gotoAndStop ("parada");
andando = false;
if (gui\u00F1o == 0) {
i = Math.random();
if (i < 0.0001) {
Set("gui\u00F1o", 1);
}
}
} else if (!_root.dentrodelcamino(this._x, this._y)) {
mover_beth(velx2, -velx2);
mover_beth(velx2, velx2);
mover_beth(-velx2, -velx2);
mover_beth(-velx2, velx2);
}
}
} else if (estado == 3) {
ac++;
nosesale();
if (ac > 8) {
estado = 0;
andando = false;
ac = -20;
}
vestir();
} else if (estado == 10) {
ac++;
nosesale();
if (ac == 3) {
} else if (ac > 10) {
estado = 0;
andando = false;
ac = -20;
} else if (ac == 7) {
if (MP > 1) {
MP--;
_root.lanzarConjuro(this, "Spell_Fireball", 47, 5, 1);
} else {
_root.decir(this, "This spell needs more magic power.", 50);
}
} else if (ac > 8) {
gotoAndStop((frame_spell - ac) + 12);
}
} else if (estado == 18) {
ac++;
if (ac > 2) {
estado = 0;
}
} else if (estado == 19) {
ac++;
if (ac > 2) {
estado = 0;
}
} else if (estado == 20) {
} else if (estado == 21) {
ac--;
if (ac > 71) {
gotoAndStop(ac);
Set("gui\u00F1o", 0);
expboca(3);
}
if (ac == 71) {
var Eclip = _root.attachMovie("PantallaNegra", "PN", _root.getNextHighestDepth());
Eclip._x = _root.Camara._x;
Eclip._y = _root.Camara._y;
Eclip._alpha = 0;
}
if ((ac >= 21) && (ac < 71)) {
Eclip._alpha = ((50 - ac) + 21) * 2;
expojod(2);
expojoi(2);
} else if (ac == 20) {
Eclip.removeMovieClip();
gotoAndPlay ("intro");
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
SP = 0;
}
} else if (estado == 101) {
gotoAndPlay ("intro");
AP = _global.BasicAP;
estado = 999;
} else if (estado == 102) {
ac--;
if (ac > (frame_patada - 13)) {
gotoAndStop(ac);
Set("gui\u00F1o", 0);
expcejai(2);
expcejad(2);
expboca(4);
} else if (ac < 700) {
ac = 0;
estado = 103;
}
} else if (estado == 103) {
ac++;
if (ac > 10) {
estado = 104;
var Eclip = _root.attachMovie("Screen_Muerte", "SM", _root.getNextHighestDepth());
Eclip._x = _root.Camara._x;
Eclip._y = _root.Camara._y;
}
} else if (estado == 104) {
if ((Key.isDown(_global.keyA) || Key.isDown(_global.keyB)) || Key.isDown(_global.keyC)) {
for (isMC in _root) {
if (typeof(_root[isMC]) == "movieclip") {
_root[isMC].removeMovieClip();
}
}
_root.gotoAndStop("Menu");
}
} else if (estado == 151) {
ac++;
if (ac == 10) {
var Eclip = _root.attachMovie("PantallaNegra", "PN", _root.getNextHighestDepth());
Eclip._x = _root.Camara._x;
Eclip._y = _root.Camara._y;
Eclip._alpha = 0;
}
if ((ac > 10) && (ac <= 60)) {
Eclip._alpha = (ac - 10) * 2;
} else if (ac == 90) {
Eclip.removeMovieClip();
if ((_global.muertesPorRata > 1) && (_global.muertesPorRata < 4)) {
_root.Gnomo._visible = true;
} else if (_global.muertesPorRata == 4) {
_root.Item_Carta_Gnomo._visible = true;
}
this._x = _root.CamaGnomo._x;
this._y = _root.CamaGnomo._y;
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
expojod(2);
expojoi(2);
expboca(2);
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
gotoAndPlay ("intro");
} else if (ac == 100) {
if (_global.muertesPorRata == 0) {
_root.decir(this, "How did I get here? I remember being attacked by rats.", 150);
} else if (_global.muertesPorRata == 1) {
_root.decir(this, "Once again, I'm here. What happened after I fainted?", 150);
} else if (_global.muertesPorRata == 2) {
_root.decir(this, "Who are you?", 50);
} else if (_global.muertesPorRata == 3) {
_root.decir(this, "It seems that the gnome saved me once again", 150);
} else if (_global.muertesPorRata == 4) {
_root.decir(this, "Saved once again. But the gnome is not here.", 150);
}
_global.muertesPorRata++;
} else if (ac == 115) {
if (_global.muertesPorRata == 3) {
_root.decir(_root.Gnomo, "I'm just a gnome that lives in this cave and have saved you from the rats three times.", 200);
_global.muertesPorRata = _global.muertesPorRata + 10;
}
if (_global.muertesPorRata == 4) {
_root.decir(_root.Gnomo, "Hi again, sexy lady.", 100);
_global.muertesPorRata = _global.muertesPorRata + 10;
}
if (_global.muertesPorRata == 5) {
_global.muertesPorRata = _global.muertesPorRata + 10;
}
}
if ((_global.muertesPorRata > 10) && (HP < 1)) {
estado = 104;
var Eclip = _root.attachMovie("Screen_Muerte", "SM", _root.getNextHighestDepth());
Eclip._x = _root.Camara._x;
Eclip._y = _root.Camara._y;
}
} else if (estado == 152) {
ac++;
raper.barrita.b3 = raper.SP;
if (ac == 15) {
raper.gotoAndPlay("andar");
} else if ((ac > 15) && (ac < 100)) {
_root.moverA(raper, this._x + (this._xscale * 2), this._y, 2, 2);
if ((_root.abs((raper._x - this._x) - (this._xscale * 2)) + _root.abs(raper._y - this._y)) < 5) {
raper.gotoAndStop("parada");
raper._xscale = -this._xscale;
ac = 100;
}
} else if (ac == 130) {
raper._x = this._x;
raper._y = this._y + 0.1;
this.gotoAndStop("rape1");
raper.gotoAndStop("rape1");
i = this._currentframe;
j = raper._currentframe;
raper.barrita._x = raper.barrita._x - 250;
raper.barrita._y = raper.barrita._y - 200;
} else if ((ac > 130) && (ac < 149)) {
this.gotoAndStop((i + ac) - 130);
raper.gotoAndStop((j + ac) - 130);
} else if (ac == 149) {
raper.gotoAndPlay((j + ac) - 130);
expboca(6);
exprubor(1);
} else if (ac == 200) {
raper.gotoAndPlay("rape1_start");
expboca(8);
} else if (ac == 201) {
if (raper.SP < 100) {
ac--;
}
} else if (ac == 300) {
expboca(4);
raper.gotoAndStop("rape1_start");
} else if ((ac > 301) && (ac < 420)) {
if (raper._currentframe > j) {
raper.gotoAndStop(raper._currentframe - 1);
} else if (j < 10000) {
j = 10000;
raper.gotoAndStop("parada");
raper.SP = 0;
raper.barrita._x = raper.barrita._x + 250;
raper.barrita._y = raper.barrita._y + 200;
raper._x = raper._x - ((25 * raper._xscale) / 10);
raper.estado = 0;
}
if (this._currentframe > (i + 6)) {
this.gotoAndStop(this._currentframe - 1);
} else if (i < 10000) {
i = 10000;
expmanod(1);
this.gotoAndPlay("rape1_fin1");
} else if ((ac % 20) == 0) {
this.gotoAndPlay(this._currentframe + 1);
}
} else if (ac == 421) {
gotoAndPlay ("rape1_fin1_estornudo2");
} else if (ac == 500) {
estado = 104;
var Eclip = _root.attachMovie("Screen_Muerte", "SM", _root.getNextHighestDepth());
Eclip._x = _root.Camara._x;
Eclip._y = _root.Camara._y;
}
}
if (Key.isDown(_global.keyL)) {
if (nopress == 0) {
if (stats == false) {
stats = true;
} else {
stats = false;
}
_root.Stats._visible = stats;
nopress = _global.keyL;
}
}
if (Key.isDown(_global.keyR)) {
if (nopress == 0) {
if (!_global.inGameMenu) {
if (inventario == false) {
inventario = true;
} else {
inventario = false;
if (trader != null) {
_root.removeTraderInv(trader);
trader.comerciando = false;
trader = null;
subinv = false;
}
_root.Inventario.trade._visible = false;
}
_root.Inventario._visible = inventario;
nopress = _global.keyR;
if (estado == 0) {
gotoAndStop ("parada");
andando = false;
}
}
}
}
if (gui\u00F1o > 0) {
gui\u00F1o++;
if (gui\u00F1o < 6) {
expboca(5);
} else if (gui\u00F1o < 12) {
expcejad(3);
expojod(2);
} else if (gui\u00F1o < 18) {
expcejad(1);
expojod(1);
} else {
expboca(3);
Set("gui\u00F1o", 0);
}
}
if (estado == 0) {
if (!andando) {
ac++;
if (ac < 2) {
} else if (ac < frame_respirar) {
gotoAndStop(ac);
} else if (ac < (frame_respirar + 10)) {
gotoAndStop(frame_respirar);
} else if (ac < ((frame_respirar + frame_respirar) + 9)) {
gotoAndStop(((frame_respirar + frame_respirar) + 10) - ac);
} else {
ac = -20;
if (SP > 1) {
SP = SP - 2;
if (SP < 0) {
SP = 0;
}
}
}
} else {
ac++;
if (ac < frame_andar) {
ac = frame_andar;
} else if (ac > frame_andar_fin) {
ac = frame_andar2;
sudor++;
if (SP > 0) {
SP--;
}
}
gotoAndStop(ac);
}
}
if (this.HP < 1) {
if (estado < 100) {
ac = frame_patada - 2;
estado = 102;
}
}
_root.ordenarSprites();
}
Instance of Symbol 385 MovieClip [Barras3] "Barras_Beth" in Frame 6
onClipEvent (load) {
this._xscale = 20;
this._yscale = 10;
}
onClipEvent (enterFrame) {
this._x = _root.Camara._x - 68;
this._y = _root.Camara._y - 58;
this.b1 = _root.Beth.HP;
this.b2 = _root.Beth.MP;
this.b3 = _root.Beth.SP;
this.Mb1 = _root.Beth.MHP;
this.Mb2 = _root.Beth.MMP;
this.Mb3 = _root.Beth.MSP;
}
Instance of Symbol 1186 MovieClip "Stats" in Frame 6
onClipEvent (load) {
this._xscale = 10;
this._yscale = 10;
}
onClipEvent (enterFrame) {
this._x = _root.Camara._x - 102;
this._y = _root.Camara._y - 80;
}
Instance of Symbol 1221 MovieClip "Inventario" in Frame 6
onClipEvent (load) {
function cade(i) {
var _local1;
if (i > 0) {
_local1 = "x" + i;
} else {
_local1 = "";
}
return(_local1);
}
function tipoDeItem(x) {
var _local1;
if (x == 0) {
_local1 = "Consumable";
} else if (x == 1) {
_local1 = "Wearable";
} else if (x == 2) {
_local1 = "Weapon";
} else {
_local1 = "";
}
return(_local1);
}
function statsDeItem(it) {
var _local2 = "";
if (it.H > 0) {
_local2 = _local2 + (("+" + it.H) + " HP\n");
}
if (it.H < 0) {
_local2 = _local2 + (it.H + " HP\n");
}
if (it.M > 0) {
_local2 = _local2 + (("+" + it.M) + " MP\n");
}
if (it.sed > 0) {
_local2 = _local2 + (("+" + it.sed) + " Seduction\n");
}
if (it.CA > 0) {
_local2 = _local2 + (("+" + it.CA) + " Armour\n");
}
if (it.RF > 0) {
_local2 = _local2 + (("+" + it.RF) + " Fire resistance\n");
}
return(_local2);
}
this._xscale = 10;
this._yscale = 10;
var altoDelFondo = (fondo._height + 50);
trade._y = -altoDelFondo;
trade._visible = false;
var cuadroI = new Array();
var textoI = new Array();
var trade_cuadroI = new Array();
var trade_textoI = new Array();
var selec = 0;
var descripcion;
var i;
var j;
var k;
var it = new item();
k = 0;
i = 0;
while (i < _global.ITEMSc) {
j = 0;
while (j < _global.ITEMSf) {
cuadroI[k] = this.attachMovie("cuadroinv", (("ci" + i) + "_") + j, this.getNextHighestDepth());
cuadroI[k]._x = 50 + (150 * i);
cuadroI[k]._y = 100 + (200 * j);
cuadroI[k].onMouseDown = function () {
if (_root.Inventario._visible) {
if (!_global.inGameMenu) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local5;
var _local4;
_local5 = _root.round((_root.Inventario._xmouse - 50) / 150);
_local4 = _root.round((_root.Inventario._ymouse - 100) / 200);
_root.Inventario.selec = (_local5 * _global.ITEMSf) + _local4;
_root.Beth.subinv = false;
}
}
}
};
textoI[k] = this.attachMovie("textoinv", (("ti" + i) + "_") + j, this.getNextHighestDepth());
textoI[k]._x = 50 + (150 * i);
textoI[k]._y = 225 + (200 * j);
trade_cuadroI[k] = this.trade.attachMovie("cuadroinv", (("ci" + i) + "_") + j, this.trade.getNextHighestDepth());
trade_cuadroI[k]._x = 50 + (150 * i);
trade_cuadroI[k]._y = 100 + (200 * j);
trade_cuadroI[k].onMouseDown = function () {
if (_root.Inventario._visible) {
if (_root.Inventario.trade._visible) {
if (!_global.inGameMenu) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
var _local5;
var _local4;
_local5 = _root.round((_root.Inventario.trade._xmouse - 50) / 150);
_local4 = _root.round((_root.Inventario.trade._ymouse - 100) / 200);
_root.Inventario.selec = (_local5 * _global.ITEMSf) + _local4;
_root.Beth.subinv = true;
}
}
}
}
};
trade_textoI[k] = this.trade.attachMovie("textoinv", (("ti" + i) + "_") + j, this.trade.getNextHighestDepth());
trade_textoI[k]._x = 50 + (150 * i);
trade_textoI[k]._y = 225 + (200 * j);
k++;
j++;
}
i++;
}
_root.crearInventarioInicial();
}
onClipEvent (enterFrame) {
this._x = _root.Camara._x - 102;
this._y = _root.Camara._y;
if (this._visible) {
confirmacion._visible = false;
Marco._x = 50 + (150 * _root.round(selec / _global.ITEMSf));
Marco._y = 100 + (200 * _root.mod(selec, _global.ITEMSf));
i = 0;
while (i < _global.MAXITEMS) {
textoI[i].t = cade(_root.obje[i].n);
i++;
}
descripcion = _root.obje[selec].d;
if (_root.Beth.trader != null) {
if (_root.Beth.subinv) {
Marco._y = Marco._y - altoDelFondo;
it.copiar(_root.Beth.trader.obje[selec]);
it.precio = _root.costeVentaModificado(it.precio);
} else {
it.copiar(_root.obje[selec]);
it.precio = _root.round(it.precio / 4);
}
trade._visible = true;
i = 0;
while (i < _global.MAXITEMS) {
trade_textoI[i].t = cade(_root.Beth.trader.obje[i].n);
i++;
}
if (it.n > 0) {
trade.t1 = it.d;
trade.t2 = it.precio;
trade.t3 = tipoDeItem(it.t);
trade.t4 = statsDeItem(it);
} else {
trade.t1 = "";
trade.t2 = "";
trade.t3 = "";
trade.t4 = "";
}
if (_root.Beth.confirmacion) {
confirmacion._visible = true;
confirmacion.ta = _root.codigoDeTecla(_global.keyB);
confirmacion.tb = _root.codigoDeTecla(_global.keyA);
if (_root.Beth.subinv) {
confirmacion.t = "Are you sure you want to buy this item?";
} else {
confirmacion.t = "Are you sure you want to sell this item?";
}
}
} else {
trade._visible = false;
}
}
}
Instance of Symbol 1223 MovieClip "Camara" in Frame 6
onClipEvent (load) {
_global.camx = -100;
_global.camy = 300;
resetx = -100;
resety = 300;
reset = false;
this._width = 204;
this._height = 160;
}
onClipEvent (enterFrame) {
if (this._x < (_root.Beth._x - 30)) {
this._x = _root.Beth._x - 30;
}
if (this._x > (_root.Beth._x + 30)) {
this._x = _root.Beth._x + 30;
}
if (this._y < (_root.Beth._y - 50)) {
this._y = _root.Beth._y - 50;
}
if (this._y > (_root.Beth._y - 20)) {
this._y = _root.Beth._y - 20;
}
_root._x = this._x;
_root._y = this._y;
_root.Borde._x = this._x;
_root.Borde._y = this._y;
}
Instance of Symbol 1225 MovieClip "Borde" in Frame 6
onClipEvent (load) {
this._xscale = 1000;
this._yscale = 1000;
}
Symbol 7 MovieClip Frame 1
var t;
var c;
gotoAndStop(c);
stop();
Symbol 8 MovieClip [TextoFlotante] Frame 1
var t;
var c;
cuadro.t = t;
cuadro.c = c;
this._alpha = 100;
Symbol 8 MovieClip [TextoFlotante] Frame 35
this.removeMovieClip();
Symbol 12 MovieClip [Bocadillo] Frame 1
function entrando() {
t++;
this._x = clip._x;
this._y = clip.getBounds(_root).yMin - (this._height * apilar);
textoBocadillo.t = texto;
if (t > tiempo) {
this.removeMovieClip();
}
}
var tiempo;
var clip;
var texto;
var t = 0;
var apilar = 0;
this.onEnterFrame = entrando;
stop();
Symbol 22 MovieClip [Slime_volando] Frame 9
gotoAndPlay (1);
Symbol 62 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 85 MovieClip [Item_Runa_Fuego] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Runa_Fuego";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 87 MovieClip [Item_Ojo] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Ojo";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
var pos;
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
function entrando() {
ccup.PezonDuro._visible = this._parent.SP > 30;
bcup.PezonDuro._visible = ccup.PezonDuro._visible;
}
bcup.PezonDuro._alpha = 20;
ccup.PezonDuro._alpha = 20;
this.onEnterFrame = entrando;
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
function entrando() {
ccup.PezonDuro._visible = this._parent.SP > 30;
bcup.PezonDuro._visible = ccup.PezonDuro._visible;
}
bcup.PezonDuro._alpha = 20;
ccup.PezonDuro._alpha = 20;
this.onEnterFrame = entrando;
stop();
Symbol 189 MovieClip [Beth_Brazos_Carpeta] Frame 1
function set_cup(i) {
cup = i;
if (cup == 1) {
TetaD.bcup._visible = true;
TetaD.ccup._visible = false;
TetaI.bcup._visible = true;
TetaI.ccup._visible = false;
} else {
TetaD.bcup._visible = false;
TetaD.ccup._visible = true;
TetaI.bcup._visible = false;
TetaI.ccup._visible = true;
}
}
function check_piel_parte(c) {
c.gotoAndStop(piel);
}
function check_piel_mano(c) {
c.mano1._visible = false;
c.mano2._visible = false;
c.mano3._visible = false;
c.mano4._visible = false;
if (piel == 1) {
c.mano1._visible = true;
} else if (piel == 2) {
c.mano2._visible = true;
} else if (piel == 3) {
c.mano3._visible = true;
} else if (piel == 4) {
c.mano4._visible = true;
}
}
function check_piel(i) {
piel = i;
check_piel_parte(torso);
check_piel_parte(bdu);
check_piel_parte(biu);
check_piel_parte(bdd);
check_piel_parte(bid);
check_piel_parte(TetaD.bcup);
check_piel_parte(TetaD.ccup);
check_piel_parte(TetaI.bcup);
check_piel_parte(TetaI.ccup);
check_piel_parte(caderas);
check_piel_parte(caderas.chichi);
check_piel_parte(cadera2);
check_piel_parte(lds);
check_piel_parte(lis);
check_piel_parte(ldi);
check_piel_parte(lii);
check_piel_parte(pieD);
check_piel_parte(pieI);
check_piel_mano(md);
check_piel_mano(mi);
check_piel_parte(cabeza);
check_piel_parte(cuello);
}
function checkCara() {
cabeza.boca.gotoAndStop(Boca);
cabeza.od.gotoAndStop(ojoD);
cabeza.oi.gotoAndStop(ojoI);
cabeza.cd.gotoAndStop(CejaD);
cabeza.ci.gotoAndStop(CejaI);
cabeza.Rubor._visible = Rubor > 0;
cabeza.Gafas._visible = slot[8] == "Item_Gafas";
}
function expboca(i) {
Boca = i;
checkCara();
}
function expojod(i) {
ojoD = i;
checkCara();
}
function expojoi(i) {
ojoI = i;
checkCara();
}
function expcejad(i) {
CejaD = i;
checkCara();
}
function expcejai(i) {
CejaI = i;
checkCara();
}
function exprubor(i) {
Rubor = i;
checkCara();
}
function expmanod(i) {
ManoD = i;
vestir_manos(md);
}
function expmanoi(i) {
ManoI = i;
vestir_manos(mi);
}
function init_parte(c) {
c.Gafas._alpha = 100;
c.SujeB._alpha = 100;
c.Camiseta1._alpha = 100;
c.Camiseta2._alpha = 100;
c.Camiseta3._alpha = 100;
c.Top._alpha = 100;
c.Top2._alpha = 100;
c.BraguitasB._alpha = 100;
c.Panta1._alpha = 100;
c.Panta2._alpha = 100;
c.Panta3._alpha = 100;
c.Panta4._alpha = 100;
c.Panta5._alpha = 100;
c.Panta3masc._alpha = 100;
c.Falda1._alpha = 100;
c.Falda1["Apa\u00F1o"]._alpha = 100;
c.Zapato1._alpha = 100;
c.Zapato2._alpha = 100;
c.Zapato3._alpha = 100;
c.BotasElficas._alpha = 100;
c.Brazal1._alpha = 100;
}
function poner(s) {
var _local2 = new item();
_local2.copiar(_root.str2obj(s));
slot[_local2.e] = s;
vestir();
}
function vestir_parte_sup(c) {
c.SujeB._visible = slot[1] == "Item_SujeB";
c.Camiseta1._visible = slot[6] == "Item_Camiseta1";
c.Camiseta2._visible = slot[6] == "Item_Camiseta2";
c.Camiseta3._visible = slot[6] == "Item_Camiseta3";
c.Top._visible = slot[6] == "Item_Top";
c.Top2._visible = slot[6] == "Item_Top2";
c.Brazal1._visible = slot[5] == "Item_Brazal1";
}
function vestir_parte_inf(c) {
c.BraguitasB._visible = slot[2] == "Item_Braguitas";
c.Panta1._visible = slot[7] == "Item_Panta1";
c.Panta2._visible = slot[7] == "Item_Panta2";
c.Panta3._visible = slot[7] == "Item_Panta3";
c.Panta4._visible = slot[7] == "Item_Panta4";
c.Panta5._visible = slot[7] == "Item_Panta5";
if (slot[7] == "Item_Falda1") {
c.Falda1._visible = true;
c.Falda1["Apa\u00F1o"]._visible = estado == 3;
} else {
c.Falda1._visible = false;
}
}
function vestir_pies(c) {
c.Zapato1._visible = slot[3] == "Item_Zapato1";
c.Zapato2._visible = slot[3] == "Item_Zapato2";
c.Zapato3._visible = slot[3] == "Item_Zapato3";
if (slot[3] == "Item_BotasElficas") {
c.BotasElficas._visible = true;
c.Panta3masc._height = 100;
} else {
c.BotasElficas._visible = false;
c.Panta3masc._height = 300;
}
}
function vestir_manos(c) {
if (c.pos == 1) {
if (slot[4] != "") {
c.mano1.gotoAndStop(3);
c.mano2.gotoAndStop(3);
c.mano3.gotoAndStop(3);
c.mano4.gotoAndStop(3);
if (slot[4] == "Item_Runa_Fuego") {
c.mano1.Objeto.gotoAndStop(1);
c.mano2.Objeto.gotoAndStop(1);
c.mano3.Objeto.gotoAndStop(1);
c.mano4.Objeto.gotoAndStop(1);
} else if (slot[4] == "Item_Ojo") {
c.mano1.Objeto.gotoAndStop(2);
c.mano2.Objeto.gotoAndStop(2);
c.mano3.Objeto.gotoAndStop(2);
c.mano4.Objeto.gotoAndStop(2);
}
} else {
c.mano1.gotoAndStop(ManoI);
c.mano2.gotoAndStop(ManoI);
c.mano3.gotoAndStop(ManoI);
c.mano4.gotoAndStop(ManoI);
}
} else {
c.mano1.gotoAndStop(ManoD);
c.mano2.gotoAndStop(ManoD);
c.mano3.gotoAndStop(ManoD);
c.mano4.gotoAndStop(ManoD);
}
}
function vestir() {
vestir_parte_sup(torso);
vestir_parte_sup(bdu);
vestir_parte_sup(bdd);
vestir_parte_sup(biu);
vestir_parte_sup(bid);
vestir_parte_sup(TetaD.bcup);
vestir_parte_sup(TetaD.ccup);
vestir_parte_sup(TetaI.bcup);
vestir_parte_sup(TetaI.ccup);
vestir_parte_inf(caderas);
vestir_parte_inf(cadera2);
vestir_parte_inf(lds);
vestir_parte_inf(lis);
vestir_parte_inf(ldi);
vestir_parte_inf(lii);
vestir_pies(pieD);
vestir_pies(pieI);
vestir_pies(ldi);
vestir_pies(lii);
vestir_manos(md);
vestir_manos(mi);
checkCara();
}
var sudor = 0;
var ojoD = 1;
var ojoI = 1;
var Boca = 2;
var CejaI = 1;
var CejaD = 1;
var Rubor = 0;
var ManoD = 1;
var ManoI = 1;
var piel = 1;
var cup = 1;
md.pos = 0;
mi.pos = 1;
var slot = new Array();
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = "";
i++;
}
init_parte(torso);
init_parte(bdu);
init_parte(bdd);
init_parte(biu);
init_parte(bid);
init_parte(TetaD.bcup);
init_parte(TetaD.ccup);
init_parte(TetaI.bcup);
init_parte(TetaI.ccup);
init_parte(caderas);
init_parte(lds);
init_parte(lis);
init_parte(ldi);
init_parte(lii);
init_parte(pieD);
init_parte(pieI);
init_parte(md);
init_parte(mi);
init_parte(cabeza);
check_piel(1);
set_cup(2);
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = _root.equip[i].N;
i++;
}
check_piel(_global.piel);
vestir();
stop();
Symbol 189 MovieClip [Beth_Brazos_Carpeta] Frame 11
stop();
Symbol 193 MovieClip [Item_Panta5] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Panta5";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 199 MovieClip [Item_Brazal1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Brazal1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 201 MovieClip [Item_BotasElficas] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_BotasElficas";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 213 MovieClip [LineaDeslizante] Frame 1
stop();
Symbol 215 MovieClip [sombra] Frame 1
function entrando() {
this._x = objetivo._x;
this._y = objetivo._y;
this._width = objetivo._width * 0.7;
this._height = this._width / 4;
this._visible = objetivo._visible;
}
var objetivo;
this._alpha = 40;
this.onEnterFrame = entrando;
stop();
Symbol 217 MovieClip Frame 1
function entrando() {
i = i + rot;
this._rotation = i;
}
var i = 0;
var rot;
this.onEnterFrame = entrando;
stop();
Symbol 220 MovieClip [Screen_Muerte] Frame 1
ef1.rot = 0.8;
ef2.rot = -0.8;
ef3.rot = 1.4;
ef4.rot = -1.4;
ef5.rot = 2;
ef6.rot = -2;
stop();
Symbol 237 MovieClip Frame 10
this._parent._parent.fin = true;
stop();
Symbol 238 MovieClip [Spell_Slimeball] Frame 1
r1.gotoAndPlay(_root.d(10, 1));
r2.gotoAndPlay(_root.d(10, 1));
r3.gotoAndPlay(_root.d(10, 1));
r4.gotoAndPlay(_root.d(10, 1));
r5.gotoAndPlay(_root.d(10, 1));
stop();
Symbol 251 MovieClip Frame 11
this._parent._parent.fin = true;
stop();
Symbol 252 MovieClip [Spell_Fireball] Frame 1
var efecto1 = this.attachMovie("Fireball_Efecto", "FE1", this.getNextHighestDepth());
var efecto2 = this.attachMovie("Fireball_Efecto", "FE2", this.getNextHighestDepth());
var efecto3 = this.attachMovie("Fireball_Efecto", "FE3", this.getNextHighestDepth());
efecto1._alpha = 20;
efecto2._alpha = 10;
efecto3._alpha = 10;
efecto2.gotoAndPlay(5);
efecto3.gotoAndPlay(9);
Estela2.gotoAndPlay(_root.d(10, 1));
stop();
Symbol 252 MovieClip [Spell_Fireball] Frame 2
efecto1.removeMovieClip();
efecto2.removeMovieClip();
efecto3.removeMovieClip();
Symbol 261 MovieClip [Item_PotionHM1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_PotionHM1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 263 MovieClip [Item_PotionM1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_PotionM1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 264 MovieClip [Spell] Frame 1
function entrando() {
if (this._visible) {
if (!_root.Inventario._visible) {
this._x = this._x + vel;
timer--;
if ((!_root.dentrodelcamino(this._x, this._y)) || (timer < 0)) {
vel = 0;
clip.gotoAndStop("fin");
}
if (fin) {
this._visible = false;
clip.removeMovieClip();
}
}
}
}
_root.addSprite(this);
var sombra = _root.darSombra(this);
var vel = 0;
var da\u00F1o = 0;
var abso = 0;
var timer = 0;
var clip;
var fin = false;
this._visible = false;
this.onEnterFrame = entrando;
stop();
Symbol 266 MovieClip [Item_Zapato1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Zapato1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 268 MovieClip [Item_Zapato2] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Zapato2";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 270 MovieClip [Item_PotionH1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_PotionH1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 272 MovieClip [Item_Goldbag_L1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Gold";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 274 MovieClip [Item_ChampiV] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_ChampiV";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 276 MovieClip [Item_ChampiM] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_ChampiM";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 278 MovieClip [Item_Champi] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Champi";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 296 MovieClip [sombra_inmovil] Frame 1
var objetivo;
this._alpha = 40;
this._x = objetivo._x;
this._y = objetivo._y + 2;
this._width = objetivo._width * 0.7;
this._height = this._width / 4;
stop();
Symbol 298 MovieClip [Item_Anillo_Elfita] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Anillo_Elfita";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 300 MovieClip [Item_Panta4] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Panta4";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 302 MovieClip [Item_Carta_Gnomo] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Carta_Gnomo";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 304 MovieClip [Item_Carta_Vieja] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Carta_Vieja";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 306 MovieClip [Item_Zapato3] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Zapato3";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 308 MovieClip [Item_Panta2] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Panta2";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 310 MovieClip [Item_Panta3] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Panta3";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 312 MovieClip [Item_Panta1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Panta1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 314 MovieClip [Item_Falda1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Falda1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 316 MovieClip [Item_Camiseta3] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Camiseta3";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 318 MovieClip [Item_Top2] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Top2";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 320 MovieClip [Item_Top] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_SujeB";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 322 MovieClip [Item_Camiseta2] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Camiseta2";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 324 MovieClip [Item_Gafas] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Gafas";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 326 MovieClip [Item_Camiseta1] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Camiseta1";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 328 MovieClip [Item_SujeB] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_SujeB";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 332 MovieClip [Item_Braguitas] Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, o.ds, o.ds)) {
if (o.n == -1) {
o.n = _root.d(10, 1);
}
_root.addToInv(o);
if (clase == "Item_Gold") {
var _local3 = ("+" + o.n) + "g";
_root.textoflotante(_local3, this._x, this._y, 4);
}
this._visible = false;
}
}
}
var clase = "Item_Braguitas";
var o = new item();
o.copiar(_root.str2obj(clase));
if (this._parent == _root) {
if (o.sup) {
_root.addSprite(this);
}
this.onEnterFrame = entrando;
}
stop();
Symbol 352 Button
on (release) {
ejecutar_opcion(3, 0);
}
Symbol 353 Button
on (release) {
ejecutar_opcion(1, 1);
}
Symbol 354 Button
on (release) {
ejecutar_opcion(1, 2);
}
Symbol 355 Button
on (release) {
ejecutar_opcion(2, 0);
}
Symbol 356 Button
on (release) {
ejecutar_opcion(2, 1);
}
Symbol 357 Button
on (release) {
ejecutar_opcion(1, 0);
}
Symbol 370 MovieClip [Menu_Setup] Frame 1
function ponerTextos() {
var _local2;
_local2 = 0;
while (_local2 < 12) {
keyTx1[_local2].t = keyN[_local2];
keyTx2[_local2].t = _root.codigoDeTecla(keyC[_local2]);
_local2++;
}
}
function ejecutar_opcion(f, c) {
opC = c;
opF = f;
if (redefinir < 0) {
if (f == 0) {
redefinir = c;
}
if ((f == 1) && (c == 0)) {
_root._quality = "LOW";
}
if ((f == 1) && (c == 1)) {
_root._quality = "MEDIUM";
}
if ((f == 1) && (c == 2)) {
_root._quality = "HIGH";
}
if ((f == 2) && (c == 0)) {
fscommand ("fullscreen", "false");
}
if ((f == 2) && (c == 1)) {
fscommand ("fullscreen", "true");
}
if (f == 3) {
_global.keyUP = keyC[0];
_global.keyDO = keyC[1];
_global.keyLE = keyC[2];
_global.keyRI = keyC[3];
_global.keyA = keyC[4];
_global.keyB = keyC[5];
_global.keyC = keyC[6];
_global.keyX = keyC[7];
_global.keyY = keyC[8];
_global.keyZ = keyC[9];
_global.keyL = keyC[10];
_global.keyR = keyC[11];
Key.removeListener(keyListener);
if (_global.inGameMenu) {
_global.inGameMenu = false;
_root.Beth.nopress = _global.keyC;
this.removeMovieClip();
} else {
_root.gotoAndStop("Menu");
}
}
}
}
function cargando() {
}
function entrando() {
if (opF == 0) {
if (opC > 11) {
opC = 0;
}
}
if (opF == 1) {
if (opC > 2) {
opC = 0;
}
}
if (opF == 2) {
if (opC > 1) {
opC = 0;
}
}
if (opF == 0) {
Marcador._visible = false;
clipSelec._x = 100 + (75 * opC);
if (redefinir < 0) {
clipSelec._visible = true;
clipSelec._y = 350;
t = keyD[opC];
} else {
i++;
if (i > 20) {
i = 0;
}
clipSelec._visible = i < 10;
clipSelec._y = 390;
t = "Press a key for button " + keyN[opC];
}
} else {
clipSelec._visible = false;
Marcador._visible = true;
Marcador._x = 300 + (150 * opC);
if (opF == 1) {
Marcador._y = 550;
t = "Those options select the quality of the animation. Less quality makes game faster.";
} else if (opF == 2) {
Marcador._y = 600;
t = "Those options toggles the full/windowed mode. Don't work in all the browsers.";
} else {
Marcador._y = 700;
Marcador._x = 150;
t = "Save changes and Exit to Main Menu.";
}
}
}
var opF = 0;
var opC = 0;
var redefinir = -1;
var clipSelec = MovieClip;
var keyD = new Array();
var keyN = new Array();
var keyC = new Array();
var keyBoton = new Array();
var keyClip = new Array();
var keyClip2 = new Array();
var keyTx1 = new Array();
var keyTx2 = new Array();
keyN[0] = "Up";
keyN[1] = "Down";
keyN[2] = "Left";
keyN[3] = "Right";
keyN[4] = "A";
keyN[5] = "B";
keyN[6] = "C";
keyN[7] = "X";
keyN[8] = "Y";
keyN[9] = "Z";
keyN[10] = "L";
keyN[11] = "R";
keyD[0] = "Move Up.";
keyD[1] = "Move Down.";
keyD[2] = "Move Left.";
keyD[3] = "Move Right.";
keyD[4] = "Open/Close/Use/Social interaction with target. On Inventory, Buy or Sell items.";
keyD[5] = "Magical attack. Depends of the rune equipped.";
keyD[6] = "Physical attack. Depends of the weapon equipped. On Inventory, Equip or use items.";
keyD[7] = "Sexual interaction with target.";
keyD[8] = "not used in the current version.";
keyD[9] = "not used in the current version.";
keyD[10] = "Open/Close stats.";
keyD[11] = "Open/Close Inventory.";
keyC[0] = _global.keyUP;
keyC[1] = _global.keyDO;
keyC[2] = _global.keyLE;
keyC[3] = _global.keyRI;
keyC[4] = _global.keyA;
keyC[5] = _global.keyB;
keyC[6] = _global.keyC;
keyC[7] = _global.keyX;
keyC[8] = _global.keyY;
keyC[9] = _global.keyZ;
keyC[10] = _global.keyL;
keyC[11] = _global.keyR;
var i;
i = 0;
while (i < 12) {
keyBoton[i] = this.attachMovie("botonSetup", "boton_" + i, this.getNextHighestDepth());
keyBoton[i]._x = 100 + (75 * i);
keyBoton[i]._y = 350;
keyClip[i] = this.attachMovie("cuadroSetup", "key1_" + i, this.getNextHighestDepth());
keyClip[i]._x = 100 + (75 * i);
keyClip[i]._y = 350;
keyClip[i].onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
redefinir = Math.round(((_parent._xmouse - 68) / 75) - 0.5);
opC = redefinir;
opF = 0;
}
};
keyClip2[i] = this.attachMovie("cuadroSetup", "key2_" + i, this.getNextHighestDepth());
keyClip2[i]._x = 100 + (75 * i);
keyClip2[i]._y = 390;
i++;
}
clipSelec = this.attachMovie("cuadroSetupSelect", "CSet", this.getNextHighestDepth());
clipSelec._visible = false;
i = 0;
while (i < 12) {
keyTx1[i] = this.attachMovie("cuadroSetupTextoN", "tx1_" + i, this.getNextHighestDepth());
keyTx1[i]._x = keyClip[i]._x;
keyTx1[i]._y = keyClip[i]._y + 2;
keyTx2[i] = this.attachMovie("cuadroSetupTextoR", "tx2_" + i, this.getNextHighestDepth());
keyTx2[i]._x = keyClip2[i]._x;
keyTx2[i]._y = keyClip2[i]._y + 2;
i++;
}
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local2 = Key.getCode();
if (redefinir < 0) {
if (_local2 == _global.keyDO) {
opF++;
if (opF > 3) {
opF = 0;
}
}
if (_local2 == _global.keyUP) {
opF--;
if (opF < 0) {
opF = 3;
}
}
if (_local2 == _global.keyRI) {
opC++;
if (opC > 11) {
opC = 0;
}
}
if (_local2 == _global.keyLE) {
opC--;
if (opC < 0) {
opC = 11;
}
}
if (((_local2 == _global.keyA) || (_local2 == _global.keyB)) || (_local2 == _global.keyC)) {
ejecutar_opcion(opF, opC);
}
} else {
keyC[redefinir] = _local2;
redefinir = -1;
ponerTextos();
}
};
Key.addListener(keyListener);
ponerTextos();
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 374 MovieClip [Cuadrito] Frame 1
stop();
Symbol 385 MovieClip [Barras3] Frame 1
if (b1 < 1) {
b1 = 0;
}
if (b2 < 1) {
b2 = 0;
barra2._visible = false;
} else {
barra2._visible = true;
}
if (b3 < 1) {
b3 = 0;
barra3._visible = false;
} else {
barra3._visible = true;
}
relleno1._xscale = (100 * b1) / Mb1;
relleno2._xscale = (100 * b2) / Mb2;
relleno3._xscale = (100 * b3) / Mb3;
if (this._parent._xscale < 0) {
this._xscale = -Math.abs(this._xscale);
} else {
this._xscale = Math.abs(this._xscale);
}
if (_root.equip[4].N == "Item_Ojo") {
Vida._visible = true;
Vida.t = b1;
} else {
Vida._visible = false;
}
Symbol 385 MovieClip [Barras3] Frame 2
gotoAndPlay (1);
Symbol 394 Button
on (release) {
gotoAndPlay ("Menu");
}
Symbol 1226 MovieClip [__Packages.item] Frame 0
class item
{
var clip, n, N, d, t, e, ds, sup, precio, H, M, sed, CA, RF;
function item () {
clip = null;
n = 0;
N = "";
d = "";
t = 0;
e = -1;
ds = 7;
sup = false;
precio = 0;
H = 0;
M = 0;
sed = 0;
CA = 0;
RF = 0;
}
function copiar(o) {
clip = o.clip;
n = o.n;
N = o.N;
d = o.d;
t = o.t;
e = o.e;
ds = o.ds;
sup = o.sup;
precio = o.precio;
sed = o.sed;
H = o.H;
M = o.M;
CA = o.CA;
RF = o.RF;
}
}
Symbol 395 MovieClip Frame 1
function round(x) {
var _local1 = Math.round(x);
if (_local1 > x) {
return(_local1 - 1);
}
return(_local1);
}
function d(x, y) {
return(round(round(Math.random() * x) + y));
}
function leer_color(z) {
return(cuadro_color[z]);
}
function asignar_color(z, cz) {
cuadro_color2[z] = cz;
}
function aplicar_cambios() {
var _local2;
var _local1 = ALTO * ANCHO;
j = 0;
while (j < _local1) {
cuadro_color[j] = cuadro_color2[j];
j++;
}
}
function automata(x, y) {
var _local3;
var _local2;
var _local5;
var _local4 = y * ANCHO;
var _local1 = _local4 + x;
_local3 = leer_color(_local1);
_local5 = d(3, -1);
asignar_color((_local1 - ANCHO) + _local5, _local3 - d(15, 0));
_local2 = ((leer_color(_local1 + ANCHO) + leer_color(_local1 + 1)) + leer_color(_local1 - 1)) / 3;
if (_local2 < 10) {
_local2 = 0;
}
asignar_color(_local1, _local2);
}
function aplicar_colores() {
var _local2;
var _local3;
var _local1;
j = 1;
while (j < ALTO) {
_local3 = j * ANCHO;
i = 0;
while (i < ANCHO) {
_local1 = _local3 + i;
_local2 = Math.round(cuadro_color[_local1]) + 1;
cuadro_clip[_local1].gotoAndStop(_local2);
i++;
}
j++;
}
}
function cargando() {
}
function entrando() {
j = 1;
while (j < (ALTO - 1)) {
i = 0;
while (i < ANCHO) {
automata(i, j);
i++;
}
j++;
}
aplicar_cambios();
aplicar_colores();
}
var ANCHO = 27;
var ALTO = 20;
this._width = 38;
this._height = 37;
var cuadro_clip = new Array();
var cuadro_color = new Array();
var cuadro_color2 = new Array();
var i;
var j;
var c;
i = 0;
while (i < ANCHO) {
j = 0;
while (j < ALTO) {
cuadro_clip[(j * ANCHO) + i] = this.attachMovie("Cuadrito", (("cx" + i) + "y") + j, this.getNextHighestDepth());
cuadro_clip[(j * ANCHO) + i]._x = i * 10;
cuadro_clip[(j * ANCHO) + i]._y = j * 10;
cuadro_color[(j * ANCHO) + i] = 0;
cuadro_color2[(j * ANCHO) + i] = 0;
j++;
}
i++;
}
c = ANCHO * (ALTO - 1);
i = 0;
while (i < ANCHO) {
cuadro_color[c + i] = 100;
cuadro_color2[c + i] = 100;
i++;
}
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 398 Button
on (release) {
ejecutarOpcion(4);
}
Symbol 399 Button
on (release) {
ejecutarOpcion(3);
}
Symbol 400 Button
on (release) {
ejecutarOpcion(2);
}
Symbol 401 Button
on (release) {
ejecutarOpcion(1);
}
Symbol 407 MovieClip Frame 1
function ejecutarOpcion(x) {
if (x == 1) {
Key.removeListener(keyListener);
_root.gotoAndStop("Game");
}
if (x == 2) {
Key.removeListener(keyListener);
_root.gotoAndStop("Intro");
}
if (x == 4) {
Key.removeListener(keyListener);
_root.gotoAndStop("Setup");
}
}
function cargando() {
}
function entrando() {
if (t < 13) {
t++;
}
if (t < 6) {
_xscale = (20 * t);
} else if (t < 11) {
_yscale = (20 * (t - 5));
} else if (t < 12) {
gotoAndStop ("op1");
}
}
var op = 1;
var t = 0;
_xscale = 1;
_yscale = 1;
keyListener = new Object();
keyListener.onKeyDown = function () {
if (t > 11) {
if (Key.getCode() == _global.keyDO) {
op++;
if (op > 4) {
op = 1;
}
}
if (Key.getCode() == _global.keyUP) {
op--;
if (op < 1) {
op = 4;
}
}
if (((Key.getCode() == _global.keyA) || (Key.getCode() == _global.keyB)) || (Key.getCode() == _global.keyC)) {
ejecutarOpcion(op);
}
gotoAndStop(1 + op);
}
};
Key.addListener(keyListener);
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 414 Button
on (release) {
if (Screen_Thanks._visible == false) {
Screen_Thanks._visible = true;
} else {
Screen_Thanks._visible = false;
}
}
Symbol 425 Button
on (release) {
getURL ("http://www.hongfire.com/forum/showthread.php?t=100606");
}
Symbol 428 Button
on (release) {
getURL ("http://www.ulmf.org/");
}
Symbol 431 Button
on (release) {
getURL ("http://studios.kir.jp/ssf4/");
}
Symbol 434 Button
on (release) {
getURL ("http://playshapes.newgrounds.com/");
}
Symbol 437 Button
on (release) {
getURL ("http://mickmanx.blog71.fc2.com/");
}
Symbol 440 Button
on (release) {
getURL ("http://inufactory.blog111.fc2.com/");
}
Symbol 443 Button
on (release) {
getURL ("http://legendofkrystal.com/forum/");
}
Symbol 446 Button
on (release) {
getURL ("http://www.hongfire.com/");
}
Symbol 449 Button
on (release) {
getURL ("http://dirtyc101.blogspot.com/");
}
Symbol 452 Button
on (release) {
getURL ("http://maniax.dlsite.com/work/=/product_id/RJ058443.html");
}
Symbol 455 Button
on (release) {
getURL ("http://scgarden.x.fc2.com/main.html");
}
Symbol 458 Button
on (release) {
getURL ("http://www.toonchamp.com/phpBB3/index.php");
}
Symbol 461 Button
on (release) {
getURL ("http://hnyarly.newgrounds.com/");
}
Symbol 464 MovieClip Frame 1
function cargando() {
}
function entrando() {
if (this._visible == true) {
if (this._xscale < 91) {
this._xscale = this._xscale + 10;
this._yscale = this._xscale;
}
} else {
this._xscale = 10;
this._yscale = 10;
}
}
this._visible = false;
this.cacheAsBitmap = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Instance of Symbol 411 MovieClip in Symbol 465 MovieClip Frame 1
on (release) {
getURL ("http://hnyarly.blogspot.com/");
}
Symbol 484 MovieClip Frame 1
dedos.gotoAndStop(_parent.piel);
stop();
Symbol 484 MovieClip Frame 2
dedos.gotoAndStop(_parent.piel);
stop();
Symbol 484 MovieClip Frame 3
dedos.gotoAndStop(_parent.piel);
stop();
Symbol 484 MovieClip Frame 4
dedos.gotoAndStop(_parent.piel);
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
Symbol 582 MovieClip Frame 1
function entrando() {
gotoAndStop(_global.ColorParpado);
}
this.onEnterFrame = entrando;
stop();
Symbol 586 MovieClip Frame 1
Symbol 592 MovieClip Frame 1
Symbol 602 MovieClip Frame 1
Symbol 606 MovieClip Frame 1
Symbol 612 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 1
function set_cup(i) {
cup = i;
if (cup == 1) {
TetaD.bcup._visible = true;
TetaD.ccup._visible = false;
TetaI.bcup._visible = true;
TetaI.ccup._visible = false;
} else {
TetaD.bcup._visible = false;
TetaD.ccup._visible = true;
TetaI.bcup._visible = false;
TetaI.ccup._visible = true;
}
}
function check_piel_parte(c) {
c.gotoAndStop(piel);
}
function check_piel_mano(c) {
c.mano1._visible = false;
c.mano2._visible = false;
c.mano3._visible = false;
c.mano4._visible = false;
if (piel == 1) {
c.mano1._visible = true;
} else if (piel == 2) {
c.mano2._visible = true;
} else if (piel == 3) {
c.mano3._visible = true;
} else if (piel == 4) {
c.mano4._visible = true;
}
}
function check_piel(i) {
piel = i;
check_piel_parte(torso);
check_piel_parte(bdu);
check_piel_parte(biu);
check_piel_parte(bdd);
check_piel_parte(bid);
check_piel_parte(TetaD.bcup);
check_piel_parte(TetaD.ccup);
check_piel_parte(TetaI.bcup);
check_piel_parte(TetaI.ccup);
check_piel_parte(caderas);
check_piel_parte(caderas.chichi);
check_piel_parte(cadera2);
check_piel_parte(lds);
check_piel_parte(lis);
check_piel_parte(ldi);
check_piel_parte(lii);
check_piel_parte(pieD);
check_piel_parte(pieI);
check_piel_mano(md);
check_piel_mano(mi);
check_piel_parte(cabeza);
check_piel_parte(cuello);
}
function checkCara() {
cabeza.boca.gotoAndStop(Boca);
cabeza.od.gotoAndStop(ojoD);
cabeza.oi.gotoAndStop(ojoI);
cabeza.cd.gotoAndStop(CejaD);
cabeza.ci.gotoAndStop(CejaI);
cabeza.Rubor._visible = Rubor > 0;
cabeza.Gafas._visible = slot[8] == "Item_Gafas";
}
function expboca(i) {
Boca = i;
checkCara();
}
function expojod(i) {
ojoD = i;
checkCara();
}
function expojoi(i) {
ojoI = i;
checkCara();
}
function expcejad(i) {
CejaD = i;
checkCara();
}
function expcejai(i) {
CejaI = i;
checkCara();
}
function exprubor(i) {
Rubor = i;
checkCara();
}
function expmanod(i) {
ManoD = i;
vestir_manos(md);
}
function expmanoi(i) {
ManoI = i;
vestir_manos(mi);
}
function init_parte(c) {
c.Gafas._alpha = 100;
c.SujeB._alpha = 100;
c.Camiseta1._alpha = 100;
c.Camiseta2._alpha = 100;
c.Camiseta3._alpha = 100;
c.Top._alpha = 100;
c.Top2._alpha = 100;
c.BraguitasB._alpha = 100;
c.Panta1._alpha = 100;
c.Panta2._alpha = 100;
c.Panta3._alpha = 100;
c.Panta4._alpha = 100;
c.Panta5._alpha = 100;
c.Panta3masc._alpha = 100;
c.Falda1._alpha = 100;
c.Falda1["Apa\u00F1o"]._alpha = 100;
c.Zapato1._alpha = 100;
c.Zapato2._alpha = 100;
c.Zapato3._alpha = 100;
c.BotasElficas._alpha = 100;
c.Brazal1._alpha = 100;
}
function poner(s) {
var _local2 = new item();
_local2.copiar(_root.str2obj(s));
slot[_local2.e] = s;
vestir();
}
function vestir_parte_sup(c) {
c.SujeB._visible = slot[1] == "Item_SujeB";
c.Camiseta1._visible = slot[6] == "Item_Camiseta1";
c.Camiseta2._visible = slot[6] == "Item_Camiseta2";
c.Camiseta3._visible = slot[6] == "Item_Camiseta3";
c.Top._visible = slot[6] == "Item_Top";
c.Top2._visible = slot[6] == "Item_Top2";
c.Brazal1._visible = slot[5] == "Item_Brazal1";
}
function vestir_parte_inf(c) {
c.BraguitasB._visible = slot[2] == "Item_Braguitas";
c.Panta1._visible = slot[7] == "Item_Panta1";
c.Panta2._visible = slot[7] == "Item_Panta2";
c.Panta3._visible = slot[7] == "Item_Panta3";
c.Panta4._visible = slot[7] == "Item_Panta4";
c.Panta5._visible = slot[7] == "Item_Panta5";
if (slot[7] == "Item_Falda1") {
c.Falda1._visible = true;
c.Falda1["Apa\u00F1o"]._visible = estado == 3;
} else {
c.Falda1._visible = false;
}
}
function vestir_pies(c) {
c.Zapato1._visible = slot[3] == "Item_Zapato1";
c.Zapato2._visible = slot[3] == "Item_Zapato2";
c.Zapato3._visible = slot[3] == "Item_Zapato3";
if (slot[3] == "Item_BotasElficas") {
c.BotasElficas._visible = true;
c.Panta3masc._height = 100;
} else {
c.BotasElficas._visible = false;
c.Panta3masc._height = 300;
}
}
function vestir_manos(c) {
if (c.pos == 1) {
if (slot[4] != "") {
c.mano1.gotoAndStop(3);
c.mano2.gotoAndStop(3);
c.mano3.gotoAndStop(3);
c.mano4.gotoAndStop(3);
if (slot[4] == "Item_Runa_Fuego") {
c.mano1.Objeto.gotoAndStop(1);
c.mano2.Objeto.gotoAndStop(1);
c.mano3.Objeto.gotoAndStop(1);
c.mano4.Objeto.gotoAndStop(1);
} else if (slot[4] == "Item_Ojo") {
c.mano1.Objeto.gotoAndStop(2);
c.mano2.Objeto.gotoAndStop(2);
c.mano3.Objeto.gotoAndStop(2);
c.mano4.Objeto.gotoAndStop(2);
}
} else {
c.mano1.gotoAndStop(ManoI);
c.mano2.gotoAndStop(ManoI);
c.mano3.gotoAndStop(ManoI);
c.mano4.gotoAndStop(ManoI);
}
} else {
c.mano1.gotoAndStop(ManoD);
c.mano2.gotoAndStop(ManoD);
c.mano3.gotoAndStop(ManoD);
c.mano4.gotoAndStop(ManoD);
}
}
function vestir() {
vestir_parte_sup(torso);
vestir_parte_sup(bdu);
vestir_parte_sup(bdd);
vestir_parte_sup(biu);
vestir_parte_sup(bid);
vestir_parte_sup(TetaD.bcup);
vestir_parte_sup(TetaD.ccup);
vestir_parte_sup(TetaI.bcup);
vestir_parte_sup(TetaI.ccup);
vestir_parte_inf(caderas);
vestir_parte_inf(cadera2);
vestir_parte_inf(lds);
vestir_parte_inf(lis);
vestir_parte_inf(ldi);
vestir_parte_inf(lii);
vestir_pies(pieD);
vestir_pies(pieI);
vestir_pies(ldi);
vestir_pies(lii);
vestir_manos(md);
vestir_manos(mi);
checkCara();
}
var sudor = 0;
var ojoD = 1;
var ojoI = 1;
var Boca = 2;
var CejaI = 1;
var CejaD = 1;
var Rubor = 0;
var ManoD = 1;
var ManoI = 1;
var piel = 1;
var cup = 1;
md.pos = 0;
mi.pos = 1;
var slot = new Array();
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = "";
i++;
}
init_parte(torso);
init_parte(bdu);
init_parte(bdd);
init_parte(biu);
init_parte(bid);
init_parte(TetaD.bcup);
init_parte(TetaD.ccup);
init_parte(TetaI.bcup);
init_parte(TetaI.ccup);
init_parte(caderas);
init_parte(lds);
init_parte(lis);
init_parte(ldi);
init_parte(lii);
init_parte(pieD);
init_parte(pieI);
init_parte(md);
init_parte(mi);
init_parte(cabeza);
check_piel(1);
set_cup(2);
check_piel(_global.piel);
set_cup(_global.cup);
stop();
Symbol 613 MovieClip Frame 44
expojod(2);
expojoi(2);
_root.decir(this, "Hmmmmmmmm", 50);
Symbol 613 MovieClip Frame 76
expojod(1);
expojoi(1);
expcejai(1);
expcejad(1);
if (estado == 999) {
_root.decir(this, "Where am I? I don't know this forest.", 100);
}
Symbol 613 MovieClip Frame 107
estado = 0;
while (!_root.dentrodelcamino(this._x, this._y)) {
this._y = this._y + 2;
}
stop();
Symbol 613 MovieClip Frame 118
estado = 0;
andando = false;
Symbol 613 MovieClip Frame 123
stop();
Symbol 613 MovieClip Frame 124
_root.desequiparObjeto(4);
expmanod(2);
Symbol 613 MovieClip Frame 151
stop();
Symbol 613 MovieClip Frame 159
gotoAndStop ("rape1_fin1_estornudo");
Symbol 613 MovieClip Frame 166
stop();
Symbol 619 MovieClip Frame 1
function entrando() {
Tick._visible = _parent.tick;
Selec._visible = _parent.selec;
}
this.onEnterFrame = entrando;
stop();
Symbol 620 Button
on (release) {
op1 = 1;
}
Symbol 621 Button
on (release) {
op1 = 2;
}
Symbol 622 Button
on (release) {
op1 = 3;
}
Symbol 623 Button
on (release) {
op1 = 4;
}
Symbol 624 Button
on (release) {
op2 = 1;
}
Symbol 625 Button
on (release) {
op2 = 2;
}
Symbol 626 Button
on (release) {
op2 = 3;
}
Symbol 627 Button
on (release) {
op3 = 1;
}
Symbol 628 Button
on (release) {
op3 = 2;
}
Symbol 629 Button
on (release) {
op3 = 3;
}
Symbol 637 Button
on (release) {
frameactual++;
ac = 0;
gotoAndStop(frameactual);
}
Symbol 653 MovieClip Frame 1
_root.addSprite(this);
var sombra = _root.darSombraInmovil(this);
stop();
Symbol 657 MovieClip Frame 1
_root.addSprite(this);
var sombra = _root.darSombraInmovil(this);
stop();
Symbol 662 MovieClip Frame 1
_root.addSprite(this);
var sombra = _root.darSombraInmovil(this);
stop();
Symbol 678 MovieClip Frame 1
function entrando() {
gotoAndStop(_global.GeekMano);
}
this.onEnterFrame = entrando;
stop();
Symbol 714 MovieClip Frame 1
function entrando() {
gotoAndStop(_global.GeekBoca);
Mejillas._visible = _global.GeekMejillas;
}
this.onEnterFrame = entrando;
stop();
Symbol 723 MovieClip Frame 25
gotoAndPlay ("andar2");
Symbol 752 MovieClip Frame 1
var i;
var Cuadro = new Array();
i = 0;
while (i < 30) {
Cuadro[i] = Laptop.attachMovie("Cuadrito2", "C" + i, Laptop.getNextHighestDepth());
Cuadro[i]._alpha = 2;
Cuadro[i]._xscale = (200 * i) + 10;
Cuadro[i]._yscale = (200 * i) + 10;
Cuadro[i]._x = (-Cuadro[i]._xscale) / 20;
Cuadro[i]._y = (-(Cuadro[i]._yscale / 20)) - 30;
i++;
}
stop();
Symbol 761 MovieClip Frame 1
function set_cup(i) {
cup = i;
if (cup == 1) {
TetaD.bcup._visible = true;
TetaD.ccup._visible = false;
TetaI.bcup._visible = true;
TetaI.ccup._visible = false;
} else {
TetaD.bcup._visible = false;
TetaD.ccup._visible = true;
TetaI.bcup._visible = false;
TetaI.ccup._visible = true;
}
}
function check_piel_parte(c) {
c.gotoAndStop(piel);
}
function check_piel_mano(c) {
c.mano1._visible = false;
c.mano2._visible = false;
c.mano3._visible = false;
c.mano4._visible = false;
if (piel == 1) {
c.mano1._visible = true;
} else if (piel == 2) {
c.mano2._visible = true;
} else if (piel == 3) {
c.mano3._visible = true;
} else if (piel == 4) {
c.mano4._visible = true;
}
}
function check_piel(i) {
piel = i;
check_piel_parte(torso);
check_piel_parte(bdu);
check_piel_parte(biu);
check_piel_parte(bdd);
check_piel_parte(bid);
check_piel_parte(TetaD.bcup);
check_piel_parte(TetaD.ccup);
check_piel_parte(TetaI.bcup);
check_piel_parte(TetaI.ccup);
check_piel_parte(caderas);
check_piel_parte(caderas.chichi);
check_piel_parte(cadera2);
check_piel_parte(lds);
check_piel_parte(lis);
check_piel_parte(ldi);
check_piel_parte(lii);
check_piel_parte(pieD);
check_piel_parte(pieI);
check_piel_mano(md);
check_piel_mano(mi);
check_piel_parte(cabeza);
check_piel_parte(cuello);
}
function checkCara() {
cabeza.boca.gotoAndStop(Boca);
cabeza.od.gotoAndStop(ojoD);
cabeza.oi.gotoAndStop(ojoI);
cabeza.cd.gotoAndStop(CejaD);
cabeza.ci.gotoAndStop(CejaI);
cabeza.Rubor._visible = Rubor > 0;
cabeza.Gafas._visible = slot[8] == "Item_Gafas";
}
function expboca(i) {
Boca = i;
checkCara();
}
function expojod(i) {
ojoD = i;
checkCara();
}
function expojoi(i) {
ojoI = i;
checkCara();
}
function expcejad(i) {
CejaD = i;
checkCara();
}
function expcejai(i) {
CejaI = i;
checkCara();
}
function exprubor(i) {
Rubor = i;
checkCara();
}
function expmanod(i) {
ManoD = i;
vestir_manos(md);
}
function expmanoi(i) {
ManoI = i;
vestir_manos(mi);
}
function init_parte(c) {
c.Gafas._alpha = 100;
c.SujeB._alpha = 100;
c.Camiseta1._alpha = 100;
c.Camiseta2._alpha = 100;
c.Camiseta3._alpha = 100;
c.Top._alpha = 100;
c.Top2._alpha = 100;
c.BraguitasB._alpha = 100;
c.Panta1._alpha = 100;
c.Panta2._alpha = 100;
c.Panta3._alpha = 100;
c.Panta4._alpha = 100;
c.Panta5._alpha = 100;
c.Panta3masc._alpha = 100;
c.Falda1._alpha = 100;
c.Falda1["Apa\u00F1o"]._alpha = 100;
c.Zapato1._alpha = 100;
c.Zapato2._alpha = 100;
c.Zapato3._alpha = 100;
c.BotasElficas._alpha = 100;
c.Brazal1._alpha = 100;
}
function poner(s) {
var _local2 = new item();
_local2.copiar(_root.str2obj(s));
slot[_local2.e] = s;
vestir();
}
function vestir_parte_sup(c) {
c.SujeB._visible = slot[1] == "Item_SujeB";
c.Camiseta1._visible = slot[6] == "Item_Camiseta1";
c.Camiseta2._visible = slot[6] == "Item_Camiseta2";
c.Camiseta3._visible = slot[6] == "Item_Camiseta3";
c.Top._visible = slot[6] == "Item_Top";
c.Top2._visible = slot[6] == "Item_Top2";
c.Brazal1._visible = slot[5] == "Item_Brazal1";
}
function vestir_parte_inf(c) {
c.BraguitasB._visible = slot[2] == "Item_Braguitas";
c.Panta1._visible = slot[7] == "Item_Panta1";
c.Panta2._visible = slot[7] == "Item_Panta2";
c.Panta3._visible = slot[7] == "Item_Panta3";
c.Panta4._visible = slot[7] == "Item_Panta4";
c.Panta5._visible = slot[7] == "Item_Panta5";
if (slot[7] == "Item_Falda1") {
c.Falda1._visible = true;
c.Falda1["Apa\u00F1o"]._visible = estado == 3;
} else {
c.Falda1._visible = false;
}
}
function vestir_pies(c) {
c.Zapato1._visible = slot[3] == "Item_Zapato1";
c.Zapato2._visible = slot[3] == "Item_Zapato2";
c.Zapato3._visible = slot[3] == "Item_Zapato3";
if (slot[3] == "Item_BotasElficas") {
c.BotasElficas._visible = true;
c.Panta3masc._height = 100;
} else {
c.BotasElficas._visible = false;
c.Panta3masc._height = 300;
}
}
function vestir_manos(c) {
if (c.pos == 1) {
if (slot[4] != "") {
c.mano1.gotoAndStop(3);
c.mano2.gotoAndStop(3);
c.mano3.gotoAndStop(3);
c.mano4.gotoAndStop(3);
if (slot[4] == "Item_Runa_Fuego") {
c.mano1.Objeto.gotoAndStop(1);
c.mano2.Objeto.gotoAndStop(1);
c.mano3.Objeto.gotoAndStop(1);
c.mano4.Objeto.gotoAndStop(1);
} else if (slot[4] == "Item_Ojo") {
c.mano1.Objeto.gotoAndStop(2);
c.mano2.Objeto.gotoAndStop(2);
c.mano3.Objeto.gotoAndStop(2);
c.mano4.Objeto.gotoAndStop(2);
}
} else {
c.mano1.gotoAndStop(ManoI);
c.mano2.gotoAndStop(ManoI);
c.mano3.gotoAndStop(ManoI);
c.mano4.gotoAndStop(ManoI);
}
} else {
c.mano1.gotoAndStop(ManoD);
c.mano2.gotoAndStop(ManoD);
c.mano3.gotoAndStop(ManoD);
c.mano4.gotoAndStop(ManoD);
}
}
function vestir() {
vestir_parte_sup(torso);
vestir_parte_sup(bdu);
vestir_parte_sup(bdd);
vestir_parte_sup(biu);
vestir_parte_sup(bid);
vestir_parte_sup(TetaD.bcup);
vestir_parte_sup(TetaD.ccup);
vestir_parte_sup(TetaI.bcup);
vestir_parte_sup(TetaI.ccup);
vestir_parte_inf(caderas);
vestir_parte_inf(cadera2);
vestir_parte_inf(lds);
vestir_parte_inf(lis);
vestir_parte_inf(ldi);
vestir_parte_inf(lii);
vestir_pies(pieD);
vestir_pies(pieI);
vestir_pies(ldi);
vestir_pies(lii);
vestir_manos(md);
vestir_manos(mi);
checkCara();
}
var sudor = 0;
var ojoD = 1;
var ojoI = 1;
var Boca = 2;
var CejaI = 1;
var CejaD = 1;
var Rubor = 0;
var ManoD = 1;
var ManoI = 1;
var piel = 1;
var cup = 1;
md.pos = 0;
mi.pos = 1;
var slot = new Array();
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = "";
i++;
}
init_parte(torso);
init_parte(bdu);
init_parte(bdd);
init_parte(biu);
init_parte(bid);
init_parte(TetaD.bcup);
init_parte(TetaD.ccup);
init_parte(TetaI.bcup);
init_parte(TetaI.ccup);
init_parte(caderas);
init_parte(lds);
init_parte(lis);
init_parte(ldi);
init_parte(lii);
init_parte(pieD);
init_parte(pieI);
init_parte(md);
init_parte(mi);
init_parte(cabeza);
check_piel(1);
set_cup(2);
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = _root.equip[i].N;
i++;
}
check_piel(_global.piel);
vestir();
stop();
Symbol 776 MovieClip Frame 1
function darSombra(cl) {
var _local2 = Sombra.attachMovie("sombra", "sombra" + _global.SOMBRAS, Sombra.getNextHighestDepth());
_local2.objetivo = cl;
_global.SOMBRAS++;
return(_local2);
}
function apareceObj(i, c, vx, vy, s) {
var _local2 = 100 - i;
c._alpha = i;
c._x = ((Math.cos(i / 5) * _local2) * 4) + vx;
c._y = ((Math.sin(i / 5) * _local2) * 4) + vy;
c._xscale = s + (_local2 * 5);
c._yscale = c._xscale;
}
function limpiar(x) {
x.tick = false;
x.selec = false;
}
function entrando() {
if (frameactual < 2) {
limpiar(Tick1_1);
limpiar(Tick1_2);
limpiar(Tick1_3);
limpiar(Tick1_4);
limpiar(Tick2_1);
limpiar(Tick2_2);
limpiar(Tick2_3);
limpiar(Tick3_1);
limpiar(Tick3_2);
limpiar(Tick3_3);
limpiar(botonNext);
if (op1 == 1) {
Tick1_1.tick = true;
_global.BasicAP = 2;
_root.equip[8].N = "Item_Gafas";
_root.equip[6].N = "Item_Camiseta1";
_root.equip[7].N = "Item_Panta1";
_root.equip[3].N = "Item_Zapato1";
} else if (op1 == 2) {
Tick1_2.tick = true;
_root.equip[8].N = "";
_root.equip[6].N = "Item_Top2";
_root.equip[7].N = "Item_Panta2";
_root.equip[3].N = "Item_Zapato1";
} else if (op1 == 3) {
Tick1_3.tick = true;
_global.BasicAP = 10;
_root.equip[8].N = "";
_root.equip[6].N = "Item_Top";
_root.equip[7].N = "Item_Panta3";
_root.equip[3].N = "Item_Zapato2";
} else {
Tick1_4.tick = true;
_global.BasicAP = 4;
_root.equip[8].N = "Item_Gafas";
_root.equip[6].N = "Item_Camiseta3";
_root.equip[7].N = "Item_Falda1";
_root.equip[3].N = "Item_Zapato3";
}
if (op2 == 1) {
Tick2_1.tick = true;
_global.ColorParpado = 3;
} else if (op2 == 2) {
Tick2_2.tick = true;
_global.ColorParpado = 2;
} else {
Tick2_3.tick = true;
_global.ColorParpado = 1;
}
if (op3 == 1) {
Tick3_1.tick = true;
_global.Slut = 0;
} else if (op3 == 2) {
Tick3_2.tick = true;
_global.Slut = 3;
} else {
Tick3_3.tick = true;
_global.Slut = 7;
}
if (sel == 1) {
Tick1_1.selec = true;
} else if (sel == 2) {
Tick1_2.selec = true;
} else if (sel == 3) {
Tick1_3.selec = true;
} else if (sel == 4) {
Tick1_4.selec = true;
} else if (sel == 5) {
Tick2_1.selec = true;
} else if (sel == 6) {
Tick2_2.selec = true;
} else if (sel == 7) {
Tick2_3.selec = true;
} else if (sel == 8) {
Tick3_1.selec = true;
} else if (sel == 9) {
Tick3_2.selec = true;
} else if (sel == 10) {
Tick3_3.selec = true;
} else {
botonNext.selec = true;
}
if (Key.isDown(_global.keyZ)) {
_global.piel++;
if (_global.piel > 4) {
_global.piel = 1;
}
Beth.check_piel(_global.piel);
}
if (Key.isDown(_global.keyY)) {
_global.cup++;
if (_global.cup > 2) {
_global.cup = 1;
}
Beth.set_cup(_global.cup);
}
i = 0;
while (i < _global.MAXEQUIP) {
Beth.slot[i] = _root.equip[i].N;
i++;
}
Beth.vestir();
} else if (frameactual == 2) {
ac++;
if (ac == 1) {
botonNext.selec = true;
TEXTO = _root.str_intro1;
Beth._visible = false;
Beth.bdu._visible = false;
Beth.bdd._visible = false;
Beth.md._visible = false;
Beth.biu._visible = false;
Beth.bid._visible = false;
Beth.mi._visible = false;
BethBrazo = Beth.attachMovie("Beth_Brazos_Carpeta", "Beth_Brazos_Carpeta" + _global.numtextos, Beth.getNextHighestDepth());
BethBrazo.SP = 0;
Beth.gotoAndPlay("andar");
Beth._visible = true;
var _local5 = darSombra(Beth);
var _local4 = darSombra(Geek);
Hierba1._x = -64;
Hierba1._y = 700;
Hierba2._x = -32;
Hierba2._y = 715;
Hierba3._x = -16;
Hierba3._y = 730;
Hierba4._x = -80;
Hierba4._y = 745;
Hierba5._x = -40;
Hierba5._y = 760;
Hierba6._x = -70;
Hierba6._y = 775;
Hierba7._x = -90;
Hierba7._y = 790;
Hierba8._x = -100;
Hierba8._y = 805;
i = 0;
while (i < NL) {
linea[i] = Baldosas.attachMovie("LineaDeslizante", "Lin" + i, Baldosas.getNextHighestDepth());
linea[i]._x = i * 100;
linea[i]._y = 0;
linea[i].gotoAndStop(linea[i]._x / 5);
linea[i]._alpha = 20;
linea[i]._xscale = 100;
linea[i]._yscale = 140;
i++;
}
}
if (ac < 120) {
Hierba1._x = Hierba1._x - 5;
Hierba2._x = Hierba2._x - 6;
Hierba3._x = Hierba3._x - 7;
Hierba4._x = Hierba4._x - 8;
Hierba5._x = Hierba5._x - 9;
Hierba6._x = Hierba6._x - 10;
Hierba7._x = Hierba7._x - 11;
Hierba8._x = Hierba8._x - 12;
Beth._x = Beth._x + 3;
Geek._x = Geek._x - 6;
if (Beth._currentframe >= frame_andar_fin) {
Beth.gotoAndPlay("andar2");
}
i = 0;
while (i < NL) {
linea[i]._x = linea[i]._x - 2;
linea[i].gotoAndStop(linea[i]._x / 2);
i++;
}
Horizonte._x = Horizonte._x - 0.5;
} else if (ac == 135) {
GeekBocadillo = _root.decir(Geek, _root.str_intro2, 120);
} else if (ac == 185) {
BethBocadillo = _root.decir(Beth, _root.str_intro3, 50);
} else if (ac == 235) {
GeekBocadillo = _root.decir(Geek, _root.str_intro4, 120);
_global.GeekBoca = 3;
_global.GeekMejillas = true;
} else if (ac == 335) {
BethBocadillo = _root.decir(Beth, _root.str_intro5, 120);
Beth.expboca(1);
_global.GeekBoca = 4;
BethBrazo.gotoAndPlay(2);
} else if (ac == 400) {
Beth.gotoAndPlay("andar2");
} else if ((ac > 400) && (ac < 520)) {
Beth._x = Beth._x + 6;
if (ac < 410) {
Beth._y = Beth._y + 2;
}
if (Beth._currentframe >= frame_andar_fin) {
Beth.gotoAndPlay("andar2");
}
} else if (ac == 560) {
GeekBocadillo = _root.decir(Geek, _root.str_intro6, 80);
_global.GeekBoca = 2;
_global.GeekMano = 2;
TEXTO = TEXTO + _root.str_intro7;
} else if (ac > 700) {
ac = 0;
frameactual++;
gotoAndStop(frameactual);
} else {
Beth.gotoAndStop("parada");
Geek.gotoAndStop("parada");
}
} else if (frameactual == 3) {
ac++;
if (ac < 2) {
TEXTO = "";
_global.GeekMano = 2;
BethBocadillo.removeMovieClip();
GeekBocadillo.removeMovieClip();
} else if (ac > 150) {
ac = 0;
frameactual++;
gotoAndStop(frameactual);
}
} else if (frameactual == 4) {
ac++;
if (ac < 2) {
TEXTO = _root.str_intro8;
HCx = Esc4.Hellcube._x;
HCy = Esc4.Hellcube._y;
HCs = Esc4.Hellcube._xscale;
HBx = Esc4.Hellbook._x;
HBy = Esc4.Hellbook._y;
HBs = Esc4.Hellbook._xscale;
} else if (ac == 150) {
TEXTO = TEXTO + _root.str_intro9;
} else if ((ac > 150) && (ac < 251)) {
apareceObj(ac - 150, Esc4.Hellbook, HBx, HBy, HBs);
} else if (ac == 500) {
TEXTO = _root.str_intro10;
} else if ((ac > 500) && (ac < 601)) {
apareceObj(ac - 500, Esc4.Hellcube, HCx, HCy, HCs);
} else if (ac > 900) {
ac = 0;
frameactual++;
gotoAndStop(frameactual);
}
} else if (frameactual == 5) {
ac++;
if (ac < 2) {
TEXTO = _root.str_intro11;
Esc5.Beth.expboca(5);
Esc5.Beth.expmanod(2);
Esc5.Beth.TetaD.PezonDuro._alpha = 0;
Esc5.Beth.TetaI.PezonDuro._alpha = 0;
i = 0;
while (i < _global.MAXEQUIP) {
Esc5.Beth.slot[i] = _root.equip[i].N;
i++;
}
Esc5.Beth.vestir();
} else if (ac == 100) {
TEXTO = TEXTO + _root.str_intro12;
Esc5.HAL.Brillo._alpha = 0;
Esc5.HAL._alpha = 100;
} else if ((ac > 150) && (ac <= 200)) {
Esc5.Beth.expcejai(2);
Esc5.Beth.expcejad(2);
Esc5.Beth.expboca(4);
Esc5.HAL.Brillo._alpha = 2 * (ac - 150);
Esc5.Rayo._alpha = Esc5.HAL.Brillo._alpha;
} else if ((ac > 200) && (ac <= 250)) {
myColor = new Color(Esc5.Beth);
myColorTransform = new Object();
var _local3 = (250 - ac) * 2;
myColorTransform = {ra:100, rb:0, ga:_local3, gb:0, ba:_local3, bb:0, aa:100, ab:0};
myColor.setTransform(myColorTransform);
} else if ((ac > 250) && (ac <= 300)) {
Esc5.Beth._alpha = (300 - ac) * 2;
Esc5.HAL.Brillo._alpha = Esc5.Beth._alpha;
Esc5.Rayo._alpha = Esc5.HAL.Brillo._alpha;
} else if (ac == 301) {
TEXTO = TEXTO + _root.str_intro13;
} else if (ac > 450) {
ac = 0;
frameactual++;
gotoAndStop(frameactual);
}
} else {
_root.gotoAndStop("Game");
}
}
Beth.expboca(5);
Beth.expmanod(1);
Beth.exprubor(0);
_global.BasicAP = 0;
_global.Slut = 0;
var op1 = 1;
var op2 = 3;
var op3 = 1;
var sel = 1;
var frameactual = 1;
var ac = 0;
var linea = new Array();
var NL = 13;
var i;
Beth.gotoAndStop("fin_de_andar");
var frame_andar_fin = Beth._currentFrame;
Beth.gotoAndStop("parada");
var BethBrazo;
var BethBocadillo;
var GeekBocadillo;
Borde._x = 0;
Borde._y = 0;
Borde._xscale = 1024;
Borde._yscale = 800;
var HCx;
var HCy;
var HCs;
var HBx;
var HBy;
var HBs;
Beth.SP = 0;
keyListener = new Object();
keyListener.onKeyDown = function () {
var _local2 = Key.getCode();
if (frameactual == 1) {
if (_local2 == _global.keyDO) {
sel++;
if (sel > 10) {
sel = 0;
}
}
if (_local2 == _global.keyUP) {
sel--;
if (sel < 0) {
sel = 10;
}
}
} else {
sel = 0;
}
if (((_local2 == _global.keyA) || (_local2 == _global.keyB)) || (_local2 == _global.keyC)) {
if ((frameactual > 1) || (sel == 0)) {
frameactual++;
ac = 0;
gotoAndStop(frameactual);
}
if (sel == 1) {
op1 = 1;
} else if (sel == 2) {
op1 = 2;
} else if (sel == 3) {
op1 = 3;
} else if (sel == 4) {
op1 = 4;
} else if (sel == 5) {
op2 = 1;
} else if (sel == 6) {
op2 = 2;
} else if (sel == 7) {
op2 = 3;
} else if (sel == 8) {
op3 = 1;
} else if (sel == 9) {
op3 = 2;
} else if (sel == 10) {
op3 = 3;
}
}
};
Key.addListener(keyListener);
this.onEnterFrame = entrando;
stop();
Symbol 776 MovieClip Frame 2
if (op2 == 2) {
_global.Slut++;
} else if (op2 == 3) {
_global.Slut++;
}
if (op2 == 2) {
_global.Slut++;
} else if (op2 == 3) {
_global.Slut = _global.Slut + 3;
}
stop();
Symbol 792 MovieClip Frame 1
function cargando() {
}
function entrando() {
fram = fram + dir;
if (fram > 14) {
dir = -1;
}
if (fram < 2) {
dir = 1;
}
gotoAndStop(fram);
}
var fram = 1;
var dir = 1;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 795 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 799 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 806 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 808 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 819 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 2;
vel2 = 1;
initvars(1);
MHP = 6;
MMP = 1;
MSP = 1;
CAF = 0;
RF = 0;
fatality = 151;
lanzadaN = "rata_volando";
produce_sombra = true;
respawn = 1000;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 819 MovieClip Frame 2
stop();
Symbol 819 MovieClip Frame 10
gotoAndPlay ("andar");
Symbol 819 MovieClip Frame 11
atacando = true;
Symbol 819 MovieClip Frame 16
atacando = false;
stop();
Symbol 819 MovieClip Frame 17
stop();
Symbol 819 MovieClip Frame 18
stop();
Symbol 820 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 3;
vel2 = 3;
initvars(2);
MHP = 10;
MMP = 1;
MSP = 1;
CAF = 2;
lanzadaN = "rataBoss_volando";
produce_sombra = true;
respawn = 0;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 820 MovieClip Frame 2
stop();
Symbol 820 MovieClip Frame 10
gotoAndPlay ("andar");
Symbol 820 MovieClip Frame 11
Symbol 820 MovieClip Frame 16
atacando = false;
stop();
Symbol 820 MovieClip Frame 17
stop();
Symbol 820 MovieClip Frame 18
stop();
Symbol 835 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 4;
vel2 = 4;
initvars(2);
Set("da\u00F1o", 1);
MHP = 6;
MMP = 1;
MSP = 1;
CAF = 1;
lanzadaN = "Snake_volando";
produce_sombra = false;
respawn = 1000;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 835 MovieClip Frame 9
var a = (this._x - ((11.3 * this._xscale) / 10));
if (_root.dentrodelcamino(a, this._y)) {
this._x = a;
}
gotoAndPlay ("andar");
Symbol 835 MovieClip Frame 10
Symbol 835 MovieClip Frame 13
atacando = false;
stop();
Symbol 850 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 2;
vel2 = 1;
initvars(3);
MMP = 1;
MSP = 1;
CAF = 4;
RF = 0;
lanzadaN = "Slime_volando";
respawn = 1000;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 850 MovieClip Frame 11
gotoAndPlay ("andar");
Symbol 850 MovieClip Frame 21
atacando = false;
stop();
Symbol 853 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 2;
vel2 = 1;
initvars(4);
MMP = 1;
MSP = 1;
recover = true;
lanzadaN = "Lizard_volando";
produce_sombra = true;
respawn = 700;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 853 MovieClip Frame 40
gotoAndPlay ("andar");
Symbol 853 MovieClip Frame 63
atacando = false;
stop();
Symbol 906 MovieClip Frame 32
stop();
Symbol 906 MovieClip Frame 101
gotoAndPlay (1);
Symbol 907 MovieClip Frame 1
c1._xscale = _root.d(400, 200);
c2._xscale = _root.d(400, 200);
c3._xscale = _root.d(400, 200);
c4._xscale = _root.d(400, 200);
c5._xscale = _root.d(400, 200);
c1._yscale = _root.d(400, 200);
c2._yscale = _root.d(400, 200);
c3._yscale = _root.d(400, 200);
c4._yscale = _root.d(400, 200);
c5._yscale = _root.d(400, 200);
c2.gotoAndPlay(95);
c3.gotoAndPlay(90);
c4.gotoAndPlay(85);
c5.gotoAndPlay(80);
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 86
stop();
Symbol 912 MovieClip Frame 1
function initvars(n) {
nivel = n;
Set("da\u00F1o", 2 * n);
MHP = (3 * n) + 3;
MMP = 5 * n;
CAF = n;
RF = n;
XP = _root.expMob(n);
}
function reset_barrita() {
barrita.b3 = 1;
barrita.Mb3 = 1;
barrita._y = 0;
barrita.b3 = SP;
barrita.Mb3 = MSP;
barrita._y = (-this._height) * 10;
}
function mover(xx, yy) {
var _local4 = this._x + xx;
var _local3 = this._y + yy;
if (_root.dentrodelcamino(_local4 + DA, _local3)) {
if (_root.dentrodelcamino(_local4 - DA, _local3)) {
this._x = _local4;
this._y = _local3;
}
}
}
function BethAtacable() {
var _local3 = false;
if (Math.abs(this._y - _root.Beth._y) < 5) {
if (_root.Beth._x < this._x) {
if (_root.Beth._x > (this.getBounds(_root).xMin - 5)) {
_local3 = true;
}
}
if (_root.Beth._x > this._x) {
if (_root.Beth._x < (this.getBounds(_root).xMax + 5)) {
_local3 = true;
}
}
}
return(_local3);
}
function lanzarConjuro() {
var _local3 = 1;
if (spell == "Spell_Slimeball") {
_local3 = 0;
}
_root.lanzarConjuro(this, spell, 17, da\u00F1o, _local3);
}
function cargando() {
}
function entrando() {
if (testeandodistancias) {
if (DA == 0) {
gotoAndPlay ("atacar");
atacando = true;
}
if (atacando) {
if (this._xscale > 0) {
ac = this.getBounds(_root).xMax - this._x;
} else {
ac = this._x - this.getBounds(_root).xMin;
}
if (ac > DA) {
DA = ac;
}
} else {
gotoAndStop ("parada");
testeandodistancias = false;
DAmax = DA + 4;
DAmin = DA - 4;
ac = 0;
}
} else if (!_root.Inventario._visible) {
if (_root.distancia(_root.Beth, this, 80, 60)) {
if (estado < 2) {
estado = 2;
barrita._visible = true;
}
} else if (estado == 2) {
estado = 0;
}
if (estado < 10) {
var _local5 = false;
var _local3;
if (_root.Beth.estado == 3) {
if (Math.abs(this._y - _root.Beth._y) < 5) {
if ((((_root.Beth._xscale > 0) && (this._x > _root.Beth._x)) && (this._x < (_root.Beth.getBounds(_root).xMax + 2))) || (((_root.Beth._xscale < 0) && (this._x < _root.Beth._x)) && (this._x > (_root.Beth.getBounds(_root).xMin - 2)))) {
_local5 = true;
this._xscale = -_root.Beth._xscale;
ac = _root.da\u00F1o(_root.Beth.da\u00F1oPatadaBeth(), CAF, this._x, this._y);
HP = HP - ac;
}
}
}
_local3 = 0;
while (_local3 < _root.MAXspell) {
if (_root.spell[_local3]._visible) {
if (_root.spell[_local3].timer > 0) {
if (_root.distancia(_root.spell[_local3], this, 10, 10)) {
var _local4 = CAF;
if (_root.spell[_local3].abso == 1) {
_local4 = RF;
}
_root.spell[_local3].timer = 0;
_local5 = true;
this._xscale = (-_root.spell[_local3]._xscale) / 10;
ac = _root.da\u00F1o(_root.spell[_local3]["da\u00F1o"], _local4, this._x, this._y);
HP = HP - ac;
}
}
}
_local3++;
}
if (_local5) {
if (ac > 0) {
estado = 20;
andando = 0;
h = 0;
gotoAndStop ("vacio");
lanzadaClip = this.attachMovie(lanzadaN, "lanzada", this.getNextHighestDepth());
lanzadaClip._x = 0;
lanzadaClip._y = 0;
ac = 9;
} else {
gotoAndStop ("bloquear");
estado = 15;
andando = 0;
ac = 0;
}
}
}
if (estado == 0) {
andando = 0;
gotoAndStop ("parada");
barrita._visible = false;
ac--;
if (ac < 0) {
estado = 1;
}
} else if (estado == 1) {
ac--;
if (ac < 0) {
dir = _root.round(Math.random() * 8);
ac = _root.round(Math.random() * 20);
} else {
if (dir == 0) {
mover(0, vel2);
}
if (dir == 1) {
mover(0, -vel2);
}
if (dir == 2) {
mover(vel2, vel2);
}
if (dir == 3) {
mover(vel2, 0);
}
if (dir == 4) {
mover(vel2, -vel2);
}
if (dir == 5) {
mover(-vel2, -vel2);
}
if (dir == 6) {
mover(-vel2, 0);
}
if (dir == 7) {
mover(-vel2, vel2);
}
if (dir > 1) {
if (dir > 4) {
this._xscale = -10;
} else {
this._xscale = 10;
}
}
if (dir == 8) {
estado = 0;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
}
} else if (estado == 2) {
if (_root.Beth.estado < 20) {
if (this._y > _root.Beth._y) {
mover(0, -vel);
}
if (this._y < _root.Beth._y) {
mover(0, vel);
}
if ((this._x + DAmax) < _root.Beth._x) {
this._xscale = 10;
mover(vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if ((this._x - DAmax) > _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
if (Math.abs(this._y - _root.Beth._y) < 4) {
if (spell != "") {
estado = 4;
ac = 0;
atacando = false;
stop();
}
}
} else if (Math.abs(this._x - _root.Beth._x) < DAmin) {
if (this._x < _root.Beth._x) {
this._xscale = -10;
mover(-vel, 0);
} else {
this._xscale = 10;
mover(vel, 0);
}
} else if (Math.abs(this._y - _root.Beth._y) < 4) {
if (this._x > _root.Beth._x) {
this._xscale = -10;
} else {
this._xscale = 10;
}
estado = 3;
ac = 0;
atacando = false;
stop();
andando = 1;
}
if (andando == 0) {
andando = 1;
gotoAndPlay ("andar");
}
} else if (_root.Beth.estado == 103) {
if (fatality > 0) {
_root.Beth.estado = fatality;
_root.Beth.raper = this;
}
} else {
estado = 0;
}
} else if (estado == 3) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay ("atacar");
atacando = true;
BethGolpeada = false;
andando = 0;
}
} else if (!BethGolpeada) {
if (BethAtacable()) {
_root.Beth.HP = _root.Beth.HP - _root.da\u00F1o(_root.d(da\u00F1o, nivel + 1), _root.Beth.CAF, _root.Beth._x, _root.Beth._y);
BethGolpeada = true;
}
}
if (!atacando) {
estado = 0;
}
ac++;
} else if (estado == 4) {
if (ac < 2) {
if (!atacando) {
gotoAndPlay(spell);
atacando = true;
andando = 0;
}
}
if (!atacando) {
lanzarConjuro();
estado = 0;
}
ac++;
} else if (estado == 15) {
ac++;
if (ac > 5) {
estado = 0;
ac = 0;
} else if (this._xscale > 0) {
mover(-3, 0);
} else {
mover(3, 0);
}
} else if (estado == 20) {
gotoAndStop ("vacio");
lanzadaClip._y = (-h) * 10;
reset_barrita();
ac = ac - 1;
h = h + ac;
mover(((-this._xscale) * 3) / 10, 0);
if (ac == -8) {
estado = 100;
lanzadaClip.removeMovieClip();
gotoAndStop ("muerta");
reset_barrita();
ac = 0;
}
} else if (estado == 100) {
ac++;
if (recover) {
if (HP > 0) {
ac = 40;
}
}
if (ac > 30) {
if (HP > 0) {
estado = 0;
} else {
_root.exp(XP, this._x, this._y);
estado = 101;
ac = 0;
this._visible = false;
barrita._visible = false;
}
}
} else if (estado == 101) {
if (respawn > 0) {
ac++;
if (ac > respawn) {
estado = 0;
HP = MHP;
if (MMP > 1) {
MP = MMP;
}
this._visible = true;
}
}
}
barrita.b1 = HP;
}
}
var vel = 2;
var vel2 = 1;
var nivel = 1;
var da\u00F1o = 3;
var MHP = 6;
var MMP = 1;
var MSP = 100;
var CAF = 0;
var RF = 0;
var XP = 1;
var fatality = -1;
var spell = "";
var recover = false;
var lanzadaN = "rata_volando";
var produce_sombra = true;
var respawn = 1000;
vel = 1;
vel2 = 1;
initvars(5);
MMP = 1;
MSP = 100;
CAF = 8;
RF = 2;
spell = "Spell_Slimeball";
fatality = 152;
lanzadaN = "Slime_Boss_volando";
respawn = 0;
var HP = MHP;
var MP;
var SP = 0;
if (MMP < 2) {
MP = 0;
} else {
MP = MMP;
}
var andando = 0;
var estado = 0;
if (!this._visible) {
estado = 101;
}
var ac = 0;
var h;
var dir = 0;
_root.addSprite(this);
var barrita = _root.barra(this, 50, HP, MHP, MP, MMP, SP, MSP);
var lanzadaClip;
var sombra;
if (produce_sombra) {
sombra = _root.darSombra(this);
}
var atacando = false;
var BethGolpeada = true;
var DA = 0;
var DAmax = 0;
var DAmin = 0;
var testeandodistancias = true;
this.load = cargando;
this.onEnterFrame = entrando;
stop();
Symbol 912 MovieClip Frame 11
gotoAndPlay ("andar");
Symbol 912 MovieClip Frame 20
atacando = false;
stop();
Symbol 912 MovieClip Frame 31
atacando = false;
stop();
Symbol 912 MovieClip Frame 88
stop();
Symbol 912 MovieClip Frame 114
SP = SP + 3;
if (SP > 100) {
SP = 100;
}
if (SP > 50) {
falo.gotoAndStop(SP - 49);
}
if (SP < 100) {
gotoAndPlay ("rape1_loop");
}
Symbol 912 MovieClip Frame 115
falo.gotoAndPlay("cum");
stop();
Symbol 914 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 916 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 919 MovieClip Frame 1
function entrando() {
if (_root.Beth._y < this._y) {
gotoAndStop ("b");
} else {
gotoAndStop ("a");
}
}
_root.addSprite(this);
this.onEnterFrame = entrando;
stop();
Symbol 921 MovieClip Frame 1
_root.addSprite(this);
var sombra = _root.darSombraInmovil(this);
stop();
Symbol 923 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 925 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 940 MovieClip Frame 1
function entrando() {
if (this._visible) {
if (estado == 0) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 20;
estado = 1;
ac = 0;
_root.decir(this, "Hello, young lady. Could you please help me?", 50);
}
}
} else if (estado == 1) {
ac++;
if (ac == 50) {
_root.decir(this, "I need 10 red mushrooms, but my arthritis makes me too difficult to find them. Could you please find them for me?", 250);
_root.Beth.estado = 0;
} else if (ac > 100) {
ac = 0;
estado = 2;
}
} else if (estado == 2) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
if (_root.isItemInInv("Item_Champi", 10)) {
_root.decir(this, "Thanks a lot, young lady!", 50);
_root.removeItemInInv("Item_Champi", 10);
_root.exp(5 * _root.expMob(1), this._x, this._y);
_root.Beth.estado = 0;
estado = 3;
} else {
_root.decir(this, "You don't have 10 red mushrooms.", 70);
_root.Beth.estado = 0;
}
}
}
} else if (estado == 3) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 20;
estado = 4;
ac = 0;
_root.decir(this, "Young lady, could you please help me once Again? A huge grey rat eats my food while I'm not at home.", 250);
}
}
} else if (estado == 4) {
ac++;
if (ac == 150) {
_root.decir(this, "You'll find the rat going West. Please, kill it and be careful.", 250);
}
if (ac > 150) {
_root.RataBoss.estado = 0;
_root.RataBoss._visible = true;
_root.Beth.estado = 0;
estado = 5;
}
} else if (estado == 5) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
if (_root.RataBoss.estado == 101) {
_root.decir(this, "Thanks again, young lady! As reward, take this key. It opens a metal chest. Consider all in the chest as a present for your help", 300);
_root.addToInv(_root.str2obj("Item_Llave1"));
_root.exp(2 * _root.expMob(1), this._x, this._y);
_root.Beth.MMP = _root.Beth.level * 5;
_root.Beth.MP = _root.Beth.MMP;
estado = 6;
} else {
_root.decir(this, "The grey rat is still alive. Please, kill it.", 100);
}
_root.Beth.estado = 0;
}
}
} else if (estado == 6) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.decir(this, "You'll find the chest going South. Inside it, there is a strange rock. It's a rune. It will allow you to use arcane powers. But beware of snakes in the way", 300);
_root.Beth.estado = 0;
}
}
}
}
}
_root.addSprite(this);
var estado = 0;
var ac = 0;
var sombra = _root.darSombra(this);
this.onEnterFrame = entrando;
stop();
Symbol 943 MovieClip Frame 1
function entrando() {
if (abierto == 0) {
if (_root.Beth.estado == 18) {
if (_root.distancia(_root.Beth, this, 24, 8)) {
_root.Beth.estado = 0;
abierto = 1;
gotoAndStop (2);
i = 0;
while (i < 5) {
j = _root.d(4, 0);
if (j == 0) {
c = _root.ItemFijo_Goldbag_L1;
} else if (j == 1) {
c = _root.ItemFijo_PotionHP1;
} else {
c = null;
}
if (c != null) {
c._x = (this._x + (12 * i)) - 24;
c._y = this._y + 12;
c._visible = true;
}
i++;
}
}
}
}
}
_root.addSprite(this);
var abierto = 0;
var i;
var j;
var c;
this.onEnterFrame = entrando;
stop();
Symbol 950 MovieClip Frame 1
function entrando() {
if (abierto == 0) {
if (_root.Beth.estado == 18) {
if (_root.distancia(_root.Beth, this, 24, 8)) {
if (_root.isItemInInv("Item_Llave1", 1)) {
_root.Beth.estado = 0;
_root.removeItemInInv("Item_Llave1", 1);
abierto = 1;
gotoAndStop (2);
_root.cofre1_botin1._visible = true;
_root.cofre1_botin2._visible = true;
_root.cofre1_botin3._visible = true;
_root.cofre1_botin4._visible = true;
_root.cofre1_botin5._visible = true;
_root.cofre1_botin6._visible = true;
_root.Item_Carta_Vieja._visible = true;
_root.Vieja._visible = false;
} else {
_root.decir(_root.Beth, "It's locked.", 50);
}
}
}
}
}
_root.addSprite(this);
var abierto = 0;
this.onEnterFrame = entrando;
stop();
Symbol 952 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 954 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 956 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 958 MovieClip Frame 1
_root.addSprite(this);
stop();
Symbol 960 MovieClip Frame 1
function entrando() {
if (this._visible) {
if (_root.distancia(_root.Beth, this, 44, 28)) {
if (_root.Beth.estado == 18) {
_root.Beth.ac = _root.Beth.frame_patada - 15;
_root.Beth.estado = 21;
_root.Beth._x = this._x;
_root.Beth._y = this._y;
_root.Beth._xscale = this._xscale;
_root.decir(_root.Beth, "I think I need some sleep.", 70);
}
}
}
}
_root.addSprite(this);
this.onEnterFrame = entrando;
stop();
Symbol 964 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 7
stop();
Symbol 991 MovieClip Frame 1
function entrando() {
if (this._visible) {
if (estado == 0) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 1;
_root.decir(this, "I've saved you 3 times. Don't you think I deserve a reward?", 150);
}
}
} else if (estado == 1) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 2;
_root.decir(_root.Beth, "What can I do for you?", 150);
_root.decir(this, "Could you let me touch your boobies? Just a little?", 150);
}
}
} else if (estado == 2) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
_root.decir(_root.Beth, "Sorry, but I don't feel confortable with that.", 150);
}
if (_root.Beth.estado == 19) {
_root.Beth.estado = 20;
estado = 3;
ac = 0;
_root.decir(_root.Beth, "Ok, go ahead.", 100);
_root.Beth._xscale = 10;
this._xscale = -_root.Beth._xscale;
}
}
} else if (estado == 3) {
ac++;
if (ac == 30) {
gotoAndPlay ("andar");
} else if (ac == 31) {
bc = 0;
ac = 30;
if (this._y < (_root.Beth._y - 1)) {
this._y = this._y + 2;
} else if (this._y > (_root.Beth._y + 1)) {
this._y = this._y - 2;
} else {
bc++;
}
if (this._x < (_root.Beth._x + 26)) {
this._x = this._x + 2;
} else if (this._x > (_root.Beth._x + 28)) {
this._x = this._x - 2;
} else {
bc++;
}
if (bc > 1) {
this._xscale = 10;
this._x = _root.Beth._x + 27;
this._y = _root.Beth._y + 1;
gotoAndPlay ("sacarTaburete");
ac = 31;
}
} else if (ac == 70) {
gotoAndPlay ("girar");
} else if (ac == 90) {
_root.Beth.exprubor(1);
_root.Beth.expcejai(2);
_root.Beth.expcejad(2);
_root.Beth.SP = 20;
} else if ((ac > 90) && (ac < 1000)) {
if (MDc == 0) {
if (_root.d(5, 0) == 0) {
ManoD.gotoAndStop(2);
MDc = _root.d(5, 3);
_root.Beth.SP++;
}
}
if (MIc == 0) {
if (_root.d(5, 0) == 0) {
ManoI.gotoAndStop(2);
MIc = _root.d(5, 3);
}
}
if (MDc > 0) {
MDc--;
} else {
ManoD.gotoAndStop(1);
}
if (MIc > 0) {
MIc--;
} else {
ManoI.gotoAndStop(1);
}
if (_root.Beth.SP > 40) {
_root.Beth.expboca(4);
Cadera.Paquete._alpha = 100;
Cadera.Paquete._xscale = (_root.Beth._xscale * (_root.Beth.SP - 30)) / 5;
}
if (_root.Beth.SP > 60) {
_root.Beth.expojoi(2);
_root.Beth.expojod(2);
_root.Beth.expboca(6);
}
if (_root.Beth.SP > 80) {
ac = 1000;
_root.Beth.expojoi(1);
_root.Beth.expojod(1);
framegnomo = this._currentframe;
}
} else if ((ac > 1000) && (ac < 1045)) {
framegnomo--;
gotoAndStop(framegnomo);
} else if (ac == 1045) {
stop();
_root.decir(this, "Errrrr.... Sorry... I must go... I have a lot of things to do... See you!", 200);
_root.Beth.expboca(4);
} else if (ac == 1200) {
gotoAndPlay ("andar");
} else if ((ac > 1200) && (ac < 1300)) {
if (this._y < _root.EntradaCueva1._y) {
this._y = this._y + 4;
}
if (this._x < (_root.EntradaCueva1._x - 3)) {
this._x = this._x + 4;
this._xscale = 10;
} else if (this._x > (_root.EntradaCueva1._x + 3)) {
this._x = this._x - 4;
this._xscale = -10;
}
} else if (ac == 1300) {
Cadera.Paquete._visible = false;
this._visible = false;
this._x = _root.CamaGnomo._x + 60;
this._y = _root.CamaGnomo._y;
this._xscale = 10;
gotoAndStop ("parado");
_root.decir(_root.Beth, "Fucking gnome! I was horny and he just goes!", 150);
_root.Beth.slut++;
_root.Beth.expojoi(1);
_root.Beth.expojod(1);
_root.Beth.expboca(3);
_root.Beth.exprubor(0);
_root.Beth.expcejai(1);
_root.Beth.expcejad(1);
_root.Beth.estado = 0;
_global.muertesPorRata = 3;
estado = 4;
}
} else if (estado == 4) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 5;
_root.decir(_root.Beth, "I suppose you want another reward for rescuing me from the rats, right? What is it now?", 200);
_root.decir(this, "Could I rub your thighs and hips?", 100);
}
}
} else if (estado == 5) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
_root.decir(_root.Beth, "Sorry, but I don't feel confortable with that.", 150);
}
if (_root.Beth.estado == 19) {
_root.Beth.estado = 20;
estado = 6;
ac = 0;
_root.decir(_root.Beth, "Ok, go ahead.", 100);
_root.Beth._xscale = 10;
this._xscale = -_root.Beth._xscale;
}
}
} else if (estado == 6) {
ac++;
if (ac == 30) {
gotoAndPlay ("andar");
} else if (ac == 31) {
var bc = 0;
ac = 30;
if (this._y < (_root.Beth._y - 1)) {
this._y = this._y + 2;
} else if (this._y > (_root.Beth._y + 1)) {
this._y = this._y - 2;
} else {
bc++;
}
if (this._x < (_root.Beth._x + 26)) {
this._x = this._x + 2;
} else if (this._x > (_root.Beth._x + 28)) {
this._x = this._x - 2;
} else {
bc++;
}
if (bc > 1) {
this._xscale = 10;
this._x = _root.Beth._x + 27;
this._y = _root.Beth._y + 1;
gotoAndPlay ("sacarTaburete");
ac = 31;
}
} else if (ac == 70) {
gotoAndPlay ("girar");
} else if ((ac > 70) && (ac < 80)) {
if (this._currentframe > 57) {
gotoAndPlay ("inclinarse");
ac = 80;
}
} else if (ac == 90) {
_root.desequiparObjeto(7);
Cadera.Paquete._visible = true;
Cadera.Paquete._alpha = 100;
_root.Beth.exprubor(1);
_root.Beth.expcejai(2);
_root.Beth.expcejad(2);
_root.Beth.SP = 20;
_root.decir(_root.Beth, "I can't believe I let this happen once again.", 150);
bc = 74;
ic = 1;
} else if ((ac > 90) && (ac < 250)) {
bc = bc + ic;
if (bc > 84) {
ic = -1;
_root.Beth.SP++;
}
if (bc < 76) {
ic = 1;
}
gotoAndStop(bc);
} else if (ac == 250) {
_root.decir(_root.Beth, "Mmmmmmmm.", 100);
_root.Beth.expojoi(2);
_root.Beth.expojod(2);
_root.Beth.expboca(6);
gotoAndPlay ("sobeteo2");
bc = 94;
ic = 1;
MIc = 0;
} else if ((ac > 260) && (ac < 450)) {
bc = bc + ic;
if (bc > 103) {
ic = -1;
_root.Beth.SP = _root.Beth.SP + 1;
}
if (bc < 96) {
ic = 1;
}
gotoAndStop(bc);
if (MIc == 0) {
if (_root.d(5, 0) == 0) {
ManoI.gotoAndStop(2);
MIc = _root.d(5, 3);
_root.Beth.SP = _root.Beth.SP + 1;
}
}
if (MIc > 0) {
MIc--;
} else {
ManoI.gotoAndStop(1);
}
} else if (ac == 450) {
_root.decir(_root.Beth, "Oh my god!\nMMMMMMMMMMMMMMMMMM", 100);
_root.Beth.expboca(5);
ManoD.gotoAndStop(3);
bc = 104;
ic = 1;
} else if ((ac > 460) && (ac < 800)) {
ManoD.gotoAndStop(3);
bc = bc + ic;
if (bc > 114) {
ic = -1;
_root.Beth.SP = _root.Beth.SP + 2;
}
if (bc < 106) {
ic = 1;
}
gotoAndStop(bc);
if (MIc == 0) {
if (_root.d(5, 0) == 0) {
ManoI.gotoAndStop(2);
MIc = _root.d(5, 3);
_root.Beth.SP = _root.Beth.SP + 1;
}
}
if (MIc > 0) {
MIc--;
} else {
ManoI.gotoAndStop(1);
}
if (_root.Beth.SP > 100) {
_root.Beth.SP = 100;
_root.decir(_root.Beth, "AHHHHHHHHH!\nI'm cummiiiiiiiing!", 100);
ac = 899;
framegnomo = 59;
bc = 106;
}
} else if ((ac > 900) && (ac < 1000)) {
ManoD.gotoAndStop(1);
ManoI.gotoAndStop(1);
_root.Beth.expboca(4);
bc--;
if (bc > 94) {
_root.Beth.gotoAndStop(bc);
if ((bc % 4) == 0) {
_root.Beth._y--;
}
}
if (bc > 96) {
gotoAndStop(bc - 30);
}
} else if ((ac > 1000) && (ac < 1045)) {
framegnomo--;
gotoAndStop(framegnomo);
} else if (ac == 1045) {
stop();
_root.decir(this, "Errrrr.... Sorry... I must go again... See you!", 150);
} else if (ac == 1150) {
gotoAndPlay ("andar");
} else if ((ac > 1150) && (ac < 1250)) {
if (this._y < _root.EntradaCueva1._y) {
this._y = this._y + 4;
}
if (this._x < (_root.EntradaCueva1._x - 3)) {
this._x = this._x + 4;
this._xscale = 10;
} else if (this._x > (_root.EntradaCueva1._x + 3)) {
this._x = this._x - 4;
this._xscale = -10;
}
} else if (ac == 1250) {
Cadera.Paquete._visible = false;
this._visible = false;
this._x = _root.CamaGnomo._x + 60;
this._y = _root.CamaGnomo._y;
this._xscale = 10;
gotoAndStop ("parado");
_root.decir(_root.Beth, "I can't believe I came!", 100);
_root.Beth.slut++;
_root.Beth.gotoAndPlay("levantarse");
_root.Beth.expojoi(1);
_root.Beth.expojod(1);
_root.Beth.expboca(3);
_root.Beth.exprubor(0);
_root.Beth.expcejai(1);
_root.Beth.expcejad(1);
_global.muertesPorRata = 4;
estado = 7;
}
Cadera.Paquete._xscale = (_root.Beth._xscale * (_root.Beth.SP - 30)) / 5;
}
}
}
_root.addSprite(this);
var estado = 0;
var ac = 0;
var bc = 0;
var ic = 0;
var MDc = 0;
var MIc = 0;
var framegnomo = 0;
var sombra = _root.darSombra(this);
this.onEnterFrame = entrando;
stop();
Symbol 991 MovieClip Frame 22
gotoAndPlay ("andar");
Symbol 991 MovieClip Frame 51
stop();
Symbol 991 MovieClip Frame 52
Tronco.gotoAndStop(2);
Symbol 991 MovieClip Frame 53
Tronco.gotoAndStop(3);
Symbol 991 MovieClip Frame 54
Tronco.gotoAndStop(4);
Symbol 991 MovieClip Frame 55
Tronco.gotoAndStop(5);
Symbol 991 MovieClip Frame 56
Tronco.gotoAndStop(6);
Symbol 991 MovieClip Frame 57
Tronco.gotoAndStop(7);
Symbol 991 MovieClip Frame 66
stop();
Symbol 991 MovieClip Frame 75
stop();
Symbol 991 MovieClip Frame 85
stop();
Symbol 991 MovieClip Frame 95
stop();
Symbol 1044 MovieClip Frame 1
function entrando() {
if (this._visible) {
if (estado == 0) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 1;
_root.decir(this, "Hi miss. I'm a adventurer elf. I've found some treasures. Would you like to see them?", 100);
}
}
}
if (estado == 1) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 1;
_root.decir(this, "Do you want to trade any goods?", 100);
}
if (_root.Inventario._visible) {
if (!comerciando) {
_root.Beth.trader = this;
_root.crearTraderInv(this);
comerciando = true;
}
}
}
}
}
}
var comerciando = false;
var obje = new Array();
var i = 0;
while (i < _global.MAXITEMS) {
obje[i] = new item();
i++;
}
_root.addItemToTrader(this, "Item_PotionH1", 5);
_root.addItemToTrader(this, "Item_PotionM1", 5);
_root.addItemToTrader(this, "Item_PotionHM1", 5);
_root.addItemToTrader(this, "Item_Brazal1", 1);
_root.addItemToTrader(this, "Item_BotasElficas", 1);
_root.addItemToTrader(this, "Item_Panta5", 1);
_root.addItemToTrader(this, "Item_Top", 1);
_root.addItemToTrader(this, "Item_Camiseta2", 1);
_root.addSprite(this);
var estado = 0;
var ac = 0;
var sombra = _root.darSombra(this);
this._xscale = -10;
this.onEnterFrame = entrando;
stop();
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 1
ef2.gotoAndPlay(5);
ef3.gotoAndPlay(10);
stop();
Symbol 1106 MovieClip Frame 1
function entrando() {
if (this._visible) {
if (estado == 0) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 1;
_root.decir(this, "My sister has been abducted by a horrible monster.", 150);
_root.slime_boss.estado = 0;
_root.slime_boss._visible = true;
_root.dawm._visible = true;
}
}
}
if (estado == 1) {
if (_root.dawm.estado == 2) {
estado = 2;
} else if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
_root.decir(this, "I followed the monster to this cave, but it's too dark. I'm so scared. Please, save her!", 150);
gotoAndStop (2);
cara.OjoD.gotoAndStop(1);
cara.OjoI.gotoAndStop(1);
}
}
}
if (estado == 2) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
estado = 3;
_root.decir(this, "Thanks for recuing my sister. You are so valiant. But could you please help me once again? You'll have my eternal gratitude.", 100);
}
}
}
if (estado == 3) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
_root.decir(this, "When I was looking for my sister, I accidentally dropped a ring my mother gave to me and a giant, white lizard swallowed it. Please, bring it back to me at our home in the town.", 150);
}
}
}
}
}
gotoAndStop (3);
_root.addSprite(this);
var estado = 0;
var ac = 0;
var sombra = _root.darSombra(this);
cara.OjoD.gotoAndStop(2);
cara.OjoI.gotoAndStop(2);
cara.boca.gotoAndStop(3);
this.onEnterFrame = entrando;
stop();
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1122 MovieClip Frame 1
stop();
Symbol 1129 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 20
stop();
Symbol 1141 MovieClip Frame 75
stop();
Symbol 1146 MovieClip Frame 1
function set_cup(i) {
cup = i;
if (cup == 1) {
TetaD.bcup._visible = true;
TetaD.ccup._visible = false;
TetaI.bcup._visible = true;
TetaI.ccup._visible = false;
} else {
TetaD.bcup._visible = false;
TetaD.ccup._visible = true;
TetaI.bcup._visible = false;
TetaI.ccup._visible = true;
}
}
function check_piel_parte(c) {
c.gotoAndStop(piel);
}
function check_piel_mano(c) {
c.mano1._visible = false;
c.mano2._visible = false;
c.mano3._visible = false;
c.mano4._visible = false;
if (piel == 1) {
c.mano1._visible = true;
} else if (piel == 2) {
c.mano2._visible = true;
} else if (piel == 3) {
c.mano3._visible = true;
} else if (piel == 4) {
c.mano4._visible = true;
}
}
function check_piel(i) {
piel = i;
check_piel_parte(torso);
check_piel_parte(bdu);
check_piel_parte(biu);
check_piel_parte(bdd);
check_piel_parte(bid);
check_piel_parte(TetaD.bcup);
check_piel_parte(TetaD.ccup);
check_piel_parte(TetaI.bcup);
check_piel_parte(TetaI.ccup);
check_piel_parte(caderas);
check_piel_parte(caderas.chichi);
check_piel_parte(cadera2);
check_piel_parte(lds);
check_piel_parte(lis);
check_piel_parte(ldi);
check_piel_parte(lii);
check_piel_parte(pieD);
check_piel_parte(pieI);
check_piel_mano(md);
check_piel_mano(mi);
check_piel_parte(cabeza);
check_piel_parte(cuello);
}
function checkCara() {
cabeza.boca.gotoAndStop(Boca);
cabeza.od.gotoAndStop(ojoD);
cabeza.oi.gotoAndStop(ojoI);
cabeza.cd.gotoAndStop(CejaD);
cabeza.ci.gotoAndStop(CejaI);
cabeza.Rubor._visible = Rubor > 0;
cabeza.Gafas._visible = slot[8] == "Item_Gafas";
}
function expboca(i) {
Boca = i;
checkCara();
}
function expojod(i) {
ojoD = i;
checkCara();
}
function expojoi(i) {
ojoI = i;
checkCara();
}
function expcejad(i) {
CejaD = i;
checkCara();
}
function expcejai(i) {
CejaI = i;
checkCara();
}
function exprubor(i) {
Rubor = i;
checkCara();
}
function expmanod(i) {
ManoD = i;
vestir_manos(md);
}
function expmanoi(i) {
ManoI = i;
vestir_manos(mi);
}
function init_parte(c) {
c.Gafas._alpha = 100;
c.SujeB._alpha = 100;
c.Camiseta1._alpha = 100;
c.Camiseta2._alpha = 100;
c.Camiseta3._alpha = 100;
c.Top._alpha = 100;
c.Top2._alpha = 100;
c.BraguitasB._alpha = 100;
c.Panta1._alpha = 100;
c.Panta2._alpha = 100;
c.Panta3._alpha = 100;
c.Panta4._alpha = 100;
c.Panta5._alpha = 100;
c.Panta3masc._alpha = 100;
c.Falda1._alpha = 100;
c.Falda1["Apa\u00F1o"]._alpha = 100;
c.Zapato1._alpha = 100;
c.Zapato2._alpha = 100;
c.Zapato3._alpha = 100;
c.BotasElficas._alpha = 100;
c.Brazal1._alpha = 100;
}
function poner(s) {
var _local2 = new item();
_local2.copiar(_root.str2obj(s));
slot[_local2.e] = s;
vestir();
}
function vestir_parte_sup(c) {
c.SujeB._visible = slot[1] == "Item_SujeB";
c.Camiseta1._visible = slot[6] == "Item_Camiseta1";
c.Camiseta2._visible = slot[6] == "Item_Camiseta2";
c.Camiseta3._visible = slot[6] == "Item_Camiseta3";
c.Top._visible = slot[6] == "Item_Top";
c.Top2._visible = slot[6] == "Item_Top2";
c.Brazal1._visible = slot[5] == "Item_Brazal1";
}
function vestir_parte_inf(c) {
c.BraguitasB._visible = slot[2] == "Item_Braguitas";
c.Panta1._visible = slot[7] == "Item_Panta1";
c.Panta2._visible = slot[7] == "Item_Panta2";
c.Panta3._visible = slot[7] == "Item_Panta3";
c.Panta4._visible = slot[7] == "Item_Panta4";
c.Panta5._visible = slot[7] == "Item_Panta5";
if (slot[7] == "Item_Falda1") {
c.Falda1._visible = true;
c.Falda1["Apa\u00F1o"]._visible = estado == 3;
} else {
c.Falda1._visible = false;
}
}
function vestir_pies(c) {
c.Zapato1._visible = slot[3] == "Item_Zapato1";
c.Zapato2._visible = slot[3] == "Item_Zapato2";
c.Zapato3._visible = slot[3] == "Item_Zapato3";
if (slot[3] == "Item_BotasElficas") {
c.BotasElficas._visible = true;
c.Panta3masc._height = 100;
} else {
c.BotasElficas._visible = false;
c.Panta3masc._height = 300;
}
}
function vestir_manos(c) {
if (c.pos == 1) {
if (slot[4] != "") {
c.mano1.gotoAndStop(3);
c.mano2.gotoAndStop(3);
c.mano3.gotoAndStop(3);
c.mano4.gotoAndStop(3);
if (slot[4] == "Item_Runa_Fuego") {
c.mano1.Objeto.gotoAndStop(1);
c.mano2.Objeto.gotoAndStop(1);
c.mano3.Objeto.gotoAndStop(1);
c.mano4.Objeto.gotoAndStop(1);
} else if (slot[4] == "Item_Ojo") {
c.mano1.Objeto.gotoAndStop(2);
c.mano2.Objeto.gotoAndStop(2);
c.mano3.Objeto.gotoAndStop(2);
c.mano4.Objeto.gotoAndStop(2);
}
} else {
c.mano1.gotoAndStop(ManoI);
c.mano2.gotoAndStop(ManoI);
c.mano3.gotoAndStop(ManoI);
c.mano4.gotoAndStop(ManoI);
}
} else {
c.mano1.gotoAndStop(ManoD);
c.mano2.gotoAndStop(ManoD);
c.mano3.gotoAndStop(ManoD);
c.mano4.gotoAndStop(ManoD);
}
}
function vestir() {
vestir_parte_sup(torso);
vestir_parte_sup(bdu);
vestir_parte_sup(bdd);
vestir_parte_sup(biu);
vestir_parte_sup(bid);
vestir_parte_sup(TetaD.bcup);
vestir_parte_sup(TetaD.ccup);
vestir_parte_sup(TetaI.bcup);
vestir_parte_sup(TetaI.ccup);
vestir_parte_inf(caderas);
vestir_parte_inf(cadera2);
vestir_parte_inf(lds);
vestir_parte_inf(lis);
vestir_parte_inf(ldi);
vestir_parte_inf(lii);
vestir_pies(pieD);
vestir_pies(pieI);
vestir_pies(ldi);
vestir_pies(lii);
vestir_manos(md);
vestir_manos(mi);
checkCara();
}
function entrando() {
if (this._visible) {
if (estado == 0) {
if (_root.slime_boss.HP > 0) {
ac++;
if (ac == 150) {
_root.decir(this, "\n\n\nPLEASE!!! HELP MEEEE!!!", 50);
} else if (ac > 300) {
_root.decir(this, "\n\n\nPLEASE!!! KILL THE SLIME!!!", 50);
ac = 0;
}
} else if (_root.distancia(_root.Beth, this, 60, 40)) {
ac = 0;
estado = 1;
_root.Beth.estado = 20;
_root.exp(5 * _root.expMob(4), this._x, this._y);
}
}
if (estado == 1) {
ac++;
if (ac <= 50) {
Ataduras._alpha = (50 - ac) * 2;
} else if (ac == 51) {
gotoAndPlay ("atada");
vestir();
check_piel_parte(bdu);
} else if (ac == 52) {
vestir();
check_piel_parte(bdu);
} else if (ac == 75) {
gotoAndPlay ("andar");
_root.Beth.gotoAndStop("parada");
vestir();
check_piel_parte(bdu);
expboca(5);
_root.decir(this, "Thanks a lot! You saved me!", 100);
} else if ((ac > 75) && (ac < 300)) {
_root.moverA(this, _root.Beth._x + (_root.Beth._xscale * 2), _root.Beth._y, 2, 2);
if ((_root.abs(this._x - (_root.Beth._x + (_root.Beth._xscale * 2))) + _root.abs(_root.Beth._y - this._y)) < 3) {
ac = 300;
}
} else if (ac == 301) {
this.gotoAndPlay("parada");
this._y = _root.Beth._y + 0.1;
this._xscale = -_root.Beth._xscale;
} else if (ac == 350) {
_root.decir(this, "You are so valiant... and pretty...", 100);
gotoAndPlay ("andar");
} else if ((ac > 350) && (ac < 400)) {
var _local3 = _root.Beth._x + (_root.Beth._xscale * 1.2);
_root.moverA(this, _local3, _root.Beth._y, 2, 2);
if ((_root.abs(this._x - _local3) + _root.abs(_root.Beth._y - this._y)) < 3) {
ac = 400;
}
} else if (ac == 401) {
var _local3 = _root.Beth._x + (_root.Beth._xscale * 1.2);
this.gotoAndPlay("parada");
this._x = _local3;
this._y = _root.Beth._y + 0.1;
this._xscale = -_root.Beth._xscale;
} else if (ac == 500) {
gotoAndPlay ("besar");
j = _currentframe;
vestir();
check_piel_parte(bdu);
_root.Beth.exprubor(1);
_root.Beth.expcejad(2);
_root.Beth.expcejai(2);
} else if (((((ac == 550) || (ac == 580)) || (ac == 610)) || (ac == 680)) || (ac == 760)) {
cabeza.gotoAndPlay("besar");
_root.Beth.expboca(3);
} else if ((ac == 630) || (ac == 710)) {
cabeza.gotoAndPlay("besarconlengua");
expojod(2);
expojoi(2);
_root.decir(_root.Beth, "Mmmmmmmmmmmm", 50);
_root.Beth.expojod(2);
_root.Beth.expojoi(2);
_root.Beth.expboca(4);
} else if ((ac > 550) && (ac < 800)) {
if ((ac % 2) == 0) {
_root.Beth.SP++;
if (_root.Beth.SP > 90) {
_root.Beth.SP = 90;
}
}
} else if ((ac > 850) && (ac < 900)) {
if (_currentframe > j) {
gotoAndStop(_currentframe - 1);
}
expojod(1);
expojoi(1);
} else if (ac == 900) {
cabeza.gotoAndPlay(1);
expboca(5);
_root.decir(this, "Mmmmmmm, your lips are so sweet... I could spend hours kissing you, but my sister must be worried about me.", 200);
_root.Beth.expojod(1);
_root.Beth.expojoi(1);
} else if (ac == 1000) {
gotoAndPlay ("andar");
vestir();
check_piel_parte(bdu);
} else if ((ac > 1000) && (ac < 1200)) {
_root.moverA(this, _root.elfita._x, _root.elfita._y, 2, 2);
} else if (ac > 1200) {
estado = 2;
ac = 0;
this._x = _root.elfita._x - 20;
this._y = _root.elfita._y;
this._xscale = 10;
_root.elfita.cara.boca.gotoAndStop(3);
gotoAndPlay ("parada");
_root.Beth.exprubor(0);
_root.Beth.expcejad(1);
_root.Beth.expcejai(1);
_root.Beth.estado = 0;
_root.decir(_root.Beth, "Wow! I never thought kissing a girl could be so arousing!", 100);
}
}
if (estado == 2) {
if (_root.distancia(_root.Beth, this, 15, 7)) {
if (_root.Beth.estado == 18) {
_root.Beth.estado = 0;
_root.decir(this, "Thanks again for saving me, my hero.", 50);
}
if (_root.Beth.estado == 19) {
_root.Beth.estado = 0;
_root.decir(this, "I'd love doing with you what you are thinking, but I must lead my sister home.", 150);
}
}
}
}
}
var sudor = 0;
var ojoD = 1;
var ojoI = 1;
var Boca = 2;
var CejaI = 1;
var CejaD = 1;
var Rubor = 0;
var ManoD = 1;
var ManoI = 1;
var piel = 1;
var cup = 1;
md.pos = 0;
mi.pos = 1;
var slot = new Array();
var i = 0;
while (i < _global.MAXEQUIP) {
slot[i] = "";
i++;
}
init_parte(torso);
init_parte(bdu);
init_parte(bdd);
init_parte(biu);
init_parte(bid);
init_parte(TetaD.bcup);
init_parte(TetaD.ccup);
init_parte(TetaI.bcup);
init_parte(TetaI.ccup);
init_parte(caderas);
init_parte(lds);
init_parte(lis);
init_parte(ldi);
init_parte(lii);
init_parte(pieD);
init_parte(pieI);
init_parte(md);
init_parte(mi);
init_parte(cabeza);
check_piel(1);
set_cup(2);
var SP = 0;
check_piel(2);
set_cup(1);
cabeza.gotoAndStop(1);
poner("Item_Top");
poner("Item_Panta5");
poner("Item_BotasElficas");
expboca(4);
var estado = 0;
var ac = 0;
_root.addSprite(this);
var sombra = _root.darSombra(this);
gotoAndStop ("atada");
var j;
this.onEnterFrame = entrando;
stop();
Symbol 1146 MovieClip Frame 44
gotoAndPlay ("parada");
Symbol 1146 MovieClip Frame 76
gotoAndPlay ("andar2");
Symbol 1146 MovieClip Frame 77
vestir_parte_sup(bdu);
stop();
Symbol 1146 MovieClip Frame 85
stop();
Symbol 1146 MovieClip Frame 98
cabeza.gotoAndStop(2);
Symbol 1146 MovieClip Frame 110
stop();
Symbol 1155 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1157 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1159 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1186 MovieClip Frame 1
var health = ((_root.Beth.HP + "/") + _root.Beth.MHP);
var magic = ((_root.Beth.MP + "/") + _root.Beth.MMP);
var AP = ((_root.Beth.AP + "/") + _root.Beth.MAP);
var Nexp = _root.nextlevel(_root.Beth.level);
var horny = ((_root.Beth.SP + "/") + _root.Beth.MSP);
Symbol 1186 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1223 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local3 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
stop();