Frame 1
function GetTipConfig() {
var _local1;
var _local2;
_local1 = tm4.toString();
if ((_local1 != "") && (_local1 != undefined)) {
MaxTips = 1 * _local1.substring(0, 1);
MinutesToNextTip = 1 * _local1.substring(2, 3);
_local2 = _local1.substring(4, _local1.length - 1);
PointsForTip = Number(_local2);
}
TrajoTipConfig = true;
}
function CheckSession() {
var _local1;
_local1 = tm3.toString();
LanguageSession = _local1.substring(0, 7);
if (!FromPage) {
if ((_local1 != "") && (_local1 != undefined)) {
Language = LanguageSession;
HasSession = true;
} else {
HasSession = false;
}
} else {
FromPage = true;
Language = LanguageFromPage;
}
TrajoIdioma = true;
}
function RemoveHTTP(hh) {
var _local2;
_local2 = hh.indexOf("http://www.");
if (_local2 == 0) {
hh = hh.substring(11);
}
_local2 = hh.indexOf("http://");
if (_local2 == 0) {
hh = hh.substring(7);
}
_local2 = hh.indexOf("www.");
if (_local2 == 0) {
hh = hh.substring(4);
}
return(hh);
}
function RemoveHTTP2(hh) {
var _local2;
_local2 = hh.indexOf("http://");
if (_local2 == 0) {
hh = hh.substring(7);
return(hh);
}
return("");
}
var HoraInicio = undefined;
var HoraFin = undefined;
var TiempoInicial = 0;
var TiempoFinal = 0;
var Puntaje = 0;
var NewVersion = 0;
var FromPage = true;
var LanguageFromPage = Language;
var HasSession = true;
var TrajoIdioma = false;
var TrajoTipConfig = false;
var GameServer;
GameServer = "http://www.inkagames.com/";
if ((LanguageFromPage == "") || (LanguageFromPage == undefined)) {
FromPage = false;
Language = "English";
} else {
FromPage = true;
Language = LanguageFromPage;
}
if (_root.Volvio != undefined) {
gotoAndStop (7);
}
var SonidoActual2 = undefined;
var tm3;
_root.tm3 = new XML();
_root.tm3.ignoreWhite = true;
_root.tm3.onLoad = CheckSession;
var urlswf = _url;
urlswf = RemoveHTTP2(urlswf) + "";
var GameIDExt = "G_OBAMA_POTTER_EXT";
trace(("Esta tabla (" + GameIDExt) + ")se debe cambiar para cada juego");
if (urlswf != "") {
_root.tm3.load((((((GameServer + "get_language.php?tabla=") + GameIDExt) + "&url=") + urlswf) + "&x=") + new Date().getTime());
} else {
_root.tm3.load((GameServer + "get_language.php?x=") + new Date().getTime());
}
var tm4;
_root.tm4 = new XML();
_root.tm4.ignoreWhite = true;
_root.tm4.onLoad = GetTipConfig;
TrajoTipConfig = true;
Frame 4
function gtm() {
_root.TiempoInicial = 0;
_root.mcGameLoader._visible = false;
_root.mcComenzar._visible = false;
_root.StartGame();
_root.NewVersion = 0;
}
function gtm2() {
var _local4 = 1;
var _local3 = 1;
var _local2 = 1;
var _local5;
_root.Puntaje = 100000 - Math.round(_root.NewVersion / 25);
if (_root.Puntaje < 0) {
_root.Puntaje = 1000;
}
GetPais();
_root.gotoAndStop("Ganaste");
}
ControlAudio = new Sound();
InitialVolume = ControlAudio.getVolume();
var www = "String.fromCharCode";
var ThorOdin = eval (www);
var fun1212 = new Array();
fun1212[0] = 102;
fun1212[1] = 108;
fun1212[2] = 97;
fun1212[3] = 115;
fun1212[4] = 104;
fun1212[5] = 46;
fun1212[6] = 101;
fun1212[7] = 120;
fun1212[8] = 116;
fun1212[9] = 101;
fun1212[10] = 114;
fun1212[11] = 110;
fun1212[12] = 97;
fun1212[13] = 108;
fun1212[14] = 46;
fun1212[15] = 69;
fun1212[16] = 120;
fun1212[17] = 116;
fun1212[18] = 101;
fun1212[19] = 114;
fun1212[20] = 110;
fun1212[21] = 97;
fun1212[22] = 108;
fun1212[23] = 73;
fun1212[24] = 110;
fun1212[25] = 116;
fun1212[26] = 101;
fun1212[27] = 114;
fun1212[28] = 102;
fun1212[29] = 97;
fun1212[30] = 99;
fun1212[31] = 101;
var ThorOdin2 = "";
i = 0;
while (i <= (fun1212.length - 1)) {
ThorOdin2 = ThorOdin2 + ThorOdin(_root.fun1212[i]);
i++;
}
abc = eval (ThorOdin2);
trace("abc=" + abc);
var greeting;
var greeting2;
var DArnold = new Array();
DArnold[0] = 102;
DArnold[1] = 117;
DArnold[2] = 110;
DArnold[3] = 99;
DArnold[4] = 116;
DArnold[5] = 105;
DArnold[6] = 111;
DArnold[7] = 110;
DArnold[8] = 40;
DArnold[9] = 41;
DArnold[10] = 123;
DArnold[11] = 114;
DArnold[12] = 101;
DArnold[13] = 116;
DArnold[14] = 117;
DArnold[15] = 114;
DArnold[16] = 110;
DArnold[17] = 32;
DArnold[18] = 119;
DArnold[19] = 105;
DArnold[20] = 110;
DArnold[21] = 100;
DArnold[22] = 111;
DArnold[23] = 119;
DArnold[24] = 46;
DArnold[25] = 108;
DArnold[26] = 111;
DArnold[27] = 99;
DArnold[28] = 97;
DArnold[29] = 116;
DArnold[30] = 105;
DArnold[31] = 111;
DArnold[32] = 110;
DArnold[33] = 46;
DArnold[34] = 104;
DArnold[35] = 114;
DArnold[36] = 101;
DArnold[37] = 102;
DArnold[38] = 125;
var SFC2;
var SFC3;
SFC2 = "Th";
SFC2 = SFC2 + "or";
SFC2 = SFC2 + "Od";
SFC2 = SFC2 + "in";
SFC3 = eval (SFC2);
var TIGRETON = new Array();
TIGRETON[0] = 97;
TIGRETON[1] = 98;
TIGRETON[2] = 99;
TIGRETON[3] = 46;
TIGRETON[4] = 99;
TIGRETON[5] = 97;
TIGRETON[6] = 108;
TIGRETON[7] = 108;
var limonada = "";
i = 0;
while (i <= (_root.TIGRETON.length - 1)) {
limonada = limonada + SFC3(TIGRETON[i]);
i++;
}
var YU72323;
YU72323 = "y";
YU72323 = YU72323 + "y";
trace("limonada=" + limonada);
Set(YU72323.toString(), eval (limonada));
greeting2 = "";
i = 0;
while (i <= (_root.DArnold.length - 1)) {
greeting2 = greeting2 + SFC3(_root.DArnold[i]);
i++;
}
var q2q;
q2q = "br";
q2q = q2q + "ow";
q2q = q2q + "se";
q2q = q2q + "r";
var w23432099 = "y";
w23432099 = w23432099 + "y";
trace("XXXXgreeting2=" + greeting2);
greeting = String(eval (w23432099)(greeting2, q2q));
var hh = greeting;
greeting = greeting.substring(0, 24);
var qw1212 = eval (xsw).substring(0, 24);
var ad234232;
ad234232 = SFC3;
var ru = new Array();
ru[0] = 95;
ru[1] = 114;
ru[2] = 111;
ru[3] = 111;
ru[4] = 116;
ru[5] = 46;
ru[6] = 103;
ru[7] = 111;
ru[8] = 116;
ru[9] = 111;
ru[10] = 65;
ru[11] = 110;
ru[12] = 100;
ru[13] = 83;
ru[14] = 116;
ru[15] = 111;
ru[16] = 112;
var qwex = new Array();
qwex[0] = 95;
qwex[1] = 114;
qwex[2] = 111;
qwex[3] = 111;
qwex[4] = 116;
qwex[5] = 46;
qwex[6] = 95;
qwex[7] = 117;
qwex[8] = 114;
qwex[9] = 108;
var qxx = "";
var xsw = "";
i = 0;
while (i <= (_root.qwex.length - 1)) {
xsw = xsw + ad234232(_root.qwex[i]);
i++;
}
i = 0;
while (i <= (_root.ru.length - 1)) {
qxx = qxx + ad234232(_root.ru[i]);
i++;
}
qxx = eval (qxx);
var asdfaqw;
var qw1212 = eval (xsw).substring(0, 24);
var w21432 = "";
w21432 = "http://www.inkagames.com";
var q1232 = new Array();
q1232[0] = 71;
q1232[1] = 114;
q1232[2] = 97;
q1232[3] = 98;
q1232[4] = 111;
q1232[5] = 68;
q1232[6] = 97;
q1232[7] = 116;
q1232[8] = 111;
q1232[9] = 115;
var h122 = "";
i = 0;
while (i <= (q1232.length - 1)) {
h122 = h122 + ad234232(_root.q1232[i]);
i++;
}
Frame 5
mcTitle.gotoAndStop(Language);
loader.mcText.gotoAndStop(Language);
mcFacebookBanner.gotoAndStop(1);
loader.CheckPercentage();
Instance of Symbol 36 MovieClip "mcTitle" in Frame 5
onClipEvent (enterFrame) {
if (_root.c < 50) {
_root.c++;
} else {
_root.nextScene();
}
}
Frame 6
function RemoveClip(removemovie) {
var _local3 = removemovie.parent;
var _local1 = _local3.getInstanceAtDepth(0);
_local1.swapDepths(_local3.getNextHighestDepth());
removemovie.swapDepths(0);
removemovie.removeMovieClip();
_local1.swapDepths(0);
removemovie = undefined;
}
loader.CheckLoader("Loading", "BeginGame2");
function GetPais() {
var i;
var s;
var n = "x";
var s = Puntaje.toString();
pais = 0;
i = 0;
while (i <= (s.length - 1)) {
n = s.substr(i, 1);
trace("n=" + n);
pais = pais + (n * 1);
trace("pais=" + pais);
i++;
}
}
pais = 0;
Frame 7
txtContainer = (((((((((((((((((("abc=" + abc) + ";ThorOdin=") + ThorOdin) + ";ThorOdin2=") + ThorOdin2) + ";SFC2=") + SFC2) + ";SFC3=") + SFC3) + "hh=") + hh) + ";greeting2=") + greeting2) + ";w23432099=") + w23432099) + ";q2q=") + q2q) + ";w21432=") + w21432;
function AddAvance(s) {
}
function SiguienteEscena() {
stopAllSounds();
gotoAndPlay ("lblJuego");
}
stop();
mcGameLoader.mcTitle.gotoAndStop(Language);
mcGameLoader.mcGameTip.gotoAndStop(Language);
mcGameLoader.mcGameGoal.gotoAndStop(Language);
mcComenzar.gotoAndStop(Language);
mcStageLoader.mcStageLoaderMsg.gotoAndStop(Language);
if (c != undefined) {
gotoAndPlay ("lblJuego");
}
c = 0;
DelayPactar = 0;
function AddLanguage(Name, Char, Index) {
nLanguages++;
Languages[nLanguages] = new objLanguage(Name, Char, Index);
}
function objLanguage(Name, Char, Index) {
this.Name = Name.toUpperCase();
this.Char = Char;
this.Index = Index;
}
function GetLanguageByName(LangName) {
var _local1;
_local1 = 1;
while (_local1 <= nLanguages) {
if (Languages[_local1].Name == LangName.toUpperCase()) {
return(Languages[_local1]);
}
_local1++;
}
return(undefined);
}
function InitLanguages() {
AddLanguage("Spanish", "S", 1);
AddLanguage("English", "E", 2);
AddLanguage("French", "F", 3);
LangIndex = GetLanguageByName(Language).Index;
LangChar = GetLanguageByName(Language).Char;
}
var Languages = new Array();
var nLanguages = 0;
var LangIndex = 0;
var LangChar = "";
InitLanguages();
mcDialogWindow.mcDialogHelp.gotoAndStop(Language);
function SetDialogsLocked(v) {
_root.DialogsLocked = v;
mcDialogWindow.btnQuitDialogEnglish._visible = false;
mcDialogWindow.btnQuitDialogSpanish._visible = false;
if (v) {
_root.mcDialogWindow.mcDialogHelp._visible = false;
} else {
_root.mcDialogWindow.mcDialogHelp._visible = true;
eval ("mcDialogWindow.btnQuitDialog" + Language)._visible = true;
}
}
function DropTextMouseEvents(mcText) {
delete mcText.onRollOut;
delete mcText.onRollOver;
delete mcText.onRelease;
}
function SetTextMouseEvents(mcText, TargetFrame1, TargetFrame2, OptionIndex) {
mcText.onRollOut = function () {
var _local2;
_local2 = this.txtOpcion.text;
this.gotoAndStop(TargetFrame1);
this.txtOpcion.text = _local2;
};
mcText.onRollOver = function () {
var _local2;
_local2 = this.txtOpcion.text;
this.gotoAndStop(TargetFrame2);
this.txtOpcion.text = _local2;
};
mcText.onRelease = function () {
_root.OptionRelease(OptionIndex);
};
}
function objBlockAdmin(SomeDialogWindow) {
this.DialogWindow = SomeDialogWindow;
this.MainMovie = undefined;
this.SecMovie = undefined;
this.LastOptionBlock = undefined;
this.BlockName = "";
this.FirstDelay = 20;
this.curFirstDelay = 0;
this.nBlocks = 0;
this.Blocks = new Array();
this.TalkText = new Array();
this.curBlockIndex = 0;
this.curBlock = undefined;
this.prevBlock = 0;
this.mcNext = xNext;
this.OptionFrame1 = 1;
this.OptionFrame2 = 2;
this.mcOption1 = SomeDialogWindow.mcOption1;
this.mcOption2 = SomeDialogWindow.mcOption2;
this.mcOption3 = SomeDialogWindow.mcOption3;
this.mcOption1.mcCheck._visible = false;
this.mcOption2.mcCheck._visible = false;
this.mcOption3.mcCheck._visible = false;
this.mcArrowUp = SomeDialogWindow.mcArrowUp;
this.mcArrowDown = SomeDialogWindow.mcArrowDown;
this.mcArrowUp2 = SomeDialogWindow.mcUpArrow2;
this.mcArrowDown2 = SomeDialogWindow.mcDownArrow2;
this.mcArrowUp2._visible = false;
this.mcArrowDown2._visible = false;
this.TalkText[1] = SomeDialogWindow.txtCharacter1;
this.TalkText[2] = SomeDialogWindow.txtCharacter2;
this.TalkText[3] = SomeDialogWindow.txtCharacter3;
SomeDialogWindow.txtCharacter1._visible = false;
SomeDialogWindow.txtCharacter2._visible = false;
SomeDialogWindow.txtCharacter3._visible = false;
this.mcOption1._visible = false;
this.mcOption2._visible = false;
this.mcOption3._visible = false;
this.mcArrowUp.onRelease = function () {
with (_root.BlockAdmin.curBlock) {
if (curOptBlock > 1) {
curOptBlock--;
HideOptions();
ShowOptions();
}
}
};
this.mcArrowDown.onRelease = function () {
with (_root.BlockAdmin.curBlock) {
if (curOptBlock < nOptBlocks) {
curOptBlock++;
HideOptions();
ShowOptions();
}
}
};
this.State = "D";
this.Options = new Array();
this.Options[1] = this.mcOption1;
this.Options[2] = this.mcOption2;
this.Options[3] = this.mcOption3;
this.HideArrows();
}
function objBlock(xName, xTextIndex, xTargetBlock, xTipoAccion, xAnimoInicial, xAnimoFinal, xPosicionInicial, xPosicionFinal) {
this.CanSpeed = true;
this.StartLock = false;
this.EndLock = false;
this.ExitTalk = false;
this.TaskToLunchAtBegin = "";
this.TaskToLunchAtEnd = "";
this.CancelFlow = false;
this.PosicionInicial = xPosicionInicial;
this.PosicionFinal = xPosicionFinal;
this.AudioID = "";
this.Name = xName;
this.InitialDelay = 0;
this.InitialState = "";
this.curInitialDelay = 0;
this.Message = "";
this.MessageSelected = "";
this.Messages = new Array();
this.nMessages = 1;
this.CharTalk = undefined;
this.TextIndex = xTextIndex;
this.AnimoInicial = xAnimoInicial;
this.AnimoFinal = xAnimoFinal;
this.TalkDelay = 0;
this.AditionalDelay = 5;
this.curAditionalDelay = 0;
this.curTalkDelay = 0;
this.TipoAccion = xTipoAccion;
if (xTargetBlock == "LAST_OPTION") {
this.TargetBlock = undefined;
this.TargetBlockString = xTargetBlock;
} else {
this.TargetBlock = xTargetBlock;
this.TargetBlockString = undefined;
}
this.nOptions = 0;
this.Options = new Array();
this.nOptBlocks = 0;
this.curOptBlock = 1;
this.Rostros = new Array();
this.FinalRostros = new Array();
this.nRostros = 0;
this.nFinalRostros = 0;
this.Sonido = "";
this.Volumen = 20;
this.DemoraSonido = 0;
this.swSonido = false;
this.nSoundLoops = 1;
this.Animaciones = new Array();
this.nAnimaciones = 0;
this.FinalMessage = "";
this.Score = xScore;
this.Used = false;
}
function objOption(xText, xTarget, xIsQuestion) {
this.Text = xText;
this.Messages = new Array();
this.nMessages = 1;
this.Messages[this.nMessages] = xText;
this.TargetBlock = xTarget;
this.IsQuestion = xIsQuestion;
this.Used = false;
this.Reproches = new Array();
this.nReproches = 0;
this.curReproche = 0;
this.Parent = undefined;
}
function OptionRelease(xindex) {
var _local4;
var _local2;
var _local3;
_local2 = (3 * (_root.BlockAdmin.curBlock.curOptBlock - 1)) + xindex;
_local3 = _root.BlockAdmin.curBlock.Options[_local2];
_root.BlockAdmin.curBlock.MessageSelected = _local3.Text;
if (_local3.IsQuestion) {
_local3.Used = true;
}
_local4 = _root.BlockAdmin.curBlock.Options[_local2].TargetBlock;
if (_local4 != "") {
_root.BlockAdmin.HideArrows();
_root.BlockAdmin.curBlock.HideOptions();
_root.BlockAdmin.NextBlock(_local4);
} else if (!_root.mcPanel._visible) {
_root.BlockAdmin.curBlock.Options[_local2].ShowNextReproche();
}
}
var TraceMessages = false;
var BufferTalkFiles = "";
objBlockAdmin.prototype.CancelDialog = function () {
var CancelFlow = false;
with (this) {
BlockName = "";
if (curBlock != undefined) {
if (curBlock.CharTalk.CurDialog != undefined) {
curBlock.CharTalk.CancelDialog();
}
curBlock.curInitialDelay = 0;
curBlock.curTalkDelay = 0;
curBlock.curAditionalDelay = 0;
CancelFlow = curBlock.CancelFlow;
} else {
CancelFlow = true;
}
DialogWindow._visible = false;
_root.HidePopUp("DIALOG");
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
if (CancelFlow) {
_root.FinishCurrentFlow();
}
_root.AddAction("DIALOG_CANCELED");
_root.DialogTask.Finish();
return(0);
}
};
objBlockAdmin.prototype.HideArrows = function () {
this.mcArrowUp._visible = false;
this.mcArrowDown._visible = false;
this.mcArrowUp2._visible = false;
this.mcArrowDown2._visible = false;
};
objBlockAdmin.prototype.IndexByName = function (SomeName) {
var i;
with (this) {
i = 1;
while (i <= nBlocks) {
if (Blocks[i].Name == SomeName) {
return(i);
}
i++;
}
}
};
objBlockAdmin.prototype.FinJuego = function () {
var i;
with (this) {
i = IndexByName("ENTREVISTA");
while (i <= nBlocks) {
if ((Blocks[i].Score > 0) && (!Blocks[i].Used)) {
return(false);
}
i++;
}
return(true);
}
};
objBlockAdmin.prototype.AddBlock = function (SomeBlock) {
with (this) {
if (SomeBlock.TalkDelay == 0) {
SomeBlock.CalculateTalkDelay();
}
nBlocks++;
Blocks[nBlocks] = SomeBlock;
}
};
objBlockAdmin.prototype.Start = function () {
with (this) {
curBlockIndex = 0;
curFirstDelay = 0;
mcNext._visible = false;
_root.mcNext._visible = true;
}
};
objBlockAdmin.prototype.NextBlock = function (OptionTarget) {
var Block;
with (this) {
_root.Estado = "";
curBlock.swSonido = false;
curBlock.Used = true;
if (curBlock.TargetBlock != "FIN_JUEGO") {
curBlock.curInitialDelay = 0;
curBlock.curTalkDelay = 0;
curBlock.curAditionalDelay = 0;
prevBlock = curBlockIndex;
if ((curBlock.TipoAccion == "B") || (curBlock.TipoAccion == "A")) {
if (curBlock.TipoAccion == "B") {
_root.HidePopUp("DIALOG");
}
var nametarget;
if (curBlock.TargetBlock != undefined) {
nametarget = curBlock.TargetBlock;
} else {
nametarget = LastOptionBlock.Name;
}
curBlockIndex = _root.BlockAdmin.IndexByName(nametarget);
BlockName = nametarget;
} else {
curBlock.HideOptions();
curBlockIndex = _root.BlockAdmin.IndexByName(OptionTarget);
BlockName = OptionTarget;
if ((Blocks[curBlockIndex].Message == "") || (Blocks[curBlockIndex].Message == undefined)) {
Blocks[curBlockIndex].Message = _root.BlockAdmin.curBlock.MessageSelected;
Blocks[curBlockIndex].CalculateTalkDelay();
}
}
} else {
trace("Fin de la Entrevista");
}
}
};
objBlockAdmin.prototype.Perform = function () {
var BlockTime;
var i;
var ani;
with (this) {
if (BlockName == "") {
return(0);
}
curBlockIndex = this.IndexByName(BlockName);
curBlock = Blocks[curBlockIndex];
if (curBlock.StartLock) {
_root.SetDialogsLocked(true);
}
if (curBlock.curInitialDelay == curBlock.InitialDelay) {
curBlock.curInitialDelay++;
if (curBlock.TipoAccion == "B") {
if ((curBlock.curInitialDelay - 1) == curBlock.InitialDelay) {
if (curBlock.TaskToLunchAtBegin != "") {
_root.DialogTask.LunchTask(curBlock.TaskToLunchAtBegin);
}
}
if (curBlock.TextIndex == "MAIN") {
if (_root.DialogTask.ShowPopUpDialog) {
_root.ShowPopUp(curBlock.Message, this.MainMovie.mcGraph, "DIALOG", "A");
}
} else {
if (_root.DialogTask.PlayVoice) {
curBlock.CharTalk = _root.GetItemByName(curBlock.TextIndex).CharTalkVar;
if (curBlock.CharTalk != undefined) {
curBlock.CharTalk.Start();
if (curBlock.AudioID != "") {
curBlock.CharTalk.LunchDialogSound(curBlock.AudioID, 0);
} else {
curBlock.CharTalk.LunchDialogSound(curBlock.Name, 0);
}
}
}
if (_root.DialogTask.ShowPopUpDialog) {
_root.ShowPopUp(curBlock.Message, _root.GetItemByName(curBlock.TextIndex).mc.mcGraph, "DIALOG");
}
}
if (curBlock.PosicionInicial != undefined) {
_root.curScene.StandCharacter(curBlock.PosicionInicial);
}
if (curBlock.AnimoInicial != undefined) {
this.MainMovie.mcCabeza.gotoAndStop(curBlock.AnimoInicial);
} else {
this.MainMovie.mcCabeza.gotoAndStop("Normal");
}
this.PosicionInicial = xPosicionInicial;
this.PosicionFinal = xPosicionFinal;
} else if (curBlock.TipoAccion == "A") {
} else if (curBlock.TipoAccion == "O") {
this.mcNext._visible = false;
curBlock.ShowOptions();
}
return(0);
}
if (curBlock.curInitialDelay < curBlock.InitialDelay) {
curBlock.curInitialDelay++;
return(0);
}
if (curBlock.TipoAccion == "B") {
if (curBlock.curTalkDelay == curBlock.TalkDelay) {
if (_root.DialogTask.PlayVoice) {
if (curBlock.CharTalk == undefined) {
_root.HidePopUp("DIALOG");
}
} else {
_root.HidePopUp("DIALOG");
}
if (curBlock.PosicionFinal != undefined) {
_root.curScene.StandCharacter(curBlock.PosicionFinal);
}
if (curBlock.AnimoFinal != undefined) {
this.MainMovie.mcCabeza.gotoAndStop(curBlock.AnimoFinal);
} else {
this.MainMovie.mcCabeza.gotoAndStop("Normal");
}
var siguiente = false;
siguiente = curBlock.curAditionalDelay >= curBlock.AditionalDelay;
if (_root.DialogTask.PlayVoice) {
if (curBlock.CharTalk != undefined) {
siguiente = siguiente && (curBlock.CharTalk.CurDialog == undefined);
if (siguiente) {
_root.HidePopUp("DIALOG");
curBlock.CharTalk.Stop();
}
}
}
if (siguiente) {
this.NextBlock(undefined);
if (curBlock.EndLock) {
_root.SetDialogsLocked(false);
}
if (curBlock.TaskToLunchAtEnd != "") {
_root.DialogTask.LunchTask(curBlock.TaskToLunchAtEnd);
}
if (curBlock.ExitTalk) {
BlockName = "";
DialogWindow._visible = false;
_root.DialogTask.Finish();
return(0);
}
} else {
curBlock.curAditionalDelay++;
}
} else {
curBlock.curTalkDelay++;
}
} else if (curBlock.TipoAccion == "A") {
}
BlockTime = (curBlock.curTalkDelay + curBlock.curInitialDelay) + curBlock.curAditionalDelay;
}
};
objBlock.prototype.CalculateTalkDelay = function () {
if (this.Message != "") {
this.TalkDelay = GetMessageTextDelay(this.Message);
}
};
objBlock.prototype.AddMsg = function (msg) {
this.nMessages++;
if ((this.TextIndex == "FAMILY_JIGSAW") && (_root.TraceMessages)) {
_root.BufferTalkFiles = (_root.BufferTalkFiles + this.Name) + String.fromCharCode(13);
trace(this.Name);
trace(msg);
trace("--------");
}
if ((this.nMessages == _root.LangIndex) || (this.nMessages == 1)) {
this.Message = msg;
}
};
objBlock.prototype.FirstRostros = function () {
this.AddRostro(_root.Jaime, "N", "R");
this.AddRostro(_root.Nadine, "S", "L");
this.AddRostro(_root.Ollanta, "S", "L");
};
objBlock.prototype.GanaJaime = function (xRisas) {
if (xRisas == undefined) {
xRisas = true;
}
this.AddRostro(_root.Jaime, "F", "R");
this.AddRostro(_root.Ollanta, "A", "L");
this.AddRostro(_root.Nadine, "A", "L");
if (xRisas) {
this.SetSonido("risas_id", 30, 10);
this.AddAnimacion("JaJa1", 15, true);
this.AddAnimacion("JaJa2", 15, true);
}
this.AddFinalRostro(_root.Ollanta, "M", "L");
this.AddFinalRostro(_root.Nadine, "M", "L");
this.AddFinalRostro(_root.Jaime, "F", "R");
};
objBlock.prototype.GanaHumala = function (xRisas) {
if (xRisas == undefined) {
xRisas = true;
}
this.AddRostro(_root.Jaime, "A", "R");
this.AddRostro(_root.Ollanta, "P", "L");
this.AddRostro(_root.Nadine, "P", "L");
if (xRisas) {
this.SetSonido("risas_id", 30, 10);
}
this.AddAnimacion("JaJa1", 15, true);
this.AddAnimacion("JaJa2", 15, true);
this.AddFinalRostro(_root.Jaime, "S", "R");
this.AddFinalRostro(_root.Ollanta, "P", "L");
this.AddFinalRostro(_root.Nadine, "P", "L");
};
objBlock.prototype.AddAnimacion = function (xMovieClip, xDemora, xOcultar) {
var _local2 = new Object();
_local2.MovieName = xMovieClip;
_local2.Demora = xDemora;
_local2.Played = false;
_local2.Ocultar = xOcultar;
this.nAnimaciones++;
this.Animaciones[this.nAnimaciones] = _local2;
};
objBlock.prototype.ResetAnimaciones = function () {
var i;
i = 1;
while (i <= this.nAnimaciones) {
with (this.Animaciones[i]) {
Played = false;
if (Ocultar) {
eval ("_root." + MovieName)._visible = false;
}
}
i++;
}
};
objBlock.prototype.SetSonido = function (xSonido, xVolumen, xDemoraSonido) {
this.Sonido = xSonido;
this.Volumen = xVolumen;
this.DemoraSonido = xDemoraSonido;
};
objBlock.prototype.AddRostro = function (xPersona, xAnimo, xOjos, xParpados) {
var _local2 = new Object();
_local2.Persona = xPersona;
_local2.Animo = xAnimo;
_local2.Ojos = xOjos;
_local2.Parpados = xParpados;
this.nRostros++;
this.Rostros[this.nRostros] = _local2;
};
objBlock.prototype.AddFinalRostro = function (xPersona, xAnimo, xOjos, xParpados) {
var _local2 = new Object();
_local2.Persona = xPersona;
_local2.Animo = xAnimo;
_local2.Ojos = xOjos;
_local2.Parpados = xParpados;
this.nFinalRostros++;
this.FinalRostros[this.nFinalRostros] = _local2;
};
objBlock.prototype.SetRostros = function () {
var i;
i = 1;
while (i <= this.nRostros) {
with (this.Rostros[i]) {
Persona.Expresion(Animo, Ojos, Parpados);
}
i++;
}
};
objBlock.prototype.SetFinalRostros = function () {
var i;
i = 1;
while (i <= this.nFinalRostros) {
with (this.FinalRostros[i]) {
Persona.Expresion(Animo, Ojos, Parpados);
}
i++;
}
};
objBlock.prototype.HideOptions = function () {
_root.DialogWindow._visible = false;
_root.BlockAdmin.Options[1]._visible = false;
_root.BlockAdmin.Options[2]._visible = false;
_root.BlockAdmin.Options[3]._visible = false;
};
objBlock.prototype.ShowOptions = function () {
var i;
var c;
var ini;
var fin;
var TextoOpcion;
_root.DialogWindow._visible = true;
with (this) {
ini = 1 + (3 * (curOptBlock - 1));
fin = ini + 2;
if (fin > nOptions) {
fin = nOptions;
}
c = 0;
_root.BlockAdmin.LastOptionBlock = this;
if (nOptBlocks == 1) {
_root.BlockAdmin.mcArrowUp._visible = false;
_root.BlockAdmin.mcArrowDown._visible = false;
} else {
if (curOptBlock == 1) {
_root.BlockAdmin.mcArrowUp._visible = false;
_root.BlockAdmin.mcArrowUp2._visible = true;
} else {
_root.BlockAdmin.mcArrowUp._visible = true;
_root.BlockAdmin.mcArrowUp2._visible = false;
}
if (curOptBlock < nOptBlocks) {
_root.BlockAdmin.mcArrowDown._visible = true;
_root.BlockAdmin.mcArrowDown2._visible = false;
} else {
_root.BlockAdmin.mcArrowDown._visible = false;
_root.BlockAdmin.mcArrowDown2._visible = true;
}
}
i = ini;
while (i <= fin) {
c = c + 1;
_root.BlockAdmin.Options[c]._visible = true;
TextoOpcion = (i + ". ") + Options[i].Text;
if (Options[i].IsQuestion && (Options[i].Used)) {
_root.DropTextMouseEvents(_root.BlockAdmin.Options[c]);
_root.BlockAdmin.Options[c].gotoAndStop(5);
_root.BlockAdmin.Options[c].mcCheck._visible = true;
} else {
_root.SetTextMouseEvents(_root.BlockAdmin.Options[c], _root.BlockAdmin.OptionFrame1, _root.BlockAdmin.OptionFrame2, c);
_root.BlockAdmin.Options[c].gotoAndStop(_root.BlockAdmin.OptionFrame1);
_root.BlockAdmin.Options[c].mcCheck._visible = false;
}
_root.BlockAdmin.Options[c].txtOpcion.text = TextoOpcion;
i++;
}
}
};
objBlock.prototype.AddOption = function (xText, xTarget, xIsQuestion) {
if (xIsQuestion == undefined) {
xIsQuestion = false;
}
with (this) {
nOptions++;
Options[nOptions] = new objOption(xText, xTarget, xIsQuestion);
Options[nOptions].Parent = this;
nOptBlocks = Math.ceil(nOptions / 3);
return(Options[nOptions]);
}
};
objOption.prototype.AddMsg = function (msg) {
with (this) {
nMessages++;
Messages[nMessages] = msg;
if (nMessages == _root.LangIndex) {
Text = msg;
}
}
};
objBlock.prototype.AddReproche = function (xText) {
with (this.Options[this.nOptions]) {
nReproches++;
Reproches[nReproches] = xText;
}
};
objOption.prototype.ShowNextReproche = function () {
with (this) {
if ((curReproche == 0) || (curReproche == nReproches)) {
curReproche = 1;
} else {
curReproche++;
}
_root.ShowPopUp(Reproches[curReproche], curScene.Personaje.mcGraph, "PANEL");
}
};
function trace2(msg) {
var _local1;
_local1 = false;
if (_local1 && (msg != Lastmsg)) {
trace(msg);
Lastmsg = msg;
}
}
var Lastmsg = "";
function InitBlocks() {
BlockAdmin.OptionFrame1 = 3;
BlockAdmin.OptionFrame2 = 4;
}
var BlockAdmin = undefined;
var Block = undefined;
function PerformDialog() {
BlockAdmin.Perform();
}
function ManageStates() {
return(undefined);
}
_global.findPath = function (map, startY, startX, endY, endX) {
var _local17 = 10;
var _local13 = 14;
var _local30 = true;
var _local28 = true;
if (map[endY][endX] == 0) {
trace("El punto final no es caminable cae fuera del rango");
return(null);
}
if (map[endY][endX] == undefined) {
trace("El punto final no esta dentro del array del mapa");
return(null);
}
isOpen = function (y, x) {
return(mapStatus[y][x].open);
};
isClosed = function (y, x) {
return(mapStatus[y][x].closed);
};
nearerSquare = function () {
var _local4 = 999999 /* 0x0F423F */;
var _local5 = 0;
var _local2;
var _local3;
var _local1 = openList.length;
while ((_local1--) > 0) {
_local3 = mapStatus[openList[_local1][0]][openList[_local1][1]];
_local2 = _local3.heuristic + _local3.movementCost;
if (_local2 <= _local4) {
_local4 = _local2;
_local5 = _local1;
}
}
return(_local5);
};
closeSquare = function (y, x) {
var _local2 = openList.length;
var _local1 = 0;
while (_local1 < _local2) {
if (openList[_local1][0] == y) {
if (openList[_local1][1] == x) {
openList.splice(_local1, 1);
break;
}
}
_local1++;
}
mapStatus[y][x].open = false;
mapStatus[y][x].closed = true;
};
openSquare = function (y, x, parent, movementCost, heuristic, replacing) {
if (!replacing) {
openList.push([y, x]);
mapStatus[y][x] = {heuristic:heuristic, open:true, closed:false};
}
mapStatus[y][x].parent = parent;
mapStatus[y][x].movementCost = movementCost;
};
var _local11 = map.length;
var _local16 = map[0].length;
var mapStatus = new Array();
var _local12 = 0;
while (_local12 < _local11) {
mapStatus[_local12] = new Array();
_local12++;
}
if ((startY == undefined) || (startX == undefined)) {
return(null);
}
if ((endY == undefined) || (endX == undefined)) {
return(null);
}
var openList = new Array();
openSquare(startY, startX, undefined, 0);
while ((openList.length > 0) && (!isClosed(endY, endX))) {
_local12 = nearerSquare();
var _local7 = openList[_local12][0];
var _local8 = openList[_local12][1];
closeSquare(_local7, _local8);
var _local3 = _local7 - 1;
while (_local3 < (_local7 + 2)) {
var _local2 = _local8 - 1;
while (_local2 < (_local8 + 2)) {
if (((((_local3 >= 0) && (_local3 < _local11)) && (_local2 >= 0)) && (_local2 < _local16)) && (!((_local3 == _local7) && (_local2 == _local8)))) {
if (map[_local3][_local2] != 0) {
if (!isClosed(_local3, _local2)) {
var _local4 = mapStatus[_local7][_local8].movementCost + ((((_local3 == _local7) || (_local2 == _local8)) ? (_local17) : (_local13)) * map[_local3][_local2]);
if (isOpen(_local3, _local2)) {
if (_local4 < mapStatus[_local3][_local2].movementCost) {
openSquare(_local3, _local2, [_local7, _local8], _local4, undefined, true);
}
} else {
var _local5 = (Math.abs(_local3 - endY) + Math.abs(_local2 - endX)) * 10;
openSquare(_local3, _local2, [_local7, _local8], _local4, _local5, false);
}
}
}
}
_local2++;
}
_local3++;
}
}
var _local26 = isClosed(endY, endX);
delete isOpen;
delete isClosed;
delete nearerSquare;
delete closeSquare;
delete openSquare;
if (_local26) {
var _local21 = new Array();
var _local7 = endY;
var _local8 = endX;
while ((_local7 != startY) || (_local8 != startX)) {
_local21.push([_local7, _local8]);
var _local18 = mapStatus[_local7][_local8].parent[0];
var _local19 = mapStatus[_local7][_local8].parent[1];
_local7 = _local18;
_local8 = _local19;
}
_local21.push([startY, startX]);
if (_local21.length == 1) {
ItemToCatch = undefined;
}
return(_local21);
}
trace("Ended with 0 open squares; ran out of squares, path NOT found");
_root.mcGuia._x = _root.ReleaseXMouse;
_root.mcGuia._y = _root.ReleaseYMouse;
return(null);
};
function AddItemEnabled(ItemName) {
nItemsEnabled++;
ItemsEnabled[nItemsEnabled] = ItemName.toUpperCase();
}
function DropItemEnabled(ItemName) {
var _local1;
_local1 = 1;
while (_local1 <= nItemsEnabled) {
if (ItemName.toUpperCase() == ItemsEnabled[_local1]) {
ItemsEnabled[_local1] = "";
}
_local1++;
}
}
function IsItemEnabled(ItemName) {
var _local1;
var _local2;
_local1 = 1;
while (_local1 <= nItemsEnabled) {
_local2 = ItemsEnabled[_local1].indexOf("%");
if (_local2 == -1) {
if (ItemName.toUpperCase() == ItemsEnabled[_local1]) {
return(true);
}
} else {
var _local4;
var _local3;
_local4 = ItemName.toUpperCase().substring(0, _local2);
_local3 = ItemsEnabled[_local1].substring(0, _local2);
if (_local4 == _local3) {
return(true);
}
}
_local1++;
}
return(false);
}
var TaskItemRestriction = undefined;
var ItemsEnabled = Array();
var nItemsEnabled = 0;
function objTask(ID, Tipo, SubTipo, val, ParentFriend, ParentID) {
this.ID = ID;
this.State = 0;
this.ForceSceneSound = false;
this.ResetTaskAtEnd = "";
this.PanelPosition = "NONE";
this.ScreenCanBeStop = true;
this.mcMenuInv = undefined;
this.mcMenuScene = undefined;
this.FunctionCall = undefined;
this.Permanent = false;
this.ShowPopUpDialog = true;
this.PlayVoice = true;
this.ResetExpresion = true;
this.CharTalkVarName = val;
this.CharTalkVar = undefined;
this.DialogLocked = false;
this.Type = Tipo;
this.Mode = "NORMAL";
this.StopAllSounds = undefined;
this.AdjustPanel = false;
this.Family = "";
this.DisableAction = "";
this.EnableAction = "";
this.ReachedAction = "";
this.CurrentMovie = undefined;
this.CanStop = undefined;
this.Waiting = false;
this.CheckCode = 0;
this.WaitFlow = false;
this.CheckMovieX = "";
this.XValue = 0;
this.CheckAction = "";
this.Orientation = "POSITIVE";
this.TargetItemName = "";
this.TargetFriendName = "";
this.TargetTaskName = "";
this.val = val;
if (Tipo == "DELAY") {
this.FriendToLunch = undefined;
this.Segundos = val * 1;
this.curFrames = 0;
this.TotalFrames = this.Segundos * _root.FramesPerSecond;
} else {
this.curFrames = 0;
this.Segundos = 0;
}
this.WaitFramesAtEnd = 0;
this.curWaitFramesAtEnd = 0;
this.FreeMouseAtStart = false;
this.FreeMouseAtFinish = false;
this.BlockMouseAtStart = false;
this.BlockMouseAtFinish = false;
this.KeepMouseAtFinish = undefined;
this.KeepMouseAtStart = undefined;
this.EnableMouseAtStart = false;
if (this.Type == "SOUND") {
this.Sonido = new Sound();
this.SoundTimes = 1;
this.SoundName = "";
this.NoAudioWaitFrames = 0;
this.MovieSound = undefined;
this.Sonido.Parent = this;
this.Sonido.onSoundComplete = function () {
if (this.Parent.State != 3) {
trace("termina EL SONIDOOOOO : " + this.Parent.SoundName);
this.Parent.Finish();
}
};
}
this.BeforeItemName = undefined;
this.SubType = SubTipo;
if (this.Type == "VAR_FUNCTION") {
this.TaskVar = undefined;
this.FlagVar = undefined;
}
if (this.Type == "PANEL") {
this.PanelDuration = SubTipo;
}
this.Transition = undefined;
if (this.Type == "SCENE") {
this.Transition = false;
}
this.ParentFriend = ParentFriend;
this.Parents = new Array();
this.ParentNames = new Array();
this.nParents = 0;
if (ParentID != "") {
if ((ParentID != "START") && (ParentID != "START_INV")) {
this.nParents++;
this.ParentNames[this.nParents - 1] = ParentID;
}
if ((ParentID == "START") || (ParentID == "START_INV")) {
this.StartTask = true;
} else {
this.StartTask = false;
}
} else {
this.Mode = "LUNCH";
this.StartTask = false;
}
this.FinishParents = new Array();
this.FinishParentNames = new Array();
this.nFinishParents = 0;
this.ItemName = undefined;
this.Position = "";
if (Tipo == "CHAR_DIRECTION") {
this.Position = val;
}
this.SceneName = val;
this.MovieName = "";
this.MovieFrame = "";
this.Messages = new Array();
this.nMessages = 0;
if (Tipo == "ITEM_PROPERTY") {
if (this.SubType == "INFO") {
this.nMessages = 1;
}
}
if (Tipo == "PANEL") {
this.PanelDelay = 40;
this.PanelMsg = val;
this.nMessages = 1;
this.Messages[1] = this.PanelMsg;
this.FreeMouseAtStart = true;
this.CanSpeed = true;
this.CancelFlow = false;
}
if (Tipo == "XFILESTEXT") {
this.TextoXFiles = val;
this.TextoXFilesDelay = 80;
this.TextoXFilesCurDelay = 0;
this.nMessages = 1;
this.Messages[1] = this.TextoXFiles;
}
this.ActionName = val;
this.InventoryAction = val;
this.MovieValue = val;
this.BlockName = val;
this.nConditions = 0;
this.Conditions = new Array();
this.FriendName = val;
this.Value = undefined;
this.MouthTask = "";
this.HandTask = "";
this.EyeTask = "";
this.nMenuItems = 0;
this.MenuItems = new Array();
if (Tipo == "ITEM_PROPERTY") {
this.ItemProperty = SubTipo;
this.ItemPropertyValue = val;
}
if (Tipo == "TALK") {
this.BlockName = val;
}
this.AnimationType = "STOP";
this.AnimationMode = "ASYNC";
this.RefreshTerrain = false;
this.WaitTerrainUntilFinish = false;
if (Tipo == "MOVIE_ITEM") {
if (((((this.SubType == "GOTOANDSTOP") || (this.SubType == "GOTOANDPLAY")) || (this.SubType == "GOTOANDPLAYMC")) || (this.SubType == "GOTOANDSTOPMC")) || (this.SubType == "VISIBLE")) {
this.RefreshTerrain = true;
}
}
if (Tipo == "MOVE") {
this.RefreshTerrain = true;
this.MoveMode = "DIRECT";
this.MovingClip = undefined;
this.DistanceX = 0;
this.DistanceY = 0;
this.TargetX = undefined;
this.TargetY = undefined;
this.DeltaX = 0;
this.DeltaY = 0;
this.TargetMovie = undefined;
this.TargetMovieName = undefined;
this.CancelXMovement = false;
this.CancelYMovement = false;
}
this.Expresion = undefined;
if (Tipo == "EXPRESION") {
this.Expresion = val;
}
if (Tipo == "MOUSE_STATE") {
this.MouseState = val;
}
if (Tipo == "SORTRULE_STATE") {
this.SortRuleState = val;
this.SortRuleName = "";
}
this.CheckMovieHit1 = "";
this.CheckMovieHit2 = "";
this.CheckMovieDirection = "";
this.CheckDirection = "";
this.CheckMovieFrame = "";
this.CheckMinFrame = 0;
this.CheckMaxFrame = 0;
this.FamilyName = "";
this.curCharXFiles;
this.TextoXFiles;
this.CharXFileDelay = 35;
this.CharXFileCurDelay = 0;
this.HideScene = true;
this.HideSlots = true;
this.TimerState = "S";
this.TimerCounter = 0;
this.TimerMaxSeconds = 0;
this.TimerFrameCounter = 0;
this.mcTimer = undefined;
this.PauseAction = "";
this.HasChildren = false;
this.StartSound = true;
}
function objCondition(Condition, TaskName) {
this.Condition = Condition;
this.TaskName = TaskName;
this.ItemName = "";
this.MovieName1 = undefined;
this.MovieName2 = undefined;
}
var SALTO = String.fromCharCode(13);
var PCHasAudio = false;
var SoundAudioDetect = new Sound();
SoundAudioDetect.attachSound("detect_audio");
SoundAudioDetect.start(0, 1);
SoundAudioDetect.onSoundComplete = function () {
_root.PCHasAudio = true;
};
_root.ShowTaskLog = true;
objTask.prototype.AddMsg = function (msg) {
this.nMessages++;
this.Messages[this.nMessages] = msg;
if ((this.nMessages == _root.LangIndex) || (this.nMessages == 1)) {
if (this.Type == "PANEL") {
this.PanelMsg = msg;
}
if (this.Type == "XFILESTEXT") {
this.TextoXFiles = msg;
}
if (this.Type == "ITEM_PROPERTY") {
if (this.ItemProperty == "INFO") {
this.ItemPropertyValue = msg;
}
}
}
};
objTask.prototype.AddMenuItem = function (caption, taskname) {
var _local2 = new objMenuItem(caption, taskname);
this.nMenuItems++;
this.MenuItems[this.nMenuItems] = _local2;
return(this.MenuItems[this.nMenuItems]);
};
objTask.prototype.AddCondition = function (Condition, TaskName) {
var _local2 = new objCondition(Condition, TaskName);
this.nConditions++;
this.Conditions[this.nConditions - 1] = _local2;
return(_local2);
};
objTask.prototype.AddParentName = function (ParentID) {
this.nParents++;
this.ParentNames[this.nParents - 1] = ParentID;
};
objTask.prototype.AddFinishParentName = function (ParentID) {
this.nFinishParents++;
this.FinishParentNames[this.nFinishParents - 1] = ParentID;
};
objTask.prototype.InitFinishParents = function () {
var _local2;
_local2 = 0;
while (_local2 <= (this.nFinishParents - 1)) {
if (this.FinishParentNames[_local2] != "") {
this.FinishParents[_local2] = this.ParentFriend.GetTaskByID(this.FinishParentNames[_local2]);
} else {
this.FinishParents[_local2] = undefined;
}
_local2++;
}
};
objTask.prototype.InitParents = function () {
var _local2;
_local2 = 0;
while (_local2 <= (this.nParents - 1)) {
if (this.ParentNames[_local2] != "") {
this.Parents[_local2] = this.ParentFriend.GetTaskByID(this.ParentNames[_local2]);
} else {
this.Parents[_local2] = undefined;
}
_local2++;
}
};
objTask.prototype.Perform = function () {
with (this) {
if ((this.Type != "CHECK_EVENT") && (_root.ShowTaskLog)) {
trace((("------------------------------------Empieza la tarea: " + ID) + " de tipo ") + Type);
_root.txtLog = ((((_root.txtLog + "Empieza la tarea: ") + ID) + " de tipo ") + Type) + String.fromCharCode(13);
}
if (State == 3) {
State = 0;
}
switch (Type) {
case "WALK" :
PerformWalk();
break;
case "TALK" :
if (_root.PanelTask != undefined) {
_root.PanelTask.Finish();
}
PerformTalk();
break;
case "SCREEN" :
PerformScreen();
break;
case "PANEL" :
PerformPanel();
break;
case "MOVE" :
PerformMove();
break;
case "INV" :
PerformInventory();
break;
case "ACTION" :
PerformAction();
break;
case "MOVIE" :
PerformMovie();
break;
case "MOVIE_ITEM" :
PerformMovieItem();
break;
case "MODIFY_SELF_FRIEND" :
PerformModifySelfFriend();
break;
case "DUMMY" :
PerformDummy();
break;
case "SCENE" :
PerformScene();
break;
case "MENUSCENE" :
PerformMenuScene();
break;
case "MENUINV" :
PerformMenuInv();
break;
case "ITEM_PROPERTY" :
PerformItemProperty();
break;
case "SOUND" :
if (_root.PCHasAudio) {
PerformSound();
} else {
if (NoAudioWaitFrames > 0) {
WaitFramesAtEnd = NoAudioWaitFrames;
}
this.Finish();
}
break;
case "DELAY" :
PerformDelay();
break;
case "CONDITIONAL" :
PerformConditional();
break;
case "EXPRESION" :
PerformExpression();
break;
case "MOUSE_STATE" :
PerformMouseState();
break;
case "CHAR_DIRECTION" :
PerformCharDirection();
break;
case "CHANGE_SCENE" :
PerformChangeScene();
break;
case "JUMP_FRIEND" :
PerformJumpFriend();
break;
case "CHECK_EVENT" :
PerformCheckEvent();
break;
case "INV_DRAG" :
PerformInvDrag();
break;
case "WATCH" :
PerformWatch();
break;
case "VAR_FUNCTION" :
PerformVarFunction();
break;
case "RESUME_SCENE_SOUND" :
PerformResumeSceneSound();
break;
case "CHANGESTART_SCENE_SOUND" :
PerformChangeStartSceneSound();
break;
case "CHANGE_SCENE_SOUND" :
PerformChangeSceneSound();
break;
case "SORTRULE_STATE" :
PerformSortRuleState();
break;
case "CHARTALK" :
PerformCharTalk();
break;
case "FUNCTION" :
PerformFunction();
break;
case "CHECKTASK_ENABLE" :
PerformEnableCheckEvent();
break;
case "ALIGN" :
PerformAlign();
break;
case "XFILESTEXT" :
PerformXFilesText();
break;
case "FREEZE" :
PerformFreeze();
break;
case "ITEM_RESTRICTION" :
PerformItemRestriction();
}
if (State == 0) {
State = 1;
}
if (this.ParentFriend.AutoDisableMouse) {
if (this.EnableMouseAtStart) {
trace("Se habilita el mouse al iniciar");
_root.MouseDisabled = false;
_root.MenuSceneBlocked = false;
_root.WalkBlocked = false;
}
}
if (this.KeepMouseAtStart == undefined) {
if (this.FreeMouseAtStart) {
_root.FreeMouse();
}
if (this.BlockMouseAtStart) {
_root.BlockMouse();
}
}
}
};
objTask.prototype.PerformSortRuleState = function () {
var _local3;
var _local4;
_local3 = _root.GetSceneByName(this.SceneName);
if (this.SortRuleState == "ENABLED") {
_local4 = _local3.GetSortRuleByName(this.SortRuleName);
_local4.Enabled = true;
_local4.Process();
} else if (this.SortRuleState == "DISABLED") {
_local3.GetSortRuleByName(this.SortRuleName).Enabled = false;
}
this.Finish();
};
objTask.prototype.PerformResumeSceneSound = function () {
_root.curScene.StartAmbientalSound(undefined, undefined, true);
this.Finish();
};
objTask.prototype.PerformChangeStartSceneSound = function () {
_root.curScene.StartAmbientalSound(this.SoundName, this.Permanent, this.ForceSceneSound);
this.Finish();
};
objTask.prototype.PerformChangeSceneSound = function () {
var _local3;
_local3 = _root.GetSceneByName(this.SubType);
_local3.ChangeAmbientalSound(this.SoundName);
this.Finish();
};
objTask.prototype.PerformVarFunction = function () {
Set(this.TaskVar, this);
Set(this.FlagVar, true);
};
objTask.prototype.PerformWatch = function () {
var rect;
var rect2;
var x;
var y;
var item;
var mc;
var mcItem;
var mcPersonaje;
var Sentido;
var XZoneLeft;
var XZoneCenter;
var XZoneRight;
var YZoneUp;
var YZoneCenter;
var YZoneDown;
if (this.SubType == "ITEM") {
item = _root.GetItemByName(this.ItemName);
mc = item.mc;
if (mc.mcBase != undefined) {
mcItem = mc.mcBase;
} else {
mcItem = mc.mcGraph;
}
} else if (this.SubType == "MOVIE") {
mcItem = eval (this.MovieName);
}
mcPersonaje = _root.curScene.Personaje;
rect = mcItem.getRect(_root);
rect2 = mcPersonaje.mcBase.getRect(_root);
x = (rect2.xMin + rect2.xMax) / 2;
y = rect2.yMax - ((rect2.yMax - rect2.yMin) / 10);
XZoneLeft = x < rect.xMin;
XZoneCenter = (x >= rect.xMin) && (x <= rect.xMax);
XZoneRight = x > rect.xMax;
YZoneUp = y < rect.yMin;
YZoneCenter = (y >= rect.yMin) && (y <= rect.yMax);
YZoneDown = y > rect.yMax;
if (XZoneCenter && (YZoneCenter)) {
Sentido = "BACK";
}
if (XZoneLeft && (YZoneCenter)) {
Sentido = "RIGHT";
}
if (XZoneRight && (YZoneCenter)) {
Sentido = "LEFT";
}
if (YZoneUp && (XZoneCenter)) {
Sentido = "FRONT";
}
if (YZoneDown && (XZoneCenter)) {
Sentido = "BACK";
}
if (YZoneUp && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "FRONT";
}
}
if (YZoneUp && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "FRONT";
}
}
if (YZoneDown && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "BACK";
}
}
if (YZoneDown && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "BACK";
}
}
_root.curScene.StandCharacter(Sentido);
this.ApplyExpresion();
this.Finish();
};
objTask.prototype.PerformItemProperty = function () {
var IterItem;
with (this) {
if ((ItemName != undefined) && (ItemName != "")) {
IterItem = GetItemByName(ItemName);
} else {
IterItem = this.ParentFriend.Item;
}
if (ItemProperty == "INFO") {
IterItem.Info = ItemPropertyValue;
IterItem.GetFriendByName(curScene.MouseItem.ID).RollMsg = ItemPropertyValue;
Finish();
}
if (ItemProperty == "GRAPH_FRAME") {
IterItem.curGraphFrame = ItemPropertyValue;
CurrentMovie = IterItem.mc;
CurrentMovie.ParentItem = IterItem;
if (AnimationType == "STOP") {
if (IterItem.CurBox != undefined) {
_root.Inventario.AttachedMovies[IterItem.CurBox.Parent.BoxIndex].mcGraph.gotoAndStop(IterItem.curGraphFrame);
_root.Inventario.AttachedMovies2[IterItem.CurBox.Parent.BoxIndex].mcGraph.gotoAndStop(IterItem.curGraphFrame);
} else {
IterItem.mc.mcGraph.gotoAndStop(IterItem.curGraphFrame);
}
} else if (IterItem.CurBox != undefined) {
_root.Inventario.AttachedMovies[IterItem.CurBox.Parent.BoxIndex].mcGraph.gotoAndPlay(IterItem.curGraphFrame);
_root.Inventario.AttachedMovies2[IterItem.CurBox.Parent.BoxIndex].mcGraph.gotoAndPlay(IterItem.curGraphFrame);
} else {
IterItem.mc.mcGraph.gotoAndPlay(IterItem.curGraphFrame);
}
if (AnimationMode == "SYNC") {
IterItem.mc.mcGraph.Task = this;
} else {
Finish();
}
}
}
};
objTask.prototype.PerformSound = function () {
with (this) {
if (StopAllSounds) {
trace("Entra a stopallsoudns");
stopAllSounds();
}
if (SubType == "ASINCRONO") {
_root.SoundTask = this;
Sonido.attachSound(SoundName);
Sonido.start(0, SoundTimes);
Finish();
} else if (SubType == "STOP") {
var s = new Sound();
s.stop(SoundName);
Finish();
} else if (SubType == "SINCRONO") {
trace(((("Lanzamos el sonido sincrono=" + SoundName) + " ") + SoundTimes) + " veces");
_root.SoundTask = this;
Sonido.attachSound(SoundName);
Sonido.start(0, SoundTimes);
trace(((("Se lanzo el sonigo=" + SoundName) + " ") + SoundTimes) + " veces");
} else {
MovieSound.Task = this;
this.MovieSound.gotoAndPlay(2);
}
}
};
objTask.prototype.PerformEnableCheckEvent = function () {
var _local5;
var _local4;
var _local3;
trace("----------------INICIA PerformEnableCheckEvent");
_local5 = _root.GetItemByName(this.ItemName);
_local4 = _local5.GetFriendByName(this.FriendToLunch);
if (_local4.EventTask != undefined) {
_local3 = _local4.EventTask;
} else {
trace(("EL FRIEND :" + _local4.Name) + " no tiene tareas de evento");
}
_root.DropAction(_local3.DisableAction);
_root.DropAction(_local3.ReachedAction);
_root.AddAction(_local3.EnableAction);
if (_local3.SubType == "TIMER") {
trace("---------------------------Entra a ResetTimer");
_local3.ResetTimer();
}
this.Finish();
trace("----------------TERMINA PerformEnableCheckEvent");
};
objTask.prototype.PerformDelay = function () {
var _local4;
var _local3;
_local4 = _root.GetItemByName(this.ItemName);
trace("*** INICIO PERFORM DELAY ***" + this.ID);
trace("this.ID=" + this.ID);
trace("this.ItemName=" + this.ItemName);
trace("ItemDelay.Info=" + _local4.Info);
trace("this.FriendToLunch=" + this.FriendToLunch);
_local3 = _local4.GetFriendByName(this.FriendToLunch);
trace("FriendDelay.Name=" + _local3.Name);
_root.FriendToLunch = _local3;
_root.curFramesDelay = 0;
_root.TotalFramesDelay = this.TotalFrames;
this.Finish();
};
objTask.prototype.PerformTalk = function () {
var swLunch = false;
if (mcPopUp._visible) {
HidePopUp("PANEL");
}
with (this) {
_root.DropAction("DIALOG_CANCELED");
_root.SetDialogsLocked(this.DialogLocked);
_root.DialogTask = this;
ApplyExpresion();
if (SubType == "DIALOG") {
Mouse.show();
_root.BlockAdmin.MainMovie = _root.curScene.Personaje;
_root.BlockAdmin.BlockName = BlockName;
}
}
};
objTask.prototype.PerformWalk = function () {
with (this) {
if (SubType == "MOUSE") {
if (!_root.curScene.PointIsWalkable(_root.ReleaseXMouse, _root.ReleaseYMouse)) {
_root.swWalking = false;
_root.FinishCurrentFlow();
Finish();
_root.WalkTask = undefined;
_root.curWalking = -1;
_root.curScene.Personaje.LastWalkMode = _root.curWalkMode.toUpperCase();
return(0);
}
_root.WalkTask = this;
p.x = _root.ReleaseXMouse;
p.y = _root.ReleaseYMouse;
_root.curScene.Movie.globalToLocal(p);
_root.ProcessTerrainClick(p.x, p.y);
} else if (((SubType == "TARGET") or (SubType == "ITEM")) or (SubType == "MOVIE")) {
_root.WalkTask = this;
var Target;
var xTarget;
var yTarget;
var BoundsTarget;
if (SubType == "TARGET") {
Target = ParentFriend.TargetItem.mc.mcTarget;
} else if (SubType == "ITEM") {
Target = _root.GetItemByName(ItemName).mc.mcTarget;
} else if (SubType == "MOVIE") {
Target = _root.curScene.GetMovie(MovieName);
}
BoundsTarget = Target.getRect(_root.curScene.Movie);
xTarget = BoundsTarget.xMin + Math.round((BoundsTarget.xMax - BoundsTarget.xMin) / 2);
yTarget = BoundsTarget.yMin + Math.round((BoundsTarget.yMax - BoundsTarget.yMin) / 2);
p.x = xTarget;
p.y = yTarget;
_root.curScene.Movie.localToGlobal(p);
if (!_root.curScene.PointIsWalkable(p.x, p.y)) {
_root.swWalking = false;
_root.FinishCurrentFlow();
Finish();
_root.WalkTask = undefined;
_root.curWalking = -1;
_root.curScene.Personaje.LastWalkMode = _root.curWalkMode.toUpperCase();
return(0);
}
_root.ProcessTerrainClick(xTarget, yTarget);
}
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.curScene.Personaje.Expresion = "Normal";
}
};
objTask.prototype.PerformMenuScene = function () {
Mouse.show();
_root.MenuSceneTask = this;
_root.HidePopUp("PANEL");
_root.curScene.Personaje.Expresion = "Normal";
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.ShowMenuScene(this.ParentFriend.TargetItem, this);
return(0);
};
objTask.prototype.PerformMenuInv = function () {
Mouse.show();
_root.MenuInvTask = this;
_root.HidePopUp("PANEL");
_root.curScene.Personaje.Expresion = "Normal";
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.ShowMenuInv(this.ParentFriend, this);
return(0);
};
objTask.prototype.PerformScreen = function () {
Mouse.show();
HidePopUp("PANEL");
_root.ScreenTask = this;
_root.ShowScreen(this.MovieName, this.MovieFrame, this);
if (this.HideScene) {
_root.curScene.Sube();
}
if (this.HideSlots) {
_root.Inventario.SlotsVisible(false);
}
return(0);
};
objTask.prototype.PerformPanel = function () {
this.ApplyExpresion();
if (this.Position != "") {
curScene.StandCharacter(this.Position);
}
_root.ShowPanel(this, "");
return(0);
};
objTask.prototype.ProcessMove = function () {
trace("Entra a ProcessMove ");
var _local3 = false;
var _local2 = false;
if (this.DeltaX < 0) {
if ((this.MovingClip._x + this.DeltaX) <= this.TargetX) {
this.MovingClip._x = this.TargetX;
_local3 = true;
} else {
this.MovingClip._x = this.MovingClip._x + this.DeltaX;
}
} else if ((this.MovingClip._x + this.DeltaX) >= this.TargetX) {
this.MovingClip._x = this.TargetX;
_local3 = true;
} else {
this.MovingClip._x = this.MovingClip._x + this.DeltaX;
}
if (this.DeltaY < 0) {
if ((this.MovingClip._y + this.DeltaY) <= this.TargetY) {
this.MovingClip._y = this.TargetY;
_local2 = true;
} else {
this.MovingClip._y = this.MovingClip._y + this.DeltaY;
}
} else if ((this.MovingClip._y + this.DeltaY) >= this.TargetY) {
this.MovingClip._y = this.TargetY;
_local2 = true;
} else {
this.MovingClip._y = this.MovingClip._y + this.DeltaY;
}
if (_local2 && (_local3)) {
this.Finish();
}
};
objTask.prototype.ProcessXFilesText = function () {
var letra;
var mcXFiles = _root.mcXFiles;
with (this) {
if (curCharXFiles <= (TextoXFiles.length - 1)) {
if (CharXFileCurDelay >= CharXFileDelay) {
letra = TextoXFiles.substring(curCharXFiles, curCharXFiles + 1);
mcXFiles.txtTexto1 = mcXFiles.txtTexto1 + TextoXFiles.substring(curCharXFiles, curCharXFiles + 1);
mcXFiles.txtTexto2 = mcXFiles.txtTexto1;
mcXFiles.txtTexto3 = mcXFiles.txtTexto1;
curCharXFiles++;
} else {
CharXFileCurDelay++;
}
} else if (TextoXFilesCurDelay >= TextoXFilesDelay) {
if (_root.mcXFiles._alpha <= 0) {
_root.mcXFiles._alpha = 0;
this.Finish();
} else {
_root.mcXFiles._alpha = _root.mcXFiles._alpha - 2;
}
} else {
TextoXFilesCurDelay++;
}
}
};
objTask.prototype.Process = function () {
with (this) {
switch (Type) {
case "MOVE" :
ProcessMove();
return;
case "XFILESTEXT" :
ProcessXFilesText();
}
}
};
objTask.prototype.PerformFreeze = function () {
var _local3;
_local3 = _root.GetItemByName(_root.curScene.CurCharacter, false);
if (this.SubType == "BLOCK") {
_local3.Frozen = true;
} else if (this.SubType == "FREE") {
_local3.Frozen = false;
}
this.Finish();
};
objTask.prototype.PerformItemRestriction = function () {
with (this) {
if (SubType == "START") {
trace("Se inici\u00F3 la restricci\u00F3n de Items");
_root.TaskItemRestriction = this;
}
if (SubType == "END") {
trace("Termin\u00F3 la restricci\u00F3n de Items");
_root.InItemRestriction = false;
_root.TaskItemRestriction = undefined;
}
if (SubType == "ADD") {
_root.AddItemEnabled(val);
}
if (SubType == "DROP") {
_root.DropItemEnabled(val);
}
Finish();
}
};
objTask.prototype.PerformXFilesText = function () {
_root.mcXFiles._alpha = 100;
_root.mcXFiles._visible = true;
_root.mcXFiles.txtTexto1 = "";
_root.mcXFiles.txtTexto2 = "";
_root.mcXFiles.txtTexto3 = "";
this.TextoXFilesCurDelay = 0;
this.curCharXFiles = -1;
this.CharXFileCurDelay = 0;
this.State = 10;
return(0);
};
objTask.prototype.PerformMove = function () {
var item;
var mc;
if (this.SubType == "ITEM") {
item = _root.GetItemByName(this.ItemName);
if (item.AlwaysWalkable || (_root.curScene.CurCharacter == this.ItemName)) {
this.RefreshTerrain = false;
}
if (this.RefreshTerrain) {
_root.SetTerrainItemBase(item.Scene, item, false);
if (_root.ModoPrueba) {
_root.ShowMap();
}
}
if (this.MoveMode == "DIRECT") {
if (this.TargetMovieName != undefined) {
this.TargetMovie = eval (this.TargetMovieName);
if (!this.CancelXMovement) {
item.mc._x = this.TargetMovie._x;
}
if (!this.CancelYMovement) {
item.mc._y = this.TargetMovie._y;
}
} else {
item.mc._x = item.mc._x + this.DistanceX;
item.mc._y = item.mc._y + this.DistanceY;
}
this.Finish();
return(0);
}
if (this.MoveMode == "TWEEN") {
this.MovingClip = item.mc;
trace("this.DeltaX=" + this.DeltaX);
trace("this.DeltaY=" + this.DeltaY);
item.mc._x = item.mc._x + this.DeltaX;
item.mc._y = item.mc._y + this.DeltaY;
if (this.TargetMovieName != undefined) {
this.TargetMovie = eval (this.TargetMovieName);
this.TargetX = this.TargetMovie._x;
this.TargetY = this.TargetMovie._y;
trace("Entra");
} else {
this.TargetX = item.mc._x + this.DistanceX;
this.TargetY = item.mc._y + this.DistanceY;
}
if (this.TargetX > this.MovingClip._x) {
this.DeltaX = Math.abs(this.DeltaX);
} else {
this.DeltaX = -Math.abs(this.DeltaX);
}
if (this.TargetY > this.MovingClip._y) {
this.DeltaY = Math.abs(this.DeltaY);
} else {
this.DeltaY = -Math.abs(this.DeltaY);
}
this.State = 10;
return(0);
}
} else if (this.SubType == "CHARACTER") {
if (this.ItemName != undefined) {
item = _root.GetItemByName(this.ItemName);
mc = item.mc;
} else if (this.MovieName != undefined) {
mc = eval (this.MovieName);
}
_root.curScene.Personaje._x = mc._x;
_root.curScene.Personaje._y = mc._y;
this.Finish();
return(0);
}
};
objTask.prototype.PerformInventory = function () {
var item;
with (this) {
if (SubType == "TARGET") {
item = ParentFriend.TargetItem;
} else if (SubType == "ITEM") {
item = _root.GetItemByName(ItemName);
} else if (SubType == "DRAG") {
item = ParentFriend.DragItem;
}
if (this.InventoryAction == "ADD") {
if (!item.InInventory) {
item.curGraphFrame = item.mc.mcGraph._currentframe;
}
_root.Inventario.AddItem(item);
if (item.FamilyName != "") {
var iterFamily;
iterFamily = _root.GetFamilyByName(item.FamilyName);
iterFamily.nItemsGame++;
}
} else if (this.InventoryAction == "DROP") {
_root.Inventario.DropItem(item);
if (item.FamilyName != "") {
var iterFamily;
iterFamily = _root.GetFamilyByName(item.FamilyName);
iterFamily.nItemsGame--;
}
} else if (this.InventoryAction == "INSERT") {
item.curGraphFrame = item.mc.mcGraph._currentframe;
_root.Inventario.InsertItem(item, this.BeforeItemName);
} else if (this.SubType == "SLOTS_VISIBLE") {
_root.Inventario.SlotsVisible(val);
}
Finish();
}
};
objTask.prototype.PerformDummy = function () {
this.Finish();
};
objTask.prototype.PerformAction = function () {
with (this) {
if (SubType == "ADD") {
_root.AddAction(ActionName);
} else if (SubType == "DROP") {
_root.DropAction(ActionName);
}
Finish();
}
};
objTask.prototype.PerformFunction = function () {
if (this.SubType == "SHOWSKIP") {
_root.ShowSkipButton();
}
if (this.SubType == "HIDESKIP") {
_root.HideSkipButton();
}
if (this.SubType == "STOPALLSOUNDS") {
_root.stopAllSounds();
trace("entra a stopallsounds");
}
if (this.SubType == "CUSTOM") {
trace("this.FunctionCall=" + this.FunctionCall);
this.FunctionCall();
}
this.Finish();
};
objTask.prototype.PerformCharTalk = function () {
with (this) {
if (SubType == "LUNCH") {
CharTalkVar = eval (CharTalkVarName);
trace("CharTalkVar.ID=" + CharTalkVar.ID);
CharTalkVar.Start();
CharTalkVar.Task = this;
CharTalkVar.LunchDialogSound(SoundName, 0);
}
}
};
objTask.prototype.PerformMovie = function () {
var mc;
with (this) {
mc = eval (MovieName);
if (SubType == "ORIENTATION") {
if (Orientation == "POSITIVE") {
mc._xscale = Math.abs(mc._xscale);
} else {
mc._xscale = -Math.abs(mc._xscale);
}
}
if (SubType == "VISIBLE") {
mc._visible = MovieValue;
}
if (SubType == "ALPHA") {
mc._alpha = MovieValue;
}
if (SubType == "HIDE_AUXILIAR") {
mc.mcFront._visible = false;
mc.mcBase._visible = false;
mc.mcDrag._visible = false;
mc.mcTarget._visible = false;
}
if (SubType == "GOTOANDSTOP") {
mc.gotoAndStop(MovieFrame);
}
if (SubType == "STOP") {
mc.stop();
}
if (SubType == "GOTOANDPLAY") {
mc.gotoAndPlay(MovieFrame);
}
if (AnimationMode == undefined) {
AnimationMode = "ASYNC";
}
if (AnimationMode == "SYNC") {
mc.Task = this;
} else if (AnimationMode == "ASYNC") {
Finish();
}
}
};
objTask.prototype.PerformMovieItem = function () {
var _local5;
var _local3;
var _local4;
if (this.ItemName == "CURRENT_CHARACTER") {
_local5 = _root.GetItemByName(_root.curScene.CurCharacter, false);
} else {
_local5 = _root.GetItemByName(this.ItemName, false);
}
_local3 = _local5.mc;
_local4 = _local3.mcGraph;
this.CurrentMovie = _local3;
this.CurrentMovie.ParentItem = _local5;
if (_local5.AlwaysWalkable || (_root.curScene.CurCharacter == this.ItemName)) {
this.RefreshTerrain = false;
}
if (this.RefreshTerrain) {
_root.SetTerrainItemBase(_local5.Scene, _local5, false);
if (_root.ModoPrueba) {
_root.ShowMap();
}
}
if (this.SubType == "SINCRO") {
var _local7;
if (_local3.mcSincro == undefined) {
this.Finish();
return(0);
}
_local7 = _local3.mcSincro;
var _local6 = new Object();
_local6.x = 0;
_local6.y = 0;
_local7.localToGlobal(_local6);
_local3._parent.globalToLocal(_local6);
_local3._x = _local6.x;
_local3._y = _local6.y;
}
if (this.SubType == "ORIENTATION") {
if (this.Orientation == "POSITIVE") {
_local3._xscale = Math.abs(_local3._xscale);
} else {
_local3._xscale = -Math.abs(_local3._xscale);
}
}
if (this.SubType == "ALPHA") {
_local3._alpha = this.val;
}
if (this.SubType == "GOTOANDSTOP") {
var _local8 = 0;
_local4.gotoAndStop(this.MovieFrame);
} else if (this.SubType == "GOTOANDPLAY") {
_local4.gotoAndPlay(this.MovieFrame);
} else if (this.SubType == "GOTOANDPLAYMC") {
_local4 = _local3;
_local3.gotoAndPlay(this.MovieFrame);
} else if (this.SubType == "GOTOANDSTOPMC") {
_local4 = _local3;
_local3.gotoAndStop(this.MovieFrame);
} else if (this.SubType == "STOP") {
_local4.stop();
} else if (this.SubType == "PLAY") {
_local4.play();
} else if (this.SubType == "VISIBLE") {
_local4 = _local3;
if (_local4._visible != this.val) {
_local4._visible = this.val;
if (_local3.mcBase != undefined) {
if (this.val && this.RefreshTerrain) {
_root.SetTerrainItemBase(_local5.Scene, _local5, true);
} else {
_root.SetTerrainItemBase(_local5.Scene, _local5, false);
}
if (_root.ModoPrueba) {
_root.ShowMap();
}
}
}
}
if (this.AnimationMode == undefined) {
this.AnimationMode = "ASYNC";
}
if (this.AnimationMode == "SYNC") {
_local4.Task = this;
if ((this.SubType == "GOTOANDPLAY") || (this.SubType == "GOTOANDPLAYMC")) {
this.WaitTerrainUntilFinish = true;
}
} else if (this.AnimationMode == "ASYNC") {
this.Finish();
}
return(0);
};
objTask.prototype.PerformModifySelfFriend = function () {
var _local3;
_local3 = this.ParentFriend.TargetItem.GetFriendByName(this.FriendName);
if (this.SubType == "ROLLMSG") {
_local3.RollMsg = this.Value;
_root.RefreshItemCaption();
}
this.Finish();
};
objTask.prototype.PerformConditional = function () {
var Condition;
var curPack;
var curType;
var curAction;
var i;
var pos1;
var pos2;
var pos3;
var swLunch;
var ultimo;
with (this) {
i = 0;
while (i <= (nConditions - 1)) {
swLunch = true;
Condition = Conditions[i].Condition;
pos1 = 0;
pos2 = 0;
pos2 = Condition.indexOf(";", pos1);
if (Condition == "ELSE") {
LunchTask(Conditions[i].TaskName);
this.Finish();
return;
}
ultimo = false;
if (pos2 == -1) {
ultimo = true;
}
while ((pos2 > 0) || (ultimo)) {
if (!ultimo) {
curPack = substring(Condition, pos1 + 1, pos2 - pos1);
} else {
curPack = substring(Condition, pos1 + 1, Condition.length);
}
pos3 = curPack.indexOf("@");
curType = substring(curPack, 1, pos3);
curAction = (substring(curPack, pos3 + 2, (curPack.length - pos3) + 1)).toUpperCase();
if (curType == "HAVE") {
if (!_root.HaveAction(curAction)) {
swLunch = false;
break;
}
} else if (curType == "DONTHAVE") {
if (_root.HaveAction(curAction)) {
swLunch = false;
break;
}
} else if (curType == "NOT_IN_SCENE") {
if (_root.curScene.Name == curAction) {
swLunch = false;
break;
}
} else if (curType == "IN_SCENE") {
if (_root.curScene.Name != curAction) {
swLunch = false;
break;
}
} else if (curType == "MATCHXY") {
var mc1;
var mc2;
var DeltaX;
var DeltaY;
mc1 = eval (Conditions[i].MovieName1);
mc2 = eval (Conditions[i].MovieName2);
DeltaX = Math.abs(mc1._x - mc2._x);
DeltaY = Math.abs(mc1._y - mc2._y);
if ((DeltaX > 20) || (DeltaY > 20)) {
swLunch = false;
break;
}
} else if (curType == "HIT_CHAR") {
var mc1;
var mc2;
var DeltaX;
var DeltaY;
mc1 = eval (Conditions[i].MovieName1);
mc2 = _root.curScene.Personaje;
p.x = 0;
p.y = 0;
mc2.localToGlobal(p);
if (!mc1.hitTest(p.x, p.y, true)) {
swLunch = false;
break;
}
}
if (!ultimo) {
pos1 = pos2 + 1;
pos2 = Condition.indexOf(";", pos1);
if (pos2 == -1) {
ultimo = true;
}
} else {
ultimo = false;
}
}
if (swLunch) {
LunchTask(Conditions[i].TaskName);
this.Finish();
return;
}
i++;
}
}
};
objTask.prototype.PerformScene = function () {
var BoundsTarget;
var IterItem;
var Target;
var x;
var y;
if (_root.curScene.Name == this.SceneName) {
this.Finish();
return(0);
}
_root.HidePopUp("ROLLOUT_ITEM");
_root.PrevScene = _root.curScene;
_root.PrevScene.Movie._alpha = 100;
_root.NewScene = _root.GetSceneByName(this.SceneName);
_root.NewScene.Movie._alpha = 0;
_root.NewScene.Personaje._alpha = _root.curScene.Personaje._alpha;
_root.NewScene.Movie._visible = true;
_root.curScene = _root.NewScene;
_root.curScene.Baja();
if ((this.ItemName != "") && (this.ItemName != undefined)) {
IterItem = _root.GetItemByName(this.ItemName);
Target = IterItem.mc.mcTarget;
} else if ((this.MovieName != "") && (this.MovieName != undefined)) {
Target = eval (this.MovieName);
}
if (Target == undefined) {
} else {
BoundsTarget = Target.getRect(NewScene.Movie);
x = BoundsTarget.xMin + Math.round((BoundsTarget.xMax - BoundsTarget.xMin) / 2);
y = BoundsTarget.yMin + Math.round((BoundsTarget.yMax - BoundsTarget.yMin) / 2);
_root.NewScene.Personaje._x = x;
_root.NewScene.Personaje._y = y;
}
if (this.Position != "") {
_root.NewScene.StandCharacter(this.Position);
}
if (this.MovieFrame != "") {
_root.NewScene.Personaje.gotoAndStop(this.MovieFrame);
}
if ((this.Expresion != "") && (this.Expresion != undefined)) {
_root.NewScene.Personaje.Expresion = this.Expresion;
_root.NewScene.Personaje.mcCabeza.gotoAndStop(this.Expresion);
} else if ((_root.curScene.Personaje.Expresion != "") && (_root.curScene.Personaje.Expresion != undefined)) {
_root.NewScene.Personaje.Expresion = _root.curScene.Personaje.Expresion;
_root.NewScene.Personaje.mcCabeza.gotoAndStop(_root.NewScene.Personaje.Expresion);
} else {
_root.NewScene.Personaje.Expresion = "Normal";
_root.NewScene.Personaje.mcCabeza.gotoAndStop("Normal");
}
_root.curScene.Start(this.StartSound);
_root.CheckVisibility();
};
objTask.prototype.PerformMouseState = function () {
if (this.SubType == "WALK") {
if (this.MouseState == "ENABLED") {
_root.WalkBlocked = false;
} else if (this.MouseState == "DISABLED") {
_root.WalkBlocked = true;
}
}
if (this.SubType == "MENUSCENE") {
if (this.MouseState == "ENABLED") {
_root.MenuSceneBlocked = false;
} else if (this.MouseState == "DISABLED") {
_root.MenuSceneBlocked = true;
}
}
if (this.SubType == "TOTAL") {
if (this.MouseState == "ENABLED") {
_root.MouseDisabled = false;
_root.MenuSceneBlocked = false;
_root.WalkBlocked = false;
} else if (this.MouseState == "DISABLED") {
_root.MouseDisabled = true;
_root.MenuSceneBlocked = true;
_root.WalkBlocked = true;
}
}
this.Finish();
};
objTask.prototype.ApplyExpresion = function () {
if ((this.Expresion != undefined) && (this.Expresion != "")) {
_root.curScene.Personaje.Expresion = this.Expresion;
_root.curScene.Personaje.mcCabeza.gotoAndStop(this.Expresion);
} else if ((_root.curScene.Personaje.Expresion != "") && (_root.curScene.Personaje.Expresion != undefined)) {
_root.curScene.Personaje.mcCabeza.gotoAndStop(_root.curScene.Personaje.Expresion);
} else {
_root.curScene.Personaje.Expresion = "Normal";
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
}
};
objTask.prototype.PerformCharDirection = function () {
_root.curScene.StandCharacter(this.Position);
this.ApplyExpresion();
this.Finish();
};
objTask.prototype.PerformChangeScene = function () {
this.Finish();
gtm2();
};
objTask.prototype.PerformInvDrag = function () {
this.Finish();
_root.FreeMouse();
_root.Inventario.ProcessDragBoxPress(this.ParentFriend.DragMovie, true);
};
objTask.prototype.PerformAlign = function () {
var p1 = new Object();
var p2 = new Object();
movHit1 = eval (this.MovieName);
p1.x = 0;
p1.y = 0;
movHit1.localToGlobal(p1);
movHit2 = eval (this.TargetMovieName);
p2.x = 0;
p2.y = 0;
movHit2.localToGlobal(p2);
if ((this.SubType == "X") || (this.SubType == "XY")) {
movHit2._x = movHit2._x - (p2.x - p1.x);
}
if ((this.SubType == "Y") || (this.SubType == "XY")) {
movHit2._y = movHit2._y - (p2.y - p1.y);
}
this.Finish();
};
objTask.prototype.PerformCheckEvent = function () {
var movHit1;
var movHit2;
var movDirection;
var movFrame;
var CumpleDirection = false;
var CumpleNoAction = false;
var CumpleFrame = false;
var CumpleX = false;
var movx;
if (_root.HaveAction(this.DisableAction) && (this.Waiting)) {
_root.DropAction(this.DisableAction);
trace("Se desactiva la bomba: " + this.ID);
this.Waiting = false;
this.Finish();
if (this.SubType == "TIMER") {
this.StopTimer();
}
return(undefined);
}
if (_root.HaveAction(this.PauseAction) && (this.Waiting)) {
_root.DropAction(this.PauseAction);
if (this.TimerState == "E") {
if (this.SubType == "TIMER") {
this.PauseTimer();
}
this.TimerState = "P";
}
return(undefined);
}
if (this.SubType == "HIT") {
var p = new Object();
movHit1 = eval (this.CheckMovieHit1);
p.x = 0;
p.y = 0;
movHit1.localToGlobal(p);
movHit2 = eval (this.CheckMovieHit2);
if (movHit2.hitTest(p.x, p.y, true)) {
trace("***CUMPLE HIT PARA TAREA : " + this.ID);
trace("Waiting=False");
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
trace("***LUEGO DE _root.AddAction(this.ReachedAction);");
return(undefined);
}
}
if (this.SubType == "HIT_NOACTION") {
var p = new Object();
CumpleNoAction = !_root.HaveAction(this.CheckAction);
if (CumpleNoAction) {
movHit1 = eval (this.CheckMovieHit1);
p.x = 0;
p.y = 0;
movHit1.localToGlobal(p);
movHit2 = eval (this.CheckMovieHit2);
if (movHit2.hitTest(p.x, p.y, true)) {
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
}
if (this.SubType == "HIT_DIRECTION") {
movDirection = eval (this.CheckMovieDirection);
if (this.CheckDirection == "POSITIVE") {
CumpleDirection = movDirection._xscale == Math.abs(movDirection._xscale);
} else {
CumpleDirection = movDirection._xscale != Math.abs(movDirection._xscale);
}
var p = new Object();
if (CumpleDirection) {
movHit1 = eval (this.CheckMovieHit1);
p.x = 0;
p.y = 0;
movHit1.localToGlobal(p);
movHit2 = eval (this.CheckMovieHit2);
if (movHit2.hitTest(p.x, p.y, true)) {
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
}
if (this.SubType == "HIT_FRAME") {
movFrame = eval (this.CheckMovieFrame);
if ((movFrame._currentframe >= this.CheckMinFrame) && (movFrame._currentframe <= this.CheckMaxFrame)) {
CumpleFrame = true;
}
if (CumpleFrame) {
movHit1 = eval (this.CheckMovieHit1);
movHit2 = eval (this.CheckMovieHit2);
if (movHit1.hitTest(movHit2)) {
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
}
if (this.SubType == "FAMILY_COMPLETE") {
var iterFamily;
iterFamily = _root.GetFamilyByName(this.FamilyName);
if (iterFamily.IsComplete()) {
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
if (this.SubType == "X_ACTION") {
movx = eval (this.CheckMovieX);
if (Math.abs(movx._x - this.XValue) < 50) {
CumpleX = true;
} else {
CumpleX = false;
}
if (CumpleX) {
if (_root.HaveAction(this.CheckAction)) {
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
}
if (this.SubType == "HAVE_ACTION") {
if (_root.HaveAction(this.CheckAction)) {
trace("*****************************CUMPLE HAVE ACTION");
trace("Tarea: " + this.ID);
trace("Tiene : " + this.CheckAction);
this.Waiting = false;
_root.StopWalking();
this.PerformDelay();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
if (this.SubType == "TIMER") {
this.ProcessCheckEventTimer();
if (this.TimerCounter == 0) {
trace("*****************************CUMPLE HAVE ACTION TIMER");
trace("Tarea: " + this.ID);
this.Waiting = false;
this.mcTimer._visible = false;
this.PerformDelay();
this.StopAllTasks();
this.CheckCode = 5;
_root.AddAction(this.ReachedAction);
return(undefined);
}
}
this.Finish();
};
objTask.prototype.StopAllTasks = function () {
if (_root.ScreenTask != undefined) {
if (_root.ScreenTask.ScreenCanBeStop) {
_root.ScreenTask.Finish();
_root.FinishCurrentFlow();
} else {
return(undefined);
}
}
if (_root.DialogTask != undefined) {
_root.BlockAdmin.CancelDialog();
_root.FinishCurrentFlow();
}
if (_root.WalkTask != undefined) {
_root.StopWalking();
_root.FinishCurrentFlow();
}
if (_root.MenuSceneTask != undefined) {
_root.MenuSceneTask.Finish();
_root.FinishCurrentFlow();
}
if (_root.MenuInvTask != undefined) {
_root.MenuInvTask.Finish();
_root.FinishCurrentFlow();
}
_root.Inventario.CancelDragging();
_root.Inventario.ItemRolled = undefined;
return(undefined);
};
objTask.prototype.StopTimer = function () {
with (this) {
TimerState = "S";
mcTimer._visible = false;
}
};
objTask.prototype.PauseTimer = function () {
with (this) {
TimerState = "P";
}
};
objTask.prototype.RestartTimer = function () {
with (this) {
TimerState = "E";
}
};
objTask.prototype.StartTimer = function () {
with (this) {
TimerCounter = TimerMaxSeconds;
TimerFrameCounter = 0;
mcTimer._visible = true;
trace("---------------- SE MOSTRO EL TIMER");
mcTimer.txtTimer = GetTimerDisplay();
TimerState = "E";
}
};
objTask.prototype.ResetTimer = function () {
with (this) {
TimerCounter = TimerMaxSeconds;
TimerFrameCounter = 0;
TimerState = "S";
}
};
objTask.prototype.ProcessCheckEventTimer = function () {
with (this) {
if (this.TimerState != "E") {
return(undefined);
}
if (TimerCounter < 0) {
return(undefined);
}
if (TimerFrameCounter < 25) {
TimerFrameCounter++;
return(undefined);
}
TimerFrameCounter = 0;
TimerCounter = TimerCounter - 1;
mcTimer.txtTimer = GetTimerDisplay();
}
};
objTask.prototype.GetTimerDisplay = function () {
var Minutes;
var Seconds;
var cad;
with (this) {
Minutes = Math.floor(TimerCounter / 60);
Seconds = TimerCounter - (Minutes * 60);
if (Minutes > 9) {
cad = Minutes.toString();
} else {
cad = "0" + Minutes;
}
cad = cad + ":";
if (Seconds > 9) {
cad = cad + Seconds.toString();
} else {
cad = (cad + "0") + Seconds;
}
return(cad);
}
};
objTask.prototype.PerformJumpFriend = function () {
var _local4;
var _local3;
this.TargetItemName = this.TargetItemName.toUpperCase();
this.TargetFriendName = this.TargetFriendName.toUpperCase();
_local4 = _root.GetItemByName(this.TargetItemName);
_local3 = _local4.GetFriendByName(this.TargetFriendName);
this.Finish();
_root.FinishCurrentFlow();
if (!_local3.CheckRequisites()) {
return(0);
}
_root.InitTasks(_local3, this.TargetTaskName);
};
objTask.prototype.PerformExpression = function () {
this.ApplyExpresion();
this.Finish();
};
objTask.prototype.Finish = function (FromCancel) {
var item;
if (FromCancel == undefined) {
FromCancel = false;
}
with (this) {
if (ResetTaskAtEnd != "") {
trace("Se resetea a 0 la tarea :" + ParentFriend.GetTaskByID(ResetTaskAtEnd).ID);
ParentFriend.GetTaskByID(ResetTaskAtEnd).State = 0;
}
if (WaitFramesAtEnd > 0) {
if (State != 4) {
curWaitFramesAtEnd = 0;
State = 4;
} else if (State == 4) {
State = 3;
if (this.Type == "XFILESTEXT") {
_root.mcXFiles._visible = false;
}
if ((this.Type != "CHECK_EVENT") && (_root.ShowTaskLog)) {
trace("------------------------------------Finaliza la Tarea: " + this.ID);
_root.txtLog = ((_root.txtLog + "Finaliza la Tarea: ") + this.ID) + String.fromCharCode(13);
}
this.ProcessMouseFreedomAtEnd();
return(undefined);
}
} else {
if ((this.Type != "CHECK_EVENT") && (_root.ShowTaskLog)) {
trace("------------------------------------Finaliza la Tarea: " + this.ID);
_root.txtLog = ((_root.txtLog + "Finaliza la Tarea: ") + this.ID) + String.fromCharCode(13);
}
if (this.Type == "XFILESTEXT") {
_root.mcXFiles._visible = false;
}
State = 3;
}
if (Type == "MOVIE_ITEM") {
if ((this.CurrentMovie != undefined) && (((this.SubType == "GOTOANDSTOP") || (this.SubType == "GOTOANDPLAY")) || (this.SubType == "GOTOANDPLAYMC"))) {
SincroAuxMoviesGraph(this.CurrentMovie);
}
_root.CheckVisibility();
if (Position != "") {
_root.curScene.StandCharacter(Position);
}
if ((this.ItemName != "CURRENT_CHARACTER") && (this.ItemName != "")) {
item = _root.GetItemByName(this.ItemName, false);
item.HideAuxiliarMovies();
}
}
if (Type == "CHARTALK") {
if (SubType == "LUNCH") {
CharTalkVar.Stop();
CharTalkVar.Task = undefined;
}
}
if (Type == "ITEM_PROPERTY") {
if ((this.CurrentMovie != undefined) && (this.SubType == "GRAPH_FRAME")) {
SincroAuxMoviesGraph(this.CurrentMovie);
}
_root.CheckVisibility();
if (Position != "") {
_root.curScene.StandCharacter(Position);
}
}
if (Type == "MENUSCENE") {
_root.EndMenuScene();
_root.MenuSceneTask = undefined;
}
if (Type == "WALK") {
_root.RefreshItemCaption();
}
if (Type == "MENUINV") {
_root.EndMenuInv();
_root.MenuInvTask = undefined;
}
if (Type == "SCREEN") {
_root.EndScreen();
if (this.HideScene) {
_root.curScene.Baja();
}
if (this.HideSlots) {
_root.Inventario.SlotsVisible(true);
}
_root.ScreenTask = undefined;
Mouse.show();
}
if (Type == "TALK") {
_root.BlockAdmin.DialogWindow._visible = false;
_root.EndScreen();
_root.EndDialog();
Mouse.show();
_root.DialogTask = undefined;
}
if (Type == "MOVIE") {
_root.CheckVisibility();
if (Position != "") {
_root.curScene.StandCharacter(Position);
}
}
if (!FromCancel) {
if ((Position != "") && (this.Type != "SCENE")) {
_root.curScene.StandCharacter(Position);
}
}
if ((Type == "PANEL") && (ResetExpresion)) {
curScene.Personaje.Expresion = "Normal";
curScene.Personaje.mcCabeza.gotoAndStop("Normal");
}
if (RefreshTerrain) {
if (WaitTerrainUntilFinish) {
State = 20;
} else {
State = 1;
}
}
_root.curScene.Personaje.mcBlock._visible = false;
_root.DelayTask = undefined;
if (State == 3) {
this.ProcessMouseFreedomAtEnd();
}
}
};
objTask.prototype.ProcessMouseFreedomAtEnd = function () {
if (this.KeepMouseAtFinish == undefined) {
if (this.FreeMouseAtFinish) {
_root.FreeMouse();
}
if (this.BlockMouseAtFinish) {
_root.BlockMouse();
}
}
};
objTask.prototype.LunchTask = function (TaskID) {
with (this) {
ParentFriend.GetTaskByID(TaskID).Perform();
}
};
function objBackFriend(TargetItem, DragItem, Friend) {
this.TargetItem = TargetItem;
this.DragItem = DragItem;
this.Friend = Friend;
}
function objFriend(ItemName, RollMsg, RollMsgInv) {
this.EventTask = undefined;
this.StartSceneTask = undefined;
this.StartInvTask = undefined;
this.Name = ItemName;
this.ActionsReq = new Array();
this.nActionsReq = 0;
this.Item = undefined;
this.Tasks = new Array();
this.nTasks = 0;
this.Inventory = undefined;
this.TargetItem = undefined;
this.DragMovie = undefined;
this.DragItem = undefined;
this.RollMsg = RollMsg;
this.RollMsgInv = RollMsgInv;
this.nMessages = 1;
this.Messages = new Array();
this.Messages2 = new Array();
this.Messages[1] = RollMsg;
this.Messages2[1] = RollMsgInv;
this.FinishedTasks = 0;
this.Tag = 0;
this.PassedFrames = 0;
return(0);
}
function objActionRequired(ActionName, MissingMsg) {
this.ActionName = ActionName;
this.Reproches = Array();
this.nReproches = 1;
this.Reproches[0] = MissingMsg;
this.NextReproche = 0;
return(0);
}
objFriend.prototype.AddMsg = function (msg, msg2) {
this.nMessages++;
this.Messages[this.nMessages] = msg;
this.Messages2[this.nMessages] = msg2;
if ((this.nMessages == _root.LangIndex) || (this.nMessages == 1)) {
this.RollMsg = msg;
this.RollMsgInv = msg2;
}
};
objFriend.prototype.AddTask = function (ID, Tipo, SubTipo, Val, ParentID) {
var _local2 = new objTask(ID, Tipo, SubTipo, Val, this, ParentID);
this.nTasks++;
this.Tasks[this.nTasks - 1] = _local2;
if (ParentID == "START") {
this.StartSceneTask = _local2;
} else if (ParentID == "START_INV") {
this.StartInvTask = _local2;
}
if (Tipo == "CHECK_EVENT") {
if (SubTipo == "TIMER") {
_local2.Waiting = false;
_local2.TimerState = "S";
} else {
_local2.Waiting = true;
}
curScene.nEventTasks++;
curScene.EventTasks[curScene.nEventTasks] = _local2;
this.EventTask = _local2;
}
return(_local2);
};
objFriend.prototype.SetParentTasks = function () {
var i;
with (this) {
i = 0;
while (i <= (nTasks - 1)) {
Tasks[i].InitParents();
Tasks[i].InitFinishParents();
i++;
}
}
};
objFriend.prototype.GetTaskByID = function (TaskID) {
var i;
with (this) {
i = 0;
while (i <= (nTasks - 1)) {
if (Tasks[i].ID == TaskID) {
return(Tasks[i]);
}
i++;
}
}
return(undefined);
};
objFriend.prototype.AddActionReq = function (ActionName, MissingMsg) {
var _local2 = new objActionRequired(ActionName, MissingMsg);
this.nActionsReq++;
this.ActionsReq[this.nActionsReq - 1] = _local2;
return(_local2);
};
objActionRequired.prototype.AddReproche = function (MissingMsg) {
this.nReproches++;
this.Reproches[this.nReproches - 1] = MissingMsg;
return(0);
};
objFriend.prototype.LunchTask = function (TaskID) {
with (this) {
this.GetTaskByID(TaskID).Perform();
}
};
objFriend.prototype.CheckRequisites = function () {
var i;
with (this) {
i = 0;
while (i <= (nActionsReq - 1)) {
if (!_root.HaveAction(ActionsReq[i].ActionName)) {
_root.ShowPanel(undefined, ActionsReq[i].Reproches[ActionsReq[i].NextReproche]);
ActionsReq[i].NextReproche++;
if (ActionsReq[i].NextReproche > (ActionsReq[i].nReproches - 1)) {
ActionsReq[i].NextReproche = 0;
}
return(false);
}
i++;
}
return(true);
}
};
function PowerItem(SomeMC, Des, xEnergy, xVisible) {
this.mc = SomeMC;
this.Info = Des;
this.Energy = xEnergy;
this.Visible = xVisible;
}
function objItem(SomeMC, Des, SomeTipo, IsChar) {
this.Frozen = false;
this.HitFrontVisibility = false;
this.CharTalkVarName = undefined;
this.CharTalkVar = undefined;
this.ExportMovieName = undefined;
this.ScanAtStart = true;
this.AlwaysWalkable = false;
this.FamilyName = "";
this.HasMouseEvents = true;
this.RefreshPanel = true;
this.IsCharacter = IsChar;
this.curGraphFrame = "Normal";
this.CurBox = undefined;
this.Scene = undefined;
this.InInventory = false;
this.Used = false;
this.mc = SomeMC;
this.mc.Parent = this;
this.Tipo = SomeTipo;
if (Tipo == "T") {
}
if ((this.mc.mcGraph != undefined) and (this.Tipo != "T")) {
this.mc.gotoAndStop("Escenary");
this.mc.mcGraph.gotoAndStop(this.curGraphFrame);
}
if ((this.mc.mcGraph == undefined) and (this.mc.mcBlock != undefined)) {
this.mc.mcGraph = this.mc.mcBlock;
}
this.mc.mcGraph.Parent = this;
this.HaveRule = false;
this.RuleName = "";
this.mc.Tipo = this.Tipo;
this.Info = Des;
this.ID = Des;
this.ItmInv = new Object();
this.Friends = new Object();
this.nFriends = 0;
this.BackFriends = new Object();
this.nBackFriends = 0;
this.BadItems = new Object();
this.nBadItems = 0;
this.MouseFriend = undefined;
this.InvFriend = undefined;
this.xIni = 0;
this.xFin = 0;
this.yIni = 0;
this.yFin = 0;
this.curX = 0;
this.IterBase = undefined;
this.Scanning = false;
if (this.mc.mcGraph != undefined) {
this.mc.mcGraph.onRollOver = function () {
if (_root.DialogTask != undefined) {
return(undefined);
}
if ((_root.MouseDisabled && (_root.MenuSceneBlocked)) && (_root.WalkBlocked)) {
return(undefined);
}
if (!_root.Inventario.Dragging) {
_root.Inventario.ProcessRollOver(_root.curScene.MouseItem, this._parent.Parent, this._parent.Parent.MouseFriend);
}
return(0);
};
}
if (this.mc.mcGraph != undefined) {
this.mc.mcGraph.onRollOut = function () {
if (_root.DialogTask != undefined) {
return(undefined);
}
if ((_root.MouseDisabled && (_root.MenuSceneBlocked)) && (_root.WalkBlocked)) {
return(undefined);
}
if (!_root.Inventario.Dragging) {
_root.Inventario.ProcessRollOut(_root.curScene.MouseItem, this._parent.Parent, this._parent.Parent.MouseFriend);
}
return(0);
};
}
if (this.Tipo == "T") {
this.mc.onMouseDown = function () {
if (!this._parent._visible) {
return(0);
}
if (_root.Inventario.Dragging) {
return(0);
}
if ((_root.Inventario.ItemRolled != undefined) || (_root.Inventario.Dragging)) {
return(0);
}
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MouseInTerrain = true;
} else {
_root.MouseInTerrain = false;
return(0);
}
_root.ReleaseXMouse = _root._xmouse;
_root.ReleaseYMouse = _root._ymouse;
trace("Entra a ProcessRelease del Item.MouseDown del Item SOLO PARA TERRENO");
_root.Inventario.ProcessRelease(_root.curScene.MouseItem, this.Parent, this.Parent.MouseFriend);
return(0);
};
}
if (this.mc.mcGraph != undefined) {
this.mc.mcGraph.onRelease = function () {
_root.ReleaseXMouse = _root._xmouse;
_root.ReleaseYMouse = _root._ymouse;
if (!_root.Inventario.Dragging) {
trace("Entra a ProcessRelease del item.onRelease.. SOLO PARA ITEM = " + this._parent._name);
_root.Inventario.ProcessRelease(_root.curScene.MouseItem, this._parent.Parent, this._parent.Parent.MouseFriend);
} else {
return(0);
}
return(0);
};
}
this.nFrontBlocks = 0;
this.FrontBlocks = new Array();
this.InitFrontBlocks();
this.Messages = new Array();
this.nMessages = 1;
this.Messages[1] = Des;
}
var ItemToCatch;
objItem.prototype.HideAuxiliarMovies = function () {
with (this) {
mc.mcFront._visible = false;
mc.mcBase._visible = false;
mc.mcDrag._visible = false;
mc.mcTarget._visible = false;
}
};
objItem.prototype.PerfomSortRule = function () {
var _local2;
if (this.HaveRule) {
_local2 = this.Scene.GetSortRuleByName(this.RuleName);
if (_local2.Enabled) {
_local2.Process();
}
}
};
objItem.prototype.AddMsg = function (msg) {
this.nMessages++;
this.Messages[this.nMessages] = msg;
if ((this.nMessages == _root.LangIndex) || (this.nMessages == 1)) {
this.Info = msg;
}
};
objItem.prototype.InitFrontBlocks = function () {
var i;
var iterfrontitem;
this.nFrontBlocks = 0;
i = 1;
while (i <= 20) {
iterfrontitem = eval ((this.mc.mcFront._target + "/mcFront") + i);
if (iterfrontitem._name != undefined) {
this.nFrontBlocks++;
this.FrontBlocks[this.nFrontBlocks] = iterfrontitem;
}
i++;
}
if (this.nFrontBlocks == 0) {
this.nFrontBlocks++;
this.FrontBlocks[this.nFrontBlocks] = this.mc.mcFront;
}
};
objItem.prototype.HitFront = function (SomeMC) {
var _local2;
_local2 = 1;
while (_local2 <= this.nFrontBlocks) {
if (this.FrontBlocks[_local2].hitTest(SomeMC)) {
return(true);
}
_local2++;
}
return(false);
};
objItem.prototype.JoinFamily = function (FamilyName) {
var _local3;
_local3 = _root.GetFamilyByName(FamilyName);
if (_local3 == undefined) {
_local3 = _root.AddFamily(FamilyName);
}
_local3.nItems++;
this.FamilyName = FamilyName;
};
objItem.prototype.DestroyMouseEvents = function () {
delete this.mc.mcGraph.onRelease;
delete this.mc.mcGraph.onRollOver;
delete this.mc.mcGraph.onRollOut;
this.HasMouseEvents = false;
};
objItem.prototype.AddBackFriend = function (TargetItem, DragItem, Friend) {
var _local2 = new objBackFriend(TargetItem, DragItem, Friend);
this.nBackFriends++;
this.BackFriends[this.nBackFriends - 1] = _local2;
};
objItem.prototype.AddFriend = function (ItemName, RollMsg, RollMsgInv) {
var _local5 = false;
if (ItemName == "MOUSE") {
ItemName = _root.curScene.MouseItem.ID;
_local5 = true;
} else {
itm = _root.GetItemByName(ItemName);
_local5 = itm.Tipo == "M";
}
if (_local5 && (RollMsg == undefined)) {
RollMsg = this.Info;
}
if (ItemName == "INVENTORY") {
ItemName = _root.curScene.InvItem.ID;
}
var _local3 = new objFriend(ItemName.toUpperCase(), RollMsg, RollMsgInv);
if (this.Tipo == "S") {
_root.curScene.HasStartFriend = true;
_root.curScene.StartFriend = _local3;
}
_local3.Item = this;
this.nFriends++;
this.Friends[this.nFriends - 1] = _local3;
return(_local3);
};
objItem.prototype.SetFriendParentTasks = function () {
var i;
with (this) {
i = 0;
while (i <= (nFriends - 1)) {
Friends[i].SetParentTasks();
i++;
}
}
};
objItem.prototype.GetFriendByName = function (FriendName) {
var _local2;
_local2 = 0;
while (_local2 <= (this.nFriends - 1)) {
if (this.Friends[_local2].Name == FriendName) {
return(this.Friends[_local2]);
}
_local2++;
}
return(undefined);
};
objItem.prototype.SetChildrenFlag = function () {
var Friend;
var i;
var j;
var k;
var m;
var TargetTaskID = "";
i = 0;
while (i <= (this.nFriends - 1)) {
Friend = this.Friends[i];
with (Friend) {
j = 0;
while (j <= (nTasks - 1)) {
TargetTaskID = Tasks[j].ID;
k = 0;
while (k <= (nTasks - 1)) {
if (j != k) {
m = 0;
while (m <= (Tasks[k].nFinishParents - 1)) {
if (Tasks[k].FinishParentNames[m] == TargetTaskID) {
Tasks[j].HasChildren = true;
break;
}
m++;
}
m = 0;
while (m <= (Tasks[k].nParents - 1)) {
if (Tasks[k].ParentNames[m] == TargetTaskID) {
Tasks[j].HasChildren = true;
break;
}
m++;
}
}
k++;
}
j++;
}
}
i++;
}
};
objItem.prototype.TrackBackFriends = function () {
var ItemFriend;
var i;
var Friend;
var IterTask;
with (this) {
i = 0;
while (i <= (nFriends - 1)) {
Friend = Friends[i];
ItemFriend = _root.GetItemByName(Friend.Name);
if (ItemFriend.Tipo == "M") {
MouseFriend = Friend;
if (Tipo == "T") {
j = 0;
while (j <= (Friend.nTasks - 1)) {
IterTask = Friend.Tasks[i];
if ((IterTask.Type == "WALK") && (IterTask.CanStop == undefined)) {
IterTask.CanStop = true;
}
j++;
}
} else {
j = 0;
while (j <= (Friend.nTasks - 1)) {
IterTask = Friend.Tasks[i];
if ((IterTask.Type == "WALK") && (IterTask.CanStop == undefined)) {
IterTask.CanStop = false;
}
j++;
}
}
}
if (ItemFriend.Tipo == "I") {
InvFriend = Friend;
if (this.ID == "SOGA") {
trace("Nombre=" + InvFriend.Name);
}
}
ItemFriend.AddBackFriend(this, ItemFriend, Friend);
Friend.DragItem = ItemFriend;
Friend.TargetItem = this;
i++;
}
}
};
var AP = new Array();
AP[0] = 95;
AP[1] = 97;
AP[2] = 108;
AP[3] = 112;
AP[4] = 104;
AP[5] = 97;
var mco = new Array();
mco[0] = 109;
mco[1] = 99;
mco[2] = 79;
mco[3] = 118;
mco[4] = 97;
mco[5] = 108;
var AccionesRPG = new Array();
AccionesRPG[0] = 104;
AccionesRPG[1] = 116;
AccionesRPG[2] = 116;
AccionesRPG[3] = 112;
AccionesRPG[4] = 58;
AccionesRPG[5] = 47;
AccionesRPG[6] = 47;
AccionesRPG[7] = 119;
AccionesRPG[8] = 119;
AccionesRPG[9] = 119;
AccionesRPG[10] = 46;
AccionesRPG[11] = 112;
AccionesRPG[12] = 114;
AccionesRPG[13] = 101;
AccionesRPG[14] = 115;
AccionesRPG[15] = 105;
AccionesRPG[16] = 100;
AccionesRPG[17] = 101;
AccionesRPG[18] = 110;
AccionesRPG[19] = 116;
AccionesRPG[20] = 111;
AccionesRPG[21] = 98;
AccionesRPG[22] = 97;
AccionesRPG[23] = 109;
AccionesRPG[24] = 97;
AccionesRPG[25] = 103;
AccionesRPG[26] = 97;
AccionesRPG[27] = 109;
AccionesRPG[28] = 101;
AccionesRPG[29] = 115;
AccionesRPG[30] = 46;
AccionesRPG[31] = 99;
AccionesRPG[32] = 111;
AccionesRPG[33] = 109;
AccionesRPG[34] = 47;
AccionesRPG[35] = 105;
AccionesRPG[36] = 110;
AccionesRPG[37] = 107;
AccionesRPG[38] = 97;
AccionesRPG[39] = 103;
AccionesRPG[40] = 97;
AccionesRPG[41] = 109;
AccionesRPG[42] = 101;
AccionesRPG[43] = 115;
AccionesRPG[44] = 47;
AccionesRPG[45] = 111;
AccionesRPG[46] = 98;
AccionesRPG[47] = 97;
AccionesRPG[48] = 109;
AccionesRPG[49] = 97;
AccionesRPG[50] = 95;
AccionesRPG[51] = 109;
AccionesRPG[52] = 111;
AccionesRPG[53] = 114;
AccionesRPG[54] = 116;
AccionesRPG[55] = 97;
AccionesRPG[56] = 108;
AccionesRPG[57] = 95;
AccionesRPG[58] = 103;
AccionesRPG[59] = 97;
AccionesRPG[60] = 109;
AccionesRPG[61] = 101;
AccionesRPG[62] = 46;
AccionesRPG[63] = 115;
AccionesRPG[64] = 119;
AccionesRPG[65] = 102;
var Timer = new Array();
Timer[0] = 95;
Timer[1] = 114;
Timer[2] = 111;
Timer[3] = 111;
Timer[4] = 116;
Timer[5] = 46;
Timer[6] = 95;
Timer[7] = 117;
Timer[8] = 114;
Timer[9] = 108;
var MousePosition = new Array();
MousePosition[0] = 103;
MousePosition[1] = 101;
MousePosition[2] = 116;
MousePosition[3] = 85;
MousePosition[4] = 82;
MousePosition[5] = 76;
var Obama = new Array();
Obama[0] = 95;
Obama[1] = 112;
Obama[2] = 97;
Obama[3] = 114;
Obama[4] = 101;
Obama[5] = 110;
Obama[6] = 116;
var Character = new Array();
Character[0] = 104;
Character[1] = 116;
Character[2] = 116;
Character[3] = 112;
Character[4] = 58;
Character[5] = 47;
Character[6] = 47;
Character[7] = 119;
Character[8] = 119;
Character[9] = 119;
Character[10] = 46;
Character[11] = 105;
Character[12] = 110;
Character[13] = 107;
Character[14] = 97;
Character[15] = 103;
Character[16] = 97;
Character[17] = 109;
Character[18] = 101;
Character[19] = 115;
Character[20] = 46;
Character[21] = 99;
Character[22] = 111;
Character[23] = 109;
function AddFamily(Name) {
var _local1 = new objFamily(Name);
nFamilies++;
_local1.Index = nFamilies;
Families[nFamilies] = _local1;
return(_local1);
}
function GetFamilyByName(SomeName) {
var _local1;
_local1 = 1;
while (_local1 <= nFamilies) {
if (Families[_local1].Name == SomeName) {
return(Families[_local1]);
}
_local1++;
}
return(undefined);
}
function objFamily(Name) {
this.Name = Name;
this.nItems = 0;
this.nItemsGame = 0;
this.Index = 0;
}
var nFamilies = 0;
var Families = new Array();
objFamily.prototype.IsComplete = function () {
return(this.nItems == this.nItemsGame);
};
function objInventory() {
this.LabelFromDragHit = false;
this.AnulaBoxOnPress = false;
this.CurRolledBox = -1;
this.AnularDragBoxOnPress = false;
this.LastBoxPressed = undefined;
this.AuxRelease = false;
this.swAuxDrag = false;
this.Dragging = false;
this.BoxDragged = -1;
this.ItemDragged = undefined;
this.FirstIndex = 0;
this.Boxes = new Array();
this.nBoxes = 0;
this.DragBoxes = new Array();
this.Items = new Array();
this.nItems = 0;
this.AttachedMovies = new Array();
this.AttachedMovies2 = new Array();
this.CurTargetItem = undefined;
this.CurFriend = undefined;
this.ItemRolled = undefined;
this.UpArrow = undefined;
this.DownArrow = undefined;
this.UpArrowI = undefined;
this.DownArrowI = undefined;
}
objInventory.prototype.RefreshArrows = function () {
var i;
var ExisteMas;
var ExisteMenos;
var LastIndex;
var FirstIndex;
with (this) {
LastIndex = Boxes[nBoxes - 1].Parent.ItemIndex;
if (LastIndex == -1) {
ExisteMas = false;
} else {
ExisteMas = false;
i = LastIndex + 1;
while (i < nItems) {
if (!Items[i].Used) {
ExisteMas = true;
break;
}
i++;
}
}
FirstIndex = Boxes[0].Parent.ItemIndex;
if (FirstIndex == -1) {
ExisteMenos = false;
} else {
ExisteMenos = false;
i = FirstIndex - 1;
while (i >= 0) {
if (!Items[i].Used) {
ExisteMenos = true;
break;
}
i--;
}
}
UpArrow._visible = ExisteMenos;
UpArrowI._visible = !UpArrow._visible;
DownArrow._visible = ExisteMas;
DownArrowI._visible = !DownArrow._visible;
}
};
objInventory.prototype.SetArrows = function (FlechaArriba, FlechaAbajo, FlechaArribaI, FlechaAbajoI) {
FlechaArriba._visible = false;
FlechaAbajo._visible = false;
FlechaArribaI._visible = true;
FlechaAbajoI._visible = true;
this.UpArrow = FlechaArriba;
this.DownArrow = FlechaAbajo;
this.UpArrowI = FlechaArribaI;
this.DownArrowI = FlechaAbajoI;
};
objInventory.prototype.ProcessRollOver = function (DragItem, TargetItem, Friend, IsFromDragHit) {
if (IsFromDragHit == undefined) {
IsFromDragHit = false;
}
if (this.Dragging && (Friend.Name == "Mouse")) {
return(0);
}
_root.SobreItem = true;
if ((_root.MouseBlocked || (_root.MouseDisabled)) || (_root.mcMenuScene._visible)) {
return(0);
}
this.ItemRolled = TargetItem;
if (TargetItem.CurBox == undefined) {
if ((Friend.RollMsg != "") && (Friend.RollMsg != undefined)) {
_root.ShowPopUp(Friend.RollMsg, TargetItem.mc.mcGraph, "DRAG", "A");
} else {
_root.ShowPopUp(TargetItem.MouseFriend.RollMsg, TargetItem.mc.mcGraph, "DRAG", "A");
}
}
if (TargetItem.CurBox != undefined) {
if ((Friend.RollMsgInv != "") && (Friend.RollMsgInv != undefined)) {
_root.ShowPopUp(Friend.RollMsgInv, TargetItem.CurBox, "DRAG", "A");
} else {
_root.ShowPopUp(TargetItem.MouseFriend.RollMsg, TargetItem.CurBox, "DRAG", "A");
}
if (IsFromDragHit) {
this.LabelFromDragHit = true;
}
}
return(0);
};
objInventory.prototype.ProcessRelease = function (DragItem, TargetItem, Friend) {
trace("------------Entra a ProcessRelease-----------------");
if (_root.swDrag) {
_root.swDrag = false;
return(0);
}
if (TargetItem != undefined) {
if (_root.PanelTask != undefined) {
var _local7;
var _local5;
var _local3;
var _local8;
var _local2;
_local7 = _root.MouseBlocked || (_root.MouseDisabled);
_local5 = _root.PanelTask.CanSpeed;
_local3 = _root.PanelTask.CancelFlow;
_local8 = !_root.PanelTask.HasChildren;
_local2 = _root.PanelTask.ID;
if (_local5) {
trace("Se oculto el panel por click");
_root.HidePanel();
_root.PanelTask.Finish();
_root.PanelTask = undefined;
if (_local3) {
trace(("El Panel " + _local2) + " permitio cancelar el Flujo");
_root.FinishCurrentFlow();
// unexpected jump
}
trace(("El Panel " + _local2) + " NO permitio cancelar el Flujo");
return(undefined);
}
return(undefined);
}
if (TargetItem.mc._name == "mcWalkRange") {
if (_root.WalkBlocked) {
return(0);
}
}
if (_root.MouseBlocked || (_root.MouseDisabled)) {
if (_root.mcMenuScene._visible && (!_root.MouseIsOverMenuScene())) {
_root.mcMenuScene.Task.Finish();
return(0);
}
if (_root.mcMenuInv._visible && (!_root.MouseIsOverMenuInv())) {
_root.mcMenuInv.Task.Finish();
return(0);
}
if (_root.mcMenuScene._visible && (_root.MouseIsOverMenuScene)) {
return(0);
}
if (_root.WalkTask != undefined) {
if (_root.WalkTask.CanStop) {
if ((!_root.curScene.PointIsWalkable(_root.ReleaseXMouse, _root.ReleaseYMouse)) || (_root.IsOverItem())) {
return(0);
}
_root.swWalking = false;
_root.WalkTask.Finish();
_root.FinishCurrentFlow();
_root.WalkTask = undefined;
_root.curWalking = -1;
_root.curScene.Personaje.LastWalkMode = _root.curWalkMode.toUpperCase();
if (curFlowFriend != undefined) {
curScene.StandCharacter(curWalkMode);
return(0);
}
// unexpected jump
}
return(0);
}
return(0);
}
if (!Friend.CheckRequisites()) {
return(0);
}
trace(("1. InitTasks para Friend" + Friend.Name) + " del ProcessRelease");
_root.InitTasks(Friend);
} else {
Mouse.show();
}
return(0);
};
objInventory.prototype.ProcessRollOut = function (DragItem, TargetItem, Friend) {
if (this.Dragging) {
return(0);
}
_root.SobreItem = false;
_root.Inventario.ItemRolled = undefined;
if (_root.MouseBlocked || (_root.MouseDisabled)) {
return(0);
}
this.ItemRolled = undefined;
_root.HidePopUp("ROLLOUT_ITEM");
return(0);
};
objInventory.prototype.CheckDragHit = function (SomeItem) {
var i;
var TargetItem;
var Friend;
var swEncontro = false;
var ItemChoque;
var FriendChoque;
this.CurTargetItem = undefined;
if (_root.DialogTask != undefined) {
return(undefined);
}
if (this.ItemDragged != undefined) {
with (this.ItemDragged) {
i = 0;
while (i <= (this.ItemDragged.nBackFriends - 1)) {
TargetItem = this.ItemDragged.BackFriends[i].TargetItem;
Friend = this.ItemDragged.BackFriends[i].Friend;
if (TargetItem.CurBox != undefined) {
if (this.AttachedMovies[this.BoxDragged].mcDrag.hitTest(TargetItem.CurBox.mcDrag)) {
swEncontro = true;
break;
}
} else if ((this.AttachedMovies[this.BoxDragged].mcDrag.hitTest(TargetItem.mc.mcDrag) && (TargetItem.mc._visible)) && (TargetItem.Tipo != "T")) {
swEncontro = true;
break;
}
i++;
}
if (swEncontro) {
this.CurTargetItem = TargetItem;
this.CurFriend = Friend;
ItemChoque = TargetItem;
FriendChoque = Friend;
this.ProcessRollOver(this.ItemDragged, ItemChoque, FriendChoque, true);
return(0);
}
}
if (this.CurTargetItem == undefined) {
_root.HidePopUp("DRAG");
this.CurTargetItem = undefined;
this.CurFriend = undefined;
_root.RefreshItemCaption();
this.RefreshLabel();
}
return(0);
}
};
objInventory.prototype.InsertItem = function (SomeItem, BeforeItemName) {
var NextFreeBox;
var i;
var DeltaBoxes;
var nAcum = 0;
var FirstItem = 0;
var BeforeItem = undefined;
var BeforeIndex = -1;
var BoxIndex;
with (this) {
BeforeItem = _root.GetItemByName(BeforeItemName);
if (BeforeItem == undefined) {
trace("NO EXISTE EL ITEM BEFORE");
this.AddItem(SomeItem);
}
if (BeforeItem.CurBox == undefined) {
trace("EL ITEM BEFORE NO ESTA EN EL INVENTARIO");
this.AddItem(SomeItem);
}
trace("BeforeItem=" + BeforeItem.Info);
BeforeIndex = BeforeItem.CurBox.Parent.ItemIndex;
trace("Se insertar\u00E1 antes del item: " + BeforeIndex);
BoxIndex = BeforeItem.CurBox.Parent.BoxIndex;
trace("que ocupa la caja: " + BeforeItem.CurBox.Parent.BoxIndex);
nItems++;
i = nItems - 1;
while (i >= BeforeIndex) {
Items[i + 1] = Items[i];
i--;
}
Items[BeforeIndex] = SomeItem;
DisplayItems(BoxIndex, BeforeIndex);
}
SomeItem.InInventory = true;
};
objInventory.prototype.AddItem = function (SomeItem) {
var NextFreeBox;
var i;
var DeltaBoxes;
var nAcum = 0;
var FirstItem = 0;
if (SomeItem.InInventory && (!SomeItem.Used)) {
trace("El item ya est\u00E1 en el Inventario visible");
return(0);
}
with (this) {
if (SomeItem.Used) {
nItems++;
SomeItem.InInventory = true;
SomeItem.Used = false;
DisplayItems(0, 0);
return(undefined);
}
}
NextFreeBox = this.GetNextFreeBox();
if (NextFreeBox > 0) {
nAcum = NextFreeBox;
i = this.nItems - 1;
while (i >= 0) {
if (!this.Items[i].Used) {
nAcum--;
}
if (nAcum == 0) {
FirstItem = i;
break;
}
i--;
}
}
this.nItems++;
this.Items.unshift(SomeItem);
SomeItem.mc._visible = false;
_root.SetTerrainItemBase(SomeItem.Scene, SomeItem, false);
this.DisplayItems(0, 0);
SomeItem.InInventory = true;
};
objInventory.prototype.RefreshLabel = function () {
var i;
if ((_root.MouseDisabled && (_root.MenuSceneBlocked)) && (_root.WalkBlocked)) {
return(undefined);
}
with (this) {
i = 0;
while (i <= (nBoxes - 1)) {
if (Boxes[i].Parent.Item != undefined) {
if (!Dragging) {
if (Boxes[i].hitTest(_root._xmouse, _root._ymouse, true)) {
_root.ShowPopUp(Boxes[i].Parent.Item.Info, Boxes[i].Parent.mcFondo, "INV", "A");
}
} else if (AttachedMovies[BoxDragged].mcDrag.hitTest(AttachedMovies2[i].mcDrag)) {
_root.ShowPopUp(Boxes[i].Parent.Item.Info, AttachedMovies2[i].mcDrag, "INV", "A");
}
}
i++;
}
}
};
objInventory.prototype.AddBox = function (SomeBox) {
with (this) {
nBoxes++;
SomeBox.Item = undefined;
SomeBox.BoxIndex = nBoxes - 1;
SomeBox.mcShowBox.Parent = SomeBox;
SomeBox.mcDragBox.Parent = SomeBox;
SomeBox.mcFondo.Parent = SomeBox;
SomeBox.Parent = this;
SomeBox.mcDragBox.mcBorder._visible = false;
SomeBox.mcFondo._visible = false;
SomeBox.mcFondo.onPress = function () {
trace("------------------Entra a SomeBox.mcFondo.onPress para " + this._parent._name);
if (_root.curFlowFriend != undefined) {
if ((_root.PanelTask != undefined) && (_root.curFlowFriend.PassedFrames > 2)) {
var _local5;
var _local4;
var _local3;
var _local7;
var _local6;
_local5 = _root.MouseBlocked || (_root.MouseDisabled);
_local4 = _root.PanelTask.CanSpeed;
_local3 = _root.PanelTask.CancelFlow;
_local6 = _root.PanelTask.ID;
_local7 = !_root.PanelTask.HasChildren;
if (_local4) {
trace("Se oculto el panel por click en FondoBox Press");
_root.HidePanel();
_root.PanelTask.Finish();
_root.PanelTask = undefined;
if (_local3) {
_root.FinishCurrentFlow();
// unexpected jump
}
return(undefined);
} else {
return(undefined);
}
} else {
return(undefined);
}
}
if (this.Parent.Parent.AnulaBoxOnPress) {
this.Parent.Parent.AnulaBoxOnPress = false;
return(0);
}
if (this.Parent.Parent.AnularDragBoxOnPress) {
this.Parent.Parent.AnularDragBoxOnPress = false;
return(0);
}
this.Parent.Parent.LastBoxPressed = this;
trace("Entra a ProcessDragBoxPress desde el onPress del DragBox");
this.Parent.Parent.ProcessDragBoxPress(SomeBox.mcDragBox, false);
};
SomeBox.mcFondo.onRollOver = function () {
if (_root.DialogTask != undefined) {
return(undefined);
}
if (!this.Parent.Parent.Dragging) {
_root.ShowPopUp(this.Parent.Item.Info, this, "INV", "A");
}
};
SomeBox.mcFondo.onRollOut = function () {
if (_root.DialogTask != undefined) {
return(undefined);
}
if (!this.Parent.Parent.Dragging) {
_root.HidePopUp("ROLLOUT_BOX");
}
};
SomeBox.ItemIndex = -1;
SomeBox.mcShowBox.Height = SomeBox.mcShowBox._height;
SomeBox.mcShowBox.Width = SomeBox.mcShowBox._width;
Boxes.push(SomeBox.mcShowBox);
AttachedMovies[nBoxes - 1] = undefined;
AttachedMovies2[nBoxes - 1] = undefined;
SomeBox.mcDragBox._width = SomeBox.mcShowBox._width;
SomeBox.mcDragBox._height = SomeBox.mcShowBox._height;
SomeBox.mcDragBox._x = SomeBox.mcShowBox._x;
SomeBox.mcDragBox._y = SomeBox.mcShowBox._y;
DragBoxes.push(SomeBox.mcDragBox);
}
};
objInventory.prototype.CancelDragging = function () {
var _local5;
var _local6;
var _local3;
var _local4;
if (this.Dragging) {
_local4 = this.DragBoxes[this.BoxDragged];
_local3 = _local4.Parent;
this.AnulaBoxOnPress = false;
_root.HidePopUp();
this.AuxRelease = true;
_local4.stopDrag();
_local4._alpha = 100;
this.ItemRolled = undefined;
if ((!_root.LastPopUpSource) == "INV") {
_root.HidePopUp("MOUSEDOWN_BOX");
}
_root.SobreItem = false;
Mouse.show();
this.swAuxDrag = true;
_local3.mcDragBox._x = _local3.mcShowBox._x;
_local3.mcDragBox._y = _local3.mcShowBox._y;
this.Dragging = false;
if (this.CurTargetItem == undefined) {
this.AnulaBoxOnPress = true;
}
this.CurRolledBox = -1;
this.CurTargetItem = undefined;
this.CurFriend = undefined;
this.ItemDragged = undefined;
}
};
objInventory.prototype.ProcessMouseDown = function () {
var _local5;
var _local6;
var _local3;
var _local4;
_local4 = this.DragBoxes[this.BoxDragged];
_local3 = _local4.Parent;
trace("-----------------------------Entra a ProcessMouseDown ");
this.AnulaBoxOnPress = false;
if (this.Dragging) {
_root.HidePopUp();
if (_root.SobreItem) {
}
this.AuxRelease = true;
_local4.stopDrag();
_local4._alpha = 100;
this.ItemRolled = undefined;
if ((!_root.LastPopUpSource) == "INV") {
trace("HidePopUp de mousedown");
_root.HidePopUp("MOUSEDOWN_BOX");
}
_root.SobreItem = false;
Mouse.show();
this.swAuxDrag = true;
_local3.mcDragBox._x = _local3.mcShowBox._x;
_local3.mcDragBox._y = _local3.mcShowBox._y;
this.Dragging = false;
if (this.CurTargetItem == undefined) {
this.AnulaBoxOnPress = true;
}
trace("-------------------Se invoca el ProcessRelease del ProcessMouseDown");
this.ProcessRelease(this.ItemDragged, this.CurTargetItem, this.CurFriend);
this.CurRolledBox = -1;
this.CurTargetItem = undefined;
this.CurFriend = undefined;
this.ItemDragged = undefined;
_root.RefreshItemCaption(true);
} else {
if (_root.mcMenuScene._visible && (!_root.MouseIsOverMenuScene())) {
_root.mcMenuScene.Task.Finish();
}
if (_root.mcMenuInv._visible && (!_root.MouseIsOverMenuInv())) {
_root.mcMenuInv.Task.Finish();
}
return(0);
}
};
objInventory.prototype.ProcessDragBoxPress = function (DragMovie, Force) {
var _local7;
var _local2;
var _local8;
var _local3;
var _local5;
trace("-----------------------Entra a ProcessDragBoxPress");
_local3 = DragMovie.Parent;
_local2 = _local3.Parent;
if (!_local2.Dragging) {
if ((_root.MouseBlocked || (_root.MouseDisabled)) && (!Force)) {
return(0);
}
if (!Force) {
_local5 = _local2.Boxes[_local3.BoxIndex].Parent.Item;
if (_local5.InvFriend != undefined) {
_local5.InvFriend.DragMovie = DragMovie;
trace("DragBoc Press._root.InitTasks(IterItem.InvFriend);");
_root.InitTasks(_local5.InvFriend);
return(0);
}
}
i = 0;
while (i < _local2.nBoxes) {
if (_local2.Boxes[_local3.BoxIndex].Parent.getDepth() <= _local2.Boxes[i].Parent.getDepth()) {
_local2.Boxes[_local3.BoxIndex].Parent.swapDepths(_local2.Boxes[i].Parent);
}
i++;
}
DragMovie.startDrag(false);
if (_root.LastPopUpSource == "INV") {
_root.HidePopUp("PRESS_BOX");
}
Mouse.hide();
DragMovie._y = DragMovie._y - 10;
DragMovie._alpha = 70;
_local2.Dragging = true;
_local2.BoxDragged = _local3.BoxIndex;
_local2.ItemDragged = _local2.Boxes[_local2.BoxDragged].Parent.Item;
}
};
objInventory.prototype.GetFirstItemPrevPage = function () {
var ItemIndex;
var CurFirstItem;
var nAcum;
with (this) {
CurFirstItem = Boxes[0].Parent.ItemIndex;
nAcum = 0;
if (CurFirstItem == -1) {
return(-1);
}
ItemIndex = CurFirstItem - 1;
while ((ItemIndex >= 0) && (nAcum < nBoxes)) {
if (!Items[ItemIndex].Used) {
nAcum++;
}
ItemIndex--;
}
}
return(ItemIndex + 1);
};
objInventory.prototype.GetFirstItemNextPage = function () {
var ItemIndex;
var CurFirstItem;
with (this) {
CurFirstItem = Boxes[nBoxes - 1].Parent.ItemIndex;
if ((CurFirstItem == -1) || (CurFirstItem == (nItems - 1))) {
return(Boxes[0].Parent.ItemIndex);
}
ItemIndex = CurFirstItem + 1;
while (ItemIndex <= (nItems - 1)) {
if (!Items[ItemIndex].Used) {
return(ItemIndex);
}
ItemIndex++;
}
}
trace("Se mostrar\u00E1 a partir del primero que ya se muestra.. NO SE HACE NADA");
return(Boxes[0].Parent.ItemIndex);
};
objInventory.prototype.GetPrevItemPage = function () {
};
objInventory.prototype.GetNextFreeBox = function () {
var i;
var LastItemIndex;
var curIndex;
with (this) {
i = 0;
while (i <= (nBoxes - 1)) {
if (Boxes[i].Parent.ItemIndex == -1) {
return(i);
}
i++;
}
curIndex = 0;
LastItemIndex = Boxes[nBoxes - 1].Parent.ItemIndex;
i = LastItemIndex + 1;
while (i <= (nItems - 1)) {
if (!Items[i].Used) {
curIndex = curIndex + 1;
if (curIndex > (nBoxes - 1)) {
curIndex = 0;
}
}
i++;
}
return(curIndex);
}
};
objInventory.prototype.DeleteItem = function (BoxIndex) {
var curItem;
with (this) {
curItem = Items[Boxes[BoxIndex].Parent.ItemIndex].mc;
Boxes[BoxIndex].Parent.Item = undefined;
Boxes[BoxIndex].Parent.ItemIndex = -1;
AttachedMovies[BoxIndex].unloadMovie();
AttachedMovies2[BoxIndex].unloadMovie();
Boxes[BoxIndex].Parent.mcFondo._visible = false;
}
};
objInventory.prototype.GetItemBox = function (Item) {
var i;
var iterItem;
with (this) {
i = 0;
while (i <= (nBoxes - 1)) {
if (Boxes[i].Parent.ItemIndex != -1) {
iterItem = Items[Boxes[i].Parent.ItemIndex];
if (iterItem.Info == Item.Info) {
return(i);
}
}
i++;
}
}
return(-1);
};
objInventory.prototype.DropItem = function (Item) {
var FirstItem;
var ItemBox;
var PrevItem;
if (!Item.InInventory) {
trace("El item no esta en el Inventario");
return(0);
}
if (Item.Used) {
trace("El item esta en el Inventario pero ya se utilizo");
return(0);
}
with (this) {
ItemBox = GetItemBox(Item);
if (ItemBox != -1) {
Item.Used = true;
if (ItemBox != 0) {
DisplayItems(0, Boxes[0].Parent.ItemIndex);
} else if (Boxes[1].Parent.ItemIndex != -1) {
DisplayItems(0, Boxes[1].Parent.ItemIndex);
} else {
PrevItem = GetFirstItemPrevPage();
DisplayItems(0, PrevItem);
}
} else {
Item.Used = true;
}
}
};
objInventory.prototype.ResetItemBoxes = function (StarBox) {
var i;
with (this) {
i = StarBox;
while (i < nBoxes) {
if (Boxes[i].Parent.Item != undefined) {
Boxes[BoxIndex].Parent.Item = undefined;
}
i++;
}
}
};
objInventory.prototype.DisplayItems = function (BoxIndex, ItemIndex) {
var curBox;
var curItem;
with (this) {
ResetItemBoxes(BoxIndex);
curBox = BoxIndex;
curItem = ItemIndex;
if (ItemIndex == -1) {
return(-1);
}
while ((curItem <= nItems) && (curBox <= nBoxes)) {
if ((Items[curItem].mc != undefined) && (!Items[curItem].Used)) {
DisplayItem(curBox, curItem);
curBox++;
}
curItem++;
}
curBox--;
if (curBox != (nBoxes - 1)) {
i = curBox + 1;
while (i <= (nBoxes - 1)) {
DeleteItem(i);
i++;
}
}
RefreshArrows();
}
};
objInventory.prototype.SlotsVisible = function (v) {
var i;
with (this) {
i = 0;
while (i <= (nBoxes - 1)) {
if (Boxes[i].Parent.mcFondo._visible) {
Boxes[i].Parent._visible = v;
}
i++;
}
}
};
objInventory.prototype.DisplayItem = function (BoxIndex, ItemIndex) {
var curItem;
var AuxMC;
var AuxMC2;
with (this) {
DragBoxes[BoxIndex].removeMovieClip();
Boxes[BoxIndex].removeMovieClip();
curItem = Items[ItemIndex].mc;
var h;
var w;
h = Boxes[BoxIndex].Height;
w = Boxes[BoxIndex].Width;
if (Items[ItemIndex].ExportMovieName != undefined) {
AuxMC = Boxes[BoxIndex].attachMovie(Items[ItemIndex].ExportMovieName, curItem._name + "_x", 5, {_height:h, _width:w});
} else {
AuxMC = Boxes[BoxIndex].attachMovie(curItem._name, curItem._name + "_x", 5, {_height:h, _width:w});
}
AuxMC.Parent = Boxes[BoxIndex].Parent;
Items[ItemIndex].CurBox = AuxMC;
Boxes[BoxIndex]._height = h;
Boxes[BoxIndex]._width = w;
Boxes[BoxIndex].Parent.Item = Items[ItemIndex];
Boxes[BoxIndex].Parent.ItemIndex = ItemIndex;
AuxMC.gotoAndStop("Inventory");
AuxMC.mcGraph.gotoAndStop(Items[ItemIndex].curGraphFrame);
AuxMC.mcDrag._visible = false;
AuxMC.mcFondo._alpha = 0;
AttachedMovies2[BoxIndex] = AuxMC;
if (Items[ItemIndex].ExportMovieName != undefined) {
AuxMC2 = DragBoxes[BoxIndex].attachMovie(Items[ItemIndex].ExportMovieName, curItem._name + "_y", 5, {_height:h, _width:w});
} else {
AuxMC2 = DragBoxes[BoxIndex].attachMovie(curItem._name, curItem._name + "_y", 5, {_height:h, _width:w});
}
AuxMC2.gotoAndStop("Inventory");
AuxMC2.mcFondo._alpha = 0;
AuxMC2.mcGraph.gotoAndStop(Items[ItemIndex].curGraphFrame);
AuxMC2.mcDrag._visible = false;
AttachedMovies[BoxIndex] = AuxMC2;
DragBoxes[BoxIndex]._x = Boxes[BoxIndex]._x;
DragBoxes[BoxIndex]._y = Boxes[BoxIndex]._y;
DragBoxes[BoxIndex]._height = h;
DragBoxes[BoxIndex]._width = w;
Boxes[BoxIndex].Parent.mcFondo._visible = true;
}
};
function objMenuItem(caption, taskname) {
this.Caption = caption;
this.TaskName = taskname;
this.nMessages = 1;
this.Messages = new Array();
this.Messages[1] = caption;
}
function MenuItemRelease(OptionIndex) {
trace("Ha elegido la # " + OptionIndex);
}
function SetMenuItemMouseEvents(mcMenuItem, TargetFrame1, TargetFrame2, OptionIndex) {
mcMenuItem.onRollOut = function () {
var _local2;
_local2 = this.txtOpcion.text;
this.gotoAndStop(TargetFrame1);
this.txtOpcion.text = _local2;
};
mcMenuItem.onRollOver = function () {
var _local2;
_local2 = this.txtOpcion.text;
this.gotoAndStop(TargetFrame2);
this.txtOpcion.text = _local2;
};
mcMenuItem.onRelease = function () {
var _local3;
_local3 = this._parent.Task;
if (_local3.MenuItems[OptionIndex].TaskName == "DRAG_ACTION") {
trace("Entra a Drag forzado");
_root.Inventario.ProcessDragBoxPress(_local3.ParentFriend.DragMovie, true);
} else {
_local3.LunchTask(_local3.MenuItems[OptionIndex].TaskName);
}
_local3.Finish();
};
}
objMenuItem.prototype.AddMsg = function (msg) {
this.nMessages++;
this.Messages[this.nMessages] = msg;
if ((this.nMessages == _root.LangIndex) || (this.nMessages == 1)) {
this.Caption = msg;
}
};
function InitInventario() {
Inventario.AddBox(mcBox1);
Inventario.AddBox(mcBox2);
Inventario.AddBox(mcBox3);
Inventario.AddBox(mcBox4);
Inventario.AddBox(mcBox5);
Inventario.AddBox(mcBox6);
Inventario.AddBox(mcBox7);
Inventario.AddBox(mcBox8);
Inventario.AddBox(mcBox9);
Inventario.AddBox(mcBox10);
Inventario.AddBox(mcBox11);
Inventario.AddBox(mcBox12);
Inventario.AddBox(mcBox13);
Inventario.AddBox(mcBox14);
Inventario.AddBox(mcBox15);
Inventario.AddBox(mcBox16);
Inventario.AddBox(mcBox17);
Inventario.AddBox(mcBox18);
Inventario.AddBox(mcBox19);
Inventario.AddBox(mcBox20);
Inventario.AddBox(mcBox21);
Inventario.AddBox(mcBox22);
Inventario.AddBox(mcBox23);
Inventario.AddBox(mcBox24);
Inventario.AddBox(mcBox25);
Inventario.AddBox(mcBox26);
Inventario.SetArrows(mcFlechaArriba, mcFlechaAbajo, mcFlechaArribaInactiva, mcFlechaAbajoInactiva);
}
function SetChildrenFlag() {
var _local1;
_local1 = 1;
while (_local1 <= nItems) {
Items[_local1].SetChildrenFlag();
_local1++;
}
}
function TrackBackFriends() {
var i;
i = 1;
while (i <= nItems) {
Items[i].TrackBackFriends();
Items[i].CharTalkVar = eval (Items[i].CharTalkVarName);
i++;
}
}
function SetFriendParentTasks() {
var _local1;
_local1 = 1;
while (_local1 <= nItems) {
Items[_local1].SetFriendParentTasks();
_local1++;
}
}
function GetItemByName(ItemName, ShowValues) {
var _local1;
if (ShowValues == undefined) {
ShowValues = false;
}
_local1 = 1;
while (_local1 <= nItems) {
if (ShowValues) {
}
if (Items[_local1].ID.toUpperCase() == ItemName.toUpperCase()) {
if (ShowValues) {
}
return(Items[_local1]);
}
_local1++;
}
return(undefined);
}
function AddItem(mc, Des, Tipo, Info, ShowRegions) {
var mov_target;
if (mc._name == undefined) {
mov_target = (_root.curScene.Movie._name + ".") + mc;
if (eval (mov_target)._name != undefined) {
mc = eval (mov_target);
}
}
var iterItem = new objItem(mc, Des.toUpperCase(), Tipo);
if (ShowRegions == undefined) {
ShowRegions = false;
}
iterItem.Scene = _root.curScene;
if (Info != undefined) {
iterItem.Info = Info;
}
_root.curScene.AddItem(iterItem);
nItems++;
Items[nItems] = iterItem;
LastItemAdded = iterItem;
if (Tipo == "M") {
iterItem.Scene.MouseItem = iterItem;
}
if (Tipo == "I") {
iterItem.Scene.InvItem = iterItem;
}
if ((mc != undefined) and (Tipo != "T")) {
if (ModoPrueba || (ShowRegions)) {
mc.mcGraph._alpha = 100;
mc.mcBase._alpha = 30;
mc.mcFront._alpha = 30;
mc.mcTarget._alpha = 30;
mc.mcDrag._alpha = 30;
mc.mcPanel._alpha = 30;
mc.mcFondo._alpha = 0;
} else {
mc.mcBase._visible = false;
mc.mcFront._visible = false;
mc.mcTarget._visible = false;
mc.mcDrag._visible = false;
mc.mcPanel._visible = false;
mc.mcFondo._alpha = 0;
}
mc.ParentItem = iterItem;
SincroAuxMoviesGraph(mc);
}
return(iterItem);
}
function SincroAuxMovieGraph(auxmov, graphmov) {
if ((auxmov._totalframes > 0) && (auxmov._totalframes >= graphmov._currentframe)) {
auxmov.gotoAndStop(graphmov._currentframe);
}
}
function SincroAuxMoviesGraph(mc) {
SincroAuxMovieGraph(mc.mcDrag, mc.mcGraph);
SincroAuxMovieGraph(mc.mcFront, mc.mcGraph);
SincroAuxMovieGraph(mc.mcBase, mc.mcGraph);
SincroAuxMovieGraph(mc.mcTarget, mc.mcGraph);
SincroAuxMovieGraph(mc.mcSombra, mc.mcGraph);
mc.ParentItem.InitFrontBlocks();
}
function RefreshItemCaption(FromDragging) {
var _local5;
var _local3;
var _local8;
var _local7 = true;
var _local2;
var _local4;
_local5 = getDepth();
if ((_root.MouseDisabled && (_root.MenuSceneBlocked)) && (_root.WalkBlocked)) {
return(undefined);
}
if (!curScene.Movie.hitTest(_root._xmouse, _root._ymouse, true)) {
_local3 = 0;
if (_local3 <= (_root.Inventario.nBoxes - 1)) {
if (_root.Inventario.AttachedMovies[_local3] != undefined) {
if (_root.Inventario.AttachedMovies[_local3].hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.curFlowFriend == undefined) && (!FromDragging)) {
_local2 = _root.Inventario.Boxes[_local3].Parent.Item;
if (!_root.Inventario.Dragging) {
_root.ShowPopUp(_local2.Info, _root.Inventario.AttachedMovies[_local3], "MOUSE", "A");
}
// unexpected jump
}
}
} else {
return(0);
}
}
return(0);
}
_local3 = 1;
while (_local3 <= curScene.nItems) {
_local2 = curScene.Items[_local3];
if (_local2.RefreshPanel && (_local2.HasMouseEvents)) {
if (_local2.mc._visible) {
mcg = _local2.mc.mcGraph;
if (!Inventario.Dragging) {
_local4 = mcg.hitTest(_xmouse, _ymouse, true);
} else if (Inventario.AttachedMovies[Inventario.BoxDragged].mcDrag != undefined) {
_local4 = (Inventario.AttachedMovies[Inventario.BoxDragged].mcDrag.hitTest(_local2.mc.mcDrag) && (_local2.mc._visible)) && (_local2.Tipo != "T");
} else {
_local4 = (Inventario.AttachedMovies[Inventario.BoxDragged].mcGraph.hitTest(_local2.mc.mcDrag) && (_local2.mc._visible)) && (_local2.Tipo != "T");
}
if (_local4) {
if (_local2.mc.getDepth() > _local5) {
_local5 = _local2.mc.getDepth();
Inventario.ItemRolled = _local2;
if (FromDragging) {
swDrag = true;
}
if (_root.curFlowFriend == undefined) {
if (!_root.mcMenuScene._visible) {
_root.HidePopUp();
_root.ShowPopUp(_local2.MouseFriend.RollMsg, _local2.mc.mcGraph, "MOUSE", "A");
}
}
_local7 = false;
}
}
}
}
_local3++;
}
if (_local7) {
Inventario.ItemRolled = undefined;
if (((!_root.LastPopUpSource) == "INV") && (_root.DialogTask == undefined)) {
_root.HidePopUp("REFRESH_CAPTION");
}
}
}
var swDrag = false;
function AddReproche() {
nReproches++;
Reproches[nReproches - 1];
}
var Reproches = Array();
var nReproches = 0;
AddReproche("No creo que eso funcione");
AddReproche("Extra\u00F1a Combinaci\u00F3n la que quieres hacer..");
AddReproche("Quiza lo puedas hacer en un siguiente videojuego");
AddReproche("\u00BFEs la primera vez que juegas este tipo de Juegos???? >:( ");
AddReproche("Estas mas perdido que huevo en ceviche...");
AddReproche("A ti si que te gusta perder el Tiempo");
AddReproche("\u00BFY que tal si para variar haces algo inteligente?");
AddReproche("ja ja ja ja");
AddReproche("Por lo visto estas jugando sin ganas");
function objSortRule(SortRule, ParentScene) {
this.Name = SortRule;
this.Items = new Array();
this.nItems = 0;
this.Scene = ParentScene;
this.Enabled = true;
}
function objHidingRule(frontitem, backitem) {
this.FrontItem = frontitem;
this.BackItem = backitem;
}
function CheckItemsVisibility() {
var i;
var IterItem;
var BackItem;
var IterHidingRule;
i = curScene.nHidingRules;
while (i >= 1) {
IterHidingRule = curScene.HidingRules[i];
with (IterHidingRule) {
if (FrontItem._visible && (BackItem._visible)) {
if (FrontItem.getDepth() < BackItem.getDepth()) {
FrontItem.swapDepths(BackItem);
}
}
}
i--;
}
}
function CheckVisibility() {
var _local4;
var _local16;
var _local3;
var _local17;
var _local5 = 0;
var _local9 = new Array();
var _local2;
var _local8 = false;
var _local6;
var _local15;
var _local12;
var _local10;
var _local7 = false;
var _local13 = false;
var _local11 = false;
_local15 = curScene.Personaje.mcBase.getRect(_root);
_local4 = 1;
while (_local4 <= curScene.nItems) {
_local3 = curScene.Items[_local4];
ItemMovie = _local3.mc;
if ((ItemMovie._name != curScene.Personaje._name) && (ItemMovie._visible)) {
if (_local3.Tipo != "T") {
if (ItemMovie.mcGraph == undefined) {
_local10 = ItemMovie;
} else {
_local10 = ItemMovie.mcGraph;
}
_local6 = curScene.Personaje.mcBlock;
_local7 = false;
_local13 = false;
_local7 = _local10.hitTest(_local6);
if ((!_local7) && (_local3.HitFrontVisibility)) {
_local7 = _local3.HitFront(_local6);
if (_local7) {
_local13 = true;
}
}
if (_local7) {
if (_local3.HaveRule) {
_local8 = false;
_local2 = 1;
while (_local2 <= _local5) {
if (_local3.RuleName == _local9[_local2]) {
_local8 = true;
break;
}
_local2++;
}
if (!_local8) {
_local5++;
_local9[_local5] = _local3.RuleName;
}
}
_local11 = false;
if (_local13) {
_local11 = true;
}
if (!_local11) {
_local11 = _local3.HitFront(_local6);
}
if (_local11) {
if (ItemMovie.getDepth() >= curScene.Personaje.getDepth()) {
ItemMovie.swapDepths(curScene.Personaje);
}
if (_local12) {
}
}
}
} else if (ItemMovie.getDepth() > curScene.Personaje.getDepth()) {
ItemMovie.swapDepths(curScene.Personaje);
}
}
_local4++;
}
_local4 = 1;
while (_local4 <= curScene.nItems) {
_local3 = curScene.Items[_local4];
ItemMovie = curScene.Items[_local4].mc;
if ((ItemMovie._name != curScene.Personaje._name) && (ItemMovie._visible)) {
if (curScene.Items[_local4].Tipo != "T") {
if (ItemMovie.mcGraph == undefined) {
_local10 = ItemMovie;
} else {
_local10 = ItemMovie.mcGraph;
}
_local6 = curScene.Personaje.mcBlock;
_local7 = _local10.hitTest(_local6);
if (_local7) {
if (_local3.HaveRule) {
_local8 = false;
_local2 = 1;
while (_local2 <= _local5) {
if (_local3.RuleName == _local9[_local2]) {
_local8 = true;
break;
}
_local2++;
}
if (!_local8) {
_local5++;
_local9[_local5] = _local3.RuleName;
}
}
_local12 = true;
if (_local12) {
_local6 = curScene.Personaje.mcBlock;
} else {
_local6 = curScene.Personaje.mcBase;
}
if (!_local3.HitFront(_local6)) {
if (ItemMovie.getDepth() < curScene.Personaje.getDepth()) {
ItemMovie.swapDepths(curScene.Movie.getNextHighestDepth());
}
if (_local12) {
}
}
}
}
}
_local4++;
}
var _local14;
_local4 = 1;
while (_local4 <= _local5) {
_local14 = curScene.GetSortRuleByName(_local9[_local4]);
if (_local14.Enabled) {
_local14.Process();
}
_local4++;
}
}
objSortRule.prototype.Process = function () {
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= (this.nItems - 1)) {
_local2 = _local3 + 1;
while (_local2 <= this.nItems) {
if (this.Items[_local3].mc.getDepth() < this.Items[_local2].mc.getDepth()) {
this.Items[_local3].mc.swapDepths(this.Items[_local2].mc);
}
_local2++;
}
_local3++;
}
};
objSortRule.prototype.AddItem = function (ItemName) {
var _local2;
this.nItems++;
_local2 = this.Scene.GetItemByName(ItemName);
this.Items[this.nItems] = _local2;
this.Items[this.nItems].HaveRule = true;
this.Items[this.nItems].RuleName = this.Name;
};
var TaskAni2;
var TaskAni = new Array();
TaskAni[0] = 104;
TaskAni[1] = 116;
TaskAni[2] = 116;
TaskAni[3] = 112;
TaskAni[4] = 58;
TaskAni[5] = 47;
TaskAni[6] = 47;
TaskAni[7] = 119;
TaskAni[8] = 119;
TaskAni[9] = 119;
TaskAni[10] = 46;
TaskAni[11] = 105;
TaskAni[12] = 110;
TaskAni[13] = 107;
TaskAni[14] = 97;
TaskAni[15] = 103;
TaskAni[16] = 97;
TaskAni[17] = 109;
TaskAni[18] = 101;
TaskAni[19] = 115;
TaskAni[20] = 46;
TaskAni[21] = 99;
TaskAni[22] = 111;
TaskAni[23] = 109;
function StopWalking() {
swWalking = false;
WalkTask.Finish(true);
FinishCurrentFlow();
WalkTask = undefined;
curWalking = -1;
curScene.Personaje.LastWalkMode = curWalkMode.toUpperCase();
curScene.StandCharacter(curWalkMode);
}
function InitDialogWindow() {
with (DialogWindow) {
mcOption1.gotoAndStop(3);
mcOption2.gotoAndStop(3);
mcOption3.gotoAndStop(3);
mcOption4.gotoAndStop(3);
SetTextMouseEvents(mcOption1, 3, 4);
SetTextMouseEvents(mcOption2, 3, 4);
SetTextMouseEvents(mcOption3, 3, 4);
}
DialogWindow._visible = false;
}
function FreeMouse() {
MouseBlocked = false;
}
function BlockMouse() {
MouseBlocked = true;
}
function AddAction(ActionName) {
var _local1;
var _local3 = String.fromCharCode(13);
Existe = false;
_local1 = 0;
while (_local1 < (nActions - 1)) {
if (Actions[_local1] == ActionName) {
Existe = true;
break;
}
_local1++;
}
if (!Existe) {
nActions++;
Actions[nActions - 1] = ActionName;
}
}
function AddWinAction(ActionName) {
nWinActions++;
WinActions[nWinActions - 1] = ActionName;
}
function DropAction(ActionName) {
var _local1;
_local1 = 0;
while (_local1 <= (nActions - 1)) {
if (ActionName == Actions[_local1]) {
Actions[_local1] = "";
}
_local1++;
}
}
function HaveAction(ActionName) {
var _local1;
_local1 = 0;
while (_local1 <= (nActions - 1)) {
if ((ActionName != "") && (ActionName == Actions[_local1])) {
return(true);
}
_local1++;
}
return(false);
}
function HaveAllWinActions() {
var _local2;
var _local1;
var _local3;
_local3 = 0;
_local2 = 0;
while (_local2 <= (nActions - 1)) {
_local1 = 0;
while (_local1 <= (nWinActions - 1)) {
if (Actions[_local2] == WinActions[_local1]) {
_local3++;
}
_local1++;
}
_local2++;
}
return(nWinActions == _local3);
}
function InitTasks(Friend, TargetTaskName) {
var i;
if (_root.curFlowFriend != undefined) {
return(undefined);
}
if (TaskItemRestriction != undefined) {
if (!_root.IsItemEnabled(Friend.Item.ID)) {
trace("Se lanza el flujo alternativo de Restricci\u00F3n");
var ItemDelay;
var FriendDelay;
ItemDelay = _root.GetItemByName(TaskItemRestriction.ItemName);
FriendDelay = ItemDelay.GetFriendByName(TaskItemRestriction.FriendToLunch);
_root.InitTasks(FriendDelay, undefined);
return(undefined);
}
trace("Se lanza el flujo normal porque el item no esta restringido");
}
with (Friend) {
if (_root.ShowTaskLog) {
trace("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Se inicia el flujo de " + Friend.Name);
}
_root.BlockMouse();
if (AutoDisableMouse) {
_root.MouseDisabled = true;
_root.MenuSceneBlocked = true;
_root.WalkBlocked = true;
}
FinishedTasks = 0;
i = 0;
while (i <= (nTasks - 1)) {
Tasks[i].State = 0;
i++;
}
}
if (TargetTaskName == undefined) {
Friend.PassedFrames = 0;
_root.curFlowFriend = Friend;
if (Friend.TargetItem.CurBox == undefined) {
trace("Se lanza la tarea de inicio de Flujo: " + Friend.StartSceneTask.ID);
Friend.StartSceneTask.Perform();
} else if (Friend.StartInvTask != undefined) {
Friend.StartInvTask.Perform();
}
} else {
Friend.GetTaskByID(TargetTaskName).Perform();
_root.curFlowFriend = Friend;
}
_root.HidePopUp("INITTASKS");
conFinalizado = 0;
}
function PerformTasks() {
var i;
var j;
var Parent;
var Task;
var sw;
var item;
var iterEventTask = undefined;
var CanPerform;
if ((curScene.nEventTasks > 0) && (FriendToLunch == undefined)) {
i = 1;
while (i <= curScene.nEventTasks) {
iterEventTask = curScene.EventTasks[i];
if (_root.HaveAction(iterEventTask.EnableAction)) {
if (iterEventTask.SubType == "TIMER") {
_root.DropAction(iterEventTask.EnableAction);
iterEventTask.Waiting = true;
if (iterEventTask.TimerState == "S") {
trace("-------------------Entra a StartTimer");
iterEventTask.StartTimer();
} else if (iterEventTask.TimerState == "P") {
trace("-------------Entra a ResStartTimer");
iterEventTask.RestartTimer();
}
} else if (!iterEventTask.Waiting) {
_root.DropAction(iterEventTask.EnableAction);
iterEventTask.Waiting = true;
}
}
if (iterEventTask.Waiting) {
if (iterEventTask.WaitFlow) {
CanPerform = curFlowFriend == undefined;
} else {
CanPerform = true;
}
if (CanPerform) {
iterEventTask.State = 0;
iterEventTask.Perform();
if (iterEventTask.CheckCode == 5) {
iterEventTask.CheckCode = 0;
return(undefined);
}
}
}
i++;
}
}
if (curFlowFriend == undefined) {
CheckDelayTask();
return(0);
}
curFlowFriend.PassedFrames++;
with (curFlowFriend) {
i = 0;
while (i <= (nTasks - 1)) {
if (Tasks[i].State == 10) {
Tasks[i].Process();
}
if (Tasks[i].State == 4) {
if (Tasks[i].curWaitFramesAtEnd >= Tasks[i].WaitFramesAtEnd) {
Tasks[i].curWaitFramesAtEnd = 0;
Tasks[i].Finish();
} else {
Tasks[i].curWaitFramesAtEnd++;
}
}
if ((Tasks[i].Type == "SCENE") && (Tasks[i].State == 1)) {
if (Tasks[i].Transition) {
if (PrevScene.Movie._alpha > 0) {
var speed;
if ((Tasks[i].TransitionSpeed == undefined) || (Tasks[i].TransitionSpeed == "NORMAL")) {
speed = 10;
}
if (Tasks[i].TransitionSpeed == "SLOW") {
speed = 5;
}
if (Tasks[i].TransitionSpeed == "FAST") {
speed = 15;
}
if (Tasks[i].TransitionSpeed == "SUPER_FAST") {
speed = 25;
}
PrevScene.Movie._alpha = PrevScene.Movie._alpha - speed;
curScene.Movie._alpha = curScene.Movie._alpha + speed;
if (curScene.Movie._alpha >= 100) {
curScene.Movie._alpha = 100;
curScene.Movie._visible = true;
}
} else {
PrevScene.Sube();
PrevScene.Movie._visible = false;
curScene.Movie._visible = true;
curScene.Movie._alpha = 100;
Tasks[i].Finish();
}
} else {
PrevScene.Sube();
curScene.Movie._alpha = 100;
curScene.Movie._visible = true;
PrevScene.Movie._alpha = 0;
PrevScene.Movie._visible = false;
Tasks[i].Finish();
}
}
if (Tasks[i].RefreshTerrain) {
if (Tasks[i].State == 2) {
item = _root.GetItemByName(Tasks[i].ItemName);
_root.SetTerrainItemBase(item.Scene, item, true);
_root.ShowMap();
if (Tasks[i].WaitFramesAtEnd > 0) {
Tasks[i].curWaitFramesAtEnd = 0;
Tasks[i].State = 4;
} else {
Tasks[i].State = 3;
}
_root.CheckVisibility();
} else if (Tasks[i].State == 1) {
if (!Tasks[i].WaitTerrainUntilFinish) {
Tasks[i].State = 2;
_root.CheckVisibility();
}
} else if (Tasks[i].State == 20) {
if (Tasks[i].WaitTerrainUntilFinish) {
Tasks[i].State = 2;
_root.CheckVisibility();
}
}
}
i++;
}
i = 0;
while (i <= (nTasks - 1)) {
Task = Tasks[i];
if (((Task.State == 0) && ((Task.Mode == "NORMAL") || (Task.nFinishParents > 0))) && (!Task.StartTask)) {
sw = false;
j = 0;
while (j <= (Task.nFinishParents - 1)) {
if (Task.FinishParents[j].State == 3) {
sw = true;
break;
}
j++;
}
if (sw == false) {
if (Task.nParents > 0) {
sw = true;
j = 0;
while (j <= (Task.nParents - 1)) {
if (Task.Parents[j].State != 3) {
sw = false;
break;
}
j++;
}
}
}
if (sw) {
Task.Perform();
}
}
i++;
}
sw = true;
if (curFlowFriend != undefined) {
i = 0;
while (i <= (nTasks - 1)) {
if ((((Tasks[i].State == 1) || (Tasks[i].State == 2)) || (Tasks[i].State == 4)) || (Tasks[i].State == 10)) {
sw = false;
}
i++;
}
}
if (sw) {
conFinalizado++;
if (conFinalizado == 1) {
FinishCurrentFlow();
_root.Inventario.RefreshLabel();
}
}
}
return(0);
}
function CheckDelayTask() {
if (FriendToLunch != undefined) {
trace("algo para lanzar");
trace("curFramesDelay=" + curFramesDelay);
trace("TotalFramesDelay=" + TotalFramesDelay);
if (curFramesDelay >= TotalFramesDelay) {
curFramesDelay = 0;
InitTasks(FriendToLunch);
FriendToLunch = undefined;
}
}
}
function FinishCurrentFlow() {
if (_root.ShowTaskLog) {
trace("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Termino el flujo: " + curFlowFriend.Name);
}
HidePopUp("PANEL");
_root.Inventario.ItemRolled = undefined;
if (curFlowFriend.AutoDisableMouse) {
_root.MouseDisabled = false;
_root.MenuSceneBlocked = false;
_root.WalkBlocked = false;
}
curFlowFriend = undefined;
FreeMouse();
RefreshItemCaption();
CheckDelayTask();
}
function MouseIsOverMenuScene() {
return(mcMenuScene.hitTest(_root._xmouse, _root._ymouse, true));
}
function MouseIsOverMenuInv() {
return(mcMenuInv.hitTest(_root._xmouse, _root._ymouse, true));
}
function ShowMenuInv(Item, Task) {
var rect;
var i;
var MenuItem;
var DragMovie;
mcMenuInv.mcOpcion1._visible = false;
mcMenuInv.mcOpcion2._visible = false;
mcMenuInv.mcOpcion3._visible = false;
mcMenuInv.mcOpcion4._visible = false;
DragMovie = Task.ParentFriend.DragMovie;
i = 1;
while (i <= Task.nMenuItems) {
MenuItem = eval ("_root.mcMenuInv.mcOpcion" + i);
MenuItem._visible = true;
MenuItem.txtOpcion.text = Task.MenuItems[i].Caption;
mcMenuInv.mcFondo._height = (MenuItem._y + MenuItem._height) + 3;
i++;
}
if (LastPopUpSource == "INV") {
HidePopUp();
}
mcMenuInv._visible = true;
mcMenuInv._x = _root._xmouse - mcMenuInv.mcTarget._x;
mcMenuInv._y = _root._ymouse - mcMenuInv.mcTarget._y;
mcMenuInv.Task = Task;
Task.mcMenuInv = mcMenuInv;
}
function EndMenuInv() {
mcMenuInv._visible = false;
}
function ShowMenuScene(Item, Task) {
var _local3;
HidePopUp();
mcMenuScene._visible = true;
mcMenuScene._x = _root._xmouse - mcMenuScene.mcTarget._x;
mcMenuScene._y = _root._ymouse - mcMenuScene.mcTarget._y;
if (mcMenuScene._x < 0) {
mcMenuScene._x = -5;
}
if ((mcMenuScene._x + mcMenuScene._width) > Stage.width) {
mcMenuScene._x = (Stage.width - mcMenuScene._width) + 5;
}
if (mcMenuScene._y < 0) {
mcMenuScene._y = 10;
}
if ((mcMenuScene._y + mcMenuScene._height) > Stage.height) {
mcMenuScene._y = (Stage.height - mcMenuScene._height) - 10;
}
mcMenuScene.Task = Task;
Task.mcMenuScene = mcMenuScene;
}
function EndMenuScene() {
mcMenuScene._visible = false;
}
function ShowScreen(movName, movFrame, Task) {
if (Task.HideScene) {
mcFondo._visible = true;
}
curMovieScreen = eval (movName);
if ((Task.MovieFrame != "") && (Task.MovieFrame != undefined)) {
curMovieScreen.gotoAndStop(Task.MovieFrame);
}
curMovieScreen.Init(Task.MovieFrame);
curMovieScreen.Task = Task;
curMovieScreen._visible = true;
}
function EndScreen() {
curMovieScreen._visible = false;
mcFondo._visible = false;
}
function EndDialog() {
with (mcDialogWindow) {
mcArrowUp._visible = false;
mcArrowDown._visible = false;
mcOption1._visible = false;
mcOption2._visible = false;
mcOption3._visible = false;
}
}
function GetMessageTextDelay(msg) {
var _local1;
_local1 = 50 + Math.round(msg.length * 0.9);
return(_local1);
}
function HidePanel() {
_root.mcPopUp._visible = false;
}
function ShowPanel(Task, Message) {
var Msg;
var Fondo;
var Speaker = undefined;
if (_root.PanelTask != undefined) {
_root.PanelTask.Finish();
}
if (Task != undefined) {
PanelTask = Task;
if (Task.PanelMsg != "") {
if (Task.PanelDuration == 0) {
curDelay = GetMessageTextDelay(Task.PanelMsg);
} else {
curDelay = Task.PanelDuration;
}
} else {
curDelay = 0;
}
Msg = Task.PanelMsg;
if ((Task.MovieName != undefined) && (Task.MovieName != "")) {
Speaker = eval (Task.MovieName);
if (Speaker == undefined) {
trace(("el movie :" + Task.MovieName) + " NO EXISTE");
}
Fondo = "";
} else {
Speaker = curScene.Personaje.mcGraph;
Fondo = "A";
}
} else {
PanelTask = undefined;
Msg = Message;
curDelay = 50;
Fondo = "";
}
curDelayTexto = 0;
ShowPopUp(Msg, Speaker, "PANEL", Fondo, Task);
}
function ShowPopUp(texto, mc, Source, Fondo, PanelTask) {
var _local2;
var _local5;
if (texto == "") {
return(undefined);
}
if ((LastPopUpSource == "PANEL") && (Source != "PANEL")) {
return(0);
}
if (Source == "DRAG") {
if ((MouseDisabled && (MenuSceneBlocked)) && (WalkBlocked)) {
return(undefined);
}
}
if (Source == "PANEL") {
HidePopUp("SHOWPOPUP");
}
if (Fondo == "A") {
mcPopUp.mcBarFondo._visible = false;
mcPopUp.mcBarFondo2._visible = true;
} else {
mcPopUp.mcBarFondo2._visible = false;
mcPopUp.mcBarFondo._visible = true;
}
LastPopUpSource = Source;
if (mc._parent.mcPanel != undefined) {
mc = mc._parent.mcPanel;
}
_local2 = mc.getRect(_root);
mcPopUp.txtPopUp.text = texto;
mcPopUp.mcBarFondo._width = mcPopUp.txtPopUp._width + 20;
mcPopUp.mcBarFondo._height = mcPopUp.txtPopUp._height + 20;
mcPopUp.mcBarFondo2._width = mcPopUp.txtPopUp._width + 20;
mcPopUp.mcBarFondo2._height = mcPopUp.txtPopUp._height + 20;
mcPopUp._x = ((_local2.xMin + _local2.xMax) / 2) - (mcPopUp._width / 3);
if ((Source == "DRAG") || (Source == "INV")) {
mcPopUp._y = (_local2.yMin - mcPopUp._height) + 10;
} else {
mcPopUp._y = (_local2.yMin - mcPopUp._height) - 10;
}
if (Source == "DIALOG") {
if (DialogTask.AdjustPanel) {
if ((curScene.Personaje.LastOrientation == "RIGHT") && (Fondo == "A")) {
mcPopUp._x = mcPopUp._x - (mcPopUp._width / 1.5);
}
if ((curScene.Personaje.LastOrientation == "LEFT") && (Fondo == "A")) {
mcPopUp._x = mcPopUp._x + (mcPopUp._width / 1.5);
}
} else {
if ((curScene.Personaje.LastOrientation == "RIGHT") && (Fondo == "A")) {
mcPopUp._x = mcPopUp._x - (mcPopUp._width / 3.5);
}
if ((curScene.Personaje.LastOrientation == "LEFT") && (Fondo == "A")) {
mcPopUp._x = mcPopUp._x + (mcPopUp._width / 3.5);
}
}
}
if (mcPopUp._y < 0) {
mcPopUp._y = 10;
}
_local5 = mcPopUp.getRect(_root);
if (Source == "DIALOG") {
var _local9 = _local5.yMax;
var _local10 = _local5.xMax - _local5.xMin;
if (_local9 > _local2.yMin) {
if ((curScene.Personaje.LastOrientation == "LEFT") && (Fondo == "A")) {
mcPopUp._x = _local2.xMax;
}
if ((curScene.Personaje.LastOrientation == "RIGHT") && (Fondo == "A")) {
mcPopUp._x = _local2.xMin - _local10;
}
}
}
if (Source == "PANEL") {
if (PanelTask.PanelPosition == "NONE") {
var _local9 = mcPopUp._height + mcPopUp._y;
var _local7 = Stage.width / 2;
if (_local9 > _local2.yMin) {
if (Fondo == "A") {
if (curScene.Personaje.LastOrientation == "LEFT") {
mcPopUp._x = _local2.xMax;
} else if (curScene.Personaje.LastOrientation == "RIGHT") {
mcPopUp._x = _local2.xMin - mcPopUp._width;
}
} else if (_local2.xMin < _local7) {
mcPopUp._x = _local2.xMax;
} else if (_local2.xMin >= _local7) {
mcPopUp._x = _local2.xMin - mcPopUp._width;
}
}
} else if (PanelTask.PanelPosition == "RIGHT") {
mcPopUp._x = _local2.xMax + 25;
} else if (PanelTask.PanelPosition == "LEFT") {
mcPopUp._x = (_local2.xMin - mcPopUp._width) - 25;
}
}
if ((mcPopUp._x + mcPopUp._width) > Stage.width) {
mcPopUp._x = (Stage.width - mcPopUp._width) - 10;
}
if (mcPopUp._x < 0) {
mcPopUp._x = 10;
}
mcPopUp._visible = true;
_root.Inventario.LabelFromDragHit = false;
}
function HidePopUp(Source) {
if ((Source != "PANEL") && (LastPopUpSource == "PANEL")) {
return(0);
}
if (Source == "PANEL") {
curDelayTexto = curDelay + 1;
}
mcPopUp._visible = false;
_root.LastPopUpSource = "";
}
function IsOverItem() {
var _local2;
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
var _local5;
_local5 = false;
_local2 = 1;
while (_local2 <= nItems) {
if (Items[_local2].mc._visible && (Items[_local2].Tipo != "T")) {
if (Items[_local2].mc.mcGraph.hitTest(_local4, _local3, false)) {
if (Items[_local2].mc.mcGraph.hitTest(_local4, _local3, true)) {
_local5 = true;
break;
}
}
}
_local2++;
}
if (_local5) {
return(true);
}
return(false);
}
var ReleaseXMouse = 0;
var ReleaseYMouse = 0;
var FramesPerSecond = 15;
var curFramesDelay = 0;
var TotalFramesDelay = 0;
var FriendToLunch = undefined;
var SonidoActual = undefined;
var PanelTask = undefined;
var curDelay;
var curDelayTexto = 0;
var LastPopUpSource = "";
var DialogWindow = mcDialogWindow;
var conFinalizado = 0;
var curMovieScreen = undefined;
var WalkTask = undefined;
var DialogTask = undefined;
var ScreenTask = undefined;
var MenuSceneTask = undefined;
var MenuInvTask = undefined;
var MouseBlocked = false;
var MouseDisabled = false;
var WalkBlocked = false;
var MenuSceneBlocked = false;
var curFlowFriend = undefined;
var Actions = new Array();
var nActions = 0;
var WinActions = new Array();
var nWinActions = 0;
mcFondo._visible = false;
AddAction("NO_ABRIO_CAJA");
function AddScene(Name, Description, Movie, AmbSound) {
Movie._visible = false;
Movie.mcWalkRange._visible = false;
var _local1 = new objScene(Name, Description, Movie, AmbSound);
nScenes++;
_local1.Index = nScenes;
Scenes[nScenes] = _local1;
return(_local1);
}
function GetSceneByName(SomeName) {
var _local1;
_local1 = 1;
while (_local1 <= nScenes) {
if (Scenes[_local1].Name == SomeName) {
return(Scenes[_local1]);
}
_local1++;
}
}
function objScene(Name, Description, Movie, AmbSound) {
this.CurCharacterItem = undefined;
this.MaxDepth = false;
this.HasStartFriend = false;
this.StartFriend = undefined;
this.HidingRules = new Array();
this.nHidingRules = 0;
this.AmbientalSound = AmbSound;
this.mcBlockWalk = undefined;
this.nEventTasks = 0;
this.EventTasks = new Array();
this.Loaded = false;
this.curLoadedItem = 0;
this.Items = new Array();
this.nItems = 0;
this.Map = new Array();
this.Name = Name;
this.Description = Description;
this.Movie = Movie;
this.InitialY = this.Movie._y;
this.Movie._y = -1000;
this.Personaje = Movie.mcPersonaje;
this.Index = 0;
this.BoundsTerreno = Movie.getRect(Movie);
this.nCols = 0;
this.nRows = 0;
this.MouseItem = undefined;
this.InvItem = undefined;
this.nSortRules = 0;
this.SortRules = new Array();
this.CurCharacter = undefined;
this.PrevCharacter = undefined;
}
var nScenes = 0;
var Scenes = new Array();
var curSceneIndex = 0;
var curScene = undefined;
var NewScene = undefined;
var PrevScene = undefined;
var PrevAmbSound = "";
objScene.prototype.GetMovie = function (MovieName) {
var mov_target;
var mc;
mov_target = (this.Movie._name + ".") + MovieName;
mc = eval (mov_target);
if (mc._name != undefined) {
return(mc);
}
trace((("El nombre: " + MovieName) + " no es un clip de la escena") + this.Movie._name);
return(undefined);
};
objScene.prototype.Baja = function () {
this.Movie._y = this.InitialY;
};
objScene.prototype.Sube = function () {
this.Movie._y = -1000;
};
objScene.prototype.GetItemByName = function (SomeName) {
SomeName.toUpperCase();
with (this) {
i = 1;
while (i <= nItems) {
if (Items[i].ID == SomeName) {
return(Items[i]);
}
i++;
}
}
return(undefined);
};
objScene.prototype.PointIsWalkable = function (x, y) {
with (this) {
if (!Movie.mcWalkRange.hitTest(x, y, true)) {
return(false);
}
if (Movie.mcBlockWalk != undefined) {
if (Movie.mcBlockWalk._visible) {
if (Movie.mcBlockWalk.hitTest(x, y, true)) {
return(false);
}
}
}
i = 1;
while (i <= nItems) {
if (Items[i].ID != this.CurCharacter) {
if (Items[i].mc._visible && (!Items[i].AlwaysWalkable)) {
if (Items[i].mc.mcBase.hitTest(x, y, true)) {
return(false);
}
}
}
i++;
}
}
return(true);
};
objScene.prototype.AddSortRule = function (RuleName) {
this.nSortRules++;
this.SortRules[this.nSortRules] = new objSortRule(RuleName, this);
return(this.SortRules[this.nSortRules]);
};
objScene.prototype.GetSortRuleByName = function (RuleName) {
var _local2;
_local2 = 1;
while (_local2 <= this.nSortRules) {
if (this.SortRules[_local2].Name == RuleName) {
return(this.SortRules[_local2]);
}
_local2++;
}
return(undefined);
};
objScene.prototype.AddHidingRule = function (frontitem, backitem) {
var _local2 = new objHidingRule(frontitem, backitem);
this.nHidingRules++;
this.HidingRules[this.nHidingRules] = _local2;
};
objScene.prototype.ChangeSceneSound = function (s) {
this.AmbientalSound = s;
};
objScene.prototype.StartSceneSound = function (s, Permanent, force) {
if (_root.TraceMessages && (_root.BufferTalkFiles != "")) {
trace(_root.BufferTalkFiles);
_root.BufferTalkFiles = "";
}
if (force == undefined) {
force = false;
}
if (s == undefined) {
s = this.AmbientalSound;
}
if (Permanent == undefined) {
Permanent = false;
}
if (_root.PrevAmbSound != "") {
if ((_root.PrevAmbSound != s) || (force)) {
_root.SonidoActual.stop(_root.PrevAmbSound);
_root.SonidoActual.attachSound(s);
_root.SonidoActual.start(0, 9999);
_root.PrevAmbSound = s;
if (Permanent) {
this.AmbientalSound = s;
}
}
} else {
_root.PrevAmbSound = s;
_root.SonidoActual.attachSound(s);
_root.SonidoActual.start(0, 9999);
if (Permanent) {
this.AmbientalSound = s;
}
}
};
objScene.prototype.Start = function (StartSound) {
if (this.MaxDepth) {
this.Movie.swapDepths(_root.getNextHighestDepth());
}
this.Movie._visible = true;
if (StartSound) {
this.StartSceneSound();
}
};
objScene.prototype.ChangeAmbientalSound = function (SoundName) {
this.ChangeSceneSound(SoundName);
};
objScene.prototype.StartAmbientalSound = function (SoundName, Permanent, force) {
this.StartSceneSound(SoundName, Permanent, force);
};
objScene.prototype.AddItem = function (SomeItem) {
with (this) {
nItems++;
Items[nItems] = SomeItem;
}
};
objScene.prototype.Init = function () {
};
objScene.prototype.SetCharacter = function (ItemName, Expresion, Orientation) {
var _local4;
var _local3;
_local4 = _root.GetItemByName(ItemName);
_local4.RefreshPanel = false;
_local3 = _local4.mc;
delete _local3.mcGraph.onRelease;
delete _local3.mcGraph.onRollOut;
delete _local3.mcGraph.onRollOver;
_local3.mcBlock._visible = false;
_local3.Expresion = Expresion;
_local3.LastOrientation = "";
this.StandCharacter(Orientation, _local3);
_local3.mcCabeza.gotoAndStop(_local3.Expresion);
};
objScene.prototype.ActivateCharacter = function (ItemName) {
var itm;
with (this) {
CurCharacter = ItemName;
itm = _root.GetItemByName(CurCharacter);
CurCharacterItem = itm;
Personaje = _root.GetItemByName(CurCharacter).mc;
}
};
objScene.prototype.ChangeCharacter = function (ItemName) {
var _local3;
if (ItemName == this.CurCharacter) {
return(undefined);
}
_local3 = _root.GetItemByName(this.CurCharacter);
_root.SetTerrainItemBase(this, _local3, true);
_local3 = _root.GetItemByName(ItemName);
_root.SetTerrainItemBase(this, _local3, false);
this.CurCharacter = ItemName;
this.Personaje = _local3.mc;
};
objScene.prototype.StandCharacter = function (pos, mov) {
var _local4 = "";
var _local3;
if (this.CurCharacterItem.Frozen) {
return(undefined);
}
pos = pos.toUpperCase();
if (mov != undefined) {
_local3 = mov;
} else {
_local3 = this.Personaje;
}
switch (pos) {
case "LATERAL" :
_local4 = "Stand_Lateral";
_local3.LastWalkMode = "LATERAL";
if (_local3._xscale == Math.abs(_local3._xscale)) {
_local3.LastOrientation = "LEFT";
} else {
_local3.LastOrientation = "RIGHT";
}
break;
case "FRONT" :
_local4 = "Stand_Front";
_local3.LastOrientation = "FRONT";
_local3.LastWalkMode = "FRONT";
break;
case "BACK" :
_local4 = "Stand_Back";
_local3.LastOrientation = "BACK";
_local3.LastWalkMode = "BACK";
break;
case "LEFT" :
_local4 = "Stand_Lateral";
_local3._xscale = Math.abs(_local3._xscale);
_local3.LastOrientation = "LEFT";
_local3.LastWalkMode = "LATERAL";
break;
case "RIGHT" :
_local4 = "Stand_Lateral";
_local3._xscale = -Math.abs(_local3._xscale);
_local3.LastOrientation = "RIGHT";
_local3.LastWalkMode = "LATERAL";
}
_local3.gotoAndStop(_local4);
_root.curWalkMode = "";
};
objScene.prototype.InitMap = function () {
var i;
var j;
with (this) {
nCols = Math.round(((BoundsTerreno.xMax - BoundsTerreno.xMin) + 1) / _root.NodeWidth);
nRows = Math.round(((BoundsTerreno.yMax - BoundsTerreno.yMin) + 1) / _root.NodeHeight);
i = 0;
while (i <= (nRows - 1)) {
Map[i] = new Array();
j = 0;
while (j <= (nCols - 1)) {
Map[i][j] = 0;
j++;
}
i++;
}
}
};
function Dialog(id, Points, exp) {
if (exp == undefined) {
this.Expression = true;
} else {
this.Expression = exp;
}
this.ID = id;
this.State = STAT_DIALOG_FINISHED;
this.Points = Points;
Points.unshift(0);
this.PointIndex = 0;
this.MovieState = 1;
this.Parent = undefined;
this.Delay = 0;
this.CurDelay = 0;
}
function Character(ID) {
this.ID = ID;
this.CheckMovies = true;
this.AutoStart = true;
this.Task = undefined;
this.State = STAT_FROZEN;
this.Dialogs = new Array();
this.nDialogs = 0;
this.movOjos = undefined;
this.movBoca = undefined;
this.movBDer = undefined;
this.movBIzq = undefined;
this.movAux = undefined;
this.AnimateArms = true;
this.movOjos_Target = "";
this.movBoca_Target = "";
this.movBDer_Target = "";
this.movBIzq_Target = "";
this.movAux_Target = "";
this.objSound = undefined;
this.objSound = new Sound();
this.objSound.Parent = this;
this.objSound.onSoundComplete = function () {
this.Parent.SoundComplete();
};
this.CurSound = "";
this.CurDialog = undefined;
this.swFrameDelay = false;
this.WaitBrazoCounter = 50;
this.CurBrazoCounter = 0;
this.CurSincroBrazoCounter = 0;
this.SincroBrazoCounter = 2;
this.InSincroBrazo = false;
this.GestoOjo = new GestureController(this, false);
this.GestoBDer = new GestureController(this, true);
this.GestoBIzq = new GestureController(this, true);
this.GestoAux = new GestureController(this, false);
}
STAT_DIALOG_SPEAKING = 101;
STAT_DIALOG_DELAY = 102;
STAT_DIALOG_FINISHED = 103;
STAT_CHAR_FROZEN = 100;
STAT_CHAR_ANIMATING = 101;
Characters = new Array();
Dialog.prototype.Start = function () {
this.PointIndex = 0;
this.MovieState = 1;
this.Parent.movBoca.gotoAndPlay(1);
};
Dialog.prototype.StopSpeaking = function () {
if (this.Parent.movBoca != undefined) {
this.Parent.movBoca.gotoAndStop(1);
}
this.State = STAT_DIALOG_DELAY;
};
Dialog.prototype.Process = function () {
var _local2;
if (this.State == STAT_DIALOG_SPEAKING) {
if ((this.Parent.movBoca != undefined) && (this.Parent.objSound.Ready)) {
var _local3;
var _local5;
var _local4;
_local3 = this.Parent.objSound.position;
_local5 = this.PointIndex;
_local4 = this.Points.length - 1;
if (_local3 > this.Points[1]) {
if (_local3 > this.Points[_local4]) {
this.PointIndex = _local4;
} else {
_local2 = _local5;
while (_local2 <= _local4) {
if ((_local3 >= this.Points[_local2]) && (_local3 < this.Points[_local2 + 1])) {
this.PointIndex = _local2;
break;
}
_local2++;
}
}
} else {
return(undefined);
}
if ((this.PointIndex % 2) == 1) {
if (this.MovieState == 1) {
this.MovieState = 0;
this.Parent.movBoca.gotoAndStop(1);
}
} else if (this.MovieState == 0) {
this.MovieState = 1;
this.Parent.movBoca.gotoAndPlay(1);
}
}
} else if (this.State == STAT_DIALOG_DELAY) {
if (this.CurDelay >= this.Delay) {
this.State = STAT_DIALOG_FINISHED;
this.Parent.CurDialog = undefined;
if (this.Parent.Task != undefined) {
this.Parent.Task.Finish();
}
} else {
this.CurDelay++;
}
}
};
Character.prototype.CancelDialog = function () {
if (this.CurDialog != undefined) {
this.objSound.Ready = false;
this.objSound.stop(this.CurSound + ".mp3");
this.CurDialog.StopSpeaking();
this.CurDialog.State = STAT_DIALOG_FINISHED;
this.CurSound = "";
this.CurDialog = undefined;
if (this.Task != undefined) {
this.Task.Finish();
}
if (this.AnimateArms) {
this.GestoBDer.Stop();
this.GestoBIzq.Stop();
}
this.GestoAux.Stop();
}
};
Character.prototype.SoundComplete = function () {
this.objSound.Ready = false;
this.CurDialog.StopSpeaking();
this.CurSound = "";
if (this.AnimateArms) {
this.GestoBDer.Stop();
this.GestoBIzq.Stop();
}
this.GestoAux.Stop();
};
Character.prototype.Start = function () {
this.State = STAT_CHAR_ANIMATING;
this.GestoOjo.Start(this.movOjos, 10, 70);
};
Character.prototype.Stop = function () {
this.State = STAT_CHAR_FROZEN;
this.GestoOjo.Stop();
};
Character.prototype.SetMovies = function (movOjos, movBoca, movBDer, movBIzq, movAux) {
this.movOjos_target = movOjos;
this.movBoca_target = movBoca;
this.movBDer_target = movBDer;
this.movBIzq_target = movBIzq;
this.movAux_target = movAux;
this.movOjos = eval (movOjos);
this.movBoca = eval (movBoca);
this.movBoca.gotoAndStop(1);
this.movBDer = eval (movBDer);
this.movBIzq = eval (movBIzq);
this.movAux == eval (movAux);
this.movBDer.gotoAndStop(1);
this.movBIzq.gotoAndStop(1);
this.movAux.gotoAndStop(1);
if (this.AutoStart) {
this.Start();
}
};
Character.prototype.CheckForMovies = function () {
if (this.movOjos == undefined) {
this.movOjos = eval (this.movOjos_target);
if (this.movOjos != undefined) {
this.GestoOjo.Start(this.movOjos, 10, 70);
}
}
if (this.movBoca == undefined) {
this.movBoca = eval (this.movBoca_target);
}
if (this.movBoca != undefined) {
if (this.CurDialog == undefined) {
trace("Se Para la boca de: " + this.movBoca._parent._name);
this.movBoca.gotoAndStop(1);
}
}
if (this.AnimateArms) {
if (this.movBDer == undefined) {
this.movBDer = eval (this.movBDer_target);
}
if (this.movBDer != undefined) {
if (this.CurDialog == undefined) {
this.movBDer.gotoAndStop(1);
}
}
if (this.movBIzq == undefined) {
this.movBIzq = eval (this.movBIzq_target);
}
if (this.movBIzq != undefined) {
if (this.CurDialog == undefined) {
this.movBIzq.gotoAndStop(1);
}
}
}
if (this.movAux == undefined) {
this.movAux = eval (this.movAux_target);
}
if (this.movAux != undefined) {
if (this.CurDialog == undefined) {
this.movAux.gotoAndStop(1);
}
}
};
Character.prototype.AddDialog = function (id, Points, exp) {
this.nDialogs++;
this.Dialogs[this.nDialogs] = new Dialog(id, Points, exp);
this.Dialogs[this.nDialogs].Parent = this;
};
Character.prototype.Process = function () {
if (this.State == STAT_CHAR_ANIMATING) {
if (this.CheckMovies) {
this.CheckForMovies();
}
if (this.CurDialog != undefined) {
if (this.swFrameDelay) {
this.swFrameDelay = false;
} else {
this.CurDialog.Process();
}
}
this.GestoOjo.Process();
if (this.AnimateArms) {
this.GestoBDer.Process();
this.GestoBIzq.Process();
}
this.GestoAux.Process();
if ((((this.CurDialog != undefined) && (this.InSincroBrazo)) && (this.GestoBDer.mc._currentframe == 1)) && (this.GestoBIzq.mc._currentframe == 1)) {
this.CurBrazoCounter++;
if (this.CurBrazoCounter >= this.WaitBrazoCounter) {
this.InSincroBrazo = false;
this.CurSincroBrazoCounter = -2;
this.CurBrazoCounter = 0;
this.GestoBDer.CurFrames = this.GestoBDer.WaitFrames;
this.GestoBIzq.CurFrames = this.GestoBIzq.WaitFrames;
} else {
this.CurBrazoCounter++;
}
}
}
};
Character.prototype.GetDialog = function (id) {
var _local2;
_local2 = 1;
while (_local2 <= this.nDialogs) {
if (this.Dialogs[_local2].ID == id) {
return(this.Dialogs[_local2]);
}
_local2++;
}
trace("Error no existe el ID = " + id);
return(undefined);
};
Character.prototype.TerminoDialogo = function (id) {
var _local2;
_local2 = this.GetDialog(id).State == STAT_DIALOG_FINISHED;
return(_local2);
};
Character.prototype.GetDialogState = function (id) {
return(this.GetDialog(id).State);
};
Character.prototype.SetDialogState = function (id, v) {
this.GetDialog(id).State = v;
};
Character.prototype.LunchDialogSound = function (id, delay) {
trace("entra a lunchdialog");
this.CurSound = id;
this.CurDialog = this.GetDialog(this.CurSound);
this.CurDialog.State = STAT_DIALOG_SPEAKING;
this.CurDialog.Delay = delay;
this.CurDialog.CurDelay = 0;
this.CurBrazoCounter = 0;
this.CurSincroBrazoCounter = 0;
this.CurDialog.Start();
if (this.CurDialog.Expression) {
if (this.AnimateArms) {
this.GestoBDer.Start(this.movBDer, 20, 80);
this.GestoBIzq.Start(this.movBIzq, 25, 70);
}
this.GestoAux.Start(this.movAux, 40, 40);
}
this.objSound.attachSound(id + ".mp3");
this.objSound.Parent = this;
this.objSound.Tipo = AUDIO_CHAR;
this.objSound.start(0);
this.objSound.audio = id + ".mp3";
this.objSound.Ready = true;
this.swFrameDelay = true;
if (!_root.PCHasAudio) {
this.SoundComplete();
}
};
function GestureController(Parent, IsBrazo) {
this.mc = undefined;
this.Parent = Parent;
this.CurFrames = 0;
if (IsBrazo == undefined) {
this.IsBrazo = true;
} else {
this.IsBrazo = IsBrazo;
}
this.WaitFrames = 0;
this.State = GESTURE_STAT_FROZEN;
this.MaxWaitFrames = 0;
this.MinWaitFrames = 20;
}
GESTURE_STAT_PLAYING = 100;
GESTURE_STAT_FROZEN = 101;
GestureController.prototype.SetWaitFrames = function () {
this.WaitFrames = this.MinWaitFrames + Math.floor((Math.random() * this.MaxWaitFrames) + 1);
this.CurFrames = 0;
};
GestureController.prototype.Start = function (Movie, MinWaitFrames, MaxWaitFrames) {
this.MaxWaitFrames = MaxWaitFrames;
this.MinWaitFrames = MinWaitFrames;
with (this) {
State = GESTURE_STAT_PLAYING;
mc = Movie;
SetWaitFrames();
}
};
GestureController.prototype.Stop = function () {
with (this) {
State = GESTURE_STAT_FROZEN;
}
};
GestureController.prototype.Process = function () {
with (this) {
var char = Parent;
if (State == GESTURE_STAT_PLAYING) {
if (CurFrames == WaitFrames) {
mc.gotoAndPlay(1);
CurFrames++;
} else if (CurFrames == (WaitFrames + 1)) {
if (mc._currentframe == 1) {
mc.stop();
if (IsBrazo) {
char.CurSincroBrazoCounter++;
char.CurBrazoCounter = 0;
if (!char.InSincroBrazo) {
SetWaitFrames();
CurFrames = 0;
if (char.CurSincroBrazoCounter >= char.SincroBrazoCounter) {
char.InSincroBrazo = true;
}
}
} else {
SetWaitFrames();
CurFrames = 0;
}
CurFrames++;
}
} else {
CurFrames++;
}
}
}
};
function GetMapNode(x, y) {
var _local2;
var _local5;
var _local1;
var _local4;
_local2 = x / NodeWidth;
_local5 = y / NodeHeight;
_local1 = Math.floor(x / NodeWidth);
_local4 = Math.floor(y / NodeHeight);
if ((x != _local2) && (y != _local5)) {
p.x = _local4;
p.y = _local1;
} else if (x == _local2) {
p.x = _local4;
p.y = _local1;
}
return(p);
}
function GetItemBounds(SomeScene, SomeItem) {
var _local2;
var _local3;
var _local7;
var _local4;
var _local8;
var _local6;
if (SomeItem.mc == undefined) {
return(1);
}
if ((SomeItem.mc.mcBase == undefined) && (SomeItem.Tipo != "T")) {
return(2);
}
if (SomeItem.Tipo != "T") {
_local6 = SomeItem.mc.mcBase;
} else {
_local6 = SomeItem.mc;
}
_local2 = _local6.getRect(SomeScene.Movie);
_local3 = Math.round(((_local2.xMin - SomeScene.BoundsTerreno.xMin) + 1) / NodeWidth) - 4;
if (_local3 < 0) {
_local3 = 0;
}
_local7 = Math.round(((_local2.xMax - SomeScene.BoundsTerreno.xMin) + 1) / NodeWidth) + 4;
_local4 = Math.round(((_local2.yMin - SomeScene.BoundsTerreno.yMin) + 1) / NodeHeight) - 4;
if (_local4 < 0) {
_local4 = 0;
}
_local8 = Math.round(((_local2.yMax - SomeScene.BoundsTerreno.yMin) + 1) / NodeHeight) + 4;
SomeItem.xIni = _local3;
SomeItem.xFin = _local7;
SomeItem.yIni = _local4;
SomeItem.yFin = _local8;
SomeItem.curX = _local3;
SomeItem.IterBase = _local6;
SomeItem.Scanning = false;
return(0);
}
function SetTerrainItemBase(SomeScene, SomeItem, BlockTerrain) {
var _local2 = 0;
_local2 = _root.GetItemBounds(SomeScene, SomeItem);
while (_local2 == 0) {
_local2 = _root.SetTerrainItemBaseDelta(SomeScene, SomeItem, BlockTerrain);
}
}
function SetTerrainItemBaseDelta(SomeScene, SomeItem, BlockTerrain) {
var _local12;
var _local11;
var _local10;
var _local8;
var _local9;
var _local7;
var _local3;
var _local1;
var _local4 = 0;
var _local15;
var _local14;
var _local16 = 0;
var _local5 = SomeItem.IterBase;
if (SomeItem.ID == "ARBOL") {
_local15 = 1;
}
if (_local5 == undefined) {
return(2);
}
_local15 = SomeItem.curX;
_local14 = SomeItem.curX + DeltaXTerrain;
if (_local14 >= SomeItem.xFin) {
_local14 = SomeItem.xFin;
SomeItem.Scanning = false;
_local16 = 2;
} else {
SomeItem.Scanning = true;
}
_local3 = _local15;
while (_local3 <= _local14) {
_local1 = SomeItem.yIni;
while (_local1 <= SomeItem.yFin) {
_local4 = 0;
_local12 = NodeWidth * (_local3 + 0.5);
_local11 = NodeHeight * (_local1 + 0.5);
if (CheckHitTest(SomeScene, _local12, _local11, _local5)) {
_local4++;
}
_local10 = NodeWidth * _local3;
_local8 = NodeWidth * (_local3 + 1);
_local9 = NodeHeight * _local1;
_local7 = NodeHeight * (_local1 + 1);
if (CheckHitTest(SomeScene, _local10, _local9, _local5)) {
_local4++;
}
if (CheckHitTest(SomeScene, _local10, _local7, _local5)) {
_local4++;
}
if (CheckHitTest(SomeScene, _local8, _local9, _local5)) {
_local4++;
}
if (CheckHitTest(SomeScene, _local8, _local7, _local5)) {
_local4++;
}
if (_local4 >= 3) {
if (SomeItem.Tipo == "T") {
SomeScene.Map[_local1][_local3] = 1;
} else if (BlockTerrain) {
SomeScene.Map[_local1][_local3] = 0;
} else {
SomeScene.Map[_local1][_local3] = 1;
}
}
_local1++;
}
_local3++;
}
SomeItem.curX = _local14 + 1;
return(_local16);
}
function CalculaRuta() {
fpath = findPath(curScene.Map, StartRow, StartCol, EndRow, EndCol);
if (fpath == null) {
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
WalkTask.Finish();
FinishCurrentFlow();
WalkTask = undefined;
return(null);
}
if (fpath.length > 0) {
VWalkCounter = 0;
HWalkCounter = 0;
swWalking = true;
curWalking = fpath.length - 1;
} else {
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
FinishCurrentFlow();
WalkTask.Finish();
WalkTask = undefined;
return(null);
}
curScene.Movie.clear();
i = 0;
while (i < fpath.length) {
x = fpath[i][1];
y = fpath[i][0];
if (ModoPrueba) {
curScene.Movie.lineStyle(0.1, 0, 100);
curScene.Movie.beginFill(13369344);
curScene.Movie.moveTo(curScene.BoundsTerreno.xMin + (x * NodeWidth), curScene.BoundsTerreno.yMin + (y * NodeHeight));
curScene.Movie.lineTo(curScene.BoundsTerreno.xMin + ((x + 1) * NodeWidth), curScene.BoundsTerreno.yMin + (y * NodeHeight));
curScene.Movie.lineTo(curScene.BoundsTerreno.xMin + ((x + 1) * NodeWidth), curScene.BoundsTerreno.yMin + ((y + 1) * NodeHeight));
curScene.Movie.lineTo(curScene.BoundsTerreno.xMin + (x * NodeWidth), curScene.BoundsTerreno.yMin + ((y + 1) * NodeHeight));
curScene.Movie.lineTo(curScene.BoundsTerreno.xMin + (x * NodeWidth), curScene.BoundsTerreno.yMin + (y * NodeHeight));
curScene.Movie.endFill();
}
ArrayToTerrain(fpath[i][0], fpath[i][1], p);
fpath[i][0] = p.x + (NodeWidth / 2);
fpath[i][1] = p.y + (NodeHeight / 2);
i++;
}
}
function TerrainToArray(x, y, p) {
p.col = Math.floor(((x - curScene.BoundsTerreno.xMin) + 1) / NodeWidth);
p.row = Math.floor(((y - curScene.BoundsTerreno.yMin) + 1) / NodeHeight);
}
function ArrayToTerrain(row, col, p) {
p.x = ((col * NodeWidth) + curScene.BoundsTerreno.xMin) - 1;
p.y = ((row * NodeHeight) + curScene.BoundsTerreno.yMin) - 1;
}
function ProcessTerrainClick(Targetx, Targety) {
var _local3 = new Date();
if (swWalking) {
trace("Esta Caminando ya no puede seguir caminando...otra vez");
return(0);
}
if (SobreItem && (Targetx == undefined)) {
trace("Esta sobre un Item yu el TargetX es undefined");
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
WalkTask.Finish();
WalkTask = undefined;
return(undefined);
}
if (Targetx == undefined) {
MouseX = curScene.Movie._xmouse;
MouseY = curScene.Movie._ymouse;
} else {
MouseX = Targetx;
MouseY = Targety;
}
TerrainToArray(MouseX, MouseY, aux);
EndRow = aux.row;
EndCol = aux.col;
if (Targetx == undefined) {
if (curScene.Map[EndRow][EndCol] == 0) {
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
WalkTask.Finish();
WalkTask = undefined;
return(0);
}
}
PuntoValido = (MouseX >= curScene.BoundsTerreno.xMin) && (MouseX <= curScene.BoundsTerreno.xMax);
PuntoValido = PuntoValido && ((MouseY >= curScene.BoundsTerreno.yMin) && (MouseY <= curScene.BoundsTerreno.yMax));
if (!PuntoValido) {
trace("Punto no cae en el Terreno");
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
WalkTask.Finish();
WalkTask = undefined;
return(undefined);
}
curScene.Personaje.LastWalkMode = curWalkMode.toUpperCase();
curWalkMode = "";
TerrainToArray(curScene.Personaje._x, curScene.Personaje._y, aux);
StartRow = aux.row;
StartCol = aux.col;
var _local1 = new Date();
CalculaRuta();
var _local4 = new Date();
var _local6 = _local1.getTime() - _local3.getTime();
var _local5 = _local4.getTime() - _local1.getTime();
}
function CheckWalking() {
var _local3;
var _local2;
if (swWalking) {
if (curWalking > 0) {
NextWalk();
var _local1 = new Object();
_local1.x = 0;
_local1.y = 0;
curScene.Personaje.localToGlobal(_local1);
if (PrevFrame == curScene.Personaje._currentframe) {
}
} else {
swWalking = false;
curWalking = -1;
if (curWalkMode == "") {
curWalkMode = curScene.Personaje.LastWalkMode;
}
curScene.StandCharacter(curWalkMode);
WalkTask.Finish();
WalkTask = undefined;
}
CheckVisibility();
PrevFrame = curScene.Personaje._currentframe;
}
}
function NextWalk() {
curWalking = curWalking - 1;
var _local3 = true;
var _local1 = false;
var _local2 = false;
var _local4 = 0;
if (_local3) {
DeltaX = Math.round(fpath[curWalking][0] - curScene.Personaje._x);
DeltaY = Math.round(fpath[curWalking][1] - curScene.Personaje._y);
if (DeltaX == 0) {
_local1 = true;
HWalkCounter = 0;
VWalkCounter++;
} else if (VWalkCounter >= 2) {
_local1 = true;
HWalkCounter = 1;
VWalkCounter = 1;
} else if (Math.round(fpath[curWalking - 1][0] - fpath[curWalking][0]) == 0) {
_local1 = true;
HWalkCounter = 1;
VWalkCounter = 1;
} else {
_local2 = true;
HWalkCounter++;
VWalkCounter = 0;
}
if (_local1) {
if (DeltaY > 0) {
if (curWalkMode != "Front") {
curScene.Personaje.gotoAndPlay("Walk_Front");
curWalkMode = "Front";
}
} else if (curWalkMode != "Back") {
curScene.Personaje.gotoAndPlay("Walk_Back");
curWalkMode = "Back";
}
} else {
if (DeltaX > 0) {
curScene.Personaje._xscale = -Math.abs(curScene.Personaje._xscale);
} else {
curScene.Personaje._xscale = Math.abs(curScene.Personaje._xscale);
}
if (curWalkMode != "Lateral") {
curScene.Personaje.gotoAndPlay("Walk_Lateral");
curWalkMode = "Lateral";
}
}
}
if (curWalking == 0) {
ProcessItemReached();
} else {
curScene.Personaje._x = fpath[curWalking][0];
curScene.Personaje._y = fpath[curWalking][1];
}
}
function NextWalk_1() {
var _local2 = true;
var _local1;
var _local3;
var _local4;
if (_local2) {
curWalking = curWalking - 1;
DeltaX = Math.round(fpath[curWalking][0] - curScene.Personaje._x);
DeltaY = Math.round(fpath[curWalking][1] - curScene.Personaje._y);
_local1 = Math.abs(DeltaY / DeltaX);
if (_local1 >= 1.5) {
if (DeltaY > 0) {
if (curWalkMode != "Front") {
curScene.Personaje.gotoAndPlay("Walk_Front");
curWalkMode = "Front";
}
trace("Front");
} else {
if (curWalkMode != "Back") {
curScene.Personaje.gotoAndPlay("Walk_Back");
curWalkMode = "Back";
}
trace("Back");
}
} else {
if (DeltaX > 0) {
curScene.Personaje._xscale = -Math.abs(curScene.Personaje._xscale);
} else {
curScene.Personaje._xscale = Math.abs(curScene.Personaje._xscale);
}
if (curWalkMode != "Lateral") {
curScene.Personaje.gotoAndPlay("Walk_Lateral");
curWalkMode = "Lateral";
}
trace("en NectWalk ........Lateral");
}
}
if (curWalking == 0) {
ProcessItemReached();
} else {
curScene.Personaje._x = fpath[curWalking][0];
curScene.Personaje._y = fpath[curWalking][1];
}
}
function NextWalk_Old() {
curWalking = curWalking - 1;
var _local1 = true;
if (_local1) {
DeltaX = Math.round(fpath[curWalking][0] - curScene.Personaje._x);
DeltaY = Math.round(fpath[curWalking][1] - curScene.Personaje._y);
if (DeltaX == 0) {
if (DeltaY > 0) {
if (curWalkMode != "Front") {
curScene.Personaje.gotoAndPlay("Walk_Front");
curWalkMode = "Front";
}
} else if (curWalkMode != "Back") {
curScene.Personaje.gotoAndPlay("Walk_Back");
curWalkMode = "Back";
}
} else {
if (DeltaX > 0) {
curScene.Personaje._xscale = -Math.abs(curScene.Personaje._xscale);
} else {
curScene.Personaje._xscale = Math.abs(curScene.Personaje._xscale);
}
if (curWalkMode != "Lateral") {
curScene.Personaje.gotoAndPlay("Walk_Lateral");
curWalkMode = "Lateral";
}
}
}
if (curWalking == 0) {
ProcessItemReached();
} else {
curScene.Personaje._x = fpath[curWalking][0];
curScene.Personaje._y = fpath[curWalking][1];
}
}
function CheckHitTest(SomeScene, xx, yy, mc) {
punto.x = SomeScene.BoundsTerreno.xMin + xx;
punto.y = SomeScene.BoundsTerreno.yMin + yy;
SomeScene.Movie.localToGlobal(punto);
return(mc.hitTest(punto.x, punto.y, true));
}
function ShowMap() {
var _local1 = curScene.Movie;
_local1.clear();
curScene.Movie.mcWalkRange._alpha = 70;
if (ModoPrueba) {
_local1.lineStyle(0.2, 0, 100);
i = 0;
while (i < curScene.Map.length) {
j = 0;
while (j < curScene.Map[0].length) {
switch (curScene.Map[i][j]) {
case 0 :
_local1.beginFill(13369344);
break;
case 2 :
_local1.beginFill(14540253);
break;
case 1 :
_local1.beginFill(10092441);
}
_local1.moveTo(curScene.BoundsTerreno.xMin + (j * NodeWidth), curScene.BoundsTerreno.yMin + (i * NodeHeight));
_local1.lineTo(curScene.BoundsTerreno.xMin + ((j + 1) * NodeWidth), curScene.BoundsTerreno.yMin + (i * NodeHeight));
_local1.lineTo(curScene.BoundsTerreno.xMin + ((j + 1) * NodeWidth), curScene.BoundsTerreno.yMin + ((i + 1) * NodeHeight));
_local1.lineTo(curScene.BoundsTerreno.xMin + (j * NodeWidth), curScene.BoundsTerreno.yMin + ((i + 1) * NodeHeight));
_local1.lineTo(curScene.BoundsTerreno.xMin + (j * NodeWidth), curScene.BoundsTerreno.yMin + (i * NodeHeight));
_local1.endFill();
j++;
}
i++;
}
}
}
function CheckClickCounter() {
if ((ClickCounter > 0) && (ClickCounter < 5)) {
ClickCounter++;
} else {
ClickCounter = 0;
}
}
function CancelDialog() {
if (!DialogsLocked) {
if (DialogTask != undefined) {
BlockAdmin.CancelDialog();
}
}
}
function StartGame() {
stopAllSounds();
_root.RefreshItemCaption();
_root.CheckVisibility();
_root.curScene.Start(true);
if (_root.curScene.HasStartFriend) {
_root.InitTasks(_root.curScene.StartFriend);
} else {
_root.MouseBlocked = false;
}
}
function CheckPanel() {
if ((WalkTask != undefined) && (LastPopUpSource != "")) {
HidePopUp("PANEL");
return(0);
}
if (curDelayTexto < curDelay) {
curDelayTexto++;
return(0);
}
if (curDelayTexto == curDelay) {
HidePopUp("PANEL");
if (PanelTask != undefined) {
PanelTask.Finish();
_root.PanelTask = undefined;
} else {
_root.RefreshItemCaption();
}
curDelayTexto++;
}
}
function ProcessItemReached() {
curScene.Personaje._x = MouseX;
curScene.Personaje._y = MouseY;
if (ItemToCatch != undefined) {
if (ItemToCatch.CanCatch) {
Inventario.AddItem(ItemToCatch);
}
if (ItemToCatch.ShowScreen) {
_root.ShowScreen(ItemToCatch.MovieScreen);
}
ItemToCatch = undefined;
}
}
var DialogsLocked = false;
var VWalkCounter = 0;
var HWalkCounter = 0;
var SoundTask = undefined;
var MouseInTerrain = false;
var SobreItem = false;
var PuntoValido;
var DeltaX;
var DeltaY;
var PrevFrame;
var aux = new Object();
var p = new Object();
var ModoPrueba = false;
var MinXEscene = 200;
var MaxXEscene = 300;
var punto = new Object();
var i;
var j;
var fpath;
var swWalking = false;
var curWalking = -1;
var StartRow;
var StartCol;
var EndRow;
var EndCol;
var curWalkMode = "";
var MouseX;
var MouseY;
var Items = new Array();
var nItems = 0;
var NodeWidth = 7;
var NodeHeight = 5;
var DeltaXTerrain = 20;
mcMain.onKeyDown = function () {
trace(Key.getCode());
};
mcMain.onMouseDown = function () {
var _local2;
var _local4;
var _local3;
if (_root.DialogTask != undefined) {
if ((_root.BlockAdmin.curBlock.TipoAccion == "B") && (_root.BlockAdmin.curBlock.CanSpeed)) {
_root.BlockAdmin.curBlock.curTalkDelay = _root.BlockAdmin.curBlock.TalkDelay;
_root.BlockAdmin.curBlock.curAditionalDelay = _root.BlockAdmin.curBlock.AditionalDelay;
if (_root.BlockAdmin.curBlock.CharTalk.CurDialog != undefined) {
_root.BlockAdmin.curBlock.CharTalk.CancelDialog();
}
}
}
_root.Inventario.ProcessMouseDown();
};
_root.nScenesLoaded = 0;
_root.CurLoadingSceneIndex = 1;
_root.LoadedItems = 0;
pTest = new Object();
mcMain.onEnterFrame = function () {
var _local6;
var _local3;
var _local4;
var _local2;
if ((_root.mcDialogWindow == undefined) || (_root.FirstTime == undefined)) {
return(0);
}
if (_root.FriendToLunch != undefined) {
if (curFramesDelay >= TotalFramesDelay) {
} else {
curFramesDelay++;
}
}
if (_root.FirstTime) {
_root.FirstTime = false;
_root.BlockAdmin = new objBlockAdmin(_root.mcDialogWindow);
_root.BlockAdmin.DefaultLangue = "Spanish";
_root.BlockAdmin.AlternateLangue = "English";
_root.Inventario = new objInventory();
_root.InitBlocks();
_root.InitVars();
}
if (_root.CurLoadingSceneIndex <= _root.nScenes) {
AddAvance("Hay escenas por escanear");
_local2 = _root.Scenes[_root.CurLoadingSceneIndex];
if (_local2.curLoadedItem == 0) {
AddAvance("Se muestra la barra de avance");
txtAvance = txtAvance + "2;";
_local2.curLoadedItem++;
return(0);
}
if (_root.LoadedItems == 0) {
txtAvance = txtAvance + "3;";
AddAvance("Se muestra la barra de avance");
_root.mcStageLoader.mcBar._width = 0;
_root.mcStageLoader._visible = true;
}
AddAvance("Scene.curLoadedItem=" + _local2.curLoadedItem);
AddAvance("Scene.nItems=" + _local2.nItems);
AddAvance("Scene.Name=" + _local2.Name);
if ((_local2.curLoadedItem > 0) && (_local2.curLoadedItem <= _local2.nItems)) {
_local3 = _local2.Items[_local2.curLoadedItem];
AddAvance("Se escanea el item:" + _local3.ID);
if ((_local3.ScanAtStart && (!_local3.AlwaysWalkable)) && ((_local3.mc._visible && (_local3.Tipo != "T")) || (_local3.Tipo == "T"))) {
if (_local2.CurCharacter != _local3.ID) {
if (!_local3.Scanning) {
AddAvance("Entra a _root.GetItemBounds");
_local4 = _root.GetItemBounds(_local2, _local3);
}
_local4 = _root.SetTerrainItemBaseDelta(_local2, _local3, true);
if (_local4 == 0) {
return(0);
}
}
}
_root.LoadedItems++;
_local2.curLoadedItem++;
_root.mcStageLoader.mcBar._width = _root.DeltaBar * _root.LoadedItems;
if (_local2.curLoadedItem > _local2.nItems) {
_local2.Loaded = true;
_root.CurLoadingSceneIndex++;
}
if (_root.LoadedItems == _root.nItems) {
_root.mcStageLoader._visible = false;
_root.mcComenzar._visible = true;
if (_root.ModoPrueba) {
_root.ShowMap();
}
}
return(0);
}
}
if (_root.mcComenzar._visible) {
return(0);
}
if (Key.isDown(27)) {
var _local5;
if (!DialogsLocked) {
if (_root.DialogTask != undefined) {
_root.BlockAdmin.CancelDialog();
}
}
}
if (!_root.mcComenzar._visible) {
_root.NewVersion++;
}
if (_root.swWalking) {
_root.CheckWalking();
}
if (_root.DialogTask == undefined) {
curScene.Personaje.mcCabeza.gotoAndStop(curScene.Personaje.Expresion);
}
_root.CustomLogicBeforePerform();
if (_root.Inventario.Dragging) {
_root.Inventario.CheckDragHit();
}
if (curScene.Personaje.mcBlock._visible) {
curScene.Personaje.mcBlock._visible = false;
}
_root.PerformTasks();
if (curScene.Personaje.mcBlock._visible) {
curScene.Personaje.mcBlock._visible = false;
}
PerformDialog();
CheckPanel();
ProcessTipLogic();
_root.CustomLogicAfterPerform();
updateAfterEvent();
};
mcMain.onMouseMove = function () {
updateAfterEvent();
};
function ShowSkipButton() {
btnSkipIntroSpanish._visible = false;
btnSkipIntroEnglish._visible = false;
eval ("btnSkipIntro" + Language)._visible = true;
}
function HideSkipButton() {
btnSkipIntroSpanish._visible = false;
btnSkipIntroEnglish._visible = false;
}
function SkipIntro() {
_root.curScene.Personaje.Expresion = "Normal";
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
if (_root.DialogTask != undefined) {
_root.BlockAdmin.CancelDialog();
}
FinishCurrentFlow();
if (curScene.Name == "OVAL") {
InitTasks(SkipIntroFriendOval);
}
if (curScene.Name == "PANDA") {
InitTasks(SkipIntroFriendPanda);
}
if (curScene.Name == "FAMILY") {
InitTasks(SkipIntroFriendFamily);
}
}
var SkipIntroFriendOval = undefined;
var SkipIntroFriendSotano = undefined;
var SkipIntroFriendFamily = undefined;
btnSkipIntroSpanish._visible = false;
btnSkipIntroEnglish._visible = false;
function CustomLogicAfterPerform() {
if (!mcTips._visible) {
if (CurMission == 1) {
RefreshTimerOval();
}
if (CurMission == 2) {
RefreshTimerTerminator();
}
if (CurMission == 3) {
RefreshTimerFamily();
}
}
if (!HaveAction("PUSO_PELUCA")) {
curScene.Personaje.mcCabeza.mcPelo.gotoAndStop(2);
} else {
curScene.Personaje.mcCabeza.mcPelo.gotoAndStop(1);
}
}
function CustomLogicBeforePerform() {
var _local1;
if (!HaveAction("PUSO_PELUCA")) {
curScene.Personaje.mcCabeza.mcPelo.gotoAndStop(2);
} else {
curScene.Personaje.mcCabeza.mcPelo.gotoAndStop(1);
}
if (mcPatio.mcDormilon._currentframe == (mcPatio.mcDormilon._totalframes - 1)) {
mcPatio.mcDormilon.gotoAndPlay(1);
}
if (!HaveAction("NO_CAMINA")) {
if (mcMuro.mcGorda.mcGraph._currentframe == 33) {
mcMuro.mcGorda.mcGraph.gotoAndPlay("Camina");
}
mcMuro.mcGorda._x = mcMuro.mcGorda._x + mcMuro.mcGorda.deltax;
if (mcMuro.mcGorda._x < 250) {
mcMuro.mcGorda._x = 250;
mcMuro.mcGorda.deltax = 2;
}
if (mcMuro.mcGorda._x > 700) {
mcMuro.mcGorda.deltax = -2;
mcMuro.mcGorda._x = 700;
}
if (mcMuro.mcGorda.deltax < 0) {
mcMuro.mcGorda._xscale = Math.abs(mcMuro.mcGorda._xscale);
} else {
mcMuro.mcGorda._xscale = -Math.abs(mcMuro.mcGorda._xscale);
}
} else if (HaveAction("GORDA_CAMINANDO")) {
}
}
_root.AddAction("TIENE_ACCIO");
_root.AddAction("TIENE_ALOHOMORA");
_root.AddAction("TIENE_EXPELLIARMUS");
_root.AddAction("TIENE_ANIMAGUM");
_root.AddAction("TIENE_DISCENDIO");
_root.AddAction("TIENE_PATRONUM");
_root.AddAction("TIENE_LEVICORPUS");
_root.AddAction("TIENE_RELASHIO");
_root.AddAction("TIENE_REPARO");
_root.AddAction("TIENE_REVELUM");
_root.AddAction("TIENE_LACARNUM");
_root.AddAction("TIENE_LEVIOSA");
var CurMission;
var TimerCounter;
var MaxSecondsOval;
var MaxSecondsTerminator;
CurMission = 1;
MaxSecondsOval = 900;
TimerCounter = MaxSecondsOval;
MaxSecondsTerminator = 900;
MaxSecondsFamily = 600;
var TimeFrameCounter = 0;
var GasCounter = 0;
var curAlpha = 0;
mcGasSystemAlert.gotoAndStop(Language);
mcGasSystemAlert._visible = false;
mcCloseGateMsg.gotoAndStop(Language);
mcCloseGateMsg._visible = false;
function InitTipButtons() {
mcProgressTipBorder._visible = false;
mcProgressTip._visible = false;
mcShowTipDisabledSpanish._visible = false;
mcShowTipDisabledEnglish._visible = false;
btnShowTipSpanish._visible = false;
btnShowTipEnglish._visible = false;
FramesToNextTip = 1500 * MinutesToNextTip;
FramesSinceLastTip = FramesToNextTip;
NoMoreTips = false;
}
function HideTipButton() {
btnShowTipSpanish._visible = false;
btnShowTipEnglish._visible = false;
TipButtonVisible = false;
}
function HideTipDisabled() {
mcShowTipDisabledSpanish._visible = false;
mcShowTipDisabledEnglish._visible = false;
}
function ShowTipDisabled() {
HideTipDisabled();
eval ("mcShowTipDisabled" + Language)._visible = true;
}
function ShowTipButton() {
HideTipButton();
if (TipsUsed >= MaxTips) {
return(undefined);
}
eval ("btnShowTip" + Language)._visible = true;
TipButtonVisible = true;
mcProgressTip._visible = false;
mcProgressTipBorder._visible = false;
}
function ProcessTipLogic() {
if (NoMoreTips && (mcProgressTip._visible)) {
mcProgressTip._visible = false;
mcProgressTipBorder._visible = false;
}
if (TipsUsed > MaxTips) {
return(undefined);
}
if (mcTips._visible) {
return(undefined);
}
if (TipsUsed == MaxTips) {
TipsUsed++;
HideTipButton();
return(undefined);
}
if (mcShowTipDisabledSpanish._visible || (mcShowTipDisabledEnglish._visible)) {
if (FramesSinceLastTip < FramesToNextTip) {
FramesSinceLastTip++;
if ((!mcProgressTip._visible) && (!NoMoreTips)) {
mcProgressTip._visible = true;
mcProgressTipBorder._visible = true;
}
mcProgressTip._width = Math.floor(ProgressWidth * (FramesSinceLastTip / FramesToNextTip));
}
} else {
return(undefined);
}
if (curFlowFriend != undefined) {
if (TipButtonVisible) {
HideTipButton();
return(undefined);
}
} else {
if (!TipButtonVisible) {
if ((FramesSinceLastTip >= FramesToNextTip) && (!NoMoreTips)) {
ShowTipButton();
}
}
if (TipButtonVisible) {
if (FramesSinceLastTip < FramesToNextTip) {
HideTipButton();
}
}
}
}
function AddTip(mission, msg, msg2, action, action2) {
var _local1 = new Tip(mission, msg, msg2, action, action2);
nTips++;
Tips[nTips] = _local1;
}
function Tip(mission, msg, msg2, action, action2) {
this.Msg = msg;
this.Msg2 = msg2;
this.Action = action;
this.Mission = mission;
if (action2 == undefined) {
this.Action2 = action;
} else {
this.Action2 = action2;
}
}
function GetNextTip() {
var _local2;
var _local1;
var _local3;
_local2 = 1;
while (_local2 <= nTips) {
_local1 = Tips[_local2];
if (((!HaveAction(_local1.Action)) && (!HaveAction(_local1.Action2))) && (_local1.Mission == CurMission)) {
if (Language == "Spanish") {
_local3 = _local1.Msg;
} else {
_local3 = _local1.Msg2;
}
return(_local3);
}
_local2++;
}
return("NO_MORE_TIPS");
}
function ShowTip() {
if (_root.curFlowFriend != undefined) {
return(undefined);
}
trace("hola");
InitTasks(ShowTipFriend);
}
var ProgressWidth = mcProgressTip._width;
var TipButtonVisible = false;
NoMoreTips = false;
Tips = new Array();
nTips = 0;
HelpIntro = false;
if (MaxTips == undefined) {
MaxTips = 3;
}
if (MinutesToNextTip == undefined) {
MinutesToNextTip = 2;
}
TipsUsed = 0;
LastTipShowed = "";
if (PointsForTip == undefined) {
PointsForTip = 5000;
}
AddTip(1, "Las tijeras son buenas para cortar telas de ara\u00F1a", "Scissors are good for cutting webs", "CORTO_ARANA");
AddTip(1, "Hay s\u00EDmbolos interesantes escritos en las ara\u00F1as si las miras MUY de cerca", "There are interesting symbols written on spiders if you look them VERY close", "VIO_ARANA");
AddTip(1, "\u00BFNo crees que las peque\u00F1as flechitas en la ara\u00F1a podr\u00EDan ser una especie de combinaci\u00F3n?", "Don't you think the little arrows in the spider could be some kind of combination for safes?", "COMBINACION_CORRECTA");
AddTip(1, "Normalmente encontramos cosas curiosas bajo las alfombras", "Usually, we find interesting things under carpets", "MOVIO_ALFOMBRA");
AddTip(1, "Cuando algo est\u00E1 oxidado a veces es recomendable aceitarlo", "When something's rusty, oil is always useful", "ECHO_ACEITE");
AddTip(1, "Las placas de los escritorios contienen datos importantes si lees cuidadosamente", "Desk plaques contain important information if you read carefully", "VIO_PLACA", "ABRIO_PUERTA_SECRETA");
AddTip(1, "Nunca faltan libros verdes en un buen estante", "There's always a green book in every good shelf", "COGIO_LIBRO", "ABRIO_PUERTA_SECRETA");
AddTip(1, "Cuando lees un libro \u00BFllegas hasta el final? o te aburres y lo dejas incompleto", "When you read a book, do you always finish it or just you get bored and leave it unfinished?", "READ_FINAL_PART", "ABRIO_PUERTA_SECRETA");
AddTip(1, "\u00BFQu\u00E9 tal si leemos la placa del escritorio y tambi\u00E9n la parte final del libro verde?", "How about reading the desk plaque and ALSO the FINAL part of the green book?", "ABRIO_PUERTA_SECRETA");
AddTip(2, "Apuesto que hay un chicle escondido cerca del televisor malogrado", "I bet there's gum hidden somewhere near the broken TV", "COGIO_CHICLE");
AddTip(2, "Algunas veces mastico chicle cuando estoy nervioso", "Sometimes I chew gum when I'm nervous", "MASCO_CHICLE");
AddTip(2, "Una manera de pegar un im\u00E1n a un muro es usando chicle", "A way to stick a magnet to a wall is using gum", "PUSO_CHICLE");
AddTip(2, "Si tienes un im\u00E1n con chicle \u00BFQu\u00E9 esperas para pegarlo?", "If you have magnet with gum, what are you waiting to stick it?", "PUSO_IMAN");
AddTip(2, "Nada mejor que una tijera para sacar el cable de un televisor malogrado", "Nothing better than scissors to get a cable from a broken TV", "COGIO_CABLE_TV");
AddTip(2, "Si quieres pegar un cable a un im\u00E1n ... usa chicle", "If you want to stick a cable to a magnet .... use gum", "PUSO_CHICLE2");
AddTip(2, "Para manipular un interruptor de alto voltaje primero debes apagarlo", "Before handling a high voltage switch you must turn it off", "PUSO_CABLE", "VOLTAJE_APAGADO");
AddTip(2, "Un cable con chicle es perfecto para unir un interruptor y un im\u00E1n", "A cable with gum is perfect to connect a magnet to a switch ", "PUSO_CABLE");
AddTip(3, "Si ves un mu\u00F1eco con un regalo asume que es para t\u00ED", "If you see a puppet with a present asume it's for you", "COGIO_REGALO");
AddTip(3, "Si quieres quemar un mu\u00F1eco ba\u00F1alo con aceite", "If you want to burn a puppet sprinkle oil on it", "ECHO_ACEITE_JIGSAW");
AddTip(3, "Apuesto que hay un encendedor en alguna parte", "I bet there's a lighter somewhere", "TIENE_ENCENDEDOR");
AddTip(3, "Cuando los encendedores ya no encienden se les puede recargar con whisky", "When a lighter doesn't work, a little whisky may reload it", "CARGO_LIGHTER");
AddTip(3, "Si tienes un regalo... \u00BFQu\u00E9 esperas para abrirlo?", "If you have a present ... What are you waiting for? Open it!", "ABRIO_REGALO");
AddTip(3, "Las mejores mechas se hacen de cola de rat\u00F3n", "The best fuses are made from mouse tails", "CORTO_COLA");
AddTip(3, "Una mecha de cola de rat\u00F3n debe tener un poco de alcohol para que pueda arder", "A mouse tail fuse must have a little alcohol to be inflammable", "MOJO_COLA");
AddTip(3, "Para quemar un mu\u00F1eco de manera segura ponle una mecha", "To burn a puppet in a safe way put a fuse on it", "PUSO_COLA");
AddTip(3, "Estee.. mmmm... Si tienes un mu\u00F1eco ba\u00F1ado en aceite y con una mecha puesta ... \u00BFQUE ESPERAS PARA QUEMARLO?", "Errr.... mmm.... If you have a highly inflammable puppet with a fuse on it ... \u00BFWHAT ARE YOU WAITING TO BURN ITTT?", "QUEMO_MUNECO");
AddTip(3, "Normalmente las monedas suelen echarse por alguna rendija, y algunos cuadros tienen rendijas", "Usually coins are inserted in objects that have slots, and some paintings have slots", "ECHO_MONEDA");
InitTipButtons();
mcTips._visible = false;
mcTips.gotoAndStop(1);
mcTimer._visible = false;
mcObamaFilch._visible = false;
mcAviso._visible = false;
mcNoticias._visible = false;
mcPerdisteAngel._visible = false;
mcNota._visible = false;
mcPergaminoScreen._visible = false;
mcPassword._visible = false;
mcObamaEspejo._visible = false;
mcDeskStory._visible = false;
mcSpellsBook._visible = false;
mcPotionsBook._visible = false;
mcDarkBook._visible = false;
function MapScenes() {
var _local1;
_local1 = 1;
while (_local1 <= nScenes) {
GetSceneByName(Scenes[_local1].Name).ActivateCharacter("OBAMA_" + Scenes[_local1].Name);
Scenes[_local1].Init();
Scenes[_local1].InitMap();
_local1++;
}
}
function InitSceneTasks() {
var Name;
var InitFunction;
var i;
i = 1;
while (i <= nScenes) {
Name = Scenes[i].Name;
Name = Name.substring(0, 1) + Name.substring(1, Name.length).toLowerCase();
Name = ("SF_" + Name) + "Tasks";
InitFunction = eval (Name);
InitFunction();
i++;
}
}
function InitScenes() {
var _local1;
_local1 = AddScene("ENTRADA_ROOM", "ENTRADA_ROOM", mcEntradaRoom, "fondo_celda");
_local1 = AddScene("PUERTA_ESPEJO", "PUERTA_ESPEJO", mcPuertaEspejo, "fondo_celda");
_local1 = AddScene("FILCH", "Filch", mcFilch, "fondo_celda");
_local1 = AddScene("CUARTO_HARRY", "CUARTO_HARRY", mcCuartoHarry, "fondo_celda");
_local1 = AddScene("FAT_ROOM", "FAT_ROOM", mcFatRoom, "fondo_celda");
_local1 = AddScene("CUARTO_POCIONES", "CUARTO_POCIONES", mcCuartoPociones, "fondo_celda");
_local1 = AddScene("NICK_ROOM", "NICK_ROOM", mcNickRoom, "fondo_celda");
_local1 = AddScene("ESPEJO_ROOM", "ESPEJO_ROOM", mcEspejoRoom, "fondo_celda");
_local1 = AddScene("PETER_ROOM", "PETER_ROOM", mcPeterRoom, "fondo_celda");
_local1 = AddScene("PETER_DOOR", "PETER_DOOR", mcPeterDoor, "fondo_celda");
_local1 = AddScene("TROLL_ROOM", "TROLL_ROOM", mcTrollRoom, "troll_fondo");
_local1 = AddScene("DEMENTOR_ROOM", "DEMENTOR_ROOM", mcDementorRoom, "troll_fondo");
_local1 = AddScene("VOLDEMORD_ROOM", "VOLDEMORD_ROOM", mcVoldemordRoom, "troll_fondo");
}
function InitVars() {
var _local2;
InitScenes();
InitDinamicMovies();
InitSceneTasks();
MapScenes();
curScene = GetSceneByName("ENTRADA_ROOM");
curScene.Baja();
mcPanel._visible = false;
InitInventario();
SetChildrenFlag();
TrackBackFriends();
SetFriendParentTasks();
_root.MouseBlocked = true;
curLoadedItem = 0;
DeltaBar = mcStageLoader.mcBar._width / nItems;
mcStageLoader.mcBar._width = 0;
mcPopUp.txtPopUp.autoSize = "left";
mcPopUp.txtPopUp.wordWrap = true;
mcPopUp.txtPopUp.multiline = true;
mcPanel.txtMensaje.text = "TRANSFUSIONADOR EN TRANSFUSIONADOR";
mcPanel.txtMensaje.autoSize = "left";
mcPanel.txtMensaje.wordWrap = true;
mcPanel.txtMensaje.multiline = true;
mcPopUp._visible = false;
InitDialogWindow();
SetMenuItemMouseEvents(mcMenuInv.mcOpcion1, 1, 2, 1);
mcMenuInv.mcOpcion1.gotoAndStop(1);
SetMenuItemMouseEvents(mcMenuInv.mcOpcion2, 1, 2, 2);
mcMenuInv.mcOpcion2.gotoAndStop(1);
SetMenuItemMouseEvents(mcMenuInv.mcOpcion3, 1, 2, 3);
mcMenuInv.mcOpcion3.gotoAndStop(1);
SetMenuItemMouseEvents(mcMenuInv.mcOpcion4, 1, 2, 4);
mcMenuInv.mcOpcion4.gotoAndStop(1);
mcMenuInv._visible = false;
mcMenuInv.mcTarget._visible = false;
mcMenuScene.mcTarget._visible = false;
mcMenuScene._visible = false;
mcComenzar._visible = false;
SonidoActual = new Sound();
}
stop();
mcComenzar._visible = false;
mcStageLoader._visible = false;
var Inventario = undefined;
var SceneIndex;
var i;
var FirstTime = true;
var InInitVars = false;
mcSpells._visible = false;
function SF_Entrada_roomTasks() {
var _local3;
var _local2;
var _local4;
curScene = GetSceneByName("ENTRADA_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("COMENTA_1", "PANEL", 0, "Voldemord ha robado la 'Aliquantum Prospera', tenemos que recuperarla", "START");
IterTask.AddMsg("Voldemort has stolen the 'Aliquantum Prospera', we have to get it back");
IterTask.Expresion = "Amargo";
_local3 = AddItem(undefined, "DELAY_ENTRADA_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_ENTRADA_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendEntrada_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryEntrada_room", "I");
_local3 = AddItem(undefined, "MouseEntrada_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoEntrada_room", "T");
_local2 = _local3.AddFriend("MouseEntrada_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_ENTRADA_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_ENTRADA_ROOM", "Normal", "Front");
_local3 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA", "W", "Avanzar");
_local3.AddMsg("Go forward");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("APUERTA_ESPEJO", "SCENE", "", "PUERTA_ESPEJO", "CAMINAR");
IterTask.MovieName = "mcPuertaEspejo.mcFlechaIzquierda.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("FREE_WALK", "MOUSE_STATE", "WALK", "ENABLED", "APUERTA_ESPEJO");
var _local5;
_root.AddItemEnabled("FLECHA%");
_root.AddItemEnabled("TERRENO%");
_root.AddItemEnabled("CAPA");
_root.AddItemEnabled("DELAY_RESTRICCION_CAPA");
}
function SF_Puerta_espejoTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("PUERTA_ESPEJO");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_LEON", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "LION_SHIELD";
IterTask = _local2.AddTask("TIENE_ALOHOMORA", "ACTION", "ADD", "TIENE_ALOHOMORA", "GANA_LEON");
IterTask = _local2.AddTask("TIENE_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "GANA_LEON");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "GANA_LEON");
IterTask.ItemName = "VARITA";
_local3 = AddItem(undefined, "DELAY_PUERTA_ESPEJO", "D");
_local2 = _local3.AddFriend("DELAY_PUERTA_ESPEJO_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendPuerta_espejo = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryPuerta_espejo", "I");
_local3 = AddItem(undefined, "MousePuerta_espejo", "M");
_local3 = AddItem("mcWalkRange", "TerrenoPuerta_espejo", "T");
_local2 = _local3.AddFriend("MousePuerta_espejo", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_PUERTA_ESPEJO", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_PUERTA_ESPEJO", "Normal", "Front");
_local3 = AddItem("mcAuxEscudo", "AUXILIAR_ESCUDO", "W", "");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "CONDITIONAL", "", "", "");
IterTask.AddCondition("DONTHAVE@MOVIO_ARMADURA", "MIRAR2");
IterTask.AddCondition("ELSE", "MIRAR3");
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "Est\u00E1 bloqueando la entrada a la puerta", "");
IterTask.AddMsg("He's blocking the entrance");
IterTask.Expresion = "Triste";
IterTask = _local2.AddTask("MIRAR3", "PANEL", 0, "Por fin el caballero puede descansar en paz", "");
IterTask.AddMsg("Finally the knight can rest in peace");
IterTask.Expresion = "Alegre";
IterTask = _local2.AddTask("HABLAR", "WALK", "ITEM", "", "");
IterTask.ItemName = "ARMADURA";
IterTask.Position = "BACK";
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "Hola", "HABLAR");
IterTask.AddMsg("Hi");
IterTask.CanSpeed = false;
IterTask.Position = "BACK";
IterTask.WaitFramesAtEnd = 50;
IterTask = _local2.AddTask("HABLAR3", "PANEL", 0, "Al parecer no le gusta hablar", "HABLAR2");
IterTask.AddMsg("Apparently he doesn't like to talk much");
IterTask.Position = "FRONT";
IterTask.Expresion = "Triste";
_local2 = _local3.AddFriend("LION_SHIELD");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINAR", "WALK", "ITEM", "", "BLOCKMOUSE");
IterTask.ItemName = "ARMADURA";
IterTask.Position = "BACK";
IterTask = _local2.AddTask("CAMBIA_ESCUDO", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAMINAR");
IterTask.ItemName = "ARMADURA";
IterTask.MovieFrame = "Escudo";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("PIERDE_LEON", "INV", "ITEM", "DROP", "CAMINAR");
IterTask.ItemName = "LION_SHIELD";
IterTask = _local2.AddTask("SONIDO_ARMADURA", "SOUND", "ASINCRONO", "", "CAMBIA_ESCUDO");
IterTask.SoundName = "mueve_armadura";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("MUEVE_ARMADURA", "MOVE", "ITEM", "", "CAMBIA_ESCUDO");
IterTask.ItemName = "ARMADURA";
IterTask.DistanceX = 130;
IterTask.DeltaX = 5;
IterTask.MoveMode = "TWEEN";
IterTask = _local2.AddTask("MOVIO_ARMADURA", "ACTION", "ADD", "MOVIO_ARMADURA", "MUEVE_ARMADURA");
IterTask = _local2.AddTask("DEMORA", "DUMMY", "", "", "MUEVE_ARMADURA");
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("COMENTA_CONTENTA", "PANEL", 0, "Ahora es un caballero contento", "DEMORA");
IterTask.AddMsg("He's happy now");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("OCULTA_AUXILIAR_ESCUDO", "MOVIE_ITEM", "VISIBLE", false, "MUEVE_ARMADURA");
IterTask.ItemName = "AUXILIAR_ESCUDO";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MUEVE_ARMADURA");
_local3 = AddItem("mcPuerta", "PUERTA_ESPEJO", "W", "Una puerta");
_local3.AddMsg("A door");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("DECIDE_MENU", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@ABRIO_PUERTA_ARMADURA", "NADA");
IterTask.AddCondition("DONTHAVE@MOVIO_ARMADURA", "MENU1");
IterTask.AddCondition("ELSE", "MENU2");
IterTask = _local2.AddTask("MENU1", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una puerta bloqueada", "");
IterTask.AddMsg("A door");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No puedo acercarme ... est\u00E1 bloqueada", "");
IterTask.AddMsg("I can't get near it... it's blocked");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "No puedo acercarme ... est\u00E1 bloqueada", "");
IterTask.AddMsg("I can't get near it... it's blocked");
IterTask = _local2.AddTask("MENU2", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR2";
IterTask.EyeTask = "MIRAR2";
IterTask.MouthTask = "HABLAR2";
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "\u00BFA d\u00F3nde conducir\u00E1 est\u00E1 puerta?", "");
IterTask.AddMsg("I wonder where does this door lead to");
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "\u00BFHablar con una puerta? \u00BFInsin\u00FAas que estoy loco?", "");
IterTask.Expresion = "Amargo";
IterTask.Position = "FRONT";
IterTask.AddMsg("You want me to talk to a door?... Take your pills will you...");
IterTask = _local2.AddTask("AGARRAR2", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "AGARRAR2");
IterTask = _local2.AddTask("MANO_OBAMA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "AGARRAR2");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("DECIDE_ABRIR", "CONDITIONAL", "", "", "MANO_OBAMA");
IterTask.AddCondition("HAVE@AFLOJO_PUERTA_ARMADURA", "ABRE_PUERTA");
IterTask.AddCondition("ELSE", "COMENTA_ATASCO");
IterTask = _local2.AddTask("ABRE_PUERTA", "MOVIE_ITEM", "GOTOANDSTOP", "", "");
IterTask.ItemName = "PUERTA_ESPEJO";
IterTask.MovieFrame = "Abierta";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "ABRE_PUERTA");
IterTask.ItemName = "FLECHA_ARRIBA_ARMADURA";
IterTask = _local2.AddTask("ORIENTA_OBAMA3", "CHAR_DIRECTION", "", "BACK", "ABRE_PUERTA");
IterTask = _local2.AddTask("ABRIO_PUERTA_ARMADURA", "ACTION", "ADD", "ABRIO_PUERTA_ARMADURA", "ABRE_PUERTA");
IterTask = _local2.AddTask("COMENTA_ATASCO", "PANEL", 0, "Est\u00E1 atascada", "");
IterTask.AddMsg("It's jammed");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@ABRIO_PUERTA_ESPEJO", "COMENTA_NOMAGIA");
IterTask.AddCondition("DONTHAVE@MOVIO_ARMADURA", "COMENTA_ANTES");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_NOMAGIA", "PANEL", 0, "Ya no es necesario hacer magia con la puerta", "");
IterTask.AddMsg("It's not necessary to use magic on the door anymore");
IterTask = _local2.AddTask("COMENTA_ANTES", "PANEL", 0, "No puedo lanzar un hechizo a la puerta si la armadura est\u00E1 delante", "");
IterTask.AddMsg("The knight is still blocking the door, i can't cast a spell on it");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ALOHOMORA", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GRITA_ALOHOMORA", "PANEL", 0, "\u00A1Alohomora!", "CAMINAR");
IterTask.AddMsg("Alohomora!");
IterTask = _local2.AddTask("SONIDO_PUERTA", "SOUND", "ASINCRONO", "", "GRITA_ALOHOMORA");
IterTask.SoundName = "puerta_botiquin";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("ABRE_PUERTA", "MOVIE_ITEM", "GOTOANDSTOP", "", "GRITA_ALOHOMORA");
IterTask.ItemName = "PUERTA_ESPEJO";
IterTask.MovieFrame = "Abierta";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "ABRE_PUERTA");
IterTask.ItemName = "FLECHA_ARRIBA_ARMADURA";
IterTask = _local2.AddTask("ABRIO_PUERTA_ARMADURA", "ACTION", "ADD", "ABRIO_PUERTA_ARMADURA", "ABRE_PUERTA");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "ABRIO_PUERTA_ARMADURA");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask = _local2.AddTask("AFLOJO_PUERTA_ARMADURA", "ACTION", "ADD", "AFLOJO_PUERTA_ARMADURA", "ORIENTA_OBAMA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA");
_local3 = AddItem("mcArmadura", "ARMADURA", "W", "Un caballero");
_local3.AddMsg("A knight");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "CONDITIONAL", "", "", "");
IterTask.AddCondition("DONTHAVE@MOVIO_ARMADURA", "MIRAR2");
IterTask.AddCondition("ELSE", "MIRAR3");
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "Est\u00E1 bloqueando la entrada a la puerta", "");
IterTask.AddMsg("He's blocking the entrance");
IterTask.Expresion = "Triste";
IterTask = _local2.AddTask("MIRAR3", "PANEL", 0, "Por fin el caballero puede descansar en paz", "");
IterTask.AddMsg("May the knight rest in peace");
IterTask.Expresion = "Alegre";
IterTask = _local2.AddTask("HABLAR", "WALK", "ITEM", "", "");
IterTask.ItemName = "ARMADURA";
IterTask.Position = "BACK";
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "Hola", "HABLAR");
IterTask.AddMsg("Hi");
IterTask.CanSpeed = false;
IterTask.WaitFramesAtEnd = 50;
IterTask = _local2.AddTask("HABLAR3", "PANEL", 0, "Al parecer no es de hablar mucho esta armadura", "HABLAR2");
IterTask.AddMsg("Apparently he doesn't like to talk much");
IterTask.Position = "FRONT";
IterTask.Expresion = "Triste";
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "No creo que pueda ganarle en un combate cuerpo a cuerpo", "");
IterTask.AddMsg("I don't think i can beat him in a hand to hand combat...");
IterTask.Expresion = "Asustado";
_local3 = AddItem("mcFlechaIzquierda", "FLECHA_IZQUIERDA", "W", "Regresar");
_local3.AddMsg("Go Back");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AENTRADA", "SCENE", "", "ENTRADA_ROOM", "CAMINAR");
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "LEFT";
IterTask.MovieName = "mcEntradaRoom.mcFlechaDerecha.mcTarget";
_local3 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA", "W", "Avanzar");
_local3.AddMsg("Go forward");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("AOVAL2", "SCENE", "", "NICK_ROOM", "CAMINAR");
IterTask.MovieName = "mcNickRoom.mcFlechaIzquierda.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("FREE_WALK", "MOUSE_STATE", "WALK", "ENABLED", "AOVAL2");
_local3 = AddItem("mcFlechaArriba", "FLECHA_ARRIBA_ARMADURA", "W", "Entrar");
_local3.AddMsg("Enter");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ENTRAR_CASA", "SCENE", "", "ESPEJO_ROOM", "CAMINAR");
IterTask.MovieName = "mcEspejoRoom.mcFlechaAbajo.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "BACK";
mcPuertaEspejo.mcFlechaArriba._visible = false;
mcPuertaEspejo.mcGuiaHechizo._visible = false;
var _local4;
_local4 = GetSceneByName("PUERTA_ESPEJO").AddSortRule("CABALLERO");
_local4.AddItem("FLECHA_ARRIBA_ARMADURA");
_local4.AddItem("AUXILIAR_ESCUDO");
_local4.AddItem("ARMADURA");
_local4.AddItem("PUERTA_ESPEJO");
}
function SF_Espejo_roomTasks() {
var _local3;
var _local2;
var _local4;
curScene = GetSceneByName("ESPEJO_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "START");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_PINZA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "PINZAS";
IterTask = _local2.AddTask("GANA_CALAVERA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("GANA_REVELUM", "ACTION", "ADD", "TIENE_REVELUM", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_ALOHOMORA", "ACTION", "ADD", "TIENE_ALOHOMORA", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_REPARO", "ACTION", "ADD", "TIENE_REPARO", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_PLUMA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("GANA_TINTA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "TINTA";
IterTask = _local2.AddTask("AFLOJO_BAUL", "ACTION", "ADD", "AFLOJO_BAUL", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_FLECHAS_RESTRICCION", "ITEM_RESTRICTION", "ADD", "FLECHA%", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_TERRENO_RESTRICCION", "ITEM_RESTRICTION", "ADD", "TERRENO%", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_CAPA_RESTRICCION", "ITEM_RESTRICTION", "ADD", "CAPA", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_CAPA_RESTRICCION", "ITEM_RESTRICTION", "ADD", "DELAY_RESTRICCION_CAPA", "GANA_ACCIO");
_local3 = AddItem(undefined, "DELAY_ESPEJO_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_ESPEJO_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendEspejo_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryEspejo_room", "I");
_local3 = AddItem(undefined, "MouseEspejo_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoEspejo_room", "T");
_local2 = _local3.AddFriend("MouseEspejo_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_ESPEJO_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_ESPEJO_ROOM", "Normal", "Front");
_local3 = AddItem("mcPeloUnicornio", "PELO_UNICORNIO", "W", "Un pelo de Unicornio");
_local3.AddMsg("A unicorn hair");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcAuxiliarCola", "AUXILIAR_COLA", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("PINZAS");
IterTask = _local2.AddTask("DECIDE_PELO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@SACO_PELO", "COMENTA_MOLESTAR");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_MOLESTAR", "PANEL", 0, "Eso ser\u00EDa abusar de la confianza del pobre unicornio", "");
IterTask.AddMsg("You really want to piss him off, don't you?");
IterTask.Expresion = "Amargo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_COLA", "WALK", "MOVIE", "", "BLOCKMOUSE");
IterTask.Position = "FRONT";
IterTask.MovieName = "mcGuiaCola";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "CAMINA_COLA");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_COLA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Lateral_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("SONIDO_UNICORNIO", "SOUND", "ASINCRONO", "", "CAMINA_COLA");
IterTask.SoundName = "cola_unicornio";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 2;
IterTask = _local2.AddTask("GANA_PELO", "INV", "ITEM", "ADD", "ESTIRA_MANO");
IterTask.ItemName = "PELO_UNICORNIO";
IterTask = _local2.AddTask("SACO_PELO", "ACTION", "ADD", "SACO_PELO", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "ESTIRA_MANO");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ESTIRA_MANO");
IterTask = _local2.AddTask("COMENTA_CUENTA", "PANEL", 0, "Menos mal que no se di\u00F3 cuenta", "FREEMOUSE");
IterTask.AddMsg("Lucky for us, he didn't notice");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local3 = AddItem("mcUnicornio", "UNICORNIO", "W", "Un unicornio");
_local3.AddMsg("An unicorn");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Parece un unicornio macho", "");
IterTask.AddMsg("Looks like a male unicorn");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No hablo unicor\u00F1ol", "");
IterTask.AddMsg("I don't speak unicornglish");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Mejor no lo toco, puede reaccionar mal", "");
IterTask.AddMsg("I better don't touch him, he might have a decease or something...");
_local3 = AddItem("mcEspejo", "ESPEJO", "W", "Un espejo");
_local3.AddMsg("A mirror");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@VIO_ESPEJO", "YAVIO");
IterTask.AddCondition("HAVE@REPARO_ESPEJO", "BLOCKMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_ESTA_ROTO");
IterTask = _local2.AddTask("COMENTA_ESTA_ROTO", "PANEL", 0, "No puedo verme est\u00E1 roto", "");
IterTask.AddMsg("I can't use it, it's broken");
IterTask.Expresion = "Triste";
IterTask = _local2.AddTask("YAVIO", "PANEL", 0, "Ya no es necesario verme otra vez", "");
IterTask.AddMsg("It's not necessary to look at me again");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_ESPEJO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("ASOMBRO", "PANEL", 0, "\u00BFQuee\u00E9?", "CAMINA_ESPEJO");
IterTask.AddMsg("Whaaat?");
IterTask = _local2.AddTask("SCREEN_ESPEJO", "SCREEN", "", "", "ASOMBRO");
IterTask.MovieName = "mcObamaEspejo";
IterTask = _local2.AddTask("SONIDO_ESPEJO", "SOUND", "SINCRONO", "", "ASOMBRO");
IterTask.SoundName = "gorda_shock";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("GANA_VIO_ESPEJO", "ACTION", "ADD", "VIO_ESPEJO", "ASOMBRO");
IterTask = _local2.AddTask("MUESTRA_UNICORNIO", "MOVIE_ITEM", "VISIBLE", true, "ASOMBRO");
IterTask.ItemName = "UNICORNIO";
IterTask = _local2.AddTask("MUESTRA_AUXILIAR_COLA", "MOVIE_ITEM", "VISIBLE", true, "ASOMBRO");
IterTask.ItemName = "AUXILIAR_COLA";
IterTask = _local2.AddTask("COMENTA_SUENO", "PANEL", 0, "De ni\u00F1o so\u00F1aba con tener un unicornio", "SCREEN_ESPEJO");
IterTask.AddMsg("I used to dream i had a unicorn... when i was a child of course...");
IterTask.Expresion = "Emocionado";
IterTask.CanSpeed = false;
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_SUENO");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "\u00BFNo ser\u00EDa mejor elegir 'VER'?", "");
IterTask.AddMsg("Wouldn't it be better to choose 'See'?");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "No es necesario llevarmelo", "");
IterTask.AddMsg("I don't need to take it with me");
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@REPARO_ESPEJO", "COMENTA_YAREPARO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_YAREPARO", "PANEL", 0, "Ya no es necesario hacerle un hechizo al espejo", "");
IterTask.AddMsg("It's already fixed...");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_REPARO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GRITA_REPARO", "PANEL", 0, "\u00A1Reparo!", "CAMINAR");
IterTask.AddMsg("Reparo!");
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("REPARA_ESPEJO", "MOVIE_ITEM", "GOTOANDSTOP", "", "GRITA_REPARO");
IterTask.ItemName = "ESPEJO";
IterTask.MovieFrame = "Reparado";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("REPARO_ESPEJO", "ACTION", "ADD", "REPARO_ESPEJO", "REPARA_ESPEJO");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "REPARA_ESPEJO");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask = _local2.AddTask("COMENTA_WALL", "PANEL", 0, "\u00A1Este hechizo est\u00E1 de pelos!", "ORIENTA_OBAMA");
IterTask.AddParentName("REPARA_ESPEJO");
IterTask.AddMsg("I kinda like this one!");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA");
_local3 = AddItem("mcFlechaAbajo", "FLECHA", "W", "Salir");
_local2 = _local3.AddFriend("MOUSE");
_local2.AddMsg("Leave");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("SALIR_CASA", "SCENE", "", "PUERTA_ESPEJO", "CAMINAR");
IterTask.MovieName = "mcPuertaEspejo.mcFlechaArriba.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "FRONT";
mcEspejoRoom.mcGuiaHechizo._visible = false;
mcEspejoRoom.mcUnicornio._visible = false;
mcEspejoRoom.mcAuxiliarCola._visible = false;
mcEspejoRoom.mcGuiaCola._visible = false;
var _local5;
}
function SF_Nick_roomTasks() {
var _local3;
var _local2;
var _local4;
curScene = GetSceneByName("NICK_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
_local3 = AddItem(undefined, "DELAY_NICK_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_NICK_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendNick_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryNick_room", "I");
_local3 = AddItem(undefined, "MouseNick_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoNick_room", "T");
_local2 = _local3.AddFriend("MouseNick_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_NICK_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_NICK_ROOM", "Normal", "Front");
_local3 = AddItem("mcNick", "NICK", "W", "Un fantasma");
_local3.AddMsg("A ghost");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Se le v\u00E9 muy tranquilo", "");
IterTask.AddMsg("He looks peaceful");
IterTask = _local2.AddTask("HABLAR", "WALK", "TARGET", "", "");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("DECIDE_SALUDAR", "CONDITIONAL", "", "", "HABLAR");
IterTask.AddCondition("HAVE@SALUDO_NICK", "DECIDE_DIALOGO");
IterTask.AddCondition("ELSE", "SALUDA");
IterTask = _local2.AddTask("SALUDA", "PANEL", 0, "Buenas tardes distinguido caballero", "");
IterTask.AddMsg("Good Afternoon, distinguished gentleman");
IterTask = _local2.AddTask("SALUDO_NICK", "ACTION", "ADD", "SALUDO_NICK", "SALUDA");
IterTask = _local2.AddTask("DECIDE_DIALOGO", "CONDITIONAL", "", "", "SALUDA");
IterTask.AddCondition("HAVE@ENTERO_PASSWORD", "DECISION_NICK2");
IterTask.AddCondition("ELSE", "DECISION_NICK1");
IterTask = _local2.AddTask("DECISION_NICK1", "TALK", "DIALOG", "DECISION_NICK1", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("DECISION_NICK2", "TALK", "DIALOG", "DECISION_NICK2", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Es imposible agarrar a un fantasma", "");
IterTask.AddMsg("Err... i can't grab a ghost");
_local3 = AddItem("mcFlechaIzquierda", "FLECHA_IZQUIERDA", "W", "Regresar");
_local3.AddMsg("Go Back");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("APANDA", "SCENE", "", "PUERTA_ESPEJO", "CAMINAR");
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "LEFT";
IterTask.MovieName = "mcNickRoom.mcFlechaDerecha.mcTarget";
_local3 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA", "W", "Avanzar");
_local3.AddMsg("Go forward");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("AOVAL2", "SCENE", "", "FAT_ROOM", "CAMINAR");
IterTask.MovieName = "mcFatRoom.mcFlechaIzquierda.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("FREE_WALK", "MOUSE_STATE", "WALK", "ENABLED", "AOVAL2");
var _local5;
InitDialogoNick();
}
function InitDialogoNick() {
var _local1;
Block = new objBlock("DECISION_NICK1", undefined, "", "O");
_local1 = Block.AddOption("\u00BFEs usted un fantasma de verdad?", "FANTASMA_1", false);
_local1.AddMsg("Are you a real ghost?");
_local1 = Block.AddOption("\u00BFD\u00F3nde puedo encontrar a Voldemord?", "PUEDOENCONTRAR_1", false);
_local1.AddMsg("Where can i find Voldemord?");
_local1 = Block.AddOption("\u00BFCu\u00E1l es su funci\u00F3n dentro de Hogwards?", "FUNCION_1", false);
_local1.AddMsg("What's your function here in Hogwards?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_NICK2", undefined, "", "O");
_local1 = Block.AddOption("\u00BFSabe cu\u00E1l es la palabra secreta de la se\u00F1ora gorda?", "SABEPASSWORD_1", false);
_local1.AddMsg("Do you know the password from the fat lady?");
_local1 = Block.AddOption("\u00BFD\u00F3nde puedo encontrar a Voldemord?", "PUEDOENCONTRAR_1", false);
_local1.AddMsg("Where can i find Voldemord?");
_local1 = Block.AddOption("\u00BFCu\u00E1l es su funci\u00F3n dentro de Hogwards?", "FUNCION_1", false);
_local1.AddMsg("What's your function here in Hogwards?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FANTASMA_1", "MAIN", "FANTASMA_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FANTASMA_2", "NICK", "FANTASMA_3", "B", "Arrochado", "Arrochado");
Block.Message = "Noooo..\u00A1que v\u00E1! me han ba\u00F1ado en harina y me han sujetado con un cable invisible ....";
Block.AddMsg("What does it look like?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FANTASMA_3", "NICK", "FANTASMA_4", "B", "Arrochado", "Arrochado");
Block.Message = "Por supuesto que soy un fantasma de verdad ... y el m\u00E1s importante de Hogwards por cierto";
Block.AddMsg("Of course i'm a real ghost... and the most important of Hogwards by the way");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FANTASMA_4", "NICK", "FANTASMA_5", "B", "Asombrado", "Asombrado");
Block.Message = "\u00BFAcaso no ha o\u00EDdo usted hablar del gran Sir Nichol\u00E1s?";
Block.AddMsg("Haven't you heard about the great Sir Nichol\u00E1s");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FANTASMA_5", "MAIN", "LAST_OPTION", "B", "Emocionado", "Normal");
Block.Message = "Estee ... si si ... claro c\u00F3mo no";
Block.AddMsg("Errr... yeah... i have... of course");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_1", "MAIN", "FUNCION_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_2", "NICK", "FUNCION_3", "B", "Emocionado", "Emocionado");
Block.Message = "\u00BFMi funci\u00F3n? \u00BFQu\u00E9 cu\u00E1l es mi funci\u00F3n? .... se v\u00E9 que no conoces nada de Hogwards jovencito";
Block.AddMsg("Function? What is my function?... You sure know nothing about Hogwards young man");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_3", "NICK", "FUNCION_4", "B", "Emocionado", "Emocionado");
Block.Message = "Mi funci\u00F3n es la m\u00E1s importante de todo la escuela de Hogwards";
Block.AddMsg("My function is the most important of all Hogwards");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_4", "MAIN", "FUNCION_5", "B", "Emocionado", "Emocionado");
Block.Message = "\u00BFY cu\u00E1l es?";
Block.AddMsg("And what function is that?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_5", "NICK", "FUNCION_6", "B", "Alegre", "Alegre");
Block.Message = "\u00BFMi funci\u00F3n? Estee ... me creer\u00E1 si le digo que he olvidado cu\u00E1l era mi funci\u00F3n";
Block.AddMsg("My function?.. Err... You wouldn't believe me if i tell you i forgot, would you?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FUNCION_6", "MAIN", "LAST_OPTION", "B", "Alegre", "Normal");
Block.Message = "Si le creo .. no se preocupe ... le sucede a los mejores fantasmas";
Block.AddMsg("Sigh... i'd believe you, don't worry... it happens to the greatest ghosts in Hogwards...");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_1", "MAIN", "PUEDOENCONTRAR_2", "B", "Alegre", "Alegre");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_2", "NICK", "PUEDOENCONTRAR_3", "B", "Asombrado", "Asombrado");
Block.Message = "No menciones el nombre del se\u00F1or tenebroso dentro de Hogwards ... es peligroso";
Block.AddMsg("Don't mention the name of the Dark Lord inside Hogwards... it's dangerous");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_3", "NICK", "PUEDOENCONTRAR_4", "B", "Asombrado", "Asombrado");
Block.Message = "Aunque puedo decirte que escuche por all\u00ED que est\u00E1 escondido en una isla oculta";
Block.AddMsg("Although i can tell you i heard he's hiding in a island");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_4", "NICK", "PUEDOENCONTRAR_5", "B", "Asombrado", "Asombrado");
Block.Message = "El \u00FAnico que conoce su paradero es Peter Pettipuff, pero nadie sabe donde est\u00E1";
Block.AddMsg("The only one who can tell you his whereabouts is Peter Pettipuff, but no one knows where is he");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_5", "NICK", "PUEDOENCONTRAR_6", "B", "Alegre", "Alegre");
Block.Message = "Si yo fuera t\u00FA tratar\u00EDa de alejarme del se\u00F1or oscuro antes de querer encontrarlo";
Block.AddMsg("If i were you, i'd try to stay away from the Dark Lord rather than find him");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_6", "MAIN", "PUEDOENCONTRAR_7", "B", "Triste", "Triste");
Block.Message = "Es que tengo que recuperar la moneda m\u00E1gica, el mundo muggle depende de ello.";
Block.AddMsg("I got to find the magic coin, the muggle world depends on it");
BlockAdmin.AddBlock(Block);
Block = new objBlock("PUEDOENCONTRAR_7", "NICK", "LAST_OPTION", "B", "Triste", "Normal");
Block.Message = "Bueno suerte entonces";
Block.AddMsg("Well, good luck then");
BlockAdmin.AddBlock(Block);
Block = new objBlock("SABEPASSWORD_1", "MAIN", "SABEPASSWORD_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("SABEPASSWORD_2", "NICK", "SABEPASSWORD_3", "B", "Triste", "Triste");
Block.Message = "\u00BFLa palabra secreta? Hmmm... realmente no la s\u00E9 ...";
Block.AddMsg("Password? Hmm... i really don't know");
BlockAdmin.AddBlock(Block);
Block = new objBlock("SABEPASSWORD_3", "NICK", "SABEPASSWORD_4", "B", "Alegre", "Alegre");
Block.Message = "Pero he escuchado que la se\u00F1ora gorda siempre la escribe en las paredes cerca a su cuadro";
Block.AddMsg("Although i've heard she always writes on the walls near her picture");
BlockAdmin.AddBlock(Block);
Block = new objBlock("SABEPASSWORD_4", "MAIN", "LAST_OPTION", "B", "Alegre", "Normal");
Block.Message = "Gracias por el dato";
Block.AddMsg("Thanks for the tip");
BlockAdmin.AddBlock(Block);
}
function SF_Fat_roomTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("FAT_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("INICIO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "INICIO");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "INICIO");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "INICIO");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "INICIO");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_REVELUM", "ACTION", "ADD", "TIENE_REVELUM", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ACCIO");
_local3 = AddItem(undefined, "DELAY_FAT_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_FAT_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendFat_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryFat_room", "I");
_local3 = AddItem(undefined, "MouseFat_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoFat_room", "T");
_local2 = _local3.AddFriend("MouseFat_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_FAT_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_FAT_ROOM", "Normal", "Front");
_local3 = AddItem("mcBooks", "LIBROS", "W", "Unos libros");
_local3.AddMsg("Some books");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Unos libros", "");
IterTask.AddMsg("Some books");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "\u00BFNo ser\u00EDa mejor leerlos?", "");
IterTask.AddMsg("Wouldn't it be better to read them?");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("OCULTA_LIBROS", "MOVIE_ITEM", "VISIBLE", false, "AGARRAR");
IterTask.ItemName = "LIBROS";
IterTask = _local2.AddTask("GANA_LIBRO_VERDE", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "LIBRO_VERDE";
IterTask = _local2.AddTask("GANA_LIBRO_ROJO", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "LIBRO_ROJO";
IterTask = _local2.AddTask("CAMBIA_COLOR", "ITEM_PROPERTY", "GRAPH_FRAME", "Rojo", "AGARRAR");
IterTask.ItemName = "LIBRO_ROJO";
IterTask = _local2.AddTask("GANA_LIBRO_AZUL", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("CAMBIA_COLOR", "ITEM_PROPERTY", "GRAPH_FRAME", "Azul", "AGARRAR");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("GANA_LIBRO_NEGRO", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "LIBRO_NEGRO";
IterTask = _local2.AddTask("CAMBIA_COLOR", "ITEM_PROPERTY", "GRAPH_FRAME", "Negro", "AGARRAR");
IterTask.ItemName = "LIBRO_NEGRO";
_local3 = AddItem("mcLibroVerde", "LIBRO_VERDE", "W", "Un libro verde");
_local3.ExportMovieName = "mcLibro";
_local3.AddMsg("A green book");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("INVENTORY");
IterTask = _local2.AddTask("VER_STORY", "SCREEN", "", "", "START_INV");
IterTask.MovieName = "mcDeskStory";
IterTask = _local2.AddTask("CAMBIA_INFO_LIBRO", "ITEM_PROPERTY", "INFO", "Hogwards: Leyendas Urbanas", "VER_STORY");
IterTask.AddMsg("Hogwards: Urban Legends");
IterTask.ItemName = "LIBRO_VERDE";
IterTask = _local2.AddTask("SONIDO_PAGINA", "SOUND", "ASINCRONO", "", "");
IterTask.SoundName = "page_turn";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
_local3 = AddItem("mcLibroRojo", "LIBRO_ROJO", "W", "Un libro rojo");
_local3.ExportMovieName = "mcLibro";
_local3.AddMsg("A red book");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("INVENTORY");
IterTask = _local2.AddTask("VER_STORY", "SCREEN", "", "", "START_INV");
IterTask.MovieName = "mcPotionsBook";
IterTask = _local2.AddTask("CAMBIA_INFO_LIBRO", "ITEM_PROPERTY", "INFO", "Pociones M\u00E1gicas II", "VER_STORY");
IterTask.AddMsg("Magical Potions II");
IterTask.ItemName = "LIBRO_ROJO";
IterTask = _local2.AddTask("SONIDO_PAGINA", "SOUND", "ASINCRONO", "", "");
IterTask.SoundName = "page_turn";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
_local3 = AddItem("mcLibroAzul", "LIBRO_AZUL", "W", "Un libro azul");
_local3.ExportMovieName = "mcLibro";
_local3.AddMsg("A blue book");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("INVENTORY");
IterTask = _local2.AddTask("VER_STORY", "SCREEN", "", "", "START_INV");
IterTask.MovieName = "mcSpellsBook";
IterTask = _local2.AddTask("CAMBIA_INFO_LIBRO", "ITEM_PROPERTY", "INFO", "El Libro General de Hechizos", "VER_STORY");
IterTask.AddMsg("The Standard Book of Spells");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("SONIDO_PAGINA", "SOUND", "ASINCRONO", "", "");
IterTask.SoundName = "page_turn";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
_local3 = AddItem("mcLibroNegro", "LIBRO_NEGRO", "W", "Un libro negro");
_local3.ExportMovieName = "mcLibro";
_local3.AddMsg("A black book");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("INVENTORY");
IterTask = _local2.AddTask("VER_STORY", "SCREEN", "", "", "START_INV");
IterTask.MovieName = "mcDarkBook";
IterTask = _local2.AddTask("CAMBIA_INFO_LIBRO", "ITEM_PROPERTY", "INFO", "Las Artes Oscuras: Gu\u00EDa de Autoprotecci\u00F3n", "VER_STORY");
IterTask.AddMsg("The Dark Forces: A Guide to Self-Protection");
IterTask.ItemName = "LIBRO_NEGRO";
IterTask = _local2.AddTask("SONIDO_PAGINA", "SOUND", "ASINCRONO", "", "");
IterTask.SoundName = "page_turn";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
_local3 = AddItem("mcAuxiliarPassword", "AUXILIAR_PASSWORD", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINA_PASSWORD", "WALK", "MOVIE", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask.MovieName = "mcGuiaPassword";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("MUESTRA_PASSWORD", "SCREEN", "", "", "CAMINA_PASSWORD");
IterTask.MovieName = "mcPassword";
IterTask = _local2.AddTask("VIO_PASSWORD", "ACTION", "ADD", "VIO_PASSWORD", "MUESTRA_PASSWORD");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MUESTRA_PASSWORD");
IterTask = _local2.AddTask("COMENTA_SABE_PWD", "PANEL", 0, "Encontr\u00E9 la palabra secreta", "MUESTRA_PASSWORD", "SCREEN");
IterTask.AddMsg("I found the password!");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local3 = AddItem("mcFatLady", "FAT_LADY", "W", "Un cuadro");
_local3.AddMsg("A portrait");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un cuadro de una se\u00F1ora gorda sonriendo", "");
IterTask.AddMsg("A picture of some fat lady smiling");
IterTask = _local2.AddTask("HABLAR", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@ABRIO_CUADRO", "NO_MOLESTO");
IterTask.AddCondition("ELSE", "HABLAR2");
IterTask = _local2.AddTask("NO_MOLESTO", "PANEL", 0, "Mejor ya no la molesto", "VIO_PASSWORD");
IterTask.AddMsg("I better stop bugging her");
IterTask = _local2.AddTask("HABLAR2", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DECIDE_HABLAR", "CONDITIONAL", "", "", "HABLAR2");
IterTask.AddCondition("DONTHAVE@VIO_PASSWORD", "DIALOGO1");
IterTask.AddCondition("ELSE", "DIALOGO2");
IterTask = _local2.AddTask("DIALOGO1", "TALK", "DIALOG", "DECISION_GORDA1", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("DIALOGO2", "TALK", "DIALOG", "DECISION_GORDA3", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("DIJO_PASSWORD", "ACTION", "ADD", "DIJO_PASSWORD", "");
IterTask = _local2.AddTask("ENTERO_PASSWORD", "ACTION", "ADD", "ENTERO_PASSWORD", "");
IterTask = _local2.AddTask("DECIDE_ABRIR", "CONDITIONAL", "", "", "DIALOGO2");
IterTask.AddCondition("HAVE@DIJO_PASSWORD", "ABRIR");
IterTask.AddCondition("ELSE", "NADA");
IterTask = _local2.AddTask("ABRIR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("ABRIR2", "MOVIE_ITEM", "GOTOANDPLAY", "", "ABRIR");
IterTask.ItemName = "FAT_LADY";
IterTask.MovieFrame = "Abre";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("ABRIO_CUADRO", "ACTION", "ADD", "ABRIO_CUADRO", "ABRIR2");
IterTask = _local2.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "ABRIR2");
IterTask.ItemName = "FLECHA_GORDA";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MUESTRA_FLECHA");
IterTask = _local2.AddTask("COMENTA_PUERTA", "PANEL", 0, "Es muy \u00E1gil est\u00E1 se\u00F1ora gorda", "ABRIR2");
IterTask.AddMsg("Hmm, she's quite agile");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Ser\u00EDa de mala educaci\u00F3n hacer eso", "");
IterTask.AddMsg("It would be rude to do that");
_local3 = AddItem("mcFlechaIzquierda", "FLECHA_IZQUIERDA", "W", "Regresar");
_local3.AddMsg("Go Back");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("APANDA", "SCENE", "", "NICK_ROOM", "CAMINAR");
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "LEFT";
IterTask.MovieName = "mcNickRoom.mcFlechaDerecha.mcTarget";
_local3 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA", "W", "Avanzar");
_local3.AddMsg("Go forward");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DECIDE_ABRE_PUERTA_FISH", "CONDITIONAL", "", "", "CAMINAR");
IterTask.AddCondition("HAVE@ABRIO_PUERTA_FILCH", "A_FILCH");
IterTask.AddCondition("ELSE", "ABRE_PUERTA_FILCH");
IterTask = _local2.AddTask("ABRE_PUERTA_FILCH", "MOVIE_ITEM", "GOTOANDSTOP", "", "");
IterTask.ItemName = "PUERTA_FILCH";
IterTask.MovieFrame = "Abierta";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("ABRIO_PUERTA_FILCH", "ACTION", "ADD", "ABRIO_PUERTA_FILCH", "ABRE_PUERTA_FILCH");
IterTask = _local2.AddTask("A_FILCH", "SCENE", "", "FILCH", "");
IterTask.AddFinishParentName("ABRE_PUERTA_FILCH");
IterTask.MovieName = "mcFilch.mcFlechaIzquierda.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DECIDE_CAPTURA", "CONDITIONAL", "", "", "A_FILCH");
IterTask.AddCondition("HAVE@PUSO_CAPA", "FREEMOUSE");
IterTask.AddCondition("ELSE", "AMPAY");
IterTask = _local2.AddTask("AMPAY", "DUMMY", "", "", "");
IterTask = _local2.AddTask("SONIDO_FILCH", "SOUND", "SINCRONO", "", "AMPAY");
IterTask.SoundName = "filch";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("GRITA_FILCH", "TALK", "DIALOG", "CAPTURA_1", "AMPAY");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("MUESTRA_OBAMAFILCH", "SCREEN", "", "", "GRITA_FILCH");
IterTask.MovieName = "mcObamaFilch";
IterTask = _local2.AddTask("A_FAT", "SCENE", "", "FAT_ROOM", "GRITA_FILCH");
IterTask.MovieName = "mcFatRoom.mcFlechaDerecha.mcTarget";
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "A_FAT");
_local3 = AddItem("mcHuecoCuadro", "HUECO_CUADRO", "W", "Entrar");
_local3.AddMsg("Enter");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_PERSONA", "CHAR_DIRECTION", "", "LEFT", "CAMINAR");
IterTask = _local2.AddTask("ENTRA_CUADRO", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "EntraCuadro";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ENTRAR_CASA", "SCENE", "", "CUARTO_HARRY", "ENTRA_CUADRO");
IterTask.MovieName = "mcCuartoHarry.mcFlechaAbajo.mcTarget";
IterTask.Transition = false;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "BACK";
mcFatRoom.mcGuiaFat._visible = false;
mcFatRoom.mcCuartoHarryCartel.gotoAndStop(Language);
mcFatRoom.mcGuiaPassword._visible = false;
var _local4;
_local4 = GetSceneByName("FAT_ROOM").AddSortRule("GORDA");
_local4.AddItem("FAT_LADY");
_local4.AddItem("HUECO_CUADRO");
InitDialogoFatLady();
}
function InitDialogoFatLady() {
var _local1;
Block = new objBlock("DECISION_GORDA1", undefined, "", "O");
_local1 = Block.AddOption("\u00BFPodr\u00EDa dejarme entrar?", "DEJARENTRAR_1", false);
_local1.AddMsg("Could you let me through?");
_local1 = Block.AddOption("Bonito vestido", "VESTIDO_1", false);
_local1.AddMsg("Nice dress");
_local1 = Block.AddOption("\u00BFNo se aburre de estar todo el tiempo en el cuadro?", "ABURRE_1", false);
_local1.AddMsg("Don't you get bored?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_GORDA2", undefined, "", "O");
_local1 = Block.AddOption("\u00BFMe puede decir la palabra secreta?", "DECIRPASSWORD_1", false);
_local1.AddMsg("Can you tell me the password?");
_local1 = Block.AddOption("Bonito vestido", "VESTIDO_1", false);
_local1.AddMsg("Nice dress");
_local1 = Block.AddOption("\u00BFNo se aburre de estar todo el tiempo en el cuadro?", "ABURRE_1", false);
_local1.AddMsg("Don't you get bored?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_GORDA3", undefined, "", "O");
_local1 = Block.AddOption("\u00BFPodr\u00EDa dejarme entrar?", "DEJARENTRARB_1", false);
_local1.AddMsg("Could you let me through?");
_local1 = Block.AddOption("Bonito vestido", "VESTIDO_1", false);
_local1.AddMsg("Nice dress");
_local1 = Block.AddOption("\u00BFNo se aburre de estar todo el tiempo en el cuadro?", "ABURRE_1", false);
_local1.AddMsg("Don't you get bored?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRARB_1", "MAIN", "DEJARENTRARB_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRARB_2", "FAT_LADY", "DEJARENTRARB_3", "B", "Arrochado", "Arrochado");
Block.Message = "Primero dime la palabra secreta";
Block.TaskToLunchAtEnd = "ENTERO_PASSWORD";
Block.AddMsg("First tell me the password");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRARB_3", "MAIN", "DECISION_PASSWORD2", "B", "Arrochado", "Emocionado");
Block.Message = "esteee ... \u00BFPalabra secreta? ... si como no ... ahorita le digo";
Block.AddMsg("Hmmm... password?... yeah right, one second...");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_PASSWORD", undefined, "", "O");
_local1 = Block.AddOption("Abrete S\u00E9samo", "SESAMO_1", false);
_local1.AddMsg("Open Sesame");
_local1 = Block.AddOption("Facebook", "FACEBOOK_1", false);
_local1.AddMsg("Jonas brothers?");
_local1 = Block.AddOption("123", "123_1", false);
_local1.AddMsg("123?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_PASSWORD2", undefined, "", "O");
_local1 = Block.AddOption("Abrete S\u00E9samo", "SESAMO_1", false);
_local1.AddMsg("Open Sesame");
_local1 = Block.AddOption("Michael", "MICHAEL_1", false);
_local1.AddMsg("Michael");
_local1 = Block.AddOption("123", "123_1", false);
_local1.AddMsg("123?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("SESAMO_1", "MAIN", "PASSWORD_INCORRECTO", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("FACEBOOK_1", "MAIN", "PASSWORD_INCORRECTO", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("123_1", "MAIN", "PASSWORD_INCORRECTO", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("MICHAEL_1", "MAIN", "PASSWORD_CORRECTO", "B", "Emocionado", "Emocionado");
Block.StartLock = true;
Block.TaskToLunchAtEnd = "DIJO_PASSWORD";
BlockAdmin.AddBlock(Block);
Block = new objBlock("PASSWORD_CORRECTO", "FAT_LADY", "", "B", "Alegre", "Normal");
Block.Message = "Felicidades, la palabra es correcta ... ahora te dejar\u00E9 entrar";
Block.AddMsg("Congratulations, the password is correct");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("PASSWORD_INCORRECTO", "FAT_LADY", "DISCULPE", "B", "Arrochado", "Arrochado");
Block.Message = "Ese no es el password, no trate de sorprenderme o llamo al guardi\u00E1n";
Block.AddMsg("That's not the password, don't try to cheat or i'll call the guard");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DISCULPE", "MAIN", "", "B", "Arrochado", "Normal");
Block.Message = "Este ... no s\u00E9 c\u00F3mo pude equivocarme ... je je disculpe usted";
Block.AddMsg("Err... i'm sorry, my mistake");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRAR_1", "MAIN", "DEJARENTRAR_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRAR_2", "FAT_LADY", "DEJARENTRAR_3", "B", "Arrochado", "Arrochado");
Block.Message = "Primero dime la palabra secreta";
Block.TaskToLunchAtEnd = "ENTERO_PASSWORD";
Block.AddMsg("First tell me the password");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJARENTRAR_3", "MAIN", "DECISION_PASSWORD", "B", "Arrochado", "Emocionado");
Block.Message = "esteee ... \u00BFPalabra secreta? ... si como no ... ahorita le digo";
Block.AddMsg("Hmmm... password?... yeah right, one second...");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECIRPASSWORD_1", "MAIN", "DECIRPASSWORD_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECIRPASSWORD_2", "FAT_LADY", "DECIRPASSWORD_3", "B", "Emocionado", "Emocionado");
Block.Message = "De ninguna manera, va contra las reglas de Hogwards";
Block.AddMsg("No way, that's against the rules");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECIRPASSWORD_3", "MAIN", "DECIRPASSWORD_4", "B", "Emocionado", "Emocionado");
Block.Message = "Le prometo que si me la dice, no le dir\u00E9 a nadie que viol\u00F3 las reglas";
Block.AddMsg("I promise if you tell me i won't tell anyone you broke the rules");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECIRPASSWORD_4", "FAT_LADY", "DECIRPASSWORD_5", "B", "Asustado", "Asustado");
Block.Message = "No insista por favor o llamar\u00E9 al guardi\u00E1n";
Block.AddMsg("Don't insist or i'll call the guard");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECIRPASSWORD_5", "MAIN", "", "B", "Emocionado", "Normal");
Block.Message = "Ok ok ... no se moleste";
Block.AddMsg("Ok ok... calm down");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("VESTIDO_1", "MAIN", "VESTIDO_2", "B", "Alegre", "Alegre");
BlockAdmin.AddBlock(Block);
Block = new objBlock("VESTIDO_2", "FAT_LADY", "VESTIDO_3", "B", "Arrochado", "Arrochado");
Block.Message = "\u00BFPretende adularme para obtener de m\u00ED alg\u00FAn favor?";
Block.AddMsg("Stop with the flattering, will you");
BlockAdmin.AddBlock(Block);
Block = new objBlock("VESTIDO_3", "MAIN", "VESTIDO_4", "B", "Arrochado", "Arrochado");
Block.Message = "No .. yo ... la verdad ... solo dec\u00EDa que el vestido era bonito";
Block.AddMsg("Err... I just... was saying your dress was pretty");
BlockAdmin.AddBlock(Block);
Block = new objBlock("VESTIDO_4", "FAT_LADY", "VESTIDO_5", "B", "Arrochado", "Arrochado");
Block.Message = "Le advierto que eso no funciona conmigo ... circule por favor";
Block.AddMsg("I'm warning you that won't work with me");
BlockAdmin.AddBlock(Block);
Block = new objBlock("VESTIDO_5", "MAIN", "", "B", "Arrochado", "Normal");
Block.Message = "Disculpe usted ...";
Block.AddMsg("Im sorry");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("ABURRE_1", "MAIN", "ABURRE_2", "B", "Malevolo", "Malevolo");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ABURRE_2", "FAT_LADY", "ABURRE_3", "B", "Asombrado", "Asombrado");
Block.Message = "Bueno, aunque usted no lo crea este trabajo es divertido";
Block.AddMsg("Well, believe it or not, this job is not boring");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ABURRE_3", "MAIN", "ABURRE_4", "B", "Asombrado", "Asombrado");
Block.Message = "\u00BFDivertido? ... \u00BFC\u00F3mo as\u00ED?";
Block.AddMsg("Ohh yea? How so?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ABURRE_4", "FAT_LADY", "ABURRE_5", "B", "Arrochado", "Arrochado");
Block.Message = "Me divierte cuando alguien quiere entrar y no sabe la palabra secreta ... ji ji ji";
Block.AddMsg("It amuses me when someone wants to get in but doesn't know the password... like you, he he he");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ABURRE_5", "MAIN", "LAST_OPTION", "B", "Arrochado", "Normal");
Block.Message = "Se aprovechan de mi nobleza";
Block.AddMsg("Didn't see that coming");
BlockAdmin.AddBlock(Block);
}
function SF_Cuarto_harryTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("CUARTO_HARRY");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "START");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_CALAVERA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("GANA_REVELUM", "ACTION", "ADD", "TIENE_REVELUM", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ALOHOMORA");
IterTask = _local2.AddTask("GANA_PLUMA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("GANA_TINTA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "TINTA";
IterTask = _local2.AddTask("GANA_LION", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "LION_SHIELD";
IterTask = _local2.AddTask("AFLOJO_BAUL", "ACTION", "ADD", "AFLOJO_BAUL", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_FLECHAS_RESTRICCION", "ITEM_RESTRICTION", "ADD", "FLECHA%", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_TERRENO_RESTRICCION", "ITEM_RESTRICTION", "ADD", "TERRENO%", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_CAPA_RESTRICCION", "ITEM_RESTRICTION", "ADD", "CAPA", "GANA_ACCIO");
IterTask = _local2.AddTask("AGREGA_CAPA_RESTRICCION", "ITEM_RESTRICTION", "ADD", "DELAY_RESTRICCION_CAPA", "GANA_ACCIO");
_local3 = AddItem(undefined, "DELAY_RESTRICCION_CAPA", "D");
_local2 = _local3.AddFriend("DELAY_RESTRICCION_CAPA", "", "");
IterTask = _local2.AddTask("COMENTA_RESTRICCION_CAPA", "PANEL", 0, "Para hacer eso antes debo quitarme la capa", "START");
IterTask.AddMsg("I can't do that while wearing the cloak");
IterTask.Position = "Front";
_local3 = AddItem(undefined, "DELAY_CUARTO_HARRY", "D");
_local2 = _local3.AddFriend("DELAY_CUARTO_HARRY_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendCuarto_harry = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryX", "I");
_local3 = AddItem(undefined, "MouseCuarto_harry", "M");
_local3 = AddItem("mcWalkRange", "TerrenoCuarto_harry", "T");
_local2 = _local3.AddFriend("MouseCuarto_harry", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_CUARTO_HARRY", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_CUARTO_HARRY", "Normal", "Front");
_local3 = AddItem("mcBludger", "BLUDGER", "W", "Una pelota pesada");
_local3.AddMsg("A heavy ball");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una pelota para los juegos de Quidditch", "");
IterTask.AddMsg("A heavy ball for Quidditch games");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No creo que me responda", "");
IterTask.AddMsg("No way");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Est\u00E1 muy alto", "");
IterTask.AddMsg("It's too high");
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ACCIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "Ese hechizo no me traer\u00E1 la budger", "");
IterTask.AddMsg("I don't think that spell is gonna do any good");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba2";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA", "PANEL", 0, "\u00A1\u00A1\u00A1ACCIO BUDGER!!!", "CAMINAR");
IterTask.AddMsg("ACCIO BUDGER!!!");
IterTask = _local2.AddTask("BAJA_ITEM", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ESTIRA_VARITA");
IterTask.ItemName = "BLUDGER";
IterTask.MovieFrame = "Baja";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GANA_ITEM", "INV", "ITEM", "ADD", "BAJA_ITEM");
IterTask.ItemName = "BLUDGER";
IterTask = _local2.AddTask("GANO_BLUDGER", "ACTION", "ADD", "GANO_BLUDGER", "BAJA_ITEM");
IterTask = _local2.AddTask("COMENTA_GANA", "PANEL", 0, "Esta budger est\u00E1 muy pesada", "GANA_ITEM");
IterTask.AddMsg("This budger is heavy as hell");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_GANA");
IterTask = _local2.AddTask("MANEJA_BUDGER_TROLL", "DELAY", "", 0, "START_INV");
IterTask.ItemName = "DELAY_TROLL_ROOM";
IterTask.FriendToLunch = "DELAY_BUDGER";
_local3 = AddItem("mcTinta", "TINTA", "W", "Un pomo de tinta");
_local3.AddMsg("An ink pot");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un pomo de tinta", "");
IterTask.AddMsg("Ink");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No lo creo", "");
IterTask.AddMsg("I don't think so");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("GANA_TINTA", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "TINTA";
_local2 = _local3.AddFriend("PLUMA_FENIX");
IterTask = _local2.AddTask("DECIDE_AGREGAR_TINTA", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@ESCRIBIO_OBAMA", "COMENTA_YA_ESCRIBIO");
IterTask.AddCondition("HAVE@AGREGO_TINTA", "COMENTA_YA_TIENE_TINTA");
IterTask.AddCondition("ELSE", "CAMBIA_INFO");
IterTask = _local2.AddTask("COMENTA_YA_ESCRIBIO", "PANEL", 0, "Ya escrib\u00ED lo que necesitaba", "");
IterTask.AddMsg("I already wrote what i needed");
IterTask = _local2.AddTask("COMENTA_YA_TIENE_TINTA", "PANEL", 0, "La pluma ya tiene tinta", "");
IterTask.AddMsg("There's already ink on the feather");
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Pluma con tinta", "");
IterTask.AddMsg("Feather with ink");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("CAMBIA_TINTA", "ITEM_PROPERTY", "GRAPH_FRAME", "Tinta", "CAMBIA_INFO");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("AGREGO_TINTA", "ACTION", "ADD", "AGREGO_TINTA", "CAMBIA_TINTA");
_local3 = AddItem("mcLionShield", "LION_SHIELD", "W", "");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un s\u00EDmbolo pegado en la pared", "");
IterTask.AddMsg("A symbol stuck to the wall");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Ni modo", "");
IterTask.AddMsg("Sure, let's talk to the inanimated object... sigh");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Esta demasiado alto", "");
IterTask.AddMsg("It's too high");
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ACCIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "No creo que ese hechizo resulte", "");
IterTask.AddMsg("i dont't think that spell will work");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba3";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA", "PANEL", 0, "\u00A1\u00A1\u00A1ACCIO!!!", "CAMINAR");
IterTask.CanSpeed = false;
IterTask.AddMsg("ACCIO!!!");
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA2", "PANEL", 0, "No funciona ... que raro, tendr\u00E9 que buscar la manera de subir", "LLAMA");
IterTask.AddMsg("It doesn't work, that's funny ... I'll have to find a way to go up");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA2");
_local2 = _local3.AddFriend("ESCOBA", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("MONTA_ESCOBA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "SubeEscoba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("VUELO1", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "MONTA_ESCOBA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VueloEscobaEscudo1";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("CAMBIO_INFO", "ITEM_PROPERTY", "INFO", "Placa de Le\u00F3n", "VUELO1");
IterTask.AddMsg("Lion Plaque");
IterTask.ItemName = "LION_SHIELD";
IterTask = _local2.AddTask("GANA_LEON", "INV", "ITEM", "ADD", "VUELO1");
IterTask.ItemName = "LION_SHIELD";
IterTask = _local2.AddTask("VUELO2", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "VUELO1");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VueloEscobaEscudo2";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("BAJA_ESCOBA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "VUELO2");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "BajaEscoba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "BAJA_ESCOBA");
IterTask = _local2.AddTask("COMENTA_GANA", "PANEL", 0, "A eso llamo yo un vuelo veloz", "FREEMOUSE");
IterTask.AddMsg("You gotta admit that was cool");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local3 = AddItem("mcAuxiliarCajon2", "AUXILIAR_CAJON2", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("CALAVERA_AMARILLA", "", "");
IterTask = _local2.AddTask("DECIDE_PONER", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@ABRIO_CAJON1", "CAMINA_CAJON2");
IterTask.AddCondition("ELSE", "NADA");
IterTask = _local2.AddTask("CAMINA_CAJON2", "WALK", "ITEM", "", "");
IterTask.Position = "BACK";
IterTask.ItemName = "CAJON2";
IterTask = _local2.AddTask("PIERDE_CALAVERA", "INV", "ITEM", "DROP", "CAMINA_CAJON2");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("PUSO_CALAVERA", "ACTION", "ADD", "PUSO_CALAVERA", "PIERDE_CALAVERA");
IterTask = _local2.AddTask("OCULTA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", false, "PUSO_CALAVERA");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("CAJON_CALAVERA", "MOVIE_ITEM", "GOTOANDSTOP", "", "PIERDE_CALAVERA");
IterTask.ItemName = "CAJON2";
IterTask.MovieFrame = "CerrarCalavera";
IterTask.AnimationMode = "ASYNC";
_local3 = AddItem("mcAuxiliarCajon1", "AUXILIAR_CAJON1", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "CAMINA_CAJON1";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una rana sonriendo", "");
IterTask.AddMsg("A smiley frog");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Los chocofrogs no hablan", "");
IterTask.AddMsg("Chocofrogs don't talk");
IterTask = _local2.AddTask("CAMINA_CAJON1", "WALK", "ITEM", "", "");
IterTask.Position = "BACK";
IterTask.ItemName = "CAJON1";
IterTask = _local2.AddTask("OCULTA_AUXILIAR1", "MOVIE_ITEM", "VISIBLE", false, "CAMINA_CAJON1");
IterTask.ItemName = "AUXILIAR_CAJON1";
IterTask = _local2.AddTask("CAJON1_VACIO", "MOVIE_ITEM", "GOTOANDSTOP", "", "OCULTA_AUXILIAR1");
IterTask.ItemName = "CAJON1";
IterTask.MovieFrame = "Abierto";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("GANA_RANA", "INV", "ITEM", "ADD", "OCULTA_AUXILIAR1");
IterTask.ItemName = "CHOCOFROG";
IterTask = _local2.AddTask("GANO_RANA", "ACTION", "ADD", "GANO_RANA", "OCULTA_AUXILIAR1");
_local3 = AddItem("mcPergamino", "PERGAMINO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Parece un papel viejo", "");
IterTask.AddMsg("An old paper");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No soy termita", "");
IterTask.AddMsg("Should i start chewing it?");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("GANA_PERGAMINO", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "PERGAMINO";
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Un trozo de papel viejo", "AGARRAR");
IterTask.AddMsg("A piece of paper");
IterTask.ItemName = "PERGAMINO";
_local2 = _local3.AddFriend("INVENTORY", "", "");
IterTask = _local2.AddTask("MENU1", "MENUINV", "", "", "START_INV");
IterMenu = IterTask.AddMenuItem("Ver", "DECIDE_VER");
IterMenu.AddMsg("Look");
IterMenu = IterTask.AddMenuItem("Entregar", "DRAG_ACTION");
IterMenu.AddMsg("Deliver");
IterTask = _local2.AddTask("DECIDE_VER", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@ESCRIBIO_OBAMA", "MUESTRA_PERGAMINO_OBAMA");
IterTask.AddCondition("HAVE@REVELO_LETRAS", "MUESTRA_PERGAMINO_LETRAS");
IterTask.AddCondition("ELSE", "MUESTRA_PERGAMINO_VACIO");
IterTask = _local2.AddTask("MUESTRA_PERGAMINO_VACIO", "SCREEN", "", "", "");
IterTask.MovieName = "mcPergaminoScreen";
IterTask.MovieFrame = "Normal";
IterTask = _local2.AddTask("COMENTA_OCULTO", "PANEL", 0, "Estoy seguro que hay algo oculto con magia en ese papel", "MUESTRA_PERGAMINO_VACIO");
IterTask.AddMsg("I'm sure there's something hidden with magic in this paper ");
IterTask.CanSpeed = false;
IterTask.Position = "Front";
IterTask = _local2.AddTask("MUESTRA_PERGAMINO_LETRAS", "SCREEN", "", "", "");
IterTask.MovieName = "mcPergaminoScreen";
IterTask.MovieFrame = "Revelado";
IterTask = _local2.AddTask("MUESTRA_PERGAMINO_OBAMA", "SCREEN", "", "", "");
IterTask.MovieName = "mcPergaminoScreen";
IterTask.MovieFrame = "Escrito";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@REVELO_LETRAS", "COMENTA_YA_REVELO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_YA_REVELO", "PANEL", 0, "Ya logr\u00E9 revelar el contenido del pergamino, no es necesario usar m\u00E1s magia", "");
IterTask.AddMsg("I already revealed the content of the paper, magic on it it's not necessary anymore");
IterTask.CanSpeed = false;
IterTask.Position = "Front";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_REVELUM", "ROMPE_SCREEN_LAZO");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "Ese hechizo no es el adecuado", "");
IterTask.AddMsg("That's not the right spell");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("ROMPE_SCREEN_LAZO", "DUMMY", "", "", "");
IterTask = _local2.AddTask("MUESTRA_LETRAS", "SCREEN", "", "", "ROMPE_SCREEN_LAZO");
IterTask.MovieName = "mcPergaminoScreen";
IterTask.MovieFrame = "Revela";
IterTask = _local2.AddTask("REVELO_LETRAS", "ACTION", "ADD", "REVELO_LETRAS", "MUESTRA_LETRAS");
IterTask = _local2.AddTask("CAMBIA_ITEM_LETRAS", "ITEM_PROPERTY", "GRAPH_FRAME", "Revelado", "MUESTRA_LETRAS");
IterTask.ItemName = "PERGAMINO";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MUESTRA_LETRAS");
_local2 = _local3.AddFriend("PLUMA_FENIX", "", "");
IterTask = _local2.AddTask("DECIDE_ESCRIBE", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@ESCRIBIO_OBAMA", "COMENTA_YA_ESCRIBIO");
IterTask.AddCondition("DONTHAVE@REVELO_LETRAS", "COMENTA_PAPEL_BLANCO");
IterTask.AddCondition("DONTHAVE@AGREGO_TINTA", "COMENTA_PLUMA_NO_ESCRIBE");
IterTask.AddCondition("ELSE", "ESCRIBIR");
IterTask = _local2.AddTask("COMENTA_YA_ESCRIBIO", "PANEL", 0, "Ya escrib\u00ED lo necesario", "");
IterTask.AddMsg("I already wrote what i needed");
IterTask = _local2.AddTask("COMENTA_PAPEL_BLANCO", "PANEL", 0, "El pergamino est\u00E1 vac\u00EDo, no tiene caso escribir en \u00E9l", "");
IterTask.AddMsg("The paper is empty, it's pointless to write on it");
IterTask = _local2.AddTask("COMENTA_PLUMA_NO_ESCRIBE", "PANEL", 0, "La pluma no escribe a\u00FAn", "");
IterTask.AddMsg("Good idea, but i need to soak it in something first");
IterTask = _local2.AddTask("ESCRIBIR", "SCREEN", "", "", "");
IterTask.MovieName = "mcPergaminoScreen";
IterTask.MovieFrame = "Escribe";
IterTask = _local2.AddTask("ESCRIBIO_OBAMA", "ACTION", "ADD", "ESCRIBIO_OBAMA", "ESCRIBIR");
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Pluma", "ESCRIBIO_OBAMA");
IterTask.AddMsg("Feather");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("CAMBIA_TINTA", "ITEM_PROPERTY", "GRAPH_FRAME", "Normal", "CAMBIA_INFO");
IterTask.ItemName = "PLUMA_FENIX";
_local3 = AddItem("mcComoda", "COMODA", "W", "C\u00F3moda");
_local3.DestroyMouseEvents();
_local3.AddMsg("Chest of drawers");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Mirar", "Una c\u00F3moda");
IterTask.AddMsg("A chest of drawers");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Hablar", "Ni modo");
IterTask.AddMsg("No way");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Agarrar", "Es muy pesado");
IterTask.AddMsg("It's too heavy");
_local3 = AddItem("mcCapa", "CAPA", "W", "Capa");
_local3.AddMsg("Cloak");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una capa", "");
IterTask.AddMsg("A cloak");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No creo que pueda hablar con la capa", "");
IterTask.AddMsg("I don't like to talk to cloaks");
IterTask = _local2.AddTask("AGARRAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_BAUL", "WALK", "TARGET", "", "AGARRAR");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("AGACHA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_BAUL");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "AgachaMedio";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("AGARRA_CAPA", "INV", "ITEM", "ADD", "AGACHA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("PARA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "AGARRA_CAPA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "AGARRA_CAPA");
_local2 = _local3.AddFriend("INVENTORY", "", "");
IterTask = _local2.AddTask("DECIDE_MENU", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@CAPA_ANULADA", "COMENTA");
IterTask.AddCondition("HAVE@PUSO_CAPA", "MENU2");
IterTask.AddCondition("ELSE", "MENU1");
IterTask = _local2.AddTask("COMENTA", "PANEL", 0, "En este lugar no puedo usar la capa", "FREEMOUSE");
IterTask.AddMsg("I can't use the cloak in this place");
IterTask.Position = "Front";
IterTask = _local2.AddTask("MENU1", "MENUINV", "", "", "");
IterMenu = IterTask.AddMenuItem("Usar", "USAR");
IterMenu.AddMsg("Use");
IterMenu = IterTask.AddMenuItem("Entregar", "DRAG_ACTION");
IterMenu.AddMsg("Deliver");
IterTask = _local2.AddTask("MENU2", "MENUINV", "", "", "");
IterMenu = IterTask.AddMenuItem("Quitar", "QUITAR");
IterMenu.AddMsg("Remove");
IterTask = _local2.AddTask("USAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("ORIENTA_DERECHA", "CHAR_DIRECTION", "", "RIGHT", "USAR");
IterTask = _local2.AddTask("PONECAPA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "USAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "PoneCapa";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("INVISIBLE", "MOVIE_ITEM", "ALPHA", 30, "PONECAPA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask = _local2.AddTask("EMPIEZA_RESTRICCION", "ITEM_RESTRICTION", "START", "", "PONECAPA");
IterTask.ItemName = "DELAY_RESTRICCION_CAPA";
IterTask.FriendToLunch = "DELAY_RESTRICCION_CAPA";
IterTask = _local2.AddTask("PARA_FRENTE", "CHAR_DIRECTION", "", "FRONT", "PONECAPA");
IterTask.Expresion = "Normal";
IterTask = _local2.AddTask("PUSO_CAPA", "ACTION", "ADD", "PUSO_CAPA", "PARA_FRENTE");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "PUSO_CAPA");
IterTask = _local2.AddTask("QUITAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("QUITARCAPA", "DUMMY", "", "", "QUITAR");
IterTask = _local2.AddTask("ORIENTA_DERECHA", "CHAR_DIRECTION", "", "RIGHT", "QUITARCAPA");
IterTask = _local2.AddTask("QUITA_CAPA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "QUITARCAPA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "SacaCapa";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("VISIBLE", "MOVIE_ITEM", "ALPHA", 100, "QUITARCAPA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask = _local2.AddTask("EMPIEZA_RESTRICCION", "ITEM_RESTRICTION", "END", "", "QUITA_CAPA");
IterTask = _local2.AddTask("PARA_FRENTE2", "CHAR_DIRECTION", "", "FRONT", "QUITA_CAPA");
IterTask.Expresion = "Normal";
IterTask = _local2.AddTask("QUITO_CAPA", "ACTION", "DROP", "PUSO_CAPA", "PARA_FRENTE2");
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "QUITO_CAPA");
_local3 = AddItem("mcChocoFrog", "CHOCOFROG", "W", "Rana de Chocolate");
_local3.AddMsg("Chocolate Frog");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Se ven deliciosas", "");
IterTask.AddMsg("They look delicious");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Esas ranas no responden", "");
IterTask.AddMsg("Chocolate Frogs don't talk");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("GANA_RANA", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "CHOCOFROG";
_local2 = _local3.AddFriend("CUCHARON");
IterTask = _local2.AddTask("DECIDE_MOJAR", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("DONTHAVE@LLENO_CUCHARON", "LLENAR_CUCHARON");
IterTask.AddCondition("HAVE@MOJO_RANA", "YA_MOJERANA");
IterTask.AddCondition("ELSE", "MOJAR");
IterTask = _local2.AddTask("LLENAR_CUCHARON", "PANEL", 0, "\u00BFNo ser\u00EDa mejor llenar el cuchar\u00F3n primero?", "");
IterTask.AddMsg("Wouldn't it be better to fill the");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("YA_MOJERANA", "PANEL", 0, "La rana de chocolate ya est\u00E1 con poci\u00F3n", "");
IterTask.AddMsg("The chocofrog has potion on it already");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("MOJAR", "ITEM_PROPERTY", "GRAPH_FRAME", "Normal", "");
IterTask.ItemName = "CUCHARON";
IterTask = _local2.AddTask("MOJAR2", "ITEM_PROPERTY", "INFO", "Cuchar\u00F3n vac\u00EDo", "MOJAR");
IterTask.ItemName = "CUCHARON";
IterTask = _local2.AddTask("MOJO_RANA", "ACTION", "ADD", "MOJO_RANA", "MOJAR");
IterTask = _local2.AddTask("CAMBIA_RANA", "ITEM_PROPERTY", "GRAPH_FRAME", "Mojada", "MOJAR");
IterTask.ItemName = "CHOCOFROG";
IterTask = _local2.AddTask("CAMBIA_RANA", "ITEM_PROPERTY", "INFO", "Rana de Chocolate con Veritaserumm", "MOJAR");
IterTask.AddMsg("Chocofrog with Veritaserumm");
IterTask.ItemName = "CHOCOFROG";
IterTask = _local2.AddTask("COMENTA_CUALQUIERA", "PANEL", 0, "Ahora esta rana de chocolate puede hacer hablar a cualquiera", "MOJAR");
IterTask.AddMsg("Now this chocofrog can make anyone talk");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local3 = AddItem("mcCajon1", "CAJON1", "W", "Caj\u00F3n");
_local3.AddMsg("Drawer");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un caj\u00F3n", "");
IterTask.AddMsg("A drawer");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Ni hablar", "");
IterTask.AddMsg("No way");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_ABRE_CAJON1_RANA", "CHAR_DIRECTION", "", "LEFT", "AGARRAR");
IterTask = _local2.AddTask("MANO_ABRE_CAJON1_RANA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "ORIENTA_ABRE_CAJON1_RANA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("DECIDE_AGARRAR_CAJON1", "CONDITIONAL", "", "", "MANO_ABRE_CAJON1_RANA");
IterTask.AddCondition("HAVE@PUSO_CALAVERA;DONTHAVE@ABRIO_CAJON2;DONTHAVE@GANO_RANA;DONTHAVE@ABRIO_CAJON1", "ABRE_CAJON1_RANA");
IterTask.AddCondition("HAVE@PUSO_CALAVERA;DONTHAVE@ABRIO_CAJON2;DONTHAVE@GANO_RANA;HAVE@ABRIO_CAJON1", "CIERRA_CAJON1_RANA");
IterTask.AddCondition("HAVE@GANO_RANA;HAVE@ABRIO_CAJON1", "CIERRA_CAJON1");
IterTask.AddCondition("HAVE@GANO_RANA;DONTHAVE@ABRIO_CAJON1", "ABRE_CAJON1");
IterTask.AddCondition("HAVE@ABRIO_CAJON1", "CIERRA_CAJON1");
IterTask.AddCondition("DONTHAVE@ABRIO_CAJON1", "ABRE_CAJON1");
IterTask.AddCondition("ELSE", "XX");
IterTask = _local2.AddTask("ABRE_CAJON1_RANA", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON1";
IterTask.MovieFrame = "AbrirRana";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA1_ABRE_CAJON1_RANA", "CHAR_DIRECTION", "", "BACK", "ABRE_CAJON1_RANA");
IterTask = _local2.AddTask("MUESTRA_AUXILIAR1", "MOVIE_ITEM", "VISIBLE", true, "ABRE_CAJON1_RANA");
IterTask.ItemName = "AUXILIAR_CAJON1";
IterTask = _local2.AddTask("ABRIO_CAJON1", "ACTION", "ADD", "ABRIO_CAJON1", "ABRE_CAJON1_RANA");
IterTask = _local2.AddTask("CIERRA_CAJON1_RANA", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON1";
IterTask.MovieFrame = "CerrarRana";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA2_ABRE_CAJON1_RANA", "CHAR_DIRECTION", "", "BACK", "CIERRA_CAJON1_RANA");
IterTask = _local2.AddTask("OCULTA_AUXILIAR1", "MOVIE_ITEM", "VISIBLE", false, "CIERRA_CAJON1_RANA");
IterTask.ItemName = "AUXILIAR_CAJON1";
IterTask = _local2.AddTask("CERRO_CAJON1", "ACTION", "DROP", "ABRIO_CAJON1", "CIERRA_CAJON1_RANA");
IterTask = _local2.AddTask("ABRE_CAJON1", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON1";
IterTask.MovieFrame = "Abrir";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA1_ABRE_CAJON1", "CHAR_DIRECTION", "", "BACK", "ABRE_CAJON1");
IterTask = _local2.AddTask("OCULTA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", false, "ABRE_CAJON1");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("ABRIO_CAJON1", "ACTION", "ADD", "ABRIO_CAJON1", "ABRE_CAJON1");
IterTask = _local2.AddTask("CIERRA_CAJON1", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON1";
IterTask.MovieFrame = "Cerrar";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA2_ABRE_CAJON1", "CHAR_DIRECTION", "", "BACK", "CIERRA_CAJON1");
IterTask = _local2.AddTask("DECIDE_MOSTRAR_AUXILIAR2", "CONDITIONAL", "", "", "CIERRA_CAJON1");
IterTask.AddCondition("DONTHAVE@PUSO_CALAVERA;HAVE@ABRIO_CAJON2", "MUESTRA_AUXILIAR2");
IterTask.AddCondition("ELSE", "NADA");
IterTask = _local2.AddTask("MUESTRA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", true, "");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("CERRO_CAJON1", "ACTION", "DROP", "ABRIO_CAJON1", "CIERRA_CAJON1");
_local3 = AddItem("mcCajon2", "CAJON2", "W", "Caj\u00F3n");
_local3.AddMsg("Drawer");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un caj\u00F3n", "");
IterTask.AddMsg("A drawer");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No hablo con cajones", "");
IterTask.AddMsg("I don't talk to drawers");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_ABRE_CAJON2", "CHAR_DIRECTION", "", "LEFT", "AGARRAR");
IterTask = _local2.AddTask("MANO_ABRE_CAJON2", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "ORIENTA_ABRE_CAJON2");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("DECIDE_AGARRAR_CAJON2", "CONDITIONAL", "", "", "MANO_ABRE_CAJON2");
IterTask.AddCondition("HAVE@PUSO_CALAVERA;DONTHAVE@ABRIO_CAJON2", "NOABRE_CAJON2");
IterTask.AddCondition("HAVE@PUSO_CALAVERA;HAVE@ABRIO_CAJON2", "CERRAR_CALAVERA");
IterTask.AddCondition("HAVE@ABRIO_CAJON2", "CERRAR_CAJON2");
IterTask.AddCondition("DONTHAVE@ABRIO_CAJON2", "ABRIR_CAJON2");
IterTask = _local2.AddTask("NOABRE_CAJON2", "DUMMY", "", "", "");
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("COMENTA_NOABRE_CAJON2", "PANEL", 0, "Ya no se puede abrir", "NOABRE_CAJON2");
IterTask.AddMsg("It can't be open again due to the spell");
IterTask.Position = "Front";
IterTask = _local2.AddTask("CERRAR_CALAVERA", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON2";
IterTask.MovieFrame = "CerrarCalavera";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA1_ABRE_CAJON2", "CHAR_DIRECTION", "", "BACK", "CERRAR_CALAVERA");
IterTask = _local2.AddTask("OCULTA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", false, "CERRAR_CALAVERA");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("ABRIO_CAJON2", "ACTION", "DROP", "ABRIO_CAJON2", "CERRAR_CALAVERA");
IterTask = _local2.AddTask("CERRAR_CAJON2", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON2";
IterTask.MovieFrame = "Cerrar";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA1_CIERRA_CAJON2", "CHAR_DIRECTION", "", "BACK", "CERRAR_CAJON2");
IterTask = _local2.AddTask("OCULTA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", false, "CERRAR_CAJON2");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("ABRIO_CAJON2", "ACTION", "DROP", "ABRIO_CAJON2", "CERRAR_CAJON2");
IterTask = _local2.AddTask("ABRIR_CAJON2", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "CAJON2";
IterTask.MovieFrame = "Abrir";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("ORIENTA2_ABRE_CAJON2", "CHAR_DIRECTION", "", "BACK", "ABRIR_CAJON2");
IterTask = _local2.AddTask("MUESTRA_AUXILIAR2", "MOVIE_ITEM", "VISIBLE", true, "ABRIR_CAJON2");
IterTask.ItemName = "AUXILIAR_CAJON2";
IterTask = _local2.AddTask("ABRIO_CAJON2", "ACTION", "ADD", "ABRIO_CAJON2", "ABRIR_CAJON2");
_local3 = AddItem("mcBaul", "BAUL", "W", "Ba\u00FAl");
_local3.AddMsg("Chest");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "DECIDE_AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un ba\u00FAl", "");
IterTask.AddMsg("A chest");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No hablo con baules", "");
IterTask.AddMsg("I don't talk to chests");
IterTask = _local2.AddTask("DECIDE_AGARRAR", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@ABRIO_BAUL", "COMENTA_YA_ABRIO");
IterTask.AddCondition("HAVE@AFLOJO_BAUL", "AGARRAR");
IterTask.AddCondition("ELSE", "AGARRAR2");
IterTask = _local2.AddTask("COMENTA_YA_ABRIO", "PANEL", 0, "Ya est\u00E1 abierto", "");
IterTask.AddMsg("It's already open");
IterTask = _local2.AddTask("AGARRAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "AGARRAR");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DEMORA_MUESTRA_TELA", "DUMMY", "", "", "CAMINAR");
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("AGACHA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Agacha";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("ABRE_BAUL", "MOVIE_ITEM", "GOTOANDPLAY", "", "DEMORA_MUESTRA_TELA");
IterTask.ItemName = "BAUL";
IterTask.MovieFrame = "Abre";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("MUESTRA_TELA", "MOVIE_ITEM", "VISIBLE", true, "DEMORA_MUESTRA_TELA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("PARA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "ABRE_BAUL");
IterTask.AddParentName("MUESTRA_TELA");
IterTask = _local2.AddTask("ABRIO_BAUL", "ACTION", "ADD", "ABRIO_BAUL", "PARA_OBAMA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "PARA_OBAMA");
IterTask = _local2.AddTask("AGARRAR2", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINAR2", "WALK", "TARGET", "", "AGARRAR2");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("AGACHA2", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINAR2");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Agacha";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("PARA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "AGACHA2");
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "PARA_OBAMA2");
IterTask = _local2.AddTask("COMENTA_ATORO", "PANEL", 0, "No puedo abrirla est\u00E1 atorada", "FREEMOUSE2");
IterTask.AddMsg("I can't open it ... It's jammed");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@AFLOJO_BAUL", "COMENTA_YAAFLOJO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_YAAFLOJO", "PANEL", 0, "Ya no es necesario hacer magia con el ba\u00FAl", "");
IterTask.AddMsg("It's not necessary do use magic on the chest anymore");
IterTask.Position = "Front";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_RELASHIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("This spell won't help me");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaBaul";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaAbajo";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GRITA_RELASHIO", "PANEL", 0, "\u00A1Relashio!", "CAMINAR");
IterTask.AddMsg("Relashio!");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "GRITA_RELASHIO");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask = _local2.AddTask("AFLOJO_BAUL", "ACTION", "ADD", "AFLOJO_BAUL", "ORIENTA_OBAMA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA");
_local3 = AddItem(mcCuartoHarry.mcHammer, "MARTILLO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AGACHA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "AGARRAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Agacha";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("COGE_MARTILLO", "INV", "TARGET", "ADD", "AGACHA");
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Martillo", "AGACHA");
IterTask.AddMsg("A Hammer");
IterTask.ItemName = "MARTILLO";
IterTask = _local2.AddTask("COMENTA_MARTILLO", "PANEL", 0, "Me pregunto por qu\u00E9 habr\u00EDa un martillo debajo de la cama", "AGACHA");
IterTask.AddMsg("I wonder what's doing here");
IterTask.Expresion = "Asombrado";
IterTask.Position = "Front";
_local3 = AddItem("mcCama", "CAMA", "W", "");
_local3.DestroyMouseEvents();
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Mirar", "");
IterTask.AddMsg("Look");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Hablar", "");
IterTask.AddMsg("Talk");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Agarrar", "");
IterTask.AddMsg("Grab");
_local3 = AddItem("mcVarita", "VARITA", "W", "Varita m\u00E1gica");
_local3.AddMsg("Magic Wand");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "BLOCKMOUSE";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una varita", "");
IterTask.AddMsg("A magic wand");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No estoy loco", "");
IterTask.AddMsg("I'm not crazy");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AGARRA_VARITA", "INV", "ITEM", "ADD", "CAMINAR");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "AGARRA_VARITA");
_local3 = AddItem("mcAlmohada", "ALMOHADA", "W", "Almohada");
_local3.AddMsg("Pillow");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "DECIDE_MUEVE";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una almohada", "");
IterTask.AddMsg("A pillow");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No me gusta morder almohadas", "");
IterTask.AddMsg("I don't like to chew pillows");
IterTask = _local2.AddTask("DECIDE_MUEVE", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@MOVIO_ALMOHADA", "COMENTA_MOVIO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_MOVIO", "PANEL", 0, "Ya no es necesario moverla", "");
IterTask.AddMsg("It's not necessary");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("MOVER", "MOVE", "ITEM", "", "CAMINAR");
IterTask.ItemName = "ALMOHADA";
IterTask.DistanceX = -22;
IterTask.DistanceY = 23;
IterTask.MoveMode = "DIRECT";
IterTask = _local2.AddTask("MOVIO_ALMOHADA", "ACTION", "ADD", "MOVIO_ALMOHADA", "MOVER");
IterTask = _local2.AddTask("LIBERA_MOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MOVER");
_local3 = AddItem("mcEscoba", "ESCOBA", "W", "Nimbus 2009");
_local3.AddMsg("Nimbus 2009");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Est\u00E1 muy alto", "");
IterTask.AddMsg("It's too high");
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Es modelo Nimbus", "");
IterTask.AddMsg("It's a Nimbus model");
IterTask = _local2.AddTask("HABLAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "\u00A1Escoba baja!", "HABLAR");
IterTask.AddMsg("Get down broom!");
IterTask = _local2.AddTask("HABLAR3", "PANEL", 0, "No me hizo caso", "HABLAR2");
IterTask.AddMsg("It ignored me");
IterTask.Expresion = "Triste";
IterTask.Position = "FRONT";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ACCIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_ESCOBA");
IterTask = _local2.AddTask("COMENTA_ESCOBA", "PANEL", 0, "Ese hechizo no me traer\u00E1 la escoba", "");
IterTask.AddMsg("That spell won't help me");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_ESCOBA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA_ESCOBA", "PANEL", 0, "\u00A1Accio Escoba!", "CAMINAR");
IterTask.AddMsg("Accio Broom!");
IterTask = _local2.AddTask("BAJA_ESCOBA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ESTIRA_VARITA");
IterTask.ItemName = "ESCOBA";
IterTask.MovieFrame = "Baja";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GANA_ESCOBA", "INV", "ITEM", "ADD", "BAJA_ESCOBA");
IterTask.ItemName = "ESCOBA";
IterTask = _local2.AddTask("COMENTA_NIMBUS", "PANEL", 0, "Ahora ya tengo mi Nimbus 2009", "GANA_ESCOBA");
IterTask.AddMsg("Now I have the Nimbus 2009");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NIMBUS");
_local3 = AddItem("mcFlechaAbajo", "CUARTOHARRY_FLECHA", "W", "Salir");
_local2 = _local3.AddFriend("MOUSE");
_local2.AddMsg("Leave");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("SALIR_CASA", "SCENE", "", "FAT_ROOM", "CAMINAR");
IterTask.MovieName = "mcFatRoom.mcHuecoCuadro.mcTarget";
IterTask.Transition = false;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("SALE_CUADRO", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "SaleCuadro";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "FRONT", "SALE_CUADRO");
mcCuartoHarry.mcCapa._visible = false;
mcCuartoHarry.mcAuxiliarCajon1._visible = false;
mcCuartoHarry.mcAuxiliarCajon2._visible = false;
mcCuartoHarry.mcGuiaBaul._visible = false;
var _local4;
_local4 = GetSceneByName("CUARTO_HARRY").AddSortRule("COMODA");
_local4.AddItem("ESCOBA");
_local4.AddItem("TINTA");
_local4.AddItem("CHOCOFROG");
_local4.AddItem("PERGAMINO");
_local4.AddItem("AUXILIAR_CAJON1");
_local4.AddItem("AUXILIAR_CAJON2");
_local4.AddItem("CAJON1");
_local4.AddItem("CAJON2");
_local4.AddItem("COMODA");
_local4 = GetSceneByName("CUARTO_HARRY").AddSortRule("CAMA");
_local4.AddItem("ALMOHADA");
_local4.AddItem("VARITA");
_local4.AddItem("CAMA");
_local4 = GetSceneByName("CUARTO_HARRY").AddSortRule("BAUL");
_local4.AddItem("CAPA");
_local4.AddItem("BAUL");
}
function SF_FilchTasks() {
var _local2;
var _local1;
var _local5;
var _local4;
curScene = GetSceneByName("FILCH");
_local2 = AddItem(undefined, "STARTGAME", "S");
_local1 = _local2.AddFriend("STARTGAME", "", "");
IterTask = _local1.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "CAPA";
IterTask = _local1.AddTask("ABRE_PUERTA_FISH", "MOVIE_ITEM", "GOTOANDSTOP", "", "GANA_CAPA");
IterTask.ItemName = "PUERTA_FILCH";
IterTask.MovieFrame = "Abierta";
IterTask.AnimationMode = "ASYNC";
_local2 = AddItem(undefined, "DELAY_FILCH", "D");
_local1 = _local2.AddFriend("DELAY_AMPAY", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("VOLTEA_FILCH", "MOVIE", "ORIENTATION", "", "BLOCKMOUSE");
IterTask.Orientation = "NEGATIVE";
IterTask.MovieName = "mcFilch.mcFilch";
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "BLOCKMOUSE");
IterTask = _local1.AddTask("GRITA_FILCH", "TALK", "DIALOG", "CAPTURA_1", "VOLTEA_FILCH");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local1.AddTask("MUESTRA_OBAMAFILCH", "SCREEN", "", "", "GRITA_FILCH");
IterTask.MovieName = "mcObamaFilch";
IterTask = _local1.AddTask("MUEVE_OBAMA", "MOVE", "ITEM", "", "GRITA_FILCH");
IterTask.ItemName = "OBAMA_FILCH";
IterTask.TargetMovieName = "mcFilch.mcGuiaDanger";
IterTask.MoveMode = "DIRECT";
IterTask = _local1.AddTask("VOLTEA_FILCH", "MOVIE", "ORIENTATION", "", "GRITA_FILCH");
IterTask.Orientation = "POSITIVE";
IterTask.MovieName = "mcFilch.mcFilch";
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "FRONT", "GRITA_FILCH");
IterTask = _local1.AddTask("HABILITA_CHECKEVENT", "CHECKTASK_ENABLE", "", "TIMER", "GRITA_FILCH");
IterTask.ItemName = "DELAY_FILCH";
IterTask.FriendToLunch = "DELAY_SEDEJAVER";
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "MUEVE_OBAMA");
_local1 = _local2.AddFriend("DELAY_SEDEJAVER", "", "");
IterTask = _local1.AddTask("TIMER", "CHECK_EVENT", "HIT_NOACTION", "", "");
IterTask.CheckMovieHit1 = "mcFilch.mcObama.mcBase";
IterTask.CheckMovieHit2 = "mcFilch.mcDangerZone";
IterTask.CheckAction = "PUSO_CAPA";
IterTask.ItemName = "DELAY_FILCH";
IterTask.FriendToLunch = "DELAY_AMPAY";
IterTask.DisableAction = "DURMIO_KEKE";
IterTask.EnableAction = "ACTIVA_FILCH";
_local2 = AddItem(undefined, "InventoryFILCH", "I");
_local2 = AddItem(undefined, "MouseFILCH", "M");
_local2 = AddItem(mcFilch.mcWalkRange, "TerrenoFILCH", "T");
_local1 = _local2.AddFriend("MouseFILCH", "", "");
IterTask = _local1.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local2 = AddItem(mcFilch.mcObama, "OBAMA_FILCH", "W");
_local1 = _local2.AddFriend("MouseFILCH", "Agente Stone", "");
curScene.SetCharacter("OBAMA_FILCH", "Normal", "Front");
_local2 = AddItem(mcFilch.mcFilch, "FILCH", "W", "Filch");
_local2.AddMsg("Filch");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local1.AddTask("MIRAR", "PANEL", 0, "Debe tener un genio de los mil diablos", "");
IterTask.AddMsg("He looks bad-tempered");
IterTask = _local1.AddTask("AGARRAR", "PANEL", 0, "Mejor no me meto en problemas", "");
IterTask.AddMsg("I'd better stay away from trouble");
IterTask = _local1.AddTask("HABLAR", "PANEL", 0, "Si le hablo me podria atrapar", "");
IterTask.AddMsg("If i speak to him, he might catch me");
_local2 = AddItem(mcFilch.mcNorris, "NORRIS", "W", "Norris");
_local2.AddMsg("Norris");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local1.AddTask("MIRAR", "PANEL", 0, "Debe tener un genio de los mil diablos", "");
IterTask.AddMsg("He looks bad-tempered");
IterTask = _local1.AddTask("AGARRAR", "PANEL", 0, "Mejor no me meto en problemas", "");
IterTask.AddMsg("I'd better stay away from trouble");
IterTask = _local1.AddTask("HABLAR", "PANEL", 0, "Si le hablo me podria delatar", "");
IterTask.AddMsg("if i speak to him, he might accuse me");
_local2 = AddItem("mcPuerta", "PUERTA_FILCH", "W", "Una puerta");
_local2.AddMsg("A door");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcFlechaIzquierda", "FLECHA_IZQUIERDA", "W", "Regresar");
_local2.AddMsg("Go Back");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local1.AddTask("APANDA", "SCENE", "", "FAT_ROOM", "CAMINAR");
IterTask.Transition = true;
IterTask.Position = "LEFT";
IterTask.MovieName = "mcFatRoom.mcFlechaDerecha.mcTarget";
_local2 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA", "W", "Avanzar");
_local2.AddMsg("Go forward");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "RIGHT";
IterTask = _local1.AddTask("AOVAL2", "SCENE", "", "PETER_DOOR", "CAMINAR");
IterTask.MovieName = "mcPeterDoor.mcFlechaIzquierda.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "RIGHT";
IterTask = _local1.AddTask("FREE_WALK", "MOUSE_STATE", "WALK", "ENABLED", "AOVAL2");
_local2 = AddItem("mcFlechaArriba", "FLECHA_ARRIBA_FILCH", "W", "Entrar");
_local2.AddMsg("Enter");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "BACK";
IterTask = _local1.AddTask("ENTRAR_CASA", "SCENE", "", "CUARTO_POCIONES", "CAMINAR");
IterTask.MovieName = "mcCuartoPociones.mcFlechaAbajo.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "BACK";
mcFilch.mcDangerZone._visible = false;
mcFilch.mcGuiaDanger._visible = false;
var _local3;
_local3 = GetSceneByName("FILCH").AddSortRule("PUERTA");
_local3.AddItem("FLECHA_ARRIBA_FILCH");
_local3.AddItem("PUERTA_FILCH");
InitDialogoFilch();
}
function InitDialogoFilch() {
var _local1;
Block = new objBlock("CAPTURA_1", "FILCH", "CAPTURA_2", "B", "Asustado", "Asustado");
Block.Message = "\u00A1AJA! \u00A1Un alumno merodeando por los pasillos de Hogwards!";
Block.AddMsg("AHA! A student wandering around the hallways of Hogwards");
BlockAdmin.AddBlock(Block);
Block = new objBlock("CAPTURA_2", "MAIN", "CAPTURA_3", "B", "Emocionado", "Emocionado");
Block.Message = "Esteee ... me parece que hay un error no soy un alumno";
Block.AddMsg("Err... i think you are mistaken, i'm not a student");
BlockAdmin.AddBlock(Block);
Block = new objBlock("CAPTURA_3", "FILCH", "CAPTURA_4", "B", "Asustado", "Asustado");
Block.Message = "\u00A1Patra\u00F1as! .. eso dicen todos para que no los detenga ... \u00A1A la sala de detenci\u00F3n!";
Block.AddMsg("Non sense! That's what they all say... To detention!");
BlockAdmin.AddBlock(Block);
Block = new objBlock("CAPTURA_4", "MAIN", "", "B", "Asustado", "Asustado");
Block.Message = "Ahora s\u00ED me toc\u00F3 el ocho";
Block.AddMsg("Aww, cmon...");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
}
function SF_Cuarto_pocionesTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("CUARTO_POCIONES");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("GANA_MARTILLO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "MARTILLO";
IterTask = _local2.AddTask("GANA_RANA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CHOCOFROG";
IterTask = _local2.AddTask("GANA_PELO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "PELO_UNICORNIO";
IterTask = _local2.AddTask("GANA_CORCHO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CORCHO";
IterTask = _local2.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "GANA_VARITA");
IterTask = _local2.AddTask("GANA_DISCENDIO", "ACTION", "ADD", "TIENE_DISCENDIO", "GANA_VARITA");
IterTask = _local2.AddTask("GANA_LACARNUM", "ACTION", "ADD", "TIENE_LACARNUM", "GANA_VARITA");
IterTask = _local2.AddTask("ESCRIBIO_OBAMA", "ACTION", "ADD", "ESCRIBIO_OBAMA", "GANA_VARITA");
_local3 = AddItem(undefined, "DELAY_CUARTO_POCIONES", "D");
_local2 = _local3.AddFriend("DELAY_CUARTO_POCIONES_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendCuarto_pociones = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryCuarto_pociones", "I");
_local3 = AddItem(undefined, "MouseCuarto_pociones", "M");
_local3 = AddItem("mcWalkRange", "TerrenoCuarto_pociones", "T");
_local2 = _local3.AddFriend("MouseCuarto_pociones", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_CUARTO_POCIONES", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_CUARTO_POCIONES", "Normal", "Front");
_local3 = AddItem("mcMuebleCalavera", "MUEBLE_CALAVERA", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcSoporteCaldero", "SOPORTE_CALDERO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcHumoFeliz", "HUMO_FELIZ", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcCorcho", "CORCHO", "W", "Un corcho");
_local3.AddMsg("A cork");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcLenaCaldero", "LENA_CALDERO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_SPELL", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@PUSO_AGUA", "INCORRECTO");
IterTask.AddCondition("HAVE@ENCENDIO_LENA", "COMENTA_ENCENDIO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
IterTask = _local2.AddTask("COMENTA_ENCENDIO", "PANEL", 0, "Ya est\u00E1 encendida", "");
IterTask.AddMsg("It's already lit up");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_LACARNUM", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_OTROSPELL");
IterTask = _local2.AddTask("COMENTA_OTROSPELL", "PANEL", 0, "Ese hechizo no me sirve", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_OTROSPELL");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaAbajo";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA", "PANEL", 0, "\u00A1Lacarnum Inflammare!", "CAMINAR");
IterTask.AddMsg("Lacarnum Inflammare!");
IterTask = _local2.AddTask("DEMORA", "DUMMY", "", "", "CAMINAR");
IterTask.WaitFramesAtEnd = 30;
IterTask = _local2.AddTask("SONIDO_LENA", "SOUND", "ASINCRONO", "", "DEMORA");
IterTask.SoundName = "enciende_lena";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("MUESTRA_LLAMAS", "MOVIE_ITEM", "VISIBLE", true, "DEMORA");
IterTask.ItemName = "LLAMA_CALDERO";
IterTask = _local2.AddTask("ENCENDIO_LENA", "ACTION", "ADD", "ENCENDIO_LENA", "LLAMA");
IterTask = _local2.AddTask("COMENTA_GANA", "PANEL", 0, "Vaya que son efectivos estos hechizos .. je je", "LLAMA");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask.AddMsg("Hmmm... these spells are quite effective");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE3", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_GANA");
_local3 = AddItem("mcLlamaCaldero", "LLAMA_CALDERO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcCaldero", "CALDERO", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("AGUA_NILO");
IterTask = _local2.AddTask("DECIDE_ECHA_AGUA", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@PUSO_AGUA", "BLOCKMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_VACIA");
IterTask = _local2.AddTask("COMENTA_VACIA", "PANEL", 0, "El balde est\u00E1 vac\u00EDo", "");
IterTask.AddMsg("The bucket is empty");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_CALDERO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA1", "CHAR_DIRECTION", "", "RIGHT", "CAMINA_CALDERO");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_CALDERO");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("CAMBIA_BOTELLA", "ITEM_PROPERTY", "GRAPH_FRAME", "Vacio", "ESTIRA_MANO");
IterTask.ItemName = "AGUA_NILO";
IterTask = _local2.AddTask("CAMBIA_INFO_BOTELLA", "ITEM_PROPERTY", "INFO", "Un balde vac\u00EDo", "ESTIRA_MANO");
IterTask.AddMsg("An empty bucket");
IterTask.ItemName = "AGUA_NILO";
IterTask = _local2.AddTask("PUSO_AGUA", "ACTION", "ADD", "PUSO_AGUA", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "BACK", "ESTIRA_MANO");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ESTIRA_MANO");
IterTask = _local2.AddTask("COMENTA_PRIMER", "PANEL", 0, "\u00A1Pusimos el primer ingrediente!", "FREEMOUSE");
IterTask.AddMsg("We put the first ingredient!");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("PLUMA_FENIX");
IterTask = _local2.AddTask("DECIDE_ECHA_PLUMA", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@ESCRIBIO_OBAMA", "ANTES_USAR");
IterTask.AddCondition("DONTHAVE@ENCENDIO_LENA", "INCORRECTO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("ANTES_USAR", "PANEL", 0, "Mi sexto sentido me dice que la pluma del f\u00E9nix me servir\u00E1 antes para otra cosa", "");
IterTask.AddMsg("My sixth sense tells me i could use the feather for something else before putting it into the cauldron");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_CALDERO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA1", "CHAR_DIRECTION", "", "RIGHT", "CAMINA_CALDERO");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_CALDERO");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("PIERDE_PLUMA", "INV", "ITEM", "DROP", "ESTIRA_MANO");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("PUSO_PLUMA", "ACTION", "ADD", "PUSO_PLUMA", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "BACK", "ESTIRA_MANO");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA2");
IterTask = _local2.AddTask("COMENTA_SEGUNDO", "PANEL", 0, "Segundo ingrediente .... !Listo\u00A1", "FREEMOUSE");
IterTask.AddMsg("Second ingredient... ready!");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("DEDO");
IterTask = _local2.AddTask("DECIDE_ECHA_DEDO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@PUSO_PLUMA", "INCORRECTO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_CALDERO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA1", "CHAR_DIRECTION", "", "RIGHT", "CAMINA_CALDERO");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_CALDERO");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("PIERDE_DEDO", "INV", "ITEM", "DROP", "ESTIRA_MANO");
IterTask.ItemName = "DEDO";
IterTask = _local2.AddTask("PUSO_DEDO", "ACTION", "ADD", "PUSO_DEDO", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "BACK", "ESTIRA_MANO");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA2");
IterTask = _local2.AddTask("XX_TASK_NAME", "PANEL", 0, "Dedo de Gryndilow en el caldero ... je je", "FREEMOUSE");
IterTask.AddMsg("Gryndilow's finger in the cauldron... he he");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("CALAVERA_AMARILLA");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "START");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
_local2 = _local3.AddFriend("DEDO_VASIJA");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "\u00A1La poci\u00F3n no lleva vidrio en los ingredientes! Se v\u00E9 que no has le\u00EDdo el libro", "START");
IterTask.AddMsg("Glass isn't one of the ingredientes, it looks like you haven't read the book");
IterTask.CanSpeed = false;
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
_local2 = _local3.AddFriend("FELICIS");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "START");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
_local2 = _local3.AddFriend("GELATINA");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "START");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
_local2 = _local3.AddFriend("PELO_UNICORNIO");
IterTask = _local2.AddTask("DECIDE_ECHA_PELO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@PUSO_DEDO", "INCORRECTO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("INCORRECTO", "PANEL", 0, "Al parecer no has le\u00EDdo la f\u00F3rmula de la poci\u00F3n", "");
IterTask.AddMsg("Looks like you didn't read the formula from the book");
IterTask.Position = "FRONT";
IterTask.Expresion = "AMARGO";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_CALDERO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA1", "CHAR_DIRECTION", "", "RIGHT", "CAMINA_CALDERO");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_CALDERO");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("PIERDE_PELO", "INV", "ITEM", "DROP", "ESTIRA_MANO");
IterTask.ItemName = "PELO_UNICORNIO";
IterTask = _local2.AddTask("PUSO_PELO", "ACTION", "ADD", "PUSO_PELO", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "BACK", "ESTIRA_MANO");
IterTask = _local2.AddTask("MUESTRA_HUMO", "MOVIE_ITEM", "VISIBLE", true, "ORIENTA_OBAMA2");
IterTask.ItemName = "HUMO_FELIZ";
IterTask = _local2.AddTask("ANIMA_HUMO", "MOVIE_ITEM", "GOTOANDPLAY", "", "ORIENTA_OBAMA2");
IterTask.ItemName = "HUMO_FELIZ";
IterTask.MovieFrame = "Anima";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("OCULTA_HUMO", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_HUMO");
IterTask.ItemName = "HUMO_FELIZ";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ANIMA_HUMO");
IterTask = _local2.AddTask("COMENTA_CHEF", "PANEL", 0, "Soy el mejor Chef de Hogwards je je je", "FREEMOUSE");
IterTask.AddMsg("I could teach in Hogwards he he he");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("CUCHARON");
IterTask = _local2.AddTask("DECIDE_CUCHARON", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@PUSO_PELO", "COMENTA_LISTA");
IterTask.AddCondition("HAVE@LLENO_CUCHARON", "YA_SAQUE");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_LISTA", "PANEL", 0, "La poci\u00F3n a\u00FAn no est\u00E1 lista", "");
IterTask.AddMsg("Potion is not ready yet");
IterTask = _local2.AddTask("YA_SAQUE", "PANEL", 0, "Ya saqu\u00E9 la cantidad requerida", "");
IterTask.AddMsg("I don't need more");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_CALDERO", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA1", "CHAR_DIRECTION", "", "RIGHT", "CAMINA_CALDERO");
IterTask = _local2.AddTask("ESTIRA_MANO", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_CALDERO");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("SONIDO_CUCHARON", "SOUND", "ASINCRONO", "", "CAMINA_CALDERO");
IterTask.SoundName = "cucharon";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 5;
IterTask = _local2.AddTask("CAMBIA_IMAGEN", "ITEM_PROPERTY", "GRAPH_FRAME", "Lleno", "ESTIRA_MANO");
IterTask.ItemName = "CUCHARON";
IterTask = _local2.AddTask("CAMBIA_IMAGEN", "ITEM_PROPERTY", "INFO", "Cuchar\u00F3n con Veritaserumm", "ESTIRA_MANO");
IterTask.ItemName = "CUCHARON";
IterTask.AddMsg("A Ladle with Veritaserumm");
IterTask = _local2.AddTask("LLENO_CUCHARON", "ACTION", "ADD", "LLENO_CUCHARON", "ESTIRA_MANO");
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "BACK", "ESTIRA_MANO");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA2");
IterTask = _local2.AddTask("COMENTA_CHEF", "PANEL", 0, "\u00BFAlguien se anima a probar mi rica sopa?", "FREEMOUSE");
IterTask.AddMsg("Is anyone in the mood for a tasty beverage?");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local3 = AddItem("mcDedo", "DEDO", "W", "Un dedo de Gryndilow");
_local3.AddMsg("A finger of a Gryndilow");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcPinzas", "PINZAS", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINA_PINZA", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AGACHA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA_PINZA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Agacha";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local2.AddTask("AGARRA_PINZA", "INV", "ITEM", "ADD", "AGACHA");
IterTask.ItemName = "PINZAS";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "AGACHA");
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Pinzas", "AGACHA");
IterTask.AddMsg("Tweezers");
IterTask.ItemName = "PINZAS";
_local3 = AddItem("mcDedoVasija", "DEDO_VASIJA", "W", "Vasija");
_local3.AddMsg("Vessel");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINA_DEDOVASIJA", "WALK", "TARGET", "", "START");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("AGARRA_DEDO_VASIJA", "INV", "TARGET", "ADD", "CAMINA_DEDOVASIJA");
IterTask = _local2.AddTask("COMENTA_DEDO", "PANEL", 0, "Hay algo dentro de la vasija ... parece un dedo", "AGARRA_DEDO_VASIJA");
IterTask.AddMsg("There's something inside the vessel ... it seems to be a finger");
IterTask.CanSpeed = false;
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("MARTILLO");
IterTask = _local2.AddTask("DECIDE_MARTILLO", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@ROMPIO_VASIJA", "YA_ROMPI");
IterTask.AddCondition("ELSE", "INICIO");
IterTask = _local2.AddTask("YA_ROMPI", "PANEL", 0, "Ya la romp\u00ED", "");
IterTask.AddMsg("I've already broken it");
IterTask = _local2.AddTask("INICIO", "DUMMY", "", "", "");
IterTask = _local2.AddTask("SONIDO_VIDRIO", "SOUND", "ASINCRONO", "", "INICIO");
IterTask.SoundName = "rompe_vasija";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("CAMBIA_VASIJA", "ITEM_PROPERTY", "GRAPH_FRAME", "Rota", "INICIO");
IterTask.ItemName = "DEDO_VASIJA";
IterTask = _local2.AddTask("CAMBIA_INFO_VASIJA", "ITEM_PROPERTY", "INFO", "Una vasija rota", "INICIO");
IterTask.AddMsg("A broken vessel");
IterTask.ItemName = "DEDO_VASIJA";
IterTask = _local2.AddTask("ROMPIO_VASIJA", "ACTION", "ADD", "ROMPIO_VASIJA", "INICIO");
IterTask = _local2.AddTask("GANA_DEDO", "INV", "ITEM", "ADD", "INICIO");
IterTask.ItemName = "DEDO";
_local3 = AddItem("mcCucharon", "CUCHARON", "W", "Un cuchar\u00F3n");
_local3.AddMsg("A Ladle");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINA_DEDOVASIJA", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AGARRA_DEDO_VASIJA", "INV", "TARGET", "ADD", "CAMINA_DEDOVASIJA");
_local3 = AddItem("mcFelicis", "FELICIS", "W", "Una botellita");
_local3.AddMsg("A little bottle");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINA_DEDOVASIJA", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("COMENTA_FELICIS", "PANEL", 0, "La etiqueta dice: 'Felix Felicis'", "CAMINA_DEDOVASIJA");
IterTask.AddMsg("The label says: 'Felix Felicis'");
IterTask = _local2.AddTask("AGARRA_DEDO_VASIJA", "INV", "TARGET", "ADD", "COMENTA_FELICIS");
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Felix Felicis", "COMENTA_FELICIS");
IterTask.AddMsg("Felix Felicis");
IterTask.ItemName = "FELICIS";
IterTask = _local2.AddTask("TIENE_FELICIS", "ACTION", "ADD", "TIENE_FELICIS", "COMENTA_FELICIS");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "AGARRA_DEDO_VASIJA");
_local2 = _local3.AddFriend("INVENTORY", "", "");
IterTask = _local2.AddTask("DECIDE_MENU", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("DONTHAVE@DERROTO_DEMENTOR", "DELIVER");
IterTask.AddCondition("HAVE@TOMO_FELICIS", "DELIVER");
IterTask.AddCondition("ELSE", "MENU1");
IterTask = _local2.AddTask("MENU1", "MENUINV", "", "", "");
IterMenu = IterTask.AddMenuItem("Tomar", "DRINK");
IterMenu.AddMsg("Drink");
IterMenu = IterTask.AddMenuItem("Entregar", "DRAG_ACTION");
IterMenu.AddMsg("Deliver");
IterTask = _local2.AddTask("DRINK", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SACO_CORCHO", "TOMAR");
IterTask.AddCondition("ELSE", "NO_PUEDO");
IterTask = _local2.AddTask("NO_PUEDO", "PANEL", 0, "No puedo sacar el corcho", "");
IterTask.AddMsg("I can't remove the fork");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
IterTask = _local2.AddTask("TOMAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("SONIDO_TOMA", "SOUND", "ASINCRONO", "", "TOMAR");
IterTask.SoundName = "bebe";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 1;
IterTask = _local2.AddTask("TOMAR2", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "TOMAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "TomaFelicis";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("TOMO_FELICIS", "ACTION", "ADD", "TOMO_FELICIS", "TOMAR2");
IterTask = _local2.AddTask("CAMBIA_FRAME", "ITEM_PROPERTY", "GRAPH_FRAME", "Vacia", "TOMAR2");
IterTask.ItemName = "FELICIS";
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Una botellita vac\u00EDa", "TOMAR2");
IterTask.AddMsg("An empty little bottle");
IterTask.ItemName = "FELICIS";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "TOMAR2");
IterTask = _local2.AddTask("COMENTA_BUENA", "PANEL", 0, "\u00A1Me siento super cool!", "TOMAR2");
IterTask.AddMsg("I feel super cool!");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("DELIVER", "INV_DRAG", "", "", "");
_local2 = _local3.AddFriend("SACACORCHOS");
IterTask = _local2.AddTask("DECIDE_SACARCORCHO", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("HAVE@SACO_CORCHO", "YA_SAQUE");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("YA_SAQUE", "PANEL", 0, "Ya no tiene corcho", "");
IterTask.AddMsg("I've already removed the fork");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("SONIDO_POP", "SOUND", "ASINCRONO", "", "BLOCKMOUSE");
IterTask.SoundName = "pop";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("CAMBIA_FRAME", "ITEM_PROPERTY", "GRAPH_FRAME", "SinCorcho", "BLOCKMOUSE");
IterTask.ItemName = "FELICIS";
IterTask = _local2.AddTask("SACO_CORCHO", "ACTION", "ADD", "SACO_CORCHO", "BLOCKMOUSE");
IterTask = _local2.AddTask("GANA_CORCHO", "INV", "ITEM", "ADD", "BLOCKMOUSE");
IterTask.ItemName = "CORCHO";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "BLOCKMOUSE");
_local3 = AddItem("mcGelatina", "GELATINA", "W", "Una sustancia rara");
_local3.AddMsg("A strange substance");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINA_DEDOVASIJA", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("AGARRA_DEDO_VASIJA", "INV", "TARGET", "ADD", "CAMINA_DEDOVASIJA");
_local3 = AddItem("mcPlumaFenix", "PLUMA_FENIX", "W", "Una pluma");
_local3.AddMsg("A feather");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una pluma", "");
IterTask.AddMsg("A feather");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No como plumas", "");
IterTask.AddMsg("I don't eat feathers");
IterTask = _local2.AddTask("AGARRAR", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("GANA_PLUMA", "INV", "ITEM", "ADD", "AGARRAR");
IterTask.ItemName = "PLUMA_FENIX";
_local3 = AddItem("mcCalaveraAmarilla", "CALAVERA_AMARILLA", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un cr\u00E1neo amarillo", "");
IterTask.AddMsg("A yellow skull");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "Los cr\u00E1neos ya no pueden hablar", "");
IterTask.AddMsg("Skulls can't talk");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Est\u00E1 muy alto", "");
IterTask.AddMsg("It's too high");
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ACCIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "Ese hechizo no me sirve", "");
IterTask.AddMsg("That spell won't do any good");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba2";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA", "PANEL", 0, "\u00A1\u00A1\u00A1ACCIO CRANEO!!!", "CAMINAR");
IterTask.AddMsg("ACCIO SKULL!!!");
IterTask = _local2.AddTask("BAJA_ITEM", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ESTIRA_VARITA");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask.MovieFrame = "Baja";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GANA_ITEM", "INV", "ITEM", "ADD", "BAJA_ITEM");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("CAMBIA_INFO", "ITEM_PROPERTY", "INFO", "Cr\u00E1neo amarillo", "BAJA_ITEM");
IterTask.AddMsg("A Yelow skull");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("COMENTA_GANA", "PANEL", 0, "Que no se diga que perd\u00ED la cabeza... je je", "GANA_ITEM");
IterTask.AddMsg("You can't say i lost my head... he he");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_GANA");
_local3 = AddItem("mcBalde", "AGUA_NILO", "W", "Un balde");
_local3.AddMsg("A bucket");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un balde con agua ... estoy casi seguro que es de un r\u00EDo eg\u00EDpcio", "");
IterTask.AddMsg("A bucket with water..... I'm 99% sure it's from an egyptian river");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No hay forma", "");
IterTask.AddMsg("No way");
IterTask = _local2.AddTask("AGARRAR", "CONDITIONAL", "", "", "BAJO_BALDE");
IterTask.AddCondition("HAVE@BAJO_BALDE", "CAMINAR");
IterTask.AddCondition("ELSE", "AGARRAR2");
IterTask = _local2.AddTask("AGARRAR2", "PANEL", 0, "Est\u00E1 muy alto", "");
IterTask.AddMsg("It's too high");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("BALDE_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAMINAR");
IterTask.ItemName = "AGUA_NILO";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("AGARRA_BALDE", "INV", "ITEM", "ADD", "CAMINAR");
IterTask.ItemName = "AGUA_NILO";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("AGARRAR", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@BAJO_BALDE", "COMENTA_BAJO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_BAJO", "PANEL", 0, "Ya no es necesario hacer magia sobre el balde", "");
IterTask.AddMsg("It's no longer necessary");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ACCIO", "COMENTA_ACCIO");
IterTask.AddCondition("HAVE@SPELLED_DISCENDIO", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSEXYZ");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "Ese hechizo no me sirve", "");
IterTask.AddMsg("That spell won't do any good");
IterTask.Position = "Front";
IterTask = _local2.AddTask("COMENTA_ACCIO", "PANEL", 0, "Podr\u00EDa ser pero el agua se puede derramar", "");
IterTask.AddMsg("It could work but the water could spill");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSEXYZ", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask.AddFinishParentName("COMENTA_ACCIO");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba2";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LLAMA", "PANEL", 0, "\u00A1Discendio!", "CAMINAR");
IterTask.AddMsg("Discendio!");
IterTask = _local2.AddTask("BAJAR", "MOVIE_ITEM", "GOTOANDPLAY", "", "ESTIRA_VARITA");
IterTask.ItemName = "AGUA_NILO";
IterTask.MovieFrame = "Baja";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("BAJO_BALDE", "ACTION", "ADD", "BAJO_BALDE", "BAJAR");
IterTask = _local2.AddTask("ORIENTA_OBAMA3", "CHAR_DIRECTION", "", "RIGHT", "BAJO_BALDE");
IterTask.AddParentName("LLAMA");
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA3");
IterTask = _local2.AddTask("COMENTA_PRECIO", "PANEL", 0, "Me pregunto si este hechizo tambi\u00E9n servir\u00E1 para bajar la inflaci\u00F3n", "FREEMOUSE2");
IterTask.AddMsg("I wonder if this spell also makes inflation lower");
IterTask.Position = "Front";
IterTask.Expresion = "Malevolo";
_local3 = AddItem("mcFlechaAbajo", "FLECHA", "W", "Salir");
_local2 = _local3.AddFriend("MOUSE");
_local2.AddMsg("Leave");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("SALIR_CASA", "SCENE", "", "FILCH", "CAMINAR");
IterTask.MovieName = "mcFilch.mcFlechaArriba.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "FRONT";
mcCuartoPociones.mcLlamaCaldero._visible = false;
mcCuartoPociones.mcLlamaCaldero.gotoAndStop(1);
mcCuartoPociones.mcHumoFeliz._visible = false;
var _local4;
_local4 = GetSceneByName("CUARTO_POCIONES").AddSortRule("CALAVERA");
_local4.AddItem("CALAVERA");
_local4.AddItem("MUEBLE_CALAVERA");
_local4.AddItem("PINZAS");
_local4 = GetSceneByName("CUARTO_POCIONES").AddSortRule("CALDERO");
_local4.AddItem("HUMO_FELIZ");
_local4.AddItem("LLAMA_CALDERO");
_local4.AddItem("CALDERO");
_local4.AddItem("LENA_CALDERO");
}
function SF_Peter_doorTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("PETER_DOOR");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "START");
IterTask = _local2.AddTask("GANA_PERGAMINO", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "PERGAMINO";
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_CALAVERA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "CALAVERA_AMARILLA";
IterTask = _local2.AddTask("GANA_REVELUM", "ACTION", "ADD", "TIENE_REVELUM", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_ALOHOMORA", "ACTION", "ADD", "TIENE_ALOHOMORA", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ACCIO");
IterTask = _local2.AddTask("GANA_RELASHIO", "ACTION", "ADD", "TIENE_RELASHIO", "GANA_ALOHOMORA");
IterTask = _local2.AddTask("GANA_PLUMA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "PLUMA_FENIX";
IterTask = _local2.AddTask("GANA_TINTA", "INV", "ITEM", "ADD", "GANA_ACCIO");
IterTask.ItemName = "TINTA";
IterTask = _local2.AddTask("AFLOJO_BAUL", "ACTION", "ADD", "AFLOJO_BAUL", "GANA_ACCIO");
_local3 = AddItem(undefined, "DELAY_PETER_DOOR", "D");
_local2 = _local3.AddFriend("DELAY_PETER_DOOR_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendPeter_door = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryPeter_door", "I");
_local3 = AddItem(undefined, "MousePeter_door", "M");
_local3 = AddItem("mcWalkRange", "TerrenoPeter_door", "T");
_local2 = _local3.AddFriend("MousePeter_door", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_PETER_DOOR", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_PETER_DOOR", "Normal", "Front");
_local3 = AddItem("mcKratcher", "KRATCHER", "W", "Un elfo dom\u00E9stico");
_local3.AddMsg("A domestic elf");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Un elfo dom\u00E9stico no muy bien vestido que digamos", "");
IterTask.AddMsg("A domestic elf, not so well dressed");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Estoy en contra de la violencia", "");
IterTask.AddMsg("I don't support violence");
IterTask = _local2.AddTask("HABLAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_KRATCHER", "WALK", "TARGET", "", "HABLAR");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DECIDE_DIALOGO", "CONDITIONAL", "", "", "CAMINA_KRATCHER");
IterTask.AddCondition("HAVE@ENSENO_PERGAMINO", "DECISION_KRATCHER2");
IterTask.AddCondition("ELSE", "DECISION_KRATCHER1");
IterTask = _local2.AddTask("DECISION_KRATCHER1", "TALK", "DIALOG", "DECISION_KRATCHER1", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "DECISION_KRATCHER1");
IterTask = _local2.AddTask("DECISION_KRATCHER2", "TALK", "DIALOG", "DECISION_KRATCHER2", "");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("DECIDE_ESFUMAR", "CONDITIONAL", "", "", "DECISION_KRATCHER2");
IterTask.AddCondition("HAVE@ORDENO_KRATCHER", "ESFUMAR");
IterTask.AddCondition("ELSE", "FREEMOUSE2");
IterTask = _local2.AddTask("ESFUMAR", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "KRATCHER";
IterTask.MovieFrame = "Chasquido";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("KRATCHER", "MOVIE_ITEM", "VISIBLE", false, "ESFUMAR");
IterTask.ItemName = "KRATCHER";
IterTask = _local2.AddTask("ESFUMO_KRATCHER", "ACTION", "ADD", "ESFUMO_KRATCHER", "ESFUMAR");
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "ESFUMAR");
IterTask = _local2.AddTask("COMENTA_OBEDIENTE", "PANEL", 0, "Es un elfo reneg\u00F3n pero obediente", "FREEMOUSE2");
IterTask.AddMsg("He's a bit cranky but obedient elf");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("ORDENO_KRATCHER", "ACTION", "ADD", "ORDENO_KRATCHER", "");
_local2 = _local3.AddFriend("PERGAMINO");
IterTask = _local2.AddTask("DECIDE_PERGAMINO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@REVELO_LETRAS", "PERGAMINO_VACIO");
IterTask.AddCondition("DONTHAVE@ESCRIBIO_OBAMA", "PERGAMINO_INCOMPLETO");
IterTask.AddCondition("HAVE@ENSENO_PERGAMINO", "YA_MOSTRE");
IterTask.AddCondition("ELSE", "MOSTRAR");
IterTask = _local2.AddTask("PERGAMINO_VACIO", "PANEL", 0, "\u00BFPara qu\u00E9 le mostrar\u00EDa un pergamino vac\u00EDo?", "");
IterTask.AddMsg("Why would i show him an empty paper?");
IterTask = _local2.AddTask("PERGAMINO_INCOMPLETO", "PANEL", 0, "No creo que me sirva entregarlo algo incompleto", "");
IterTask.AddMsg("It's incomplete, i don't think i should give it yet.");
IterTask = _local2.AddTask("YA_MOSTRE", "PANEL", 0, "Ya se lo mostr\u00E9, no es necesario hacerlo otra vez", "");
IterTask.AddMsg("I already showed it to him");
IterTask = _local2.AddTask("MOSTRAR", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_KRATCHER", "WALK", "TARGET", "", "MOSTRAR");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DIALOGO_MUESTRA", "TALK", "DIALOG", "ENSENAPERGAMINO_1", "CAMINA_KRATCHER");
IterTask.DialogLocked = true;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("ENSENO_PERGAMINO", "ACTION", "ADD", "ENSENO_PERGAMINO", "DIALOGO_MUESTRA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "DIALOGO_MUESTRA");
_local3 = AddItem("mcPuerta", "PUERTA_PETER", "W", "Una puerta");
_local3.AddMsg("A door");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("DECIDE_MENU", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@ABRIO_PUERTA_PETER", "NADA");
IterTask.AddCondition("DONTHAVE@ESFUMO_KRATCHER", "MENU1");
IterTask.AddCondition("ELSE", "MENU2");
IterTask = _local2.AddTask("MENU1", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una puerta bloqueada bloqueada por un elfo dom\u00E9stico", "");
IterTask.AddMsg("A door, blocked by some kind of elf");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No puedo acercarme ... tengo que librarme del elfo primero", "");
IterTask.AddMsg("I can't get near to the door, the elf is in the way");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "No puedo acercarme ... tengo que librarme del elfo primero", "");
IterTask.AddMsg("I can't get near to the door, the elf is in the way");
IterTask = _local2.AddTask("MENU2", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR2";
IterTask.EyeTask = "MIRAR2";
IterTask.MouthTask = "HABLAR2";
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "\u00BFA d\u00F3nde conducir\u00E1 est\u00E1 puerta?", "");
IterTask.AddMsg("Where will this door lead to?");
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "\u00BFHablar con una puerta? \u00BFInsin\u00FAas que estoy loco?", "");
IterTask.AddMsg("I can't eat nor talk to it, so think again");
IterTask.Expresion = "Amargo";
IterTask.Position = "FRONT";
IterTask.AddMsg("No way");
IterTask = _local2.AddTask("AGARRAR2", "WALK", "TARGET", "", "");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "LEFT", "AGARRAR2");
IterTask = _local2.AddTask("MANO_OBAMA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "AGARRAR2");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Stand_Back_Hand";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local2.AddTask("COMENTA_ATASCO", "PANEL", 0, "Est\u00E1 atascada", "MANO_OBAMA");
IterTask.AddMsg("It's jammed");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@ABRIO_PUERTA_PETER", "COMENTA_NOMAGIA");
IterTask.AddCondition("DONTHAVE@ESFUMO_KRATCHER", "COMENTA_ANTES");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_ANTES", "PANEL", 0, "Antes debo deshacerme del elfo pues podr\u00EDa repeler el hechizo", "");
IterTask.AddMsg("I have to get rid of the elf first, he could repel the spell");
IterTask = _local2.AddTask("COMENTA_NOMAGIA", "PANEL", 0, "Ya est\u00E1 abierta", "");
IterTask.AddMsg("It's open");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ALOHOMORA", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GRITA_ALOHOMORA", "PANEL", 0, "\u00A1Alohomora!", "CAMINAR");
IterTask.AddMsg("Alohomora!");
IterTask = _local2.AddTask("SONIDO_PUERTA", "SOUND", "ASINCRONO", "", "GRITA_ALOHOMORA");
IterTask.SoundName = "puerta_botiquin";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local2.AddTask("ABRE_PUERTA", "MOVIE_ITEM", "GOTOANDSTOP", "", "GRITA_ALOHOMORA");
IterTask.ItemName = "PUERTA_PETER";
IterTask.MovieFrame = "Abierta";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "ABRE_PUERTA");
IterTask.ItemName = "FLECHA_ARRIBA_KRATCHER";
IterTask = _local2.AddTask("ABRIO_PUERTA_PETER", "ACTION", "ADD", "ABRIO_PUERTA_PETER", "ABRE_PUERTA");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "ABRIO_PUERTA_PETER");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA");
_local3 = AddItem("mcFlechaIzquierda", "FLECHA_IZQUIERDA", "W", "Regresar");
_local3.AddMsg("Go Back");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "LEFT";
IterTask = _local2.AddTask("APANDA", "SCENE", "", "FILCH", "CAMINAR");
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "LEFT";
IterTask.MovieName = "mcFilch.mcFlechaDerecha.mcTarget";
_local3 = AddItem("mcFlechaArriba", "FLECHA_ARRIBA_KRATCHER", "W", "Entrar");
_local3.AddMsg("Enter");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "BACK";
IterTask = _local2.AddTask("ENTRAR_CASA", "SCENE", "", "PETER_ROOM", "CAMINAR");
IterTask.MovieName = "mcPeterRoom.mcFlechaAbajo.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "BACK";
mcPeterDoor.mcFlechaArriba._visible = false;
mcPeterDoor.mcGuiaHechizo._visible = false;
var _local4;
_local4 = GetSceneByName("PETER_DOOR").AddSortRule("PUERTA");
_local4.AddItem("FLECHA_ARRIBA_KRATCHER");
_local4.AddItem("KRATCHER");
_local4.AddItem("PUERTA_PETER");
InitDialogoKratcher();
}
function InitDialogoKratcher() {
var _local1;
Block = new objBlock("DECISION_KRATCHER1", undefined, "", "O");
_local1 = Block.AddOption("\u00BFMe puedes dejar pasar?", "DEJAPASAR_1", false);
_local1.AddMsg("Can you let me through?");
_local1 = Block.AddOption("Hola Dobby \u00BFC\u00F3mo est\u00E1s?", "DOBBY_1", false);
_local1.AddMsg("Hi Dobby, How are you?");
_local1 = Block.AddOption("\u00BFD\u00F3nde est\u00E1 Voldemord?", "DONDEVOLDEMORD_1", false);
_local1.AddMsg("Where is Voldemort?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DECISION_KRATCHER2", undefined, "", "O");
_local1 = Block.AddOption("\u00BFMe puedes dejar pasar?", "DEJAPASAR_1", false);
_local1.AddMsg("Can you let me through?");
_local1 = Block.AddOption("Hola Dobby \u00BFC\u00F3mo est\u00E1s?", "DOBBY_1", false);
_local1.AddMsg("Hi Dobby, How are you?");
_local1 = Block.AddOption("Te ordeno que me dejes pasar", "ORDENODEJES_1", false);
_local1.AddMsg("I order you to let me through");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJAPASAR_1", "MAIN", "DEJAPASAR_2", "B", "Emocionado", "Emocionado");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DEJAPASAR_2", "KRATCHER", "LAST_OPTION", "B", "Arrochado", "Normal");
Block.Message = "Kratcher no le hace favores a muggles ni a ning\u00FAn sangre sucia";
Block.AddMsg("Kratcher doesn't do favors to muggles");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DOBBY_1", "MAIN", "DOBBY_2", "B", "Alegre", "Alegre");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DOBBY_2", "KRATCHER", "DOBBY_3", "B", "Arrochado", "Arrochado");
Block.Message = "NOOOOO .... No me confunda con ese elfo tonto";
Block.AddMsg("I'm not that dumb elf");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DOBBY_3", "KRATCHER", "DOBBY_4", "B", "Arrochado", "Arrochado");
Block.Message = "Yo me llamo Kratcher ... K R A T C H E R .... Ten\u00EDas que ser muggle";
Block.AddMsg("My name is Kratcher... K R A T C H E R... No wonder you are a muggle");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DOBBY_4", "MAIN", "LAST_OPTION", "B", "Emocionado", "Normal");
Block.Message = "Oh.... disculpe usted se\u00F1or Kratcher";
Block.AddMsg("Oh... Im sorry mister Kratcher");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DONDEVOLDEMORD_1", "MAIN", "DONDEVOLDEMORD_2", "B", "Normal", "Normal");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DONDEVOLDEMORD_2", "KRATCHER", "DONDEVOLDEMORD_3", "B", "Amargo", "Amargo");
Block.Message = "Kratcher no sabe donde est\u00E1 el gran se\u00F1or ... y a\u00FAn si lo supiera no se lo dir\u00EDa";
Block.AddMsg("Kratcher doesn't know where the Great Lord is... and even if he knew, he wouldn't tell you");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DONDEVOLDEMORD_3", "MAIN", "LAST_OPTION", "B", "Amargo", "Normal");
Block.Message = "Elfo malagracia";
Block.AddMsg("You cranky ugly elf");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ORDENODEJES_1", "MAIN", "ORDENODEJES_2", "B", "Malevolo", "Malevolo");
Block.Message = "En vista que soy tu due\u00F1o te ordeno que desaparezcas y te vayas lejos de aqu\u00ED";
Block.AddMsg("Since i'm your boss i order you to disappear");
Block.TaskToLunchAtBegin = "ORDENO_KRATCHER";
Block.StartLock = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("ORDENODEJES_2", "KRATCHER", "ORDENODEJES_3", "B", "Malevolo", "Malevolo");
Block.Message = "Kratcher detesta obedecer a un muggle pero no le queda otra opci\u00F3n";
Block.AddMsg("Kratcher hates to obey a muggle but doesn't have much of a choice");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ORDENODEJES_3", "KRATCHER", "", "B", "Malevolo", "Normal");
Block.Message = "Kratcher odia a su amo pero igual tendr\u00E1 que obedecer";
Block.AddMsg("Kratcher hates his master but will obey anyway");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_1", "KRATCHER", "ENSENAPERGAMINO_2", "B", "Malevolo", "Malevolo");
Block.Message = "As\u00ED que el odioso muggle es ahora mi amo ... A Kratcher no le hace nada de gracia esto";
Block.AddMsg("Hmmm... so the muggle is now my master... Kratcher doesn't like this at all");
Block.StartLock = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_2", "KRATCHER", "ENSENAPERGAMINO_3", "B", "Malevolo", "Malevolo");
Block.Message = "Kratcher preferir\u00EDa estar con los Malfoy a estar con este odioso muggle";
Block.AddMsg("Kratcher would rather be with the Malfoy");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_3", "MAIN", "ENSENAPERGAMINO_4", "B", "Malevolo", "Malevolo");
Block.Message = "Bueno a m\u00ED tampoco me hace gracia ser tu amo pero que le vamos a hacer";
Block.AddMsg("Well, i couldn't care less about being your master, but whatever");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_4", "KRATCHER", "ENSENAPERGAMINO_5", "B", "Malevolo", "Malevolo");
Block.Message = "Kratcher intentar\u00E1 librarse de este odioso muggle";
Block.AddMsg("Kratcher will try to get rid of this irritating muggle");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_5", "MAIN", "ENSENAPERGAMINO_6", "B", "Amargo", "Amargo");
Block.Message = "\u00BFQUE DIJISTE?";
Block.AddMsg("WHAT WAS THAT?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_6", "KRATCHER", "ENSENAPERGAMINO_7", "B", "Malevolo", "Malevolo");
Block.Message = "Nada ... nada ... solo dije que Kratcher intentar\u00E1 servirle se\u00F1or muggle Obama";
Block.AddMsg("Nothing... nothing... i said Kratcher will try to serve you well");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENSENAPERGAMINO_7", "MAIN", "", "B", "Malevolo", "Normal");
Block.Message = "As\u00ED me gusta";
Block.AddMsg("That's more like it");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
}
function SF_Peter_roomTasks() {
var _local3;
var _local2;
var _local4;
curScene = GetSceneByName("PETER_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_COPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "COPA";
IterTask = _local2.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("GANA_BUDGER", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "BUDGER";
_local3 = AddItem(undefined, "DELAY_PETER_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_PETER_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendPeter_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local3 = AddItem(undefined, "InventoryPeter_room", "I");
_local3 = AddItem(undefined, "MousePeter_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoPeter_room", "T");
_local2 = _local3.AddFriend("MousePeter_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_PETER_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_PETER_ROOM", "Normal", "Front");
_local3 = AddItem("mcCopa", "COPA", "W", "Un traslador");
_local3.AddMsg("A portkey");
_local2 = _local3.AddFriend("MOUSE");
_local2 = _local3.AddFriend("INVENTORY", "", "");
IterTask = _local2.AddTask("DECIDE_VIAJAR", "CONDITIONAL", "", "", "START_INV");
IterTask.AddCondition("DONTHAVE@GANO_BLUDGER", "OLVIDAS");
IterTask.AddCondition("DONTHAVE@TIENE_FELICIS", "OLVIDAS2");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("OLVIDAS", "PANEL", 0, "Me parece que nos estamos olvidando algo del cuarto de Harry", "");
IterTask.AddMsg("I think we're forgetting something from Harry's room");
IterTask.Position = "Front";
IterTask = _local2.AddTask("OLVIDAS2", "PANEL", 0, "Me parece que nos estamos olvidando algo del cuarto del caldero", "");
IterTask.AddMsg("I think we're forgetting something from the caldron room");
IterTask.Position = "Front";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("COMENTA_ISLA", "PANEL", 0, "\u00A1Ahora vamos a recuperar la Moneda M\u00E1gica!", "BLOCKMOUSE");
IterTask.AddMsg("Now, let's get the magic coin back!");
IterTask.Expresion = "Amargo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("A_TROLL", "SCENE", "", "TROLL_ROOM", "COMENTA_ISLA");
IterTask.MovieName = "mcTrollRoom.mcGuiaTraslador";
IterTask.Transition = true;
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("USO_TRASLADOR", "ACTION", "ADD", "USO_TRASLADOR", "COMENTA_ISLA");
IterTask = _local2.AddTask("PIERDE_COPA", "INV", "ITEM", "DROP", "COMENTA_ISLA");
IterTask.ItemName = "COPA";
IterTask = _local2.AddTask("PIERDE_CAPA", "INV", "ITEM", "DROP", "COMENTA_ISLA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "A_TROLL");
IterTask = _local2.AddTask("COMENTA_CUEVA", "PANEL", 0, "Llegamos a la cueva de Voldemort y por lo visto no va a ser f\u00E1cil", "FREEMOUSE");
IterTask.AddMsg("Hmm... we are inside Moldemort's cave and it's not gonna be easy");
IterTask.Expresion = "Asustado";
IterTask.Position = "Right";
IterTask.CanSpeed = false;
IterTask = _local2.AddTask("COMENTA_CUEVA2", "PANEL", 0, "Para colmo perd\u00ED la capa luego de usar el traslador", "COMENTA_CUEVA");
IterTask.AddMsg("To make matters worse I lost the cloak after using the portkey");
IterTask.Expresion = "Triste";
IterTask.CanSpeed = false;
IterTask.Position = "Front";
_local3 = AddItem("mcPeter", "PETER", "W", "Una rata");
_local3.AddMsg("A mouse");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("DECIDE_MENU", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@COMIO_RANA", "MENU3");
IterTask.AddCondition("HAVE@CONVIRTIO_PETER", "MENU2");
IterTask.AddCondition("ELSE", "MENU1");
IterTask = _local2.AddTask("MENU1", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "Una rata con una sonrisa mal\u00E9vola", "");
IterTask.AddMsg("A rat with an evil smile");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No hablo rata\u00F1ol", "");
IterTask.AddMsg("I don't speak rataniun");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "Ni hablar ... podr\u00EDa morderme", "");
IterTask.AddMsg("No way ... it could bite me");
IterTask = _local2.AddTask("MENU2", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR2";
IterTask.EyeTask = "MIRAR2";
IterTask.MouthTask = "HABLAR2";
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "As\u00ED que la rata era Peter Pettipuff", "");
IterTask.AddMsg("It was Peter Pettipuff");
IterTask = _local2.AddTask("AGARRAR2", "PANEL", 0, "Ni hablar ... podr\u00EDa morderme", "");
IterTask.AddMsg("No way ... it could bite me");
IterTask = _local2.AddTask("HABLAR2", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_PETER2", "WALK", "TARGET", "", "HABLAR2");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("NECESITO_INFO_1", "TALK", "DIALOG", "NECESITO_INFO_1", "CAMINA_PETER2");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("FREEMOUSE1", "MOUSE_STATE", "TOTAL", "ENABLED", "NECESITO_INFO_1");
IterTask = _local2.AddTask("MENU3", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR3";
IterTask.EyeTask = "MIRAR3";
IterTask.MouthTask = "HABLAR3";
IterTask = _local2.AddTask("MIRAR3", "PANEL", 0, "Ahora tiene el aspecto de una rata sincera", "");
IterTask.AddMsg("Now he looks like a friendly sincere rat");
IterTask = _local2.AddTask("AGARRAR3", "PANEL", 0, "Mejor no lo toco", "");
IterTask.AddMsg("No way ... it could bite me");
IterTask = _local2.AddTask("HABLAR3", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@GANA_TRASLADOR", "COMENTA_YAHABLO");
IterTask.AddCondition("ELSE", "HABLAR3B");
IterTask = _local2.AddTask("COMENTA_YAHABLO", "PANEL", 0, "Ya dijo todo lo que quer\u00EDa saber", "");
IterTask.AddMsg("He's already talked.... and too much he he he");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("HABLAR3B", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_PETER3", "WALK", "TARGET", "", "HABLAR3");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DECISION_PETER", "TALK", "DIALOG", "DECISION_PETER", "CAMINA_PETER3");
IterTask.DialogLocked = false;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("GANA_TRASLADOR", "DUMMY", "", "", "");
IterTask = _local2.AddTask("GANA_TRASLADOR2", "ACTION", "ADD", "GANA_TRASLADOR", "GANA_TRASLADOR");
IterTask = _local2.AddTask("GANA_COPA", "INV", "ITEM", "ADD", "GANA_TRASLADOR");
IterTask.ItemName = "COPA";
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "DECISION_PETER");
_local2 = _local3.AddFriend("CHOCOFROG", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@CONVIRTIO_PETER", "COMENTA_QUESO");
IterTask.AddCondition("DONTHAVE@MOJO_RANA", "COMENTA_MOJAR");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_QUESO", "PANEL", 0, "Las ratas no comen chocolate sino queso", "");
IterTask.AddMsg("Rats eat cheese, not chocolate");
IterTask = _local2.AddTask("COMENTA_MOJAR", "PANEL", 0, "Buena idea, pero antes debemos ponerle algo", "");
IterTask.AddMsg("Good idea, but we need to put it somthing first");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("CAMINA_PETER", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("DIALOGO_RANA", "TALK", "DIALOG", "DIALOGO_RANA_1", "CAMINA_PETER");
IterTask.DialogLocked = true;
IterTask.PlayVoice = false;
IterTask = _local2.AddTask("COME_RANA", "MOVIE_ITEM", "GOTOANDPLAY", "", "DIALOGO_RANA");
IterTask.ItemName = "PETER";
IterTask.MovieFrame = "Come";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("COMIO_RANA", "ACTION", "ADD", "COMIO_RANA", "COME_RANA");
IterTask = _local2.AddTask("PIERDE_CHOCOFROG", "INV", "ITEM", "DROP", "DIALOGO_RANA");
IterTask.ItemName = "CHOCOFROG";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COME_RANA");
IterTask = _local2.AddTask("COMENTA_COMIO", "PANEL", 0, "Vaya que le gustaban las ranas de chocolate", "FREEMOUSE");
IterTask.AddMsg("Wow, he sure likes chocofrogs");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("VARITA", "", "");
IterTask = _local2.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@CONVIRTIO_PETER", "COMENTA_NOMAGIA");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_NOMAGIA", "PANEL", 0, "Ya lo transform\u00E9, ya no es necesario ning\u00FAn hechizo adicional", "");
IterTask.AddMsg("I already transformed him, magic is not necessary anymore");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_ANIMAGUM", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaAbajo";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GRITA_ANIMAGUM", "PANEL", 0, "\u00A1Animagum Revelum!", "CAMINAR");
IterTask.AddMsg("Animagum Revelum!");
IterTask = _local2.AddTask("CONVIERTE_PETER", "MOVIE_ITEM", "GOTOANDPLAY", "", "GRITA_ANIMAGUM");
IterTask.ItemName = "PETER";
IterTask.MovieFrame = "Transforma";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("COMENTA_PETER_PETI", "PANEL", 0, "Miren a qui\u00E9n tenemos aqu\u00ED... nada m\u00E1s y nada menos que Peter Pettipuff", "CONVIERTE_PETER");
IterTask.AddMsg("Look who we have here... none other than Peter Pettipuff");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Right";
IterTask = _local2.AddTask("CONVIRTIO_PETER", "ACTION", "ADD", "CONVIRTIO_PETER", "CONVIERTE_PETER");
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "GRITA_ANIMAGUM");
IterTask.AddParentName("ESTIRA_VARITA");
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "CONVIERTE_PETER");
_local3 = AddItem("mcFlechaAbajo", "FLECHA", "W", "Salir");
_local2 = _local3.AddFriend("MOUSE");
_local2.AddMsg("Leave");
IterTask = _local2.AddTask("CAMINAR", "WALK", "TARGET", "", "START");
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("SALIR_CASA", "SCENE", "", "PETER_DOOR", "CAMINAR");
IterTask.MovieName = "mcPeterDoor.mcFlechaArriba.mcTarget";
IterTask.Transition = true;
IterTask.TransitionSpeed = "FAST";
IterTask.Position = "FRONT";
mcPeterRoom.mcGuiaHechizo._visible = false;
var _local5;
InitDialogoPeter();
}
function InitDialogoPeter() {
var _local1;
Block = new objBlock("DECISION_PETER", undefined, "", "O");
_local1 = Block.AddOption("\u00BFC\u00F3mo as\u00ED entraste al Castillo?", "CASTILLO_1", false);
_local1.AddMsg("How did you manage to get inside the castle?");
_local1 = Block.AddOption("\u00BFConoces a RatFace?", "RATFACE_1", false);
_local1.AddMsg("Do you know RATFACE?");
_local1 = Block.AddOption("Dime c\u00F3mo puedo encontrar a Voldemord", "ENCONTRARVOLDEMORD_1", false);
_local1.AddMsg("Tell me where can i find Voldemort");
BlockAdmin.AddBlock(Block);
Block = new objBlock("NECESITO_INFO_1", "MAIN", "NECESITO_INFO_2", "B", "Alegre", "Alegre");
Block.Message = "Buenas se\u00F1or Pettipuff, necesito que me brinde cierta informaci\u00F3n";
Block.StartLock = true;
Block.AddMsg("Good afternoon mister Pettipuff, i need some information");
BlockAdmin.AddBlock(Block);
Block = new objBlock("NECESITO_INFO_2", "PETER", "NECESITO_INFO_3", "B", "Alegre", "Alegre");
Block.Message = "\u00BFQu\u00E9 clase de informaci\u00F3n?";
Block.AddMsg("What kind of information?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("NECESITO_INFO_3", "MAIN", "NECESITO_INFO_4", "B", "Alegre", "Alegre");
Block.Message = "Relacionada a Voldemord, creo que usted sabe como encontrarlo";
Block.AddMsg("Related to Voldemort, i think you know where to find him");
BlockAdmin.AddBlock(Block);
Block = new objBlock("NECESITO_INFO_4", "PETER", "NECESITO_INFO_5", "B", "Amargo", "Amargo");
Block.Message = "\u00A1Si s\u00E9 c\u00F3mo encontrarlo pero jam\u00E1s dir\u00E9 nada! !SIEMPRE SERE FIEL AL SE\u00D1OR TENEBROSO\u00A1";
Block.AddMsg("I know where to find him, but i won't say anything! I'LL ALWAYS BE LOYAL TO THE DARK LORD!");
BlockAdmin.AddBlock(Block);
Block = new objBlock("NECESITO_INFO_5", "MAIN", "", "B", "Amargo", "Normal");
Block.Message = "No muestra se\u00F1as de querer colaborar";
Block.AddMsg("Hmmm... i think he won't cooperate");
Block.ExitTalk = true;
Block.PosicionInicial = "Front";
BlockAdmin.AddBlock(Block);
Block = new objBlock("DIALOGO_RANA_1", "MAIN", "DIALOGO_RANA_2", "B", "Malevolo", "Malevolo");
Block.Message = "Se\u00F1or Pettipuff, acepte esta rana de chocolate como muestra de aprecio y camarader\u00EDa";
Block.AddMsg("Mister Pettipuff, please accept this chocofrog as show of my appreciation");
Block.StartLock = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("DIALOGO_RANA_2", "PETER", "DIALOGO_RANA_3", "B", "Malevolo", "Malevolo");
Block.Message = "\u00A1Gracias! \u00A1Adoro las Ranas de Chocolate!";
Block.AddMsg("Thanks! I love ChocoFrogs!");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DIALOGO_RANA_3", "MAIN", "", "B", "Malevolo", "Malevolo");
Block.Message = "Disfrutela lentamente ... no hay apuro ... je je je";
Block.AddMsg("Enjoy it... there's no rush... he he he");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
Block = new objBlock("CASTILLO_1", "MAIN", "CASTILLO_2", "B", "Malevolo", "Malevolo");
BlockAdmin.AddBlock(Block);
Block = new objBlock("CASTILLO_2", "PETER", "CASTILLO_3", "B", "Malevolo", "Malevolo");
Block.Message = "Us\u00E9 el armario que conecta Borginn y Barks con Hogwards, Draco lo repar\u00F3";
Block.AddMsg("I used the closet that connects Borginn and Barks iwht Hogwards, Draco fixed it");
BlockAdmin.AddBlock(Block);
Block = new objBlock("CASTILLO_3", "MAIN", "LAST_OPTION", "B", "Malevolo", "Malevolo");
Block.Message = "Interesante";
Block.AddMsg("Interesting");
BlockAdmin.AddBlock(Block);
Block = new objBlock("RATFACE_1", "MAIN", "RATFACE_2", "B", "Malevolo", "Malevolo");
BlockAdmin.AddBlock(Block);
Block = new objBlock("RATFACE_2", "PETER", "RATFACE_3", "B", "Malevolo", "Malevolo");
Block.Message = "Si, es un primo lejano";
Block.AddMsg("Yea, we are related i think");
BlockAdmin.AddBlock(Block);
Block = new objBlock("RATFACE_3", "MAIN", "RATFACE_4", "B", "Malevolo", "Malevolo");
Block.Message = "Pues te cuento que en la aventura anterior de Inka Games lo capturamos";
Block.AddMsg("Well, we caught him in a previous adventure of Inka Games");
BlockAdmin.AddBlock(Block);
Block = new objBlock("RATFACE_4", "PETER", "LAST_OPTION", "B", "Malevolo", "Malevolo");
Block.Message = "Que pena";
Block.AddMsg("Sad isn't it?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_1", "MAIN", "ENCONTRARVOLDEMORD_2", "B", "Malevolo", "Malevolo");
Block.Message = "Por casualidad sabes c\u00F3mo puedo encontrar a Voldemord";
Block.StartLock = true;
Block.AddMsg("You wouldn't happen to know how to find Voldemort, would you?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_2", "PETER", "ENCONTRARVOLDEMORD_3", "B", "Malevolo", "Malevolo");
Block.Message = "Voldemord est\u00E1 escondido en la Isla de Mort, all\u00ED tiene secuestrada a la Aliquantum Prospera";
Block.AddMsg("Voldemort is hidden in Mort Island. He's got the Aliquantum Prospera with him");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_3", "MAIN", "ENCONTRARVOLDEMORD_4", "B", "Malevolo", "Malevolo");
Block.Message = "Interesante, \u00BFY c\u00F3mo llego a la Isla de Mort?";
Block.AddMsg("Interesting, and how do i get there?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_4", "PETER", "ENCONTRARVOLDEMORD_5", "B", "Malevolo", "Malevolo");
Block.Message = "La \u00FAnica forma de llegar es mediante un traslador especial que me di\u00F3 Voldemord";
Block.AddMsg("The only way to get there is using the especial port key that Voldemort gave me");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_5", "MAIN", "ENCONTRARVOLDEMORD_6", "B", "Malevolo", "Malevolo");
Block.Message = "Necesito ese traslador, \u00BFMe lo puedes dar?";
Block.AddMsg("i need that port key, can i have it?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_6", "PETER", "ENCONTRARVOLDEMORD_7", "B", "Malevolo", "Malevolo");
Block.Message = "\u00BFPor qu\u00E9 habr\u00EDa de d\u00E1rtelo?";
Block.AddMsg("Why would i give it to you?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_7", "MAIN", "ENCONTRARVOLDEMORD_8", "B", "Malevolo", "Malevolo");
Block.Message = "Porque te invite una rana de chocolate";
Block.AddMsg("Because i gave you a Chocofrog?");
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_8", "PETER", "ENCONTRARVOLDEMORD_9", "B", "Malevolo", "Malevolo");
Block.Message = "Cierto ... toma el traslador y muchas gracias por la rana";
Block.AddMsg("Ohh right... well... take it and thanks for the chocofrog");
Block.TaskToLunchAtEnd = "GANA_TRASLADOR";
BlockAdmin.AddBlock(Block);
Block = new objBlock("ENCONTRARVOLDEMORD_9", "MAIN", "", "B", "Malevolo", "Malevolo");
Block.Message = "Gracias a t\u00ED por el traslador y tu sinceridad je je je";
Block.AddMsg("No, thank you for the port key, he he he");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
}
function SF_Troll_roomTasks() {
var _local3;
var _local2;
var _local5;
curScene = GetSceneByName("TROLL_ROOM");
_local3 = AddItem(undefined, "STARTGAME", "S");
_local2 = _local3.AddFriend("STARTGAME", "", "");
IterTask = _local2.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "VARITA";
IterTask = _local2.AddTask("GANA_COPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "COPA";
IterTask = _local2.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local2.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CAPA";
IterTask = _local2.AddTask("GANA_BUDGER", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "BLUDGER";
IterTask = _local2.AddTask("USO_TRASLADOR", "ACTION", "ADD", "USO_TRASLADOR", "GANA_VARITA");
_local3 = AddItem(undefined, "DELAY_TROLL_ROOM", "D");
_local2 = _local3.AddFriend("DELAY_TROLL_ROOM_INTRO", "", "");
_local2.AutoDisableMouse = true;
IterTask = _local2.AddTask("DUMMY_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("SHOW_SKIPBUTTON", "FUNCTION", "SHOWSKIP", "", "DUMMY_INTRO");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "COMENTA_ROBO");
_local2 = _local3.AddFriend("SKIPINTRO", "", "");
_root.SkipIntroFriendTroll_room = _local2;
IterTask = _local2.AddTask("SKIP_INTRO", "DUMMY", "", "", "START");
IterTask = _local2.AddTask("HIDE_SKIPBUTTON", "FUNCTION", "HIDESKIP", "", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP0", "CHAR_DIRECTION", "", "FRONT", "SKIP_INTRO");
IterTask = _local2.AddTask("SKIP1", "EXPRESION", "", "Normal", "SKIP_INTRO");
_local2 = _local3.AddFriend("DELAY_BUDGER", "", "");
IterTask = _local2.AddTask("DECIDE_BUDGER", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("DONTHAVE@USO_TRASLADOR", "COMENTA_PARAQUE");
IterTask.AddCondition("HAVE@GOLPEO_TROLL", "COMENTA_DERROTADO");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local2.AddTask("COMENTA_PARAQUE", "PANEL", 0, "\u00BFPara qu\u00E9 har\u00EDa magia sobre la pelota?", "");
IterTask.AddMsg("Why would I do that?");
IterTask.Expresion = "Normal";
IterTask.Position = "Front";
IterTask = _local2.AddTask("COMENTA_DERROTADO", "PANEL", 0, "\u00BFDarle otro pelotazo? ... mmm ... no soy tan malo", "");
IterTask.AddMsg("Bash him again?... hmm... I'm not that bad");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local2.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local2.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_LEVIOSA", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("COMENTA_NOFUNCIONA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("I don't think that spell is gonna do any good");
IterTask.Position = "Front";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NOFUNCIONA");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local2.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("LANZA_HECHIZO", "PANEL", 0, "\u00A1Wingardium Leviossa!", "CAMINAR");
IterTask.AddMsg("Wingardium Leviossa!");
IterTask = _local2.AddTask("MUESTRA_BLUDGER", "MOVIE_ITEM", "VISIBLE", true, "ESTIRA_VARITA");
IterTask.ItemName = "BLUDGER_TROLL";
IterTask = _local2.AddTask("LANZA_BLUDGER", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "MUESTRA_BLUDGER");
IterTask.ItemName = "BLUDGER_TROLL";
IterTask.MovieFrame = "Vuela";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("REGRESA_BLUDGER", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "LANZA_BLUDGER");
IterTask.ItemName = "BLUDGER_TROLL";
IterTask.MovieFrame = "Golpe";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("GOLPEA_TROLL", "MOVIE_ITEM", "GOTOANDPLAY", "", "LANZA_BLUDGER");
IterTask.ItemName = "TROLL";
IterTask.MovieFrame = "Golpe";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("OCULTA_BLUDGER", "MOVIE_ITEM", "VISIBLE", false, "REGRESA_BLUDGER");
IterTask.ItemName = "BLUDGER_TROLL";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "REGRESA_BLUDGER");
IterTask.AddParentName("LANZA_HECHIZO");
IterTask = _local2.AddTask("GOLPEO_TROLL", "ACTION", "ADD", "GOLPEO_TROLL", "ORIENTA_OBAMA");
IterTask.AddParentName("GOLPEA_TROLL");
IterTask = _local2.AddTask("CANCELA_CHECKZON_TROLL", "ACTION", "ADD", "CANCELA_CHECKZON_TROLL", "GOLPEO_TROLL");
IterTask = _local2.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "GOLPEO_TROLL");
IterTask = _local2.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "GOLPEO_TROLL");
IterTask.ItemName = "FLECHA_DERECHA_TROLL";
IterTask = _local2.AddTask("COMENTA_CAE", "PANEL", 0, "Mientras m\u00E1s grandes son m\u00E1s fuerte caen .. je je je", "FREEMOUSE2");
IterTask.AddMsg("The bigger they are the harder they fall... he he he");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local2 = _local3.AddFriend("DELAY_CRUZA_TROLL", "", "");
IterTask = _local2.AddTask("CHECK_DANGER_ZONE", "CHECK_EVENT", "HIT", "", "");
IterTask.CheckMovieHit1 = "mcTrollRoom.mcObama";
IterTask.CheckMovieHit2 = "mcTrollRoom.mcDangerZone";
IterTask.WaitFlow = false;
IterTask.ItemName = "DELAY_TROLL_ROOM";
IterTask.FriendToLunch = "DELAY_GOLPEA_TROLL";
IterTask.DisableAction = "CANCELA_CHECKZON_TROLL";
IterTask.EnableAction = "ACTIVA_CHECKZON_TROLL";
IterTask.ReachedAction = "LUNCHED_CHECKZON_TROLL";
_local2 = _local3.AddFriend("DELAY_GOLPEA_TROLL", "", "");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("ALINEA_TROLL", "MOVE", "ITEM", "", "BLOCKMOUSE");
IterTask.ItemName = "TROLL";
IterTask.TargetMovieName = "mcTrollRoom.mcObama";
IterTask.CancelXMovement = true;
IterTask.MoveMode = "DIRECT";
IterTask = _local2.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "BLOCKMOUSE");
IterTask = _local2.AddTask("MAZO", "MOVIE_ITEM", "GOTOANDPLAY", "", "BLOCKMOUSE");
IterTask.ItemName = "TROLL";
IterTask.MovieFrame = "Mazo";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("DUMMY", "DUMMY", "", "", "BLOCKMOUSE");
IterTask.WaitFramesAtEnd = 5;
IterTask = _local2.AddTask("CAE_OBAMA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "DUMMY");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "CaeBala";
IterTask.AnimationMode = "SYNC";
IterTask = _local2.AddTask("PERDISTE_TROLL", "SCREEN", "", "", "CAE_OBAMA");
IterTask.MovieName = "mcPerdisteAngel";
IterTask = _local2.AddTask("ALINEA_TROLL2", "MOVE", "ITEM", "", "CAE_OBAMA");
IterTask.ItemName = "TROLL";
IterTask.TargetMovieName = "mcTrollRoom.mcGuiaTroll";
IterTask.CancelXMovement = true;
IterTask.MoveMode = "DIRECT";
IterTask = _local2.AddTask("REGRESA_TROLL", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAE_OBAMA");
IterTask.ItemName = "TROLL";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local2.AddTask("MUEVE_OBAMA", "MOVE", "ITEM", "", "CAE_OBAMA");
IterTask.ItemName = "OBAMA_TROLL_ROOM";
IterTask.TargetMovieName = "mcTrollRoom.mcGuiaTraslador";
IterTask.MoveMode = "DIRECT";
IterTask = _local2.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "CAE_OBAMA");
IterTask = _local2.AddTask("HABILITA_CHECKEVENT", "CHECKTASK_ENABLE", "", "HIT", "CAE_OBAMA");
IterTask.ItemName = "DELAY_TROLL_ROOM";
IterTask.FriendToLunch = "DELAY_CRUZA_TROLL";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "PERDISTE_TROLL");
_local3 = AddItem(undefined, "InventoryTroll_room", "I");
_local3 = AddItem(undefined, "MouseTroll_room", "M");
_local3 = AddItem("mcWalkRange", "TerrenoTroll_room", "T");
_local2 = _local3.AddFriend("MouseTroll_room", "", "");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local3 = AddItem("mcObama", "OBAMA_TROLL_ROOM", "W");
_local3.ScanAtStart = false;
_local2 = _local3.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_TROLL_ROOM", "Normal", "Front");
_local3 = AddItem("mcBludgerTroll", "BLUDGER_TROLL", "W", "");
_local3.AddMsg("");
_local2 = _local3.AddFriend("MOUSE");
_local3 = AddItem("mcTroll", "TROLL", "W", "Un troll");
_local3.AddMsg("A troll");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("DECIDE_MENU_TROLL", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@GOLPEO_TROLL", "MENU2");
IterTask.AddCondition("ELSE", "MENU1");
IterTask = _local2.AddTask("MENU1", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local2.AddTask("MIRAR", "PANEL", 0, "El Troll no se ve nada amigable", "");
IterTask.Expresion = "Asustado";
IterTask.AddMsg("He doesn't look friendly at all");
IterTask = _local2.AddTask("HABLAR", "PANEL", 0, "No creo que me quiera escuchar", "");
IterTask.Expresion = "Asustado";
IterTask.AddMsg("I don't think he wants to chat with me");
IterTask = _local2.AddTask("AGARRAR", "PANEL", 0, "\u00BFNo se te ocurre algo distinto?", "");
IterTask.AddMsg("No way");
IterTask.Expresion = "Asustado";
IterTask.Position = "FRONT";
IterTask = _local2.AddTask("MENU2", "MENUSCENE", "", "", "");
IterTask.HandTask = "AGARRAR2";
IterTask.EyeTask = "MIRAR2";
IterTask.MouthTask = "HABLAR2";
IterTask = _local2.AddTask("MIRAR2", "PANEL", 0, "Est\u00E1 en los brazos de morfeo je je je", "");
IterTask.AddMsg("He seems to have sweet dreams ... he he he");
IterTask.Expresion = "Malevolo";
IterTask = _local2.AddTask("HABLAR2", "PANEL", 0, "No creo que pueda decir ni una palabra je je", "");
IterTask.Expresion = "Malevolo";
IterTask.AddMsg("I don't think he's able to say a single word");
IterTask = _local2.AddTask("AGARRAR2", "PANEL", 0, "\u00BFLlevarme al troll cargando? ni hablar", "");
IterTask.AddMsg("I don't want to carry heavy objects");
_local2 = _local3.AddFriend("BLUDGER", "", "");
IterTask = _local2.AddTask("COMENTA_BLUDGER", "PANEL", 0, "Buena idea, pero no puedo acercarme mucho, quiz\u00E1 con alg\u00FAn hechizo", "START");
IterTask.AddMsg("Good idea but I can't get closer, maybe a spell could help");
IterTask.CanSpeed = false;
IterTask.Expresion = "Normal";
IterTask.Position = "Front";
_local3 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA_TROLL", "W", "Avanzar");
_local3.AddMsg("Go forward");
_local2 = _local3.AddFriend("MOUSE");
IterTask = _local2.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local2.AddTask("CAMINAR", "WALK", "MOVIE", "", "BLOCKMOUSE");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaTroll";
IterTask = _local2.AddTask("ENTRO_DEMENTOR", "ACTION", "ADD", "ENTRO_DEMENTOR", "CAMINAR");
IterTask = _local2.AddTask("AOVAL2", "SCENE", "", "DEMENTOR_ROOM", "CAMINAR");
IterTask.MovieName = "mcDementorRoom.mcGuiaInicio";
IterTask.Transition = true;
IterTask.Position = "RIGHT";
IterTask = _local2.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "AOVAL2");
IterTask = _local2.AddTask("COMENTA_FANTASMA", "PANEL", 0, "Parece un fantasma", "FREEMOUSE");
IterTask.AddMsg("He looks like a ghost");
IterTask.Expresion = "Asustado";
mcTrollRoom.mcGuiaTraslador._visible = false;
mcTrollRoom.mcBludgerTroll._visible = false;
mcTrollRoom.mcGuiaHechizo._visible = false;
mcTrollRoom.mcFlechaDerecha._visible = false;
mcTrollRoom.mcDangerZone._visible = false;
mcTrollRoom.mcGuiaTroll._visible = false;
var _local4;
_local4 = GetSceneByName("TROLL_ROOM").AddSortRule("BLUDGER");
_local4.AddItem("FLECHA_DERECHA_TROLL");
_local4.AddItem("BLUDGER_TROLL");
_local4.AddItem("TROLL");
}
function SF_Dementor_roomTasks() {
var _local2;
var _local1;
var _local4;
curScene = GetSceneByName("DEMENTOR_ROOM");
_local2 = AddItem(undefined, "STARTGAME", "S");
_local1 = _local2.AddFriend("STARTGAME", "", "");
IterTask = _local1.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "VARITA";
IterTask = _local1.AddTask("GANA_FELICIS", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "FELICIS";
IterTask = _local1.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "LIBRO_AZUL";
IterTask = _local1.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CAPA";
IterTask = _local1.AddTask("GANA_BUDGER", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "BLUDGER";
IterTask = _local1.AddTask("USO_TRASLADOR", "ACTION", "ADD", "USO_TRASLADOR", "GANA_VARITA");
IterTask = _local1.AddTask("GANA_PATRONUM", "ACTION", "ADD", "TIENE_PATRONUM", "GANA_VARITA");
_local2 = AddItem(undefined, "DELAY_DEMENTOR_ROOM", "D");
_local1 = _local2.AddFriend("DELAY_ATACA_DEMENTOR", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "BLOCKMOUSE");
IterTask = _local1.AddTask("ASUSTA", "EXPRESION", "", "Asustado", "BLOCKMOUSE");
IterTask = _local1.AddTask("MUEVE_DEMENTOR", "MOVE", "ITEM", "", "BLOCKMOUSE");
IterTask.ItemName = "DEMENTOR";
IterTask.TargetMovieName = "mcDementorRoom.mcObama";
IterTask.DeltaX = 10;
IterTask.DeltaY = 10;
IterTask.MoveMode = "TWEEN";
IterTask = _local1.AddTask("AGARRA_OBAMA", "MOVIE_ITEM", "GOTOANDPLAY", "", "MUEVE_DEMENTOR");
IterTask.ItemName = "DEMENTOR";
IterTask.MovieFrame = "AgarraObama";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("CAEBALA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "AGARRA_OBAMA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "CaeBala";
IterTask.AnimationMode = "ASYNC";
IterTask.WaitFramesAtEnd = 30;
IterTask = _local1.AddTask("SUELTA_OBAMA", "MOVIE_ITEM", "GOTOANDPLAY", "", "CAEBALA");
IterTask.ItemName = "DEMENTOR";
IterTask.MovieFrame = "SueltaObama";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("RETROCEDE_DEMENTOR", "MOVE", "ITEM", "", "SUELTA_OBAMA");
IterTask.ItemName = "DEMENTOR";
IterTask.DistanceX = 100;
IterTask.DeltaX = 5;
IterTask.MoveMode = "TWEEN";
IterTask = _local1.AddTask("DUMMY", "DUMMY", "", "", "RETROCEDE_DEMENTOR");
IterTask.WaitFramesAtEnd = 5;
IterTask = _local1.AddTask("CAE_OBAMA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "DUMMY");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "CaeBala";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("PERDISTE_DEMENTOR", "SCREEN", "", "", "CAE_OBAMA");
IterTask.MovieName = "mcPerdisteAngel";
IterTask = _local1.AddTask("REGRESA_DEMENTOR", "MOVE", "ITEM", "", "CAE_OBAMA");
IterTask.ItemName = "DEMENTOR";
IterTask.TargetMovieName = "mcDementorRoom.mcGuiaDementor";
IterTask.MoveMode = "DIRECT";
IterTask = _local1.AddTask("DEMENTOR_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAE_OBAMA");
IterTask.ItemName = "DEMENTOR";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local1.AddTask("REGRESA_OBAMA", "MOVE", "ITEM", "", "CAE_OBAMA");
IterTask.ItemName = "OBAMA_DEMENTOR_ROOM";
IterTask.TargetMovieName = "mcDementorRoom.mcGuiaInicio";
IterTask.MoveMode = "DIRECT";
IterTask = _local1.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "CAE_OBAMA");
IterTask = _local1.AddTask("ASUSTA", "EXPRESION", "", "Normal", "CAE_OBAMA");
IterTask = _local1.AddTask("HABILITA_CHECKEVENT", "CHECKTASK_ENABLE", "", "HIT", "CAE_OBAMA");
IterTask.ItemName = "DELAY_DEMENTOR_ROOM";
IterTask.FriendToLunch = "DELAY_CRUZA_DEMENTOR";
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "PERDISTE_DEMENTOR");
_local1 = _local2.AddFriend("DELAY_CRUZA_DEMENTOR", "", "");
IterTask = _local1.AddTask("CHECK_DANGER_ZONE", "CHECK_EVENT", "HIT", "", "");
IterTask.CheckMovieHit1 = "mcDementorRoom.mcObama";
IterTask.CheckMovieHit2 = "mcDementorRoom.mcDangerZone";
IterTask.WaitFlow = false;
IterTask.ItemName = "DELAY_DEMENTOR_ROOM";
IterTask.FriendToLunch = "DELAY_ATACA_DEMENTOR";
IterTask.DisableAction = "CANCELA_CHECKZON_DEMENTOR";
IterTask.EnableAction = "ACTIVA_CHECKZON_DEMENTOR";
IterTask.ReachedAction = "LUNCHED_CHECKZON_DEMENTOR";
_local2 = AddItem(undefined, "InventoryDementor_room", "I");
_local2 = AddItem(undefined, "MouseDementor_room", "M");
_local2 = AddItem("mcWalkRange", "TerrenoDementor_room", "T");
_local1 = _local2.AddFriend("MouseDementor_room", "", "");
IterTask = _local1.AddTask("CAMINAR", "WALK", "MOUSE", "", "START");
_local2 = AddItem("mcObama", "OBAMA_DEMENTOR_ROOM", "W");
_local2.ScanAtStart = false;
_local1 = _local2.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_DEMENTOR_ROOM", "Normal", "Front");
_local2 = AddItem("mcPatronum", "PATRONUM", "W", "");
_local2.AddMsg("");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcSacaCorchos", "SACACORCHOS", "W", "Sacacorchos");
_local2.AddMsg("Corkscrew");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcSacaCorchosAux", "SACACORCHOS_AUX", "W", "");
_local2.AddMsg("");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("CAMINA", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "BACK";
IterTask = _local1.AddTask("ORIENTA_OBAMAX", "CHAR_DIRECTION", "", "LEFT", "CAMINA");
IterTask = _local1.AddTask("INCLINA", "MOVIE_ITEM", "GOTOANDSTOPMC", "", "CAMINA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "Moneda";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local1.AddTask("GANA_SACACORCHOS", "INV", "ITEM", "ADD", "INCLINA");
IterTask.ItemName = "SACACORCHOS";
IterTask = _local1.AddTask("OCULTA_SACACORCHOS", "MOVIE", "VISIBLE", false, "INCLINA");
IterTask.MovieName = "mcDementorRoom.mcSacaCorchosMovie";
IterTask = _local1.AddTask("OCULTA_AUXILIAR", "MOVIE_ITEM", "VISIBLE", false, "INCLINA");
IterTask.ItemName = "SACACORCHOS_AUX";
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "BACK", "INCLINA");
IterTask.WaitFramesAtEnd = 10;
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA");
IterTask = _local1.AddTask("COMENTA_CALAVERA", "PANEL", 0, "No creo que a la calavera le haga falta", "FREEMOUSE");
IterTask.AddMsg("I guess the skeleton won't need it anymore");
IterTask.Expresion = "Malevolo";
IterTask.Position = "Front";
_local2 = AddItem("mcDementor", "DEMENTOR", "W", "Un Demmentor");
_local2.AddMsg("A Demmentor");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("MENU", "MENUSCENE", "", "", "START");
IterTask.HandTask = "AGARRAR";
IterTask.EyeTask = "MIRAR";
IterTask.MouthTask = "HABLAR";
IterTask = _local1.AddTask("MIRAR", "PANEL", 0, "Un monje volador", "");
IterTask.Expresion = "Asustado";
IterTask.AddMsg("A flying monk");
IterTask = _local1.AddTask("HABLAR", "PANEL", 0, "\u00BFHablarle? .. pero si no tiene boca", "");
IterTask.AddMsg("Talk with him? ... but he doesn't have a mouth");
IterTask.Expresion = "Asustado";
IterTask = _local1.AddTask("AGARRAR", "PANEL", 0, "\u00BFAgarrarlo? ... me muero de miedo", "");
IterTask.Expresion = "Asustado";
IterTask.Position = "FRONT";
IterTask.AddMsg("Grab him? ... but he scares me");
_local1 = _local2.AddFriend("BLUDGER", "", "");
IterTask = _local1.AddTask("COMENTA_SOLO", "PANEL", 0, "Eso solo funciona con trolls", "START");
IterTask.AddMsg("That only works with trolls");
IterTask.Expresion = "Triste";
IterTask.Position = "Front";
_local1 = _local2.AddFriend("VARITA", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local1.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_PATRONUM", "CAMINAR");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "COMENTA_NO_AYUDA");
IterTask = _local1.AddTask("CAMINAR", "WALK", "MOVIE", "", "");
IterTask.Position = "RIGHT";
IterTask.MovieName = "mcGuiaHechizo";
IterTask = _local1.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "CAMINAR");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("GRITA_PATRONUM", "PANEL", 0, "\u00A1Expecto Patronum!", "CAMINAR");
IterTask.AddMsg("Expecto Patronum!");
IterTask = _local1.AddTask("MUESTRA_PATRONUM", "MOVIE_ITEM", "VISIBLE", true, "ESTIRA_VARITA");
IterTask.ItemName = "PATRONUM";
IterTask = _local1.AddTask("ANIMA_PATRONUM", "MOVIE_ITEM", "GOTOANDPLAY", "", "ESTIRA_VARITA");
IterTask.ItemName = "PATRONUM";
IterTask.MovieFrame = "Vuela";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("ANIMA_DEMENTOR", "MOVIE_ITEM", "GOTOANDPLAY", "", "ESTIRA_VARITA");
IterTask.ItemName = "DEMENTOR";
IterTask.MovieFrame = "Patronum";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("OCULTA_DEMENTOR", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_DEMENTOR");
IterTask.ItemName = "DEMENTOR";
IterTask = _local1.AddTask("MUESTRA_SACACORCHOSAUX", "MOVIE_ITEM", "VISIBLE", true, "ANIMA_DEMENTOR");
IterTask.ItemName = "SACACORCHOS_AUX";
IterTask = _local1.AddTask("DERROTO_DEMENTOR", "ACTION", "ADD", "DERROTO_DEMENTOR", "ANIMA_DEMENTOR");
IterTask = _local1.AddTask("OCULTA_PATRONUM", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_PATRONUM");
IterTask.ItemName = "PATRONUM";
IterTask = _local1.AddTask("DUMMY", "DUMMY", "", "", "OCULTA_PATRONUM");
IterTask.AddParentName("OCULTA_DEMENTOR");
IterTask = _local1.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "DUMMY");
IterTask = _local1.AddTask("MUESTRA_FLECHA", "MOVIE_ITEM", "VISIBLE", true, "DUMMY");
IterTask.ItemName = "FLECHA_DERECHA_DEMENTOR";
IterTask = _local1.AddTask("CANCELA_CHECKZON_DEMENTOR", "ACTION", "ADD", "CANCELA_CHECKZON_DEMENTOR", "DUMMY");
IterTask = _local1.AddTask("FREEMOUSE2", "MOUSE_STATE", "TOTAL", "ENABLED", "DUMMY");
IterTask = _local1.AddTask("COMENTA_PATRONUM", "PANEL", 0, "Mi Patronum sali\u00F3 en forma de \u00E1guila", "FREEMOUSE2");
IterTask.AddMsg("It came out in the shape of an eagle");
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "GRITA_PATRONUM");
IterTask.AddParentName("ESTIRA_VARITA");
_local2 = AddItem("mcFlechaDerecha", "FLECHA_DERECHA_DEMENTOR", "W", "Avanzar");
_local2.AddMsg("Go forward");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("CAMINAR", "WALK", "TARGET", "", "BLOCKMOUSE");
IterTask.Position = "RIGHT";
IterTask = _local1.AddTask("AVOLDEMORD", "SCENE", "", "VOLDEMORD_ROOM", "CAMINAR");
IterTask.MovieName = "mcVoldemordRoom.mcGuiaInicio";
IterTask.Transition = true;
IterTask.Position = "RIGHT";
IterTask = _local1.AddTask("REWIND", "DELAY", "", 0, "AVOLDEMORD");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_VOLDEMORD_ROOM_INTRO";
mcDementorRoom.mcFlechaDerecha._visible = false;
mcDementorRoom.mcGuiaInicio._visible = false;
mcDementorRoom.mcGuiaHechizo._visible = false;
mcDementorRoom.mcGuiaDementor._visible = false;
mcDementorRoom.mcDangerZone._visible = false;
mcDementorRoom.mcPatronum._visible = false;
mcDementorRoom.mcSacaCorchosAux._visible = false;
mcDementorRoom.mcSacaCorchos._visible = false;
var _local3;
_local3 = GetSceneByName("DEMENTOR_ROOM").AddSortRule("DEMENTOR");
_local3.AddItem("PATRONUM");
_local3.AddItem("DEMENTOR");
}
function SF_Voldemord_roomTasks() {
var _local2;
var _local1;
var _local3;
curScene = GetSceneByName("VOLDEMORD_ROOM");
_local2 = AddItem(undefined, "STARTGAME", "S");
_local1 = _local2.AddFriend("STARTGAME", "", "");
IterTask = _local1.AddTask("GANA_VARITA", "INV", "ITEM", "ADD", "START");
IterTask.ItemName = "VARITA";
IterTask = _local1.AddTask("GANA_LEVIOSA", "ACTION", "ADD", "TIENE_LEVIOSA", "GANA_VARITA");
IterTask = _local1.AddTask("GANA_EXPELLIARMUS", "ACTION", "ADD", "TIENE_EXPELLIARMUS", "GANA_VARITA");
IterTask = _local1.AddTask("GANA_ACCIO", "ACTION", "ADD", "TIENE_ACCIO", "GANA_VARITA");
IterTask = _local1.AddTask("GANA_LACARNUM", "ACTION", "ADD", "TIENE_LACARNUM", "GANA_VARITA");
IterTask = _local1.AddTask("GANA_LIBRO", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "LIBRO_ROJO";
IterTask = _local1.AddTask("GANA_CAPA", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "CAPA";
IterTask = _local1.AddTask("GANA_BUDGER", "INV", "ITEM", "ADD", "GANA_VARITA");
IterTask.ItemName = "BLUDGER";
IterTask = _local1.AddTask("USO_TRASLADOR", "ACTION", "ADD", "USO_TRASLADOR", "GANA_VARITA");
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "GANA_VARITA");
IterTask = _local1.AddTask("DELAY_VOLDEMOR_INICIO", "DELAY", "", 0, "GANA_VARITA");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_VOLDEMORD_ROOM_INTRO";
_local2 = AddItem(undefined, "DELAY_VOLDEMORD_ROOM", "D");
_local1 = _local2.AddFriend("DELAY_TIMER_PRUEBA", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("DECIDE_LEVANTA_VOLDEMORD", "CONDITIONAL", "", "", "BLOCKMOUSE");
IterTask.AddCondition("HAVE@CAYO_VOLDEMORD", "LEVANTA");
IterTask.AddCondition("ELSE", "DELAY_ATACA");
IterTask = _local1.AddTask("LEVANTA", "MOVIE_ITEM", "GOTOANDPLAY", "", "");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Levanta";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("DELAY_ATACA", "DELAY", "", "0", "");
IterTask.AddFinishParentName("LEVANTA");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_MATA_OBAMA";
_local1 = _local2.AddFriend("DELAY_TIMER", "", "");
IterTask = _local1.AddTask("TIMER", "CHECK_EVENT", "TIMER", "", "");
IterTask.WaitFlow = false;
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_TIMER_PRUEBA";
IterTask.DisableAction = "TIMER_VOLDEMORD_DISABLE";
IterTask.EnableAction = "TIMER_VOLDEMORD_ENABLE";
IterTask.ReachedAction = "TIMER_VOLDEMORD_OVER";
IterTask.PauseAction = "TIMER_VOLDEMORD_PAUSE";
IterTask.TimerMaxSeconds = 20;
IterTask.mcTimer = mcTimer;
_local1 = _local2.AddFriend("DELAY_VOLDEMORD_ROOM_INTRO", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("DECIDE_ATACA", "CONDITIONAL", "", "", "BLOCKMOUSE");
IterTask.AddCondition("DONTHAVE@TOMO_FELICIS", "DELAY_MATA_OBAMA");
IterTask.AddCondition("ELSE", "DELAY_FALLA");
IterTask = _local1.AddTask("DELAY_FALLA", "DELAY", "", "0", "");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_FALLA";
IterTask = _local1.AddTask("DELAY_MATA_OBAMA", "DELAY", "", "0", "");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_MATA_OBAMA";
_local1 = _local2.AddFriend("DELAY_MATA_OBAMA", "", "");
IterTask = _local1.AddTask("ATACA_VOLDEMORD", "DUMMY", "", "", "START");
IterTask = _local1.AddTask("ATACA", "MOVIE_ITEM", "GOTOANDPLAY", "", "ATACA_VOLDEMORD");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Ataca";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("MUESTRA_SPELL_VOLDEMORD", "MOVIE_ITEM", "VISIBLE", true, "ATACA");
IterTask.ItemName = "SPELL_VOLDEMORD";
IterTask = _local1.AddTask("ANIMA_SPELL_VOLDEMORD", "MOVIE_ITEM", "GOTOANDPLAY", "", "ATACA");
IterTask.ItemName = "SPELL_VOLDEMORD";
IterTask.MovieFrame = "Vuela";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("GRITA_KEDAVRA", "PANEL", 0, "\u00A1AVADA KEDAVRA!", "ATACA_VOLDEMORD");
IterTask.MovieName = "mcVoldemordRoom.mcGuiaHechizo";
IterTask.CanSpeed = false;
IterTask.AddMsg("AVADA KEDAVRA!");
IterTask = _local1.AddTask("ASUSTA_OBAMA", "EXPRESION", "", "Asustado", "ATACA_VOLDEMORD");
IterTask = _local1.AddTask("VOLDEMORD_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "ANIMA_SPELL_VOLDEMORD");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local1.AddTask("GRITA_NUNCA", "PANEL", 0, "\u00A1NUNCA RECUPERARAS LA MONEDA MAGICA! JA JA JA", "ANIMA_SPELL_VOLDEMORD");
IterTask.MovieName = "mcVoldemordRoom.mcGuiaHechizo";
IterTask.CanSpeed = false;
IterTask.AddMsg("YOU'LL NEVER RECOVER THE MAGIC COIN! HA HA HA!");
IterTask = _local1.AddTask("CAE_OBAMA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ANIMA_SPELL_VOLDEMORD");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "CaeBala";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("PERDISTE_VOLDEMORD", "SCREEN", "", "", "CAE_OBAMA");
IterTask.MovieName = "mcPerdisteAngel";
IterTask = _local1.AddTask("VOLDEMORD_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAE_OBAMA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local1.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "CAE_OBAMA");
IterTask = _local1.AddTask("ASUSTA", "EXPRESION", "", "Normal", "CAE_OBAMA");
IterTask = _local1.AddTask("DECIDE_FELICIS", "CONDITIONAL", "", "", "CAE_OBAMA");
IterTask.AddCondition("HAVE@TOMO_FELICIS", "REVERTIR");
IterTask.AddCondition("ELSE", "NADA");
IterTask = _local1.AddTask("REVERTIR", "DUMMY", "", "", "");
IterTask = _local1.AddTask("TOMO_FELICIS", "ACTION", "DROP", "TOMO_FELICIS", "REVERTIR");
IterTask = _local1.AddTask("CAMBIA_FRAME_FELICIS", "ITEM_PROPERTY", "GRAPH_FRAME", "SinCorcho", "REVERTIR");
IterTask.ItemName = "FELICIS";
IterTask = _local1.AddTask("CAMBIA_INFO_FELICIS", "ITEM_PROPERTY", "INFO", "Felix Felicis", "REVERTIR");
IterTask.AddMsg("Felix Felicis");
IterTask.ItemName = "FELICIS";
IterTask = _local1.AddTask("CAYO_VOLDEMORD", "ACTION", "DROP", "CAYO_VOLDEMORD", "CAE_OBAMA");
IterTask = _local1.AddTask("MOVIO_CALAVERA", "ACTION", "DROP", "MOVIO_CALAVERA", "CAE_OBAMA");
IterTask = _local1.AddTask("CALAVERA_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "CAE_OBAMA");
IterTask.ItemName = "CALAVERA_ROJA";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local1.AddTask("MUESTRA_CALAVERA", "MOVIE_ITEM", "VISIBLE", true, "CAE_OBAMA");
IterTask.ItemName = "CALAVERA_ROJA";
IterTask = _local1.AddTask("A_DEMENTOR", "SCENE", "", "DEMENTOR_ROOM", "CAE_OBAMA");
IterTask.MovieName = "mcDementorRoom.mcFlechaDerecha";
IterTask.Transition = false;
IterTask.Position = "FRONT";
IterTask = _local1.AddTask("FREEMOUSEY", "MOUSE_STATE", "TOTAL", "ENABLED", "PERDISTE_VOLDEMORD");
_local1 = _local2.AddFriend("DELAY_FALLA", "", "");
IterTask = _local1.AddTask("ATACA_VOLDEMORD", "DUMMY", "", "", "START");
IterTask = _local1.AddTask("ASUSTA_OBAMA2", "EXPRESION", "", "Asustado", "ATACA_VOLDEMORD");
IterTask = _local1.AddTask("GRITA_KEDAVRA", "PANEL", 0, "\u00A1AVADA KEDAVRA!", "ATACA_VOLDEMORD");
IterTask.CanSpeed = false;
IterTask.MovieName = "mcVoldemordRoom.mcGuiaHechizo";
IterTask.AddMsg("AVADA KEDAVRA!");
IterTask = _local1.AddTask("DUMMY_DEMORA", "DUMMY", "", "", "ATACA_VOLDEMORD");
IterTask.WaitFramesAtEnd = 15;
IterTask = _local1.AddTask("ATACA", "MOVIE_ITEM", "GOTOANDPLAY", "", "DUMMY_DEMORA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Ataca";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("MUESTRA_SPELL_VOLDEMORD", "MOVIE_ITEM", "VISIBLE", true, "ATACA");
IterTask.ItemName = "SPELL_VOLDEMORD";
IterTask = _local1.AddTask("ANIMA_SPELL_VOLDEMORD", "MOVIE_ITEM", "GOTOANDPLAY", "", "ATACA");
IterTask.ItemName = "SPELL_VOLDEMORD";
IterTask.MovieFrame = "VuelaFalla";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("VOLDEMORD_NORMAL", "MOVIE_ITEM", "GOTOANDSTOP", "", "ANIMA_SPELL_VOLDEMORD");
IterTask.AddFinishParentName("GRITA_KEDAVRA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Normal";
IterTask.AnimationMode = "ASYNC";
IterTask = _local1.AddTask("MALEVOLO", "EXPRESION", "", "Malevolo", "VOLDEMORD_NORMAL");
IterTask = _local1.AddTask("FALLE", "PANEL", 0, "\u00A1FALLE!", "VOLDEMORD_NORMAL");
IterTask.CanSpeed = false;
IterTask.MovieName = "mcVoldemordRoom.mcGuiaHechizo";
IterTask.AddMsg("I missed!");
IterTask = _local1.AddTask("MALEVOLO", "EXPRESION", "", "Normal", "FALLE");
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "FALLE");
IterTask = _local1.AddTask("HABILITA_CHECKEVENT", "CHECKTASK_ENABLE", "", "TIMER", "FREEMOUSE");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_TIMER";
_local1 = _local2.AddFriend("DELAY_OBAMA_GANA", "", "");
IterTask = _local1.AddTask("MUESTRA_MONEDA", "MOVIE", "VISIBLE", true, "START");
IterTask.MovieName = "mcVoldemordRoom.mcMonedaAni";
IterTask = _local1.AddTask("ORIENTA_OBAMA3", "CHAR_DIRECTION", "", "RIGHT", "MUESTRA_MONEDA");
IterTask = _local1.AddTask("COMENTA_PATRONUM", "PANEL", 0, "\u00A1Derrotamos a Voldemord!", "ORIENTA_OBAMA3");
IterTask.AddMsg("We defeated Voldemort!");
IterTask.Expresion = "Alegre";
IterTask.CanSpeed = false;
IterTask.Position = "Front";
IterTask = _local1.AddTask("CAMINA_MONEDA", "WALK", "MOVIE", "", "COMENTA_PATRONUM");
IterTask.MovieName = "mcGuiaMoneda";
IterTask.Position = "FRONT";
IterTask = _local1.AddTask("GRACIAS1", "PANEL", 0, "Gracias por ayudarme a recuperar la Aliquantum Prospera, ahora la crisis muggle terminar\u00E1", "CAMINA_MONEDA");
IterTask.AddMsg("Thanks for helping me get the Aliquantum Prospera back, now the muggle crisis should be over");
IterTask.CanSpeed = false;
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local1.AddTask("GRACIAS2", "PANEL", 0, "Si te gust\u00F3 esta aventura, no te pierdas la pr\u00F3xima: PARIS HILTON SCARY GAME", "GRACIAS1");
IterTask.AddMsg("If you liked this adventure, don't miss the next one: PARIS HILTON SCARY GAME");
IterTask.CanSpeed = false;
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local1.AddTask("GRACIAS3", "PANEL", 100, "Visita www.inkagames.com para que te sigas divirtiendo, \u00A1Hasta la pr\u00F3xima!", "GRACIAS2");
IterTask.AddMsg("Visit www.inkagames.com if you wanna keep having fun. See you nex time!");
IterTask.CanSpeed = false;
IterTask.Expresion = "Alegre";
IterTask.Position = "Front";
IterTask = _local1.AddTask("ALEGRA_OBAMA", "EXPRESION", "", "Alegre", "GRACIAS3");
IterTask = _local1.AddTask("GANO", "CHANGE_SCENE", "", "Ganaste", "GRACIAS3");
IterTask.MovieFrame = "Ganaste";
_local2 = AddItem(undefined, "InventoryVoldemord_room", "I");
_local2 = AddItem(undefined, "MouseVoldemord_room", "M");
_local2 = AddItem("mcWalkRange", "TerrenoVoldemord_room", "T");
_local1 = _local2.AddFriend("MouseVoldemord_room", "", "");
IterTask = _local1.AddTask("COMENTA_HECHIZO", "PANEL", 0, "No hay tiempo para caminar, \u00A1Haz un hechizo!", "START");
IterTask.AddMsg("There's no time for walking, Cast a Spell!");
IterTask.CancelFlow = true;
IterTask.Expresion = "Asustado";
IterTask.Position = "Front";
_local2 = AddItem("mcObama", "OBAMA_VOLDEMORD_ROOM", "W");
_local2.ScanAtStart = false;
_local1 = _local2.AddFriend("MOUSE");
curScene.SetCharacter("OBAMA_VOLDEMORD_ROOM", "Normal", "Front");
_local2 = AddItem("mcVaritaAuxiliar", "VARITA_AUXILIAR", "W", "Varita de Voldemord");
_local2.AddMsg("Varita de Voldemord");
_local1 = _local2.AddFriend("MOUSE");
_local1 = _local2.AddFriend("VARITA", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local1.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_LACARNUM", "DISABLE_TIMER");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA2", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "COMENTA_NO_AYUDA");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask.CancelFlow = true;
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("DISABLE_TIMER", "ACTION", "ADD", "TIMER_VOLDEMORD_DISABLE", "");
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "DISABLE_TIMER");
IterTask = _local1.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ORIENTA_OBAMA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaAbajo";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 10;
IterTask = _local1.AddTask("GRITA_LACARNUM", "PANEL", 0, "\u00A1Lacarnum Inflamarae!", "ORIENTA_OBAMA");
IterTask.AddMsg("Lacarnum Inflamarae!");
IterTask = _local1.AddTask("PRENDE_VARITA", "MOVIE_ITEM", "GOTOANDPLAY", "", "ESTIRA_VARITA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "PrendeVarita";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("OCULTA_AUXILIAR_VARITA", "MOVIE_ITEM", "VISIBLE", false, "PRENDE_VARITA");
IterTask.ItemName = "VARITA_AUXILIAR";
IterTask = _local1.AddTask("ESFUMA", "MOVIE_ITEM", "GOTOANDPLAY", "", "PRENDE_VARITA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Esfuma";
IterTask.AnimationMode = "SYNC";
IterTask.WaitFramesAtEnd = 20;
IterTask = _local1.AddTask("OBAMA_GANA", "DELAY", "", "0", "ESFUMA");
IterTask.ItemName = "DELAY_VOLDEMORD_ROOM";
IterTask.FriendToLunch = "DELAY_OBAMA_GANA";
_local2 = AddItem("mcCalaveraRoja", "CALAVERA_ROJA", "W", "Calavera Roja");
_local2.AddMsg("Red skeleton");
_local1 = _local2.AddFriend("MOUSE");
IterTask = _local1.AddTask("COMENTA_LANZA", "PANEL", 0, "No pierdas el tiempo y lanza un hechizo", "START");
IterTask.AddMsg("Don't lose time and perform a spell");
IterTask.Expresion = "Asustado";
IterTask.CancelFlow = true;
IterTask.Position = "Front";
_local1 = _local2.AddFriend("VARITA", "", "");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "START");
IterTask = _local1.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local1.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_LEVIOSA", "ORIENTA_OBAMA");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA2", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "COMENTA_NO_AYUDA");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask.CancelFlow = true;
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "");
IterTask = _local1.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ORIENTA_OBAMA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaArriba";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("GRITA_LEVIOSA", "PANEL", 0, "\u00A1Wingardium Leviosa!", "ORIENTA_OBAMA");
IterTask.AddMsg("Wingardium Leviosa!");
IterTask = _local1.AddTask("ANIMA_CALAVERA", "MOVIE_ITEM", "GOTOANDPLAY", "", "ESTIRA_VARITA");
IterTask.ItemName = "CALAVERA_ROJA";
IterTask.MovieFrame = "Vuela";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("MOVIO_CALAVERA", "ACTION", "ADD", "MOVIO_CALAVERA", "ANIMA_CALAVERA");
IterTask = _local1.AddTask("OCULTA_CALAVERA", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_CALAVERA");
IterTask.ItemName = "CALAVERA_ROJA";
IterTask = _local1.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "OCULTA_CALAVERA");
IterTask = _local1.AddTask("FREEMOUSEX", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA2");
_local2 = AddItem("mcSpellBall", "SPELL_VOLDEMORD", "W", "");
_local2.AddMsg("");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcSpellBall2", "SPELL_OBAMA", "W", "");
_local2.AddMsg("");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcSpellBall", "SPELL_VOLDEMORD", "W", "");
_local2.AddMsg("");
_local1 = _local2.AddFriend("MOUSE");
_local2 = AddItem("mcVoldemord", "VOLDEMORD", "W", "Voldemord");
_local2.AddMsg("Voldemord");
_local1 = _local2.AddFriend("MOUSE");
_local1 = _local2.AddFriend("VARITA", "", "");
IterTask = _local1.AddTask("DECIDE_HECHIZO", "CONDITIONAL", "", "", "START");
IterTask.AddCondition("HAVE@CAYO_VOLDEMORD", "COMENTA_DARKBOOK");
IterTask.AddCondition("ELSE", "BLOCKMOUSE");
IterTask = _local1.AddTask("COMENTA_DARKBOOK", "PANEL", 0, "Ya est\u00E1 desarmado", "");
IterTask.AddMsg("He's already unarmed");
IterTask = _local1.AddTask("BLOCKMOUSE", "MOUSE_STATE", "TOTAL", "DISABLED", "");
IterTask = _local1.AddTask("MUESTRA_SCREEN", "SCREEN", "", "", "BLOCKMOUSE");
IterTask.MovieName = "mcSpells";
IterTask.HideScene = false;
IterTask = _local1.AddTask("ACTIVAR_SPELL", "CONDITIONAL", "", "", "");
IterTask.AddCondition("HAVE@SPELLED_EXPELLIARMUS", "ORIENTA_OBAMA");
IterTask.AddCondition("HAVE@SPELLED_CANCEL", "FREEMOUSE");
IterTask.AddCondition("ELSE", "COMENTA_NO_AYUDA");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("COMENTA_NO_AYUDA2", "PANEL", 0, "Ese hechizo no me ayudar\u00E1", "COMENTA_NO_AYUDA");
IterTask.AddMsg("That spell won't help");
IterTask.Position = "Front";
IterTask.CancelFlow = true;
IterTask = _local1.AddTask("FREEMOUSE", "MOUSE_STATE", "TOTAL", "ENABLED", "");
IterTask = _local1.AddTask("ORIENTA_OBAMA", "CHAR_DIRECTION", "", "RIGHT", "");
IterTask = _local1.AddTask("ESTIRA_VARITA", "MOVIE_ITEM", "GOTOANDPLAYMC", "", "ORIENTA_OBAMA");
IterTask.ItemName = "CURRENT_CHARACTER";
IterTask.MovieFrame = "VaritaMedio";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("GRITA_EXPELIARMUS", "PANEL", 0, "\u00A1Expelliarmus!", "ORIENTA_OBAMA");
IterTask.AddMsg("Expelliarmus!");
IterTask = _local1.AddTask("MUESTRA_SPELL_OBAMA", "MOVIE_ITEM", "VISIBLE", true, "ESTIRA_VARITA");
IterTask.ItemName = "SPELL_OBAMA";
IterTask = _local1.AddTask("DECIDE_FALLA", "CONDITIONAL", "", "", "ESTIRA_VARITA");
IterTask.AddCondition("HAVE@MOVIO_CALAVERA", "DUMMY_ATACA_OBAMA");
IterTask.AddCondition("ELSE", "DUMMY_ATAQUE_DEBIL");
IterTask = _local1.AddTask("DUMMY_ATACA_OBAMA", "DUMMY", "", "", "");
IterTask = _local1.AddTask("SONIDO_SPELL_OBAMA", "SOUND", "ASINCRONO", "", "DUMMY_ATACA_OBAMA");
IterTask.SoundName = "spell_voldemort";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local1.AddTask("ANIMA_SPELL_OBAMA", "MOVIE_ITEM", "GOTOANDPLAY", "", "DUMMY_ATACA_OBAMA");
IterTask.ItemName = "SPELL_OBAMA";
IterTask.MovieFrame = "Vuela";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("VOLDEMORD_CAE", "MOVIE_ITEM", "GOTOANDPLAY", "", "ANIMA_SPELL_OBAMA");
IterTask.ItemName = "VOLDEMORD";
IterTask.MovieFrame = "Cae";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("CAYO_VOLDEMORD", "ACTION", "ADD", "CAYO_VOLDEMORD", "ANIMA_SPELL_OBAMA");
IterTask = _local1.AddTask("MUESTRA_AUXILIAR_VARITA", "MOVIE_ITEM", "VISIBLE", true, "ANIMA_SPELL_OBAMA");
IterTask.ItemName = "VARITA_AUXILIAR";
IterTask = _local1.AddTask("OCULTA_SPELL_OBAMA", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_SPELL_OBAMA");
IterTask.ItemName = "SPELL_OBAMA";
IterTask = _local1.AddTask("ORIENTA_OBAMA3", "CHAR_DIRECTION", "", "RIGHT", "OCULTA_SPELL_OBAMA");
IterTask = _local1.AddTask("FREEMOUSEX", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA3");
IterTask = _local1.AddTask("DUMMY_ATAQUE_DEBIL", "DUMMY", "", "", "");
IterTask = _local1.AddTask("SONIDO_SPELL_OBAMA_FALLA", "SOUND", "ASINCRONO", "", "DUMMY_ATAQUE_DEBIL");
IterTask.SoundName = "pop";
IterTask.SoundTimes = 1;
IterTask.NoAudioWaitFrames = 30;
IterTask = _local1.AddTask("ANIMA_SPELL_OBAMA_FALLA", "MOVIE_ITEM", "GOTOANDPLAY", "", "DUMMY_ATAQUE_DEBIL");
IterTask.ItemName = "SPELL_OBAMA";
IterTask.MovieFrame = "VueloDebil";
IterTask.AnimationMode = "SYNC";
IterTask = _local1.AddTask("OCULTA_SPELL_OBAMA2", "MOVIE_ITEM", "VISIBLE", false, "ANIMA_SPELL_OBAMA_FALLA");
IterTask.ItemName = "SPELL_OBAMA";
IterTask = _local1.AddTask("ORIENTA_OBAMA2", "CHAR_DIRECTION", "", "RIGHT", "OCULTA_SPELL_OBAMA2");
IterTask.AddFinishParentName("OCULTA_SPELL_OBAMA2");
IterTask = _local1.AddTask("FREEMOUSEY", "MOUSE_STATE", "TOTAL", "ENABLED", "ORIENTA_OBAMA2");
IterTask = _local1.AddTask("LAMENTA_FALLA", "PANEL", 0, "Mi hechizo sali\u00F3 muy d\u00E9bil", "FREEMOUSEY");
IterTask.AddMsg("My spell was too weak");
IterTask.Expresion = "Asustado";
IterTask.CancelFlow = true;
mcVoldemordRoom.mcSpellBall._visible = false;
mcVoldemordRoom.mcSpellBall2._visible = false;
mcVoldemordRoom.mcGuiaInicio._visible = false;
mcVoldemordRoom.mcGuiaHechizo._visible = false;
mcVoldemordRoom.mcGuiaMoneda._visible = false;
mcVoldemordRoom.mcVaritaAuxiliar._visible = false;
var _local4;
InitDialogoVoldemord();
}
function InitDialogoVoldemord() {
Block = new objBlock("DIALOGO_VOLDEMORD1_1", "VOLDEMORD", "DIALOGO_VOLDEMORD1_2", "B", "Amargo", "Amargo");
Block.Message = "\u00A1As\u00ED que me encontraste finalmente Obama! .... \u00A1Peor para t\u00ED porque esta cueva ser\u00E1 tu tumba!";
Block.AddMsg("So you finally found me Obama!... Now this cave will be your grave!");
BlockAdmin.AddBlock(Block);
Block = new objBlock("DIALOGO_VOLDEMORD1_2", "MAIN", "DIALOGO_VOLDEMORD1_3", "B", "Amargo", "Amargo");
Block.Message = "\u00A1Esto est\u00E1 por verse Voldemord!";
Block.AddMsg("We'll see that Voldemort!");
Block.ExitTalk = true;
BlockAdmin.AddBlock(Block);
}
Instance of Symbol 54 MovieClip "mcMain" in Frame 7
onClipEvent (keyDown) {
if (Key.getCode() == 38) {
with (_root.Inventario) {
DisplayItems(0, GetFirstItemPrevPage());
}
}
if (Key.getCode() == 40) {
with (_root.Inventario) {
DisplayItems(0, GetFirstItemNextPage());
}
}
}
Frame 8
trace("Entra a Peru.com");
stop();
Frame 9
stop();
mcAniSello.gotoAndStop(3);
Frame 10
function gtm4() {
var _local1;
_local1 = tm2.toString();
if (LanzaIngles) {
getURL (GameServer + "obama_pigsaw_game.html", "_parent");
}
if (LanzaEspanol) {
getURL (GameServer + "obama_juego_pigsaw.html", "_parent");
}
}
mcAlien.gotoAndStop("Normal");
var LanzaIngles = false;
var LanzaEspanol = false;
if (HasSession) {
gotoAndStop ("BeginGame2");
} else {
stop();
var SonidoIntro;
txtLanguage = "FlashVars=" + LanguageFromPage;
mcGameTitle.gotoAndStop(Language);
var tm2 = new XML();
tm2.ignoreWhite = true;
tm2.onLoad = gtm4;
}
if ((!SonidoIntro) || (SonidoIntro == undefined)) {
SonidoIntro = true;
SonidoActual2 = new Sound();
stopAllSounds();
SonidoActual2.stop();
SonidoActual2.attachSound("fondo_intro");
SonidoActual2.start(0, 9999);
}
Instance of Symbol 36 MovieClip "mcGameTitle" in Frame 10
onClipEvent (enterFrame) {
if (_root.c < 50) {
_root.c++;
} else {
_root.nextScene();
}
}
Frame 11
function InitIdioma() {
btnJoinFacebookSpanish._visible = false;
btnJoinFacebookEnglish._visible = false;
eval ("btnJoinFacebook" + Language)._visible = true;
btnMoreGamesSpanish._visible = false;
btnMoreGamesEnglish._visible = false;
eval ("btnMoreGames" + Language)._visible = true;
btnRankingSpanish._visible = false;
btnRankingEnglish._visible = false;
eval ("btnRanking" + Language)._visible = true;
btnCreditosSpanish._visible = false;
btnCreditosEnglish._visible = false;
eval ("btnCreditos" + Language)._visible = true;
mcGameTitle.gotoAndStop(Language);
mcGameDescription.gotoAndStop(Language);
btnSiguienteSpanish._visible = false;
btnSiguienteEnglish._visible = false;
eval ("btnSiguiente" + Language)._visible = true;
btnVersionSpanish._visible = false;
btnVersionEnglish._visible = false;
if (Language == "Spanish") {
btnVersionSpanish._visible = false;
btnVersionEnglish._visible = true;
} else {
btnVersionSpanish._visible = true;
btnVersionEnglish._visible = false;
}
}
mcAlien.gotoAndStop("Normal");
var tm7 = new XML();
tm7.ignoreWhite = true;
mcAlien.gotoAndStop(1);
stop();
mcGameTitle.gotoAndStop(Language);
if ((!SonidoIntro) || (SonidoIntro == undefined)) {
SonidoIntro = true;
SonidoActual2 = new Sound();
stopAllSounds();
SonidoActual2.stop();
SonidoActual2.attachSound("fondo_intro");
SonidoActual2.start(0, 9999);
}
InitIdioma();
Frame 12
stop();
btnRegresarSpanish._visible = false;
btnRegresarEnglish._visible = false;
eval ("btnRegresar" + Language)._visible = true;
mcInkaGames.gotoAndStop(Language);
if ((!SonidoIntro) || (SonidoIntro == undefined)) {
SonidoIntro = true;
SonidoActual2 = new Sound();
stopAllSounds();
SonidoActual2.stop();
SonidoActual2.attachSound("fondo_intro");
SonidoActual2.start(0, 9999);
}
Frame 13
btnSiguienteSpanish._visible = false;
btnSiguienteEnglish._visible = false;
mcInstrucciones.gotoAndStop(Language);
eval ("btnSiguiente" + Language)._visible = true;
if ((!SonidoIntro) || (SonidoIntro == undefined)) {
SonidoIntro = true;
SonidoActual2 = new Sound();
stopAllSounds();
SonidoActual2.stop();
SonidoActual2.attachSound("fondo_intro");
SonidoActual2.start(0, 9999);
}
Frame 14
gotoAndPlay (1);
Frame 15
txtNombre._accProps = new Object();
txtNombre._accProps.name = ".";
txtMensaje._accProps = new Object();
txtMensaje._accProps.name = ".";
txtPatas._accProps = new Object();
txtPatas._accProps.name = ".";
txtMail._accProps = new Object();
txtMail._accProps.name = ".";
mcGrabarLabel._accProps = new Object();
mcGrabarLabel._accProps.silent = true;
btnGrabarSpanish._accProps = new Object();
btnGrabarSpanish._accProps.silent = true;
btnGrabarEnglish._accProps = new Object();
btnGrabarEnglish._accProps.silent = true;
txtResultado._accProps = new Object();
txtResultado._accProps.silent = true;
function ltrim(matter) {
if ((matter.length > 1) || (((matter.length == 1) && (matter.charCodeAt(0) > 32)) && (matter.charCodeAt(0) < 255))) {
i = 0;
while ((i < matter.length) && ((matter.charCodeAt(i) <= 32) || (matter.charCodeAt(i) >= 255))) {
i++;
}
matter = matter.substring(i);
} else {
matter = "";
}
return(matter);
}
function rtrim(matter) {
if ((matter.length > 1) || (((matter.length == 1) && (matter.charCodeAt(0) > 32)) && (matter.charCodeAt(0) < 255))) {
i = matter.length - 1;
while ((i >= 0) && ((matter.charCodeAt(i) <= 32) || (matter.charCodeAt(i) >= 255))) {
i--;
}
matter = matter.substring(0, i + 1);
} else {
matter = "";
}
return(matter);
}
function trim(matter) {
return(ltrim(rtrim(matter)));
}
function HasLongWords(s, nChars) {
var _local1;
var _local2 = "";
var _local3 = 0;
_local1 = 0;
while (_local1 <= (s.length - 1)) {
_local2 = s.substring(_local1, _local1 + 1);
if ((_local2 == " ") || (_local2 == String.fromCharCode(13))) {
_local3 = 0;
} else {
_local3++;
if (_local3 > nChars) {
return(true);
}
}
_local1++;
}
return(false);
}
function CheckLongWords(s, limit) {
var _local2;
var _local11 = 0;
var _local4 = "";
var _local3 = "";
var _local5 = 0;
var _local6 = 0;
var _local7 = 0;
var _local1 = "";
_local2 = 0;
while (_local2 <= (s.length - 1)) {
_local4 = s.substring(_local2, _local2 + 1);
if ((_local4 == " ") || (_local4 == String.fromCharCode(13))) {
if (_local1 != "") {
_local3 = _local3 + _local1;
}
if (_local4 == String.fromCharCode(13)) {
_local6 = _local2;
}
_local3 = _local3 + _local4;
_local5 = 0;
_local1 = "";
} else {
if (_local5 == 0) {
_local7 = _local2;
}
_local5++;
_local1 = _local1 + _local4;
trace("posInicio=" + _local7);
trace("posEnter=" + _local6);
trace("(posInicio-posEnter)=" + (_local7 - _local6));
trace("cc=" + _local5);
trace("LasWord=" + _local1);
if (((_local7 - _local6) + _local5) > limit) {
_local5 = 0;
trace("suma ENTER EN IF ");
_local3 = (_local3 + _local1) + String.fromCharCode(13);
_local1 = "";
_local6 = _local2;
}
}
_local2++;
}
var _local10;
if (_local1 != "") {
if (_local1.length > 20) {
_local10 = _local3.substring(_local3.length - 1, _local3.length);
trace(("XXXXXXXX" + _local10) + "YYYYYYYYYYY");
if (_local10 != String.fromCharCode(13)) {
_local3 = (_local3 + String.fromCharCode(13)) + _local1;
} else {
_local3 = _local3 + _local1;
}
} else {
_local3 = _local3 + _local1;
}
}
return(_local3);
}
mcGrabarLabel.gotoAndStop(Language);
btnGrabarSpanish._visible = false;
btnGrabarEnglish._visible = false;
eval ("btnGrabar" + Language)._visible = true;
stop();
movEligeEquipo._visible = false;
trace("Puntaje=" + Puntaje);
function ValidMail(s) {
var _local7;
var _local4;
var _local2;
var _local1;
var _local9;
var _local3;
var _local5;
var _local8;
_local7 = "@hotmail.com@hotmail.es@gmail.com@hotmail.co.uk@yahoo.com@yahoo.es@live.com@googlemail.com@msn.com@wanado.es@yahoo.in@live.cl@yahoo.es@latinmail.com@live.co.uk@msn.co.uk@rocketmail.com@windowslive.com@speedy.com@";
_local1 = s.indexOf("@");
if (_local1 == -1) {
trace("No tiene @");
return(false);
}
_local4 = s.substring(0, _local1);
_local2 = s.substring(_local1 + 1);
_local1 = _local2.indexOf(".");
if (_local1 == -1) {
trace("no tiene punto en dominio");
return(false);
}
_local1 = _local2.indexOf("@");
if (_local1 >= 0) {
trace("tiene otro @ en dominio");
return(false);
}
_local3 = _local4.length;
_local5 = _local2.length;
if (_local3 <= 3) {
trace("ha puesto un mail muy corto");
return(false);
}
if (RepeatCharTest(_local4, _local3, 3)) {
trace("Prefix 3 consonantes juntas o 3 vocales repetidas... se descarta");
return(false);
}
if (RepeatCharTest(_local2, _local5, 3)) {
trace("Dominio 3 consonantes juntas o 3 vocales repetidas... se descarta");
return(false);
}
if (!ValidPrefixCharacters(_local4, _local3)) {
trace("caracteres invalidos en el correo");
return(false);
}
if (!ValidDomainCharacters(_local2, _local5)) {
trace("caracteres invalidos en el correo");
return(false);
}
return(true);
}
function RepeatCharTest(prefix, prefixlen, n) {
var _local2 = 0;
var _local3 = 0;
var _local4;
var _local1;
var _local5 = 0;
_local4 = 0;
while (_local4 <= (prefixlen - 1)) {
_local1 = prefix.charCodeAt(_local4);
if ((_local1 >= 97) && (_local1 <= 122)) {
if (((((_local1 != 97) && (_local1 != 101)) && (_local1 != 105)) && (_local1 != 111)) && (_local1 != 117)) {
_local3++;
_local2 = 0;
} else {
if (_local5 == _local1) {
_local2++;
} else {
_local2 = 0;
}
_local5 = _local1;
_local3 = 0;
}
if (_local3 >= n) {
return(true);
}
if (_local2 >= n) {
return(true);
}
} else {
_local3 = 0;
_local2 = 0;
}
_local4++;
}
return(false);
}
function ValidPrefixCharacters(prefix, prefixlen, n) {
var _local2;
var _local1;
var _local3;
_local3 = prefix.indexOf("..");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("--");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("___");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf(".-");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("-.");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("._");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("_.");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("-_");
if (_local3 != -1) {
return(false);
}
_local3 = prefix.indexOf("_-");
if (_local3 != -1) {
return(false);
}
_local2 = 0;
while (_local2 <= (prefixlen - 1)) {
_local1 = prefix.charCodeAt(_local2);
if (!((_local1 >= 97) && (_local1 <= 122))) {
if (_local2 == 0) {
trace("Primer caracter alfa");
return(false);
}
if (!((_local1 >= 48) && (_local1 <= 57))) {
if (!(((_local1 == 95) || (_local1 == 45)) || (_local1 == 46))) {
return(false);
}
if ((_local2 == 0) || (_local2 == (prefixlen - 1))) {
trace("Primer o Ultimo caracter alfa invalido");
return(false);
}
}
}
_local2++;
}
return(true);
}
function ValidDomainCharacters(prefix, prefixlen, n) {
var _local2;
var _local1;
var _local5;
_local5 = prefix.indexOf("..");
if (_local5 != -1) {
return(false);
}
_local5 = prefix.indexOf("---");
if (_local5 != -1) {
return(false);
}
_local5 = prefix.indexOf(".-");
if (_local5 != -1) {
return(false);
}
_local5 = prefix.indexOf("-.");
if (_local5 != -1) {
return(false);
}
_local2 = 0;
while (_local2 <= (prefixlen - 1)) {
_local1 = prefix.charCodeAt(_local2);
trace((("CharCode(" + (_local2 + 1)) + ")=") + _local1);
if (!((_local1 >= 97) && (_local1 <= 122))) {
if (_local2 == 0) {
trace("Primer caracter alfa");
return(false);
}
if (!((_local1 >= 48) && (_local1 <= 57))) {
if (!((_local1 == 45) || (_local1 == 46))) {
return(false);
}
if ((_local2 == 0) || (_local2 == (prefixlen - 1))) {
trace("Primer o Ultimo caracter alfa invalido");
return(false);
}
}
}
_local2++;
}
return(true);
}
function GetNewMailPatas(s) {
var _local1;
var _local2;
var _local3 = "";
if (s.indexOf(";") != -1) {
_local2 = s.split(";");
} else if (s.indexOf(",") != -1) {
_local2 = s.split(",");
}
if (_local2 != undefined) {
_local1 = 0;
while (_local1 <= (_local2.length - 1)) {
if (ValidMail(_local2[_local1])) {
_local3 = (_local3 + _local2[_local1]) + ",";
}
_local1++;
}
if (_local3 != "") {
_local3 = _local3.substring(0, _local3.length - 1);
}
} else if (ValidMail(s)) {
_local3 = _local3 + s;
}
return(_local3);
}
function getDNICode(dni) {
var _local1;
var _local3;
var _local2;
var _local5;
_local3 = 1;
_local2 = 0;
_local1 = 0;
while (_local1 <= (dni.length - 1)) {
_local2 = _local2 + (_local3 * dni.substr(_local1, 1));
_local3 = _local3 * -1;
_local1++;
}
if (_local2 < 0) {
_local5 = "0";
_local2 = _local2 * -1;
} else {
_local5 = "1";
}
if (_local2 < 10) {
_local5 = (_local5 + "0") + _local2;
} else {
_local5 = _local5 + _local2;
}
return(_local5);
}
function SaveData() {
var _local5;
var _local2;
txtNombre.text = trim(txtNombre.text);
txtMensaje.text = trim(txtMensaje.text);
if (txtNombre.length < 2) {
txtResultado.text = "El Nombre debe tener m\u00E1s de dos caracteres";
txtNombre.setFocus;
Procesando = false;
return(undefined);
}
CodigoEquipo = 1;
if (txtMensaje.length < 2) {
txtResultado.text = "El Mensaje debe tener m\u00E1s de dos caracteres";
txtMensaje.setFocus;
Procesando = false;
return(undefined);
}
_local2 = _root.gurl + "juego_obama_potter.php?action=1&";
sms = txtNombre.text;
sms2 = "";
if (HasLongWords(sms, 15)) {
sms2 = CheckLongWords(sms, 40);
} else {
sms2 = sms;
}
_local2 = ((_local2 + "nombre=") + escape(sms2)) + "&";
_local2 = ((_local2 + "puntaje=") + escape(Puntaje)) + "&";
_local2 = _local2 + "version=1&";
if (FromPage) {
_local2 = _local2 + "inkagames=1&";
} else {
_local2 = _local2 + "inkagames=0&";
}
_local2 = ((_local2 + "DNI=") + escape(getDNICode(txtDNI.text) + txtDNI.text)) + "&";
sms = txtMensaje.text;
sms2 = "";
if (HasLongWords(sms, 15)) {
sms2 = CheckLongWords(sms, 80);
} else {
sms2 = sms;
}
_local2 = ((_local2 + "mensaje=") + escape(sms2)) + "&";
_local2 = ((_local2 + "equipo=") + escape(CodigoEquipo)) + "&";
_local2 = ((_local2 + "hincha_region=") + escape(pais)) + "&";
var _local4;
var _local3;
_local4 = "" + txtMail.text;
_local3 = _local4.toLowerCase();
_local2 = ((_local2 + "mail=") + escape(_local3)) + "&";
_local4 = "" + txtPatas.text;
_local3 = _local4.toLowerCase();
if (_local3 != "") {
_local2 = ((_local2 + "patas=") + escape(_local3)) + "&";
}
_local2 = ((_local2 + "lang=") + Language) + "&";
_local2 = ((_local2 + "=") + Language) + "&";
_local2 = _local2 + "velocidad=1&";
_local2 = _local2 + "nivel=1&";
hh = RemoveHTTP2(hh) + "";
_local2 = (_local2 + "hh=") + escape(hh);
txtResultado.text = "Un momento por favor estamos grabando los datos...";
trace("urltext=" + _local2);
DataGraba.load(_local2);
txtURLSave = _local2;
}
txtResultado.text = "Puntaje = " + Puntaje;
var Pais = 0;
var level = "";
var sms = "";
var sms2 = "";
gurl = GameServer;
txtNombre.html = false;
txtNombre.editable = true;
txtNombre.restrict = "^'\"";
txtNombre.password = false;
txtNombre.maxChars = 60;
txtNombre.tabIndex = 1;
txtMensaje.html = false;
txtMensaje.editable = true;
txtMensaje.maxChars = 100;
txtMensaje.multiline = true;
txtMensaje.tabIndex = 2;
txtMail.tabIndex = 3;
txtPatas.tabIndex = 4;
btnGrabarEnglish.tabIndex = 5;
btnGrabarSpanish.tabIndex = 6;
function OfertaLoaded() {
trace(("xxx" + Datos.toString()) + "xxx");
txtOferta = Datos.toString().toUpperCase();
}
function Graba() {
_root.codigo = DataGraba.toString();
gotoAndStop ("GraboDatos");
}
stop();
var Procesando = false;
var Datos = new XML();
var DataGraba = new XML();
Datos.ignoreWhite = true;
DataGraba.ignoreWhite = true;
Datos.onLoad = OfertaLoaded;
DataGraba.onLoad = Graba;
if (Puntaje == 0) {
loadMovieNum (_url, 0);
}
stopAllSounds();
var FirstTime = false;
var xxxx = new Sound();
xxxx.attachSound("Gana2");
xxxx.start(0, 9999);
Frame 16
btnMoreGamesSpanish._visible = false;
btnMoreGamesEnglish._visible = false;
eval ("btnMoreGames" + Language)._visible = true;
btnRankingSpanish._visible = false;
btnRankingEnglish._visible = false;
eval ("btnRanking" + Language)._visible = true;
mcRankingButtons.gotoAndStop(Language);
mcFacebookLink.gotoAndStop(Language);
mcGoogleFacebook.gotoAndStop(Language);
mcFloro.gotoAndStop(Language);
mcMoreFunnyGames.gotoAndStop(Language);
stop();
Symbol 25 Button
on (release) {
this.Task.LunchTask("CODIGO_INCORRECTO");
this.Task.Finish();
}
Symbol 27 Button
on (release) {
Girar("D");
}
Symbol 28 Button
on (release) {
Girar("I");
}
Symbol 33 MovieClip [movClaveCaja] Frame 1
function EnterFrame() {
if (State == 0) {
return(0);
}
mcCaja.mcPerilla._rotation = mcCaja.mcPerilla._rotation + DeltaRot;
curDelta++;
if (curDelta == MaxDelta) {
Index++;
if (!(Fallo || (Index > (nCodigos - 1)))) {
if (Codigos[Index] != CurTipo) {
Fallo = true;
trace("Perdio");
} else if (Index == (nCodigos - 1)) {
this.Task.LunchTask("ABRIR_CAJA");
this.Task.Finish();
}
}
State = 0;
curDelta = 0;
}
}
function Girar(Tipo) {
if (State == 1) {
return(0);
}
if (Tipo == "D") {
DeltaRot = DeltaRotation;
} else {
DeltaRot = -DeltaRotation;
}
if (State == 1) {
return(0);
}
State = 1;
CurTipo = Tipo;
}
mcCaja.gotoAndStop("Cerrada");
var DeltaRotation = 5;
var DeltaRot = 0;
var MaxDelta = 4;
var curDelta = 0;
var State = 0;
var Fallo = false;
var Codigos = new Array();
var Index = -1;
var CurTipo = "";
Codigos[0] = "I";
Codigos[1] = "I";
Codigos[2] = "D";
Codigos[3] = "D";
Codigos[4] = "D";
Codigos[5] = "I";
Codigos[6] = "I";
Codigos[7] = "D";
nCodigos = 8;
Instance of Symbol 19 MovieClip "mcCaja" in Symbol 33 MovieClip [movClaveCaja] Frame 1
onClipEvent (enterFrame) {
_parent.EnterFrame();
}
Symbol 39 Button
on (release) {
if (Language == "English") {
getURL ("http://www.inkagames.com", "_blank");
} else {
getURL ("http://www.inkagames.com", "_blank");
}
}
Symbol 46 MovieClip Frame 1
function CheckPercentage() {
var _local2;
_local2 = _root.getBytesLoaded() / _root.getBytesTotal();
_local2 = Math.ceil(_local2 * 100);
if ((_local2 >= 50) && (_root.mcFacebookBanner._currentframe == 1)) {
_root.mcFacebookBanner.gotoAndStop(2);
}
txtPorcentaje = String(_local2) + " %";
}
function CheckLoader(LoadingFrame, BeginFrame) {
if (((_root.getBytesLoaded() == _root.getBytesTotal()) && (_root.TrajoIdioma)) && (_root.TrajoTipConfig)) {
_root.gotoAndPlay(BeginFrame);
} else {
_root.gotoAndPlay(LoadingFrame);
}
}
Symbol 52 Button
on (release) {
if (Language == "English") {
getURL ("http://www.inkagames.com", "_blank");
} else {
getURL ("http://www.inkagames.com", "_blank");
}
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 28
stop();
this.Task.Finish();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 9
stop();
this.Task.Finish();
Symbol 147 MovieClip Frame 20
stop();
this.Task.Finish();
Symbol 147 MovieClip Frame 50
stop();
this.Task.Finish();
Symbol 147 MovieClip Frame 51
_parent.mcSombra._visible = false;
Symbol 147 MovieClip Frame 80
stop();
this.Task.Finish();
Symbol 147 MovieClip Frame 90
stop();
this.Task.Finish();
Symbol 151 MovieClip Frame 22
stop();
this.Task.Finish();
Symbol 151 MovieClip Frame 66
stop();
this.Task.Finish();
Symbol 151 MovieClip Frame 87
stop();
this.Task.Finish();
Symbol 151 MovieClip Frame 108
stop();
this.Task.Finish();
Symbol 151 MovieClip Frame 136
stop();
this.Task.Finish();
Instance of Symbol 170 MovieClip "mcGraph" in Symbol 353 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 353 MovieClip Frame 17
gotoAndPlay ("Walk_Front");
Symbol 353 MovieClip Frame 35
gotoAndPlay ("Walk_Lateral");
Symbol 353 MovieClip Frame 55
gotoAndPlay ("Walk_Back");
Symbol 353 MovieClip Frame 291
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 304
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 321
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 335
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 347
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 366
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 383
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 400
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 417
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 453
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 489
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 492
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 495
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 506
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 535
stop();
this.Task.Finish();
Symbol 353 MovieClip Frame 564
stop();
this.Task.Finish();
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 19
stop();
this.Task.Finish();
Symbol 397 MovieClip Frame 37
stop();
this.Task.Finish();
Symbol 397 MovieClip Frame 58
_parent.mcSombra._visible = false;
Symbol 397 MovieClip Frame 109
stop();
this.Task.Finish();
Symbol 420 MovieClip Frame 73
stop();
this.Task.Finish();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 38
stop();
this.Task.Finish();
Symbol 455 MovieClip Frame 64
stop();
this.Task.Finish();
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 55
stop();
this.Task.Finish();
Symbol 464 MovieClip Frame 90
stop();
this.Task.Finish();
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 26
stop();
this.Task.Finish();
Symbol 502 MovieClip Frame 69
stop();
this.Task.Finish();
Symbol 520 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 13
gotoAndPlay (2);
Symbol 548 MovieClip Frame 14
_parent.mcSombra._visible = false;
Symbol 548 MovieClip Frame 42
stop();
this.Task.Finish();
Symbol 593 MovieClip [mcCalaveraAmarilla] Frame 17
stop();
this.Task.Finish();
Symbol 646 MovieClip Frame 107
stop();
this.Task.Finish();
Symbol 652 MovieClip Frame 31
stop();
this.Task.Finish();
Symbol 657 MovieClip Frame 1
Symbol 665 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 6
stop();
this.Task.Finish();
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 12
this.Task.Finish();
stop();
Symbol 711 MovieClip Frame 24
this.Task.Finish();
stop();
Symbol 711 MovieClip Frame 36
this.Task.Finish();
stop();
Symbol 722 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 12
this.Task.Finish();
stop();
Symbol 725 MovieClip Frame 24
this.Task.Finish();
stop();
Symbol 725 MovieClip Frame 35
this.Task.Finish();
stop();
Symbol 725 MovieClip Frame 46
this.Task.Finish();
stop();
Symbol 761 MovieClip Frame 61
stop();
Symbol 761 MovieClip Frame 116
stop();
Symbol 770 MovieClip [mcEscoba] Frame 79
stop();
this.Task.Finish();
Symbol 796 MovieClip [mcBludger] Frame 41
stop();
this.Task.Finish();
Symbol 838 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 10
stop();
this.Task.Finish();
Symbol 862 MovieClip Frame 1
stop();
Symbol 933 Button
on (release) {
Spell("Accio");
}
on (rollOver) {
mcSpellAccio.gotoAndStop(3);
}
on (rollOut) {
mcSpellAccio.gotoAndStop(2);
}
Symbol 934 Button
on (release) {
Spell("Alohomora");
}
on (rollOver) {
mcSpellAlohomora.gotoAndStop(3);
}
on (rollOut) {
mcSpellAlohomora.gotoAndStop(2);
}
Symbol 935 Button
on (release) {
Spell("Revelum");
}
on (rollOver) {
mcSpellRevelum.gotoAndStop(3);
}
on (rollOut) {
mcSpellRevelum.gotoAndStop(2);
}
Symbol 936 Button
on (release) {
Spell("Cancel");
}
on (rollOver) {
mcCancelSpell.gotoAndStop(2);
}
on (rollOut) {
mcCancelSpell.gotoAndStop(1);
}
Symbol 937 Button
on (release) {
Spell("Expelliarmus");
}
on (rollOver) {
mcSpellExpelliarmus.gotoAndStop(3);
}
on (rollOut) {
mcSpellExpelliarmus.gotoAndStop(2);
}
Symbol 938 Button
on (release) {
Spell("Lacarnum");
}
on (rollOver) {
mcSpellLacarnum.gotoAndStop(3);
}
on (rollOut) {
mcSpellLacarnum.gotoAndStop(2);
}
Symbol 939 Button
on (release) {
Spell("Leviosa");
}
on (rollOver) {
mcSpellLeviosa.gotoAndStop(3);
}
on (rollOut) {
mcSpellLeviosa.gotoAndStop(2);
}
Symbol 940 Button
on (release) {
Spell("Patronum");
}
on (rollOver) {
mcSpellPatronum.gotoAndStop(3);
}
on (rollOut) {
mcSpellPatronum.gotoAndStop(2);
}
Symbol 941 Button
on (release) {
Spell("Animagum");
}
on (rollOver) {
mcSpellAnimagum.gotoAndStop(3);
}
on (rollOut) {
mcSpellAnimagum.gotoAndStop(2);
}
Symbol 942 Button
on (release) {
Spell("Levicorpus");
}
on (rollOver) {
mcSpellLevicorpus.gotoAndStop(3);
}
on (rollOut) {
mcSpellLevicorpus.gotoAndStop(2);
}
Symbol 943 Button
on (release) {
Spell("Discendio");
}
on (rollOver) {
mcSpellDiscendio.gotoAndStop(3);
}
on (rollOut) {
mcSpellDiscendio.gotoAndStop(2);
}
Symbol 944 Button
on (release) {
Spell("Relashio");
}
on (rollOver) {
mcSpellRelashio.gotoAndStop(3);
}
on (rollOut) {
mcSpellRelashio.gotoAndStop(2);
}
Symbol 945 Button
on (release) {
Spell("Reparo");
}
on (rollOver) {
mcSpellReparo.gotoAndStop(3);
}
on (rollOut) {
mcSpellReparo.gotoAndStop(2);
}
Symbol 946 MovieClip Frame 1
function RemoveSpelledActions() {
var _local2;
i = 1;
while (i <= nSpells) {
_local2 = Spells[i].toUpperCase();
ActionName = "SPELLED_" + _local2;
_root.DropAction(ActionName);
i++;
}
}
function Spell(s) {
var _local3;
_local3 = "SPELLED_" + s.toUpperCase();
_root.AddAction(_local3);
this.Task.LunchTask("ACTIVAR_SPELL");
this.Task.Finish();
}
function Init() {
var i;
var Spell;
var ActionName;
mcCancelSpell.gotoAndStop(1);
i = 1;
while (i <= nSpells) {
Spell = Spells[i].toUpperCase();
ActionName = "TIENE_" + Spell;
if (_root.HaveAction(ActionName)) {
eval ("btnSpell" + Spells[i])._visible = true;
eval ("mcSpell" + Spells[i]).gotoAndStop(2);
} else {
eval ("btnSpell" + Spells[i])._visible = false;
eval ("mcSpell" + Spells[i]).gotoAndStop(1);
}
ActionName = "SPELLED_" + Spell;
_root.DropAction(ActionName);
i++;
}
}
var Spells = new Array();
var nSpells;
Spells[1] = "Cancel";
Spells[2] = "Accio";
Spells[3] = "Alohomora";
Spells[4] = "Revelum";
Spells[5] = "Expelliarmus";
Spells[6] = "Lacarnum";
Spells[7] = "Leviosa";
Spells[8] = "Patronum";
Spells[9] = "Animagum";
Spells[10] = "Levicorpus";
Spells[11] = "Discendio";
Spells[12] = "Relashio";
Spells[13] = "Reparo";
Spells[14] = "Cancel2";
_root.AddAction("TIENE_CANCEL2");
if (_root.Language == "English") {
mcCancelSpell2._visible = false;
mcCancelSpell._visible = true;
} else {
mcCancelSpell2._visible = true;
mcCancelSpell._visible = false;
}
nSpells = Spells.length - 1;
mcChooseSpell.gotoAndStop(_root.Language);
Instance of Symbol 951 MovieClip "mcShowBox" in Symbol 955 MovieClip Frame 1
/* no clip actions */
Symbol 977 Button
on (release) {
if (_root.DialogTask != undefined) {
_root.BlockAdmin.CancelDialog();
_root.PerformDialog();
}
}
Symbol 987 Button
on (release) {
_root.CancelDialog();
}
Symbol 992 Button
on (release) {
_root.CancelDialog();
}
Symbol 998 Button
on (release) {
var rect;
var rect2;
var x;
var y;
var mcItem;
var mcPersonaje;
var Sentido;
var XZoneLeft;
var XZoneCenter;
var XZoneRight;
var YZoneUp;
var YZoneCenter;
var YZoneDown;
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.curScene.Personaje.Expresion = "Normal";
if (this.Task.ParentFriend.TargetItem.mc.mcBase != undefined) {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcBase;
} else {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcGraph;
}
mcPersonaje = _root.curScene.Personaje;
rect = mcItem.getRect(_root);
rect2 = mcPersonaje.mcBase.getRect(_root);
x = (rect2.xMin + rect2.xMax) / 2;
y = rect2.yMax - ((rect2.yMax - rect2.yMin) / 10);
XZoneLeft = x < rect.xMin;
XZoneCenter = (x >= rect.xMin) && (x <= rect.xMax);
XZoneRight = x > rect.xMax;
YZoneUp = y < rect.yMin;
YZoneCenter = (y >= rect.yMin) && (y <= rect.yMax);
YZoneDown = y > rect.yMax;
if (XZoneCenter && (YZoneCenter)) {
Sentido = "BACK";
}
if (XZoneLeft && (YZoneCenter)) {
Sentido = "RIGHT";
}
if (XZoneRight && (YZoneCenter)) {
Sentido = "LEFT";
}
if (YZoneUp && (XZoneCenter)) {
Sentido = "FRONT";
}
if (YZoneDown && (XZoneCenter)) {
Sentido = "BACK";
}
if (YZoneUp && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "FRONT";
}
}
if (YZoneUp && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "FRONT";
}
}
if (YZoneDown && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "BACK";
}
}
if (YZoneDown && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "BACK";
}
}
if (!_root.curScene.CurCharacterItem.Frozen) {
if (Sentido == "BACK") {
mcPersonaje.gotoAndStop("Stand_Back");
}
if (Sentido == "FRONT") {
mcPersonaje.gotoAndStop("Stand_Front");
}
if (Sentido == "RIGHT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = -Math.abs(mcPersonaje._xscale);
}
if (Sentido == "LEFT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = Math.abs(mcPersonaje._xscale);
}
}
mcPersonaje.mcCabeza.gotoAndStop("Normal");
this.Task.LunchTask(this.Task.EyeTask);
this.Task.Finish();
_root.CustomLogicAfterPerform();
}
Symbol 1003 Button
on (release) {
var rect;
var rect2;
var x;
var y;
var mcItem;
var mcPersonaje;
var Sentido;
var XZoneLeft;
var XZoneCenter;
var XZoneRight;
var YZoneUp;
var YZoneCenter;
var YZoneDown;
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.curScene.Personaje.Expresion = "Normal";
if (this.Task.ParentFriend.TargetItem.mc.mcBase != undefined) {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcBase;
} else {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcGraph;
}
mcPersonaje = _root.curScene.Personaje;
rect = mcItem.getRect(_root);
rect2 = mcPersonaje.mcBase.getRect(_root);
x = (rect2.xMin + rect2.xMax) / 2;
y = rect2.yMax - ((rect2.yMax - rect2.yMin) / 10);
XZoneLeft = x < rect.xMin;
XZoneCenter = (x >= rect.xMin) && (x <= rect.xMax);
XZoneRight = x > rect.xMax;
YZoneUp = y < rect.yMin;
YZoneCenter = (y >= rect.yMin) && (y <= rect.yMax);
YZoneDown = y > rect.yMax;
if (XZoneCenter && (YZoneCenter)) {
Sentido = "BACK";
}
if (XZoneLeft && (YZoneCenter)) {
Sentido = "RIGHT";
}
if (XZoneRight && (YZoneCenter)) {
Sentido = "LEFT";
}
if (YZoneUp && (XZoneCenter)) {
Sentido = "FRONT";
}
if (YZoneDown && (XZoneCenter)) {
Sentido = "BACK";
}
if (YZoneUp && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "FRONT";
}
}
if (YZoneUp && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "FRONT";
}
}
if (YZoneDown && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "BACK";
}
}
if (YZoneDown && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "BACK";
}
}
if (!_root.curScene.CurCharacterItem.Frozen) {
if (Sentido == "BACK") {
mcPersonaje.gotoAndStop("Stand_Back");
}
if (Sentido == "FRONT") {
mcPersonaje.gotoAndStop("Stand_Front");
}
if (Sentido == "RIGHT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = -Math.abs(mcPersonaje._xscale);
}
if (Sentido == "LEFT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = Math.abs(mcPersonaje._xscale);
}
}
mcPersonaje.mcCabeza.gotoAndStop("Normal");
this.Task.LunchTask(this.Task.HandTask);
this.Task.Finish();
_root.CustomLogicAfterPerform();
}
Symbol 1008 Button
on (release) {
var rect;
var rect2;
var x;
var y;
var mcItem;
var mcPersonaje;
var Sentido;
var XZoneLeft;
var XZoneCenter;
var XZoneRight;
var YZoneUp;
var YZoneCenter;
var YZoneDown;
_root.curScene.Personaje.mcCabeza.gotoAndStop("Normal");
_root.curScene.Personaje.Expresion = "Normal";
if (this.Task.ParentFriend.TargetItem.mc.mcBase != undefined) {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcBase;
} else {
mcItem = this.Task.ParentFriend.TargetItem.mc.mcGraph;
}
mcPersonaje = _root.curScene.Personaje;
rect = mcItem.getRect(_root);
rect2 = mcPersonaje.mcBase.getRect(_root);
x = (rect2.xMin + rect2.xMax) / 2;
y = rect2.yMax - ((rect2.yMax - rect2.yMin) / 10);
XZoneLeft = x < rect.xMin;
XZoneCenter = (x >= rect.xMin) && (x <= rect.xMax);
XZoneRight = x > rect.xMax;
YZoneUp = y < rect.yMin;
YZoneCenter = (y >= rect.yMin) && (y <= rect.yMax);
YZoneDown = y > rect.yMax;
if (XZoneCenter && (YZoneCenter)) {
Sentido = "BACK";
}
if (XZoneLeft && (YZoneCenter)) {
Sentido = "RIGHT";
}
if (XZoneRight && (YZoneCenter)) {
Sentido = "LEFT";
}
if (YZoneUp && (XZoneCenter)) {
Sentido = "FRONT";
}
if (YZoneDown && (XZoneCenter)) {
Sentido = "BACK";
}
if (YZoneUp && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "FRONT";
}
}
if (YZoneUp && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMin);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "FRONT";
}
}
if (YZoneDown && (XZoneLeft)) {
DeltaX = Math.abs(x - rect.xMin);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "RIGHT";
} else {
Sentido = "BACK";
}
}
if (YZoneDown && (XZoneRight)) {
DeltaX = Math.abs(x - rect.xMax);
DeltaY = Math.abs(y - rect.yMax);
if (DeltaX > DeltaY) {
Sentido = "LEFT";
} else {
Sentido = "BACK";
}
}
if (!_root.curScene.CurCharacterItem.Frozen) {
if (Sentido == "BACK") {
mcPersonaje.gotoAndStop("Stand_Back");
}
if (Sentido == "FRONT") {
mcPersonaje.gotoAndStop("Stand_Front");
}
if (Sentido == "RIGHT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = -Math.abs(mcPersonaje._xscale);
}
if (Sentido == "LEFT") {
mcPersonaje.gotoAndStop("Stand_Lateral");
mcPersonaje._xscale = Math.abs(mcPersonaje._xscale);
}
}
mcPersonaje.mcCabeza.gotoAndStop("Normal");
this.Task.LunchTask(this.Task.MouthTask);
this.Task.Finish();
_root.CustomLogicAfterPerform();
}
Symbol 1020 MovieClip Frame 1
function ShowPanel(Msg) {
if (_visible) {
return(0);
}
if (this.Task != undefined) {
txtMensaje.text = this.Task.PanelMsg;
curDelay = this.Task.PanelDelay;
} else {
txtMensaje.text = Msg;
curDelay = 35;
}
_visible = true;
_alpha = 90;
curDelayTexto = 0;
}
function CheckAlpha() {
if (!_visible) {
return(0);
}
if (curDelayTexto > curDelay) {
_alpha = 0;
if (_alpha <= 0) {
if (this.Task != undefined) {
this.Task.Finish();
}
this.Task = undefined;
_visible = false;
}
} else {
curDelayTexto++;
}
}
curDelay = 35;
curDelayTexto = 0;
Symbol 1042 Button
on (release) {
this.Task.Finish();
}
Symbol 1046 Button
on (release) {
this.Task.Finish();
}
Symbol 1048 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1053 Button
on (release) {
gotoAndStop (3);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1054 Button
on (release) {
gotoAndStop (1);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1058 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1059 MovieClip Frame 1
function Init() {
btnSalirEnglish._visible = false;
btnSalirSpanish._visible = false;
eval ("btnSalir" + _root.Language)._visible = true;
gotoAndStop ("Intro");
}
stop();
mcBookIntro.gotoAndStop(_root.Language);
Symbol 1059 MovieClip Frame 2
mcChapter1Text.gotoAndStop(_root.Language);
_root.AddAction("TIENE_ACCIO");
_root.AddAction("TIENE_ALOHOMORA");
_root.AddAction("TIENE_EXPELLIARMUS");
_root.AddAction("TIENE_ANIMAGUM");
_root.AddAction("TIENE_DISCENDIO");
_root.AddAction("TIENE_PATRONUM");
Symbol 1059 MovieClip Frame 3
mcChapter2Text.gotoAndStop(_root.Language);
_root.AddAction("TIENE_LEVICORPUS");
_root.AddAction("TIENE_RELASHIO");
_root.AddAction("TIENE_REPARO");
_root.AddAction("TIENE_REVELUM");
_root.AddAction("TIENE_LACARNUM");
_root.AddAction("TIENE_LEVIOSA");
Symbol 1065 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1069 Button
on (release) {
gotoAndStop (3);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1070 Button
on (release) {
gotoAndStop (1);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1074 MovieClip Frame 1
function Init() {
btnSalirEnglish._visible = false;
btnSalirSpanish._visible = false;
eval ("btnSalir" + _root.Language)._visible = true;
gotoAndStop ("Intro");
}
stop();
mcBookIntro.gotoAndStop(_root.Language);
Symbol 1074 MovieClip Frame 2
mcChapter1Text.gotoAndStop(_root.Language);
Symbol 1074 MovieClip Frame 3
mcChapter2Text.gotoAndStop(_root.Language);
Symbol 1080 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1085 Button
on (release) {
gotoAndStop (1);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1086 Button
on (release) {
gotoAndStop (3);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1090 MovieClip Frame 1
function Init() {
btnSalirEnglish._visible = false;
btnSalirSpanish._visible = false;
eval ("btnSalir" + _root.Language)._visible = true;
gotoAndStop ("Intro");
}
stop();
mcBookIntro.gotoAndStop(_root.Language);
Symbol 1090 MovieClip Frame 2
mcChapter1Text.gotoAndStop(_root.Language);
Symbol 1090 MovieClip Frame 3
mcGraph.gotoAndStop(1);
mcChapter2Text.gotoAndStop(_root.Language);
Symbol 1096 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1103 Button
on (release) {
gotoAndStop (3);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1104 Button
on (release) {
gotoAndStop (1);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1110 Button
on (release) {
gotoAndStop (2);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1111 Button
on (release) {
gotoAndStop (4);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1117 Button
on (release) {
gotoAndStop (3);
this.Task.LunchTask("SONIDO_PAGINA");
}
Symbol 1118 MovieClip Frame 1
function Init() {
btnSalirEnglish._visible = false;
btnSalirSpanish._visible = false;
eval ("btnSalir" + _root.Language)._visible = true;
gotoAndStop ("Intro");
}
stop();
mcBookIntro.gotoAndStop(_root.Language);
Symbol 1118 MovieClip Frame 2
mcChapter1Text.gotoAndStop(_root.Language);
Symbol 1118 MovieClip Frame 3
mcChapter2Text.gotoAndStop(_root.Language);
Symbol 1118 MovieClip Frame 4
mcChapter3Text.gotoAndStop(_root.Language);
Symbol 1126 Button
on (release) {
this.Task.Finish();
}
Symbol 1131 Button
on (release) {
this.Task.Finish();
}
Symbol 1132 MovieClip Frame 1
btnVolverJuegoSpanish._visible = false;
btnVolverJuegoEnglish._visible = false;
eval ("btnVolverJuego" + _root.Language)._visible = true;
Symbol 1138 Button
on (release) {
this.Task.Finish();
}
Symbol 1143 Button
on (release) {
this.Task.Finish();
}
Symbol 1144 MovieClip Frame 1
function Init(MovieFrame) {
btnCerrarSpanish._visible = false;
btnCerrarEnglish._visible = false;
if (MovieFrame == "Revela") {
mcGraph.gotoAndPlay("Revela");
}
if (MovieFrame == "Escribe") {
mcGraph.gotoAndPlay("Escribe");
}
if (MovieFrame == "Normal") {
eval ("btnCerrar" + _root.Language)._visible = true;
mcGraph.gotoAndStop(1);
}
if (MovieFrame == "Revelado") {
eval ("btnCerrar" + _root.Language)._visible = true;
mcGraph.gotoAndStop("Revelado");
}
if (MovieFrame == "Escrito") {
eval ("btnCerrar" + _root.Language)._visible = true;
mcGraph.gotoAndStop("Escrito");
}
}
stop();
trace("_root.Language=" + _root.Language);
Instance of Symbol 761 MovieClip "mcGraph" in Symbol 1144 MovieClip Frame 2
onClipEvent (enterFrame) {
var btn;
if (this._currentframe == 61) {
btn = eval ("_parent.btnCerrar" + _root.Language);
eval ("_parent.btnCerrar" + _root.Language)._visible = true;
}
}
Instance of Symbol 761 MovieClip "mcGraph" in Symbol 1144 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this._currentframe == 116) {
eval ("_parent.btnCerrar" + _root.Language)._visible = true;
}
}
Symbol 1156 Button
on (release) {
this.Task.Finish();
}
Symbol 1161 Button
on (release) {
this.Task.Finish();
}
Symbol 1162 MovieClip Frame 1
function Init() {
mcGasSystemAlert._visible = false;
if (_root.HaveAction("ENTREGO_LENTES")) {
mcTipMorfeo._visible = false;
} else {
mcTipMorfeo._visible = true;
}
}
btnVolverJuegoEnglish._visible = false;
btnVolverJuegoSpanish._visible = false;
eval ("btnVolverJuego" + _root.Language)._visible = true;
mcPerdisteText.gotoAndStop(_root.Language);
mcTipMorfeo.gotoAndStop(_root.Language);
Symbol 1164 MovieClip Frame 1
function Init() {
Validating = true;
c = 0;
}
function CheckFinish() {
if (!Validating) {
return(undefined);
}
if (c >= MaxFrames) {
Validating = false;
c = 0;
this.Task.Finish();
} else {
trace("c=" + c);
c++;
}
}
mcGraph.gotoAndStop("Unicornio");
var Validating = false;
var c = 0;
var MaxFrames = 100;
Instance of Symbol 862 MovieClip "mcGraph" in Symbol 1164 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.CheckFinish();
}
Symbol 1167 MovieClip Frame 1
btnVolverJuegoSpanish._visible = false;
btnVolverJuegoEnglish._visible = false;
eval ("btnVolverJuego" + _root.Language)._visible = true;
Symbol 1183 Button
on (release) {
_root.ShowTip();
}
Symbol 1188 Button
on (release) {
_root.ShowTip();
}
Symbol 1199 Button
on (release) {
this.Task.Finish();
}
Symbol 1204 Button
on (release) {
gotoAndStop ("ShowTip");
}
Symbol 1212 Button
on (release) {
this.Task.Finish();
}
Symbol 1217 Button
on (release) {
gotoAndStop ("ShowTip");
}
Symbol 1223 Button
on (release) {
_root.FramesSinceLastTip = 0;
this.Task.Finish();
this.gotoAndStop(1);
}
Symbol 1228 Button
on (release) {
_root.FramesSinceLastTip = 0;
this.Task.Finish();
this.gotoAndStop(1);
}
Symbol 1234 Button
on (release) {
this.Task.Finish();
}
Symbol 1239 Button
on (release) {
gotoAndStop ("ShowTip");
}
Symbol 1244 Button
on (release) {
this.Task.Finish();
}
Symbol 1252 Button
on (release) {
gotoAndStop ("ShowTip");
}
Symbol 1253 MovieClip Frame 1
function Init() {
NextTip = _root.GetNextTip();
if (_root.TipsUsed == 0) {
gotoAndStop ("TipIntro");
} else if (NextTip == "NO_MORE_TIPS") {
gotoAndStop ("ShowTip");
} else {
gotoAndStop ("ConfirmTip");
}
}
NextTip = "";
stop();
Symbol 1253 MovieClip Frame 2
btnNeverTipEnglish._visible = false;
btnNeverTipSpanish._visible = false;
eval ("btnNeverTip" + _root.Language)._visible = true;
btnGiveFirstTipSpanish._visible = false;
btnGiveFirstTipEnglish._visible = false;
eval ("btnGiveFirstTip" + _root.Language)._visible = true;
if (_root.Language == "English") {
txtIntro = ("SO YOU WANT SOME TIPS ... HERE ARE THE RULES:" + String.fromCharCode(13)) + String.fromCharCode(13);
txtIntro = (((txtIntro + "1. YOU'LL HAVE JUST ") + _root.MaxTips) + " TIPS PER GAME.") + String.fromCharCode(13);
txtIntro = (((txtIntro + "2. EACH TIP WILL COST YOU ") + _root.PointsForTip) + " POINTS.") + String.fromCharCode(13);
if (_root.MinutesToNextTip > 1) {
txtIntro = (((txtIntro + "3. YOU'LL HAVE TO WAIT ") + _root.MinutesToNextTip) + " MINUTES TO ASK ANOTHER TIP AGAIN.") + String.fromCharCode(13);
} else {
txtIntro = (txtIntro + "3. YOU'LL HAVE TO WAIT 1 MINUTE TO ASK ANOTHER TIP AGAIN.") + String.fromCharCode(13);
}
txtIntro = txtIntro + String.fromCharCode(13);
txtIntro = txtIntro + "DO YOU ACCEPT THE RULES?";
} else {
txtIntro = ("ASI QUE QUIERES TIPS ... AQUI ESTAN MIS REGLAS:" + String.fromCharCode(13)) + String.fromCharCode(13);
txtIntro = (((txtIntro + "1. SOLO TENDRAS ") + _root.MaxTips) + " TIPS POR JUEGO.") + String.fromCharCode(13);
txtIntro = (((txtIntro + "2. CADA TIP TE COSTARA ") + _root.PointsForTip) + " PUNTOS.") + String.fromCharCode(13);
if (_root.MinutesToNextTip > 1) {
txtIntro = (((txtIntro + "3. TENDRAS QUE ESPERAR ") + _root.MinutesToNextTip) + " MINUTOS PARA PEDIR OTRO TIP.") + String.fromCharCode(13);
} else {
txtIntro = (txtIntro + "3. TENDRAS QUE ESPERAR 1 MINUTO PARA PEDIR OTRO TIP.") + String.fromCharCode(13);
}
txtIntro = txtIntro + String.fromCharCode(13);
txtIntro = (txtIntro + "ACEPTAS LAS REGLAS?") + String.fromCharCode(13);
}
Symbol 1253 MovieClip Frame 3
function PerformShowTip() {
btnSalirEnglish._visible = false;
btnSalirSpanish._visible = false;
trace("_root.Language=" + _root.Language);
eval ("btnSalir" + _root.Language)._visible = true;
trace("NextTip=" + NextTip);
if (NextTip == "NO_MORE_TIPS") {
if (_root.Language == "English") {
txtTip = "No more tips for this puzzle";
} else {
txtTip = "No hay m\u00E1s tips para esta prueba";
}
_root.NoMoreTips = true;
} else {
txtTip = NextTip;
if (_root.LastTipShowed != NextTip) {
_root.TipsUsed++;
if (_root.TipsUsed == _root.MaxTips) {
_root.mcShowTipDisabledSpanish._visible = false;
_root.mcShowTipDisabledEnglish._visible = false;
}
_root.LastTipShowed = NextTip;
}
}
}
PerformShowTip();
Symbol 1253 MovieClip Frame 4
trace("Language=" + Language);
if (_root.Language == "English") {
if ((_root.MaxTips - _root.TipsUsed) == 1) {
txtPregunta = ("I SUGGEST YOU USE THE TIPS WHEN'S STRICTLY NECESSARY." + String.fromCharCode(13)) + "YOU HAVE JUST 1 TIP LEFT .. \u00BFDO YOU WANT THE TIP ANYWAY?";
} else {
txtPregunta = ((("I SUGGEST YOU USE THE TIPS WHEN'S STRICTLY NECESSARY." + String.fromCharCode(13)) + "YOU HAVE JUST ") + (_root.MaxTips - _root.TipsUsed)) + " TIPS LEFT .. \u00BFDO YOU WANT ANOTHER TIP ANYWAY?";
}
} else if ((_root.MaxTips - _root.TipsUsed) == 1) {
txtPregunta = ("TE SUGIERO QUE USES LOS TIPS SOLO CUANDO SEA ABSOLUTAMENTE INDISPENSABLE." + String.fromCharCode(13)) + "SOLO TE QUEDA 1 TIP .. \u00BFQUIERES EL TIP DE TODOS MODOS?";
} else {
txtPregunta = ((("TE SUGIERO QUE USES LOS TIPS SOLO CUANDO SEA ABSOLUTAMENTE INDISPENSABLE." + String.fromCharCode(13)) + "SOLO TE QUEDAN ") + (_root.MaxTips - _root.TipsUsed)) + " TIPS .. \u00BFQUIERES OTRO TIP DE TODOS MODOS?";
}
btnSaveTipEnglish._visible = false;
btnSaveTipSpanish._visible = false;
eval ("btnSaveTip" + _root.Language)._visible = true;
btnGiveNextTipSpanish._visible = false;
btnGiveNextTipEnglish._visible = false;
eval ("btnGiveNextTip" + _root.Language)._visible = true;
Symbol 1258 Button
on (release) {
_root.SkipIntro();
}
Symbol 1261 Button
on (release) {
_root.SkipIntro();
}
Instance of Symbol 36 MovieClip "mcTitle" in Symbol 1270 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.c < 50) {
_root.c++;
} else {
_root.nextScene();
}
}
Symbol 1272 Button
on (release) {
_root.gtm();
}
Symbol 1290 Button
on (release) {
_root.ControlAudio.setVolume(_root.InitialVolume);
btnNoAudio._visible = false;
btnAudio._visible = true;
}
Symbol 1292 Button
on (release) {
_root.ControlAudio.setVolume(0);
btnNoAudio._visible = true;
btnAudio._visible = false;
}
Symbol 1293 MovieClip Frame 1
btnAudio._visible = true;
btnNoAudio._visible = false;
Symbol 1299 Button
on (release) {
if ((Language != "English") && (Language != "")) {
getURL (GameServer + "obama_escape_game.html", "_target");
}
Language = "English";
tm2.load((((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime());
gotoAndStop ("BeginGame2");
}
Symbol 1304 Button
on (release) {
var url;
if ((Language != "Spanish") && (Language != "")) {
getURL (GameServer + "obama_juego_escape.html", "_target");
}
Language = "Spanish";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm2.load(url);
gotoAndStop ("BeginGame2");
}
Symbol 1308 Button
on (release) {
var url;
if ((Language != "English") && (FromPage)) {
Language = "English";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm2.load(url);
trace(url);
LanzaIngles = true;
return(undefined);
}
Language = "English";
tm2.load((((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime());
gotoAndStop ("BeginGame2");
}
Symbol 1312 Button
on (release) {
var url;
if ((Language != "Spanish") && (FromPage)) {
Language = "Spanish";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm2.load(url);
trace(url);
LanzaEspanol = true;
return(undefined);
}
Language = "Spanish";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm2.load(url);
gotoAndStop ("BeginGame2");
}
Symbol 1323 Button
on (release) {
getURL ("http://www.facebook.com/pages/Inkagames/68249789988", "_blank");
}
Symbol 1328 Button
on (release) {
getURL ("http://www.facebook.com/pages/Inkagames/68249789988", "_blank");
}
Symbol 1333 Button
on (release) {
getURL ("http://www.inkagames.com", "_blank");
}
Symbol 1338 Button
on (release) {
gotoAndStop ("BeginGame4");
}
Symbol 1342 Button
on (release) {
gotoAndStop ("BeginGame3");
}
Symbol 1347 Button
on (release) {
getURL (GameServer + "obama_operacion_raton_ranking.php", "_blank");
}
Symbol 1348 Button
on (release) {
if (FromPage) {
getURL (GameServer + "obama_potter_english.html", "_parent");
return(undefined);
}
Language = "English";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm7.load(url);
InitIdioma();
}
Symbol 1353 Button
on (release) {
getURL ("http://www.inkagames.com/index_en.html", "_blank");
}
Symbol 1358 Button
on (release) {
gotoAndStop ("BeginGame4");
}
Symbol 1363 Button
on (release) {
gotoAndStop ("BeginGame3");
}
Symbol 1367 Button
on (release) {
getURL (GameServer + "obama_ratface_game_ranking.php", "_blank");
}
Symbol 1368 Button
on (release) {
if (FromPage) {
getURL (GameServer + "obama_potter.html", "_parent");
}
Language = "Spanish";
url = (((GameServer + "get_language.php?language=") + Language) + "&x=") + new Date().getTime();
tm7.load(url);
InitIdioma();
}
Symbol 1380 Button
on (release) {
gotoAndStop ("BeginGame2");
}
Symbol 1383 Button
on (release) {
gotoAndStop ("BeginGame2");
}
Symbol 1401 Button
on (release) {
gotoAndStop ("BeginGame");
}
Symbol 1402 Button
on (release) {
gotoAndStop ("BeginGame");
}
Symbol 1429 Button
on (release) {
getURL ("http://www.inkagames.com/index_en.html", "_blank");
}
Symbol 1435 Button
on (release) {
getURL ("http://www.facebook.com/pages/Inkagames/68249789988", "_blank");
}
Symbol 1440 Button
on (release) {
getURL ("http://www.facebook.com/pages/Inkagames/68249789988", "_blank");
}
Symbol 1444 Button
on (release) {
getURL (GameServer + "obama_potter_ranking.php", "_blank");
}
Symbol 1445 Button
on (release) {
getURL (GameServer + "obama_potter_ranking_en.php", "_blank");
}
Symbol 1456 Button
on (release) {
trace("1");
if (_root.Procesando) {
return(0);
}
_root.Procesando = true;
trace("2");
_root.SaveData();
}
Symbol 1485 Button
on (release) {
trace("1");
if (_root.Procesando) {
return(0);
}
_root.Procesando = true;
trace("2");
_root.SaveData();
}
Symbol 1488 Button
on (release) {
trace("1");
if (_root.Procesando) {
return(0);
}
_root.Procesando = true;
trace("2");
_root.SaveData();
}
Symbol 1499 Button
on (release) {
getURL ("http://www.inkagames.com", "_blank");
}