Skip to main content
July 5, 2013
Question

Fixing Error Code! Help Me plz

  • July 5, 2013
  • 1 reply
  • 861 views

I'm having problem with rebuilding this script

Help me to fix this please!

Thanks!


1084: Syntax error: expecting semicolon before atsign.

1084: Syntax error: expecting rightbrace before rightparen.

---> monsterChat.complete = @pushwith@({});

package game.modules.scene

{

    import Manager.*;

    import Role.*;

    import Scene.*;

    import com.greensock.*;

    import common.config.*;

    import common.content.*;

    import common.datas.*;

    import common.datas.vo.role.*;

    import common.events.*;

    import common.interfaces.*;

    import common.managers.*;

    import common.net.*;

    import flash.display.*;

    import flash.events.*;

    import flash.geom.*;

    import framework.core.*;

    import game.modules.guide.guideCommon.*;

    import game.modules.guide.guideEvents.*;

    import game.modules.scene.logic.*;

    import game.modules.ui.autoPlayPath.*;

    import game.modules.ui.chat.logic.channels.*;

    import game.modules.ui.countdown.data.*;

    import game.modules.ui.hint.events.*;

    import game.modules.ui.task.command.*;

    import game.modules.ui.task.model.*;

    import game.modules.ui.toolTip.datas.*;

    public class SceneController extends framework.core.Observer

    {

        public function SceneController()

        {

            super();

            return;

        }

        public override function get observerID():String

        {

            return NAME;

        }

        public override function get localEvents():Array

        {

            return [common.events.SceneEventList.ENTER_MAP, this.enterMap, common.events.UIEventList.INITIALIZE, this.gameInit, common.events.EventList.GAMEINIT, this.sceneInit, common.events.UIEventList.INIT_SYSTEM_SETTING, this.initSysSetting, common.events.SceneEventList.SAVE_QUICK_INFO, this.initSysSetting, common.events.EventList.STAGERESIZE, this.stageResize, common.events.PlayerEventList.SELECTED_OTHER_ELEMENT, this.onSelectedOtherElement, common.events.PlayerEventList.DELETE_OTHER_PLAYER, this.otherRoleDelete, common.events.PlayerEventList.PLAYER_RUN_TO, this.onSceneClick, common.events.SceneEventList.SCENE_MAP_CLICK, this.onSmallAndSceneClick, common.events.PlayerEventList.AUTO_PATH_RUNTO, this.autoPathRunTo, common.events.SceneEventList.SCENE_GOTO_TILE, this.moveToTile, common.events.EventList.CHANGELINECOMPLETE, this.onChangeLineComplete, common.events.SceneEventList.CHANGE_SCENE, this.onChangeScene, common.events.EventList.STARTCHANGELINE, this.onChangeStartLine, common.events.UIEventList.SERVER_HEARTBEAT, this.onServerHeartBeat, common.events.SceneEventList.NPC_HIDE, this.onNpcHide, common.events.PlayerEventList.SHILDER_UPDATE, this.onShilderUpdate, common.events.PlayerEventList.ADD_PET_ALL, this.onAddPet, common.events.SceneEventList.ATTACK_CHANGE_LINE, this.changeLine, common.events.SceneEventList.SKILL_ATT_UPDATE, this.skillAttUpdate, common.events.SceneEventList.DO_TRANSSCENE_NEXT, this.doTransNextAction];

        }

        private function initSysSetting():void

        {

            new game.modules.scene.logic.SysSettingLogic().doSysSetting();

            return;

        }

        private function skillAttUpdate(arg1:Object=null):void

        {

            var loc1:*;

            loc1 = common.datas.CommonData.sameSecnePlayerList.getGameComponect(arg1.idTarget) as Role.Element;

            if (loc1 == null)

            {

                return;

            }

            var loc2:*;

            loc2 = arg1.absoluteHp;

            var loc3:*;

            loc3 = arg1.addInfo;

            switch (loc3)

            {

                case 0:

                case 1:

                case 2:

                {

                    game.modules.scene.logic.UpdateAttLogic.getInstance().updateHp(arg1, loc2, 2);

                    break;

                }

                case 4:

                {

                    game.modules.scene.logic.UpdateAttLogic.getInstance().updateDesMp(arg1, loc2, 2);

                    break;

                }

                case 10:

                {

                    game.modules.scene.logic.UpdateAttLogic.getInstance().updateMp(arg1, loc2, 2);

                    break;

                }

                case 11:

                {

                    game.modules.scene.logic.UpdateAttLogic.getInstance().updateHp(arg1, loc2, 2);

                    break;

                }

            }

            return;

        }

        private function onAddPet(arg1:Role.Element):void

        {

            game.modules.scene.logic.SceneLogic.getInstance().setShow(arg1);

            return;

        }

        private function gameInit():void

        {

            var monsterChat:common.content.AsyncContent;

            var loc1:*;

            Manager.SysCursor.getInstance().setMouseType();

            monsterChat = new common.content.AsyncContent();

            with ({})

          ---> monsterChat.complete = @pushwith@({});

            if (common.datas.ConstData.platformName)

            {

                common.config.GameConfig.monsterChatData = "Resources/GameData/MonstChat_" + common.datas.ConstData.platformName + "_" + common.datas.ConstData.SERVER + ".bin?v=" + common.datas.ConstData.CACHEVERSION;

            }

            monsterChat.load(common.config.GameConfig.CONTENTROOT + common.config.GameConfig.monsterChatData);

            return;

        }

        private function onShilderUpdate():void

        {

            var loc3:*;

            loc3 = null;

            var loc1:*;

            loc1 = common.datas.CommonData.sameSecnePlayerList.arrayCollection.length;

            var loc2:*;

            loc2 = 0;

            while (loc2 < loc1)

            {

                loc3 = common.datas.CommonData.sameSecnePlayerList.arrayCollection[loc2] as Role.Element;

                if (loc3)

                {

                    game.modules.scene.logic.SceneLogic.getInstance().setShow(loc3);

                }

                loc2 = (loc2 + 1);

            }

            return;

        }

        private function onNpcHide(arg1:String, arg2:uint):void

        {

            var loc1:*;

            loc1 = null;

            if (arg2 == 1)

            {

                loc1 = common.datas.CommonData.sameSecnePlayerList.getGameComponect(arg1) as Role.NPCElement;

                if (!loc1)

                {

                    return;

                }

                (loc1.gameRole as common.datas.vo.role.NPCVo).idTeam = 1;

                loc1.visible = false;

                this.localDispatch(common.events.UIEventList.CHANGE_NPC_VISIABLE, arg1, false);

            }

            return;

        }

        private function onServerHeartBeat():void

        {

            var loc1:*;

            loc1 = null;

            var loc2:*;

            loc2 = null;

            var loc3:*;

            loc3 = null;

            if (common.datas.CommonData.sameSecnePlayerList == null)

            {

                return;

            }

            var loc4:*;

            loc4 = 0;

            var loc5:*;

            loc5 = common.datas.CommonData.sameSecnePlayerList.arrayCollection;

            for each (loc1 in loc5)

            {

                loc2 = loc1 as Role.Element;

                if (!(loc2 && loc2.gameRole.type == common.datas.vo.role.BaseRoleVo.TYPE_NPC))

                {

                    continue;

                }

                loc3 = common.datas.ConfigConstData.NPC_CONFIG[loc2.gameRole.idMonsterType];

                if (!(loc3 && loc3.startTime))

                {

                    continue;

                }

                if (game.modules.scene.logic.SceneLogic.getInstance().isShowNpc(loc3.startTime, loc3.endTime, loc3.showTime, loc3.hideTime))

                {

                    if ((loc2.gameRole as common.datas.vo.role.NPCVo).idTeam != 1)

                    {

                        loc2.visible = true;

                    }

                    else

                    {

                        loc2.visible = false;

                    }

                }

                else

                {

                    if ((loc2.gameRole as common.datas.vo.role.NPCVo).idTeam == 1)

                    {

                        (loc2.gameRole as common.datas.vo.role.NPCVo).idTeam = 0;

                    }

                    loc2.visible = false;

                }

                this.localDispatch(common.events.UIEventList.CHANGE_NPC_VISIABLE, loc2.id, loc2.visible);

            }

            return;

        }

        private function otherRoleDelete(arg1:String):void

        {

            var loc2:*;

            loc2 = null;

            if (common.datas.CommonData.sameSecnePlayerList == null)

            {

                return;

            }

            var loc1:*;

            loc1 = common.datas.CommonData.sameSecnePlayerList.getGameComponect(arg1) as Role.Element;

            if (loc1)

            {

                if (loc1 as Role.NPCElement)

                {

                    loc2 = common.datas.ConfigConstData.NPC_CONFIG[loc1.gameRole.idMonsterType];

                    if (!(loc2 && loc2.startTime || game.modules.scene.logic.SceneLogic.getInstance().isInFb() || loc1.gameRole.type == common.datas.vo.role.BaseRoleVo.TYPE_STATUE))

                    {

                        if (!(loc2 && loc2.npcType && loc2.npcType == 1))

                        {

                            return;

                        }

                    }

                }

                else

                {

                    if (loc1 == common.datas.CommonData.pet)

                    {

                        common.datas.CommonData.pet = null;

                        this.localDispatch(common.events.PlayerEventList.DELETE_SELF_PET);

                    }

                }

                delete common.datas.CommonData.playerNameDic[loc1.gameRole.szName];

                this._gameRoleScene.deletePlayer(loc1);

                if (loc1 === common.datas.CommonData.selectedTarget)

                {

                    common.datas.CommonData.selectedTarget = null;

                }

                loc1 == null;

            }

            return;

        }

        private function onSelectedOtherElement(arg1:String):void

        {

            if (arg1 == common.datas.CommonData.playerRoleVo.userid)

            {

                common.datas.CommonData.selectedTarget = common.datas.CommonData.player as common.interfaces.IGameComponent;

                this.localDispatch(common.events.UIEventList.SELECTED_TARGET);

            }

            var loc1:*;

            loc1 = common.datas.CommonData.sameSecnePlayerList.getGameComponect(arg1) as Role.Element;

            if (loc1)

            {

                loc1.setSelected(1);

            }

            return;

        }

        private function onChangeStartLine():void

        {

            common.datas.AttackCommon.followAttackId = -1;

            common.datas.CommonData.actionStatus = 0;

            Role.GameAnimalElementPlayer(common.datas.CommonData.player).stop(1);

            if (common.datas.CommonData.selectedTarget)

            {

                (common.datas.CommonData.selectedTarget as Role.Element).cancelSelected();

                this.localDispatch(common.events.UIEventList.DELETE_TARGET_KEY, (common.datas.CommonData.selectedTarget as Role.Element).id);

                common.datas.CommonData.selectedTarget = null;

            }

            this.localDispatch(common.events.UIEventList.CLEAR_ALL_BUFF);

            return;

        }

        private function onChangeLineComplete():void

        {

            common.net.NetAction.sendClientIsReady();

            common.datas.CommonData.autoRunPathArr = [];

            return;

        }

        private function autoPathRunTo(arg1:Object=null):void

        {

            var loc5:*;

            loc5 = null;

            var loc6:*;

            loc6 = null;

            var loc7:*;

            loc7 = 0;

            var loc8:*;

            loc8 = null;

            var loc9:*;

            loc9 = 0;

            if (game.modules.scene.AttackConstData.getInstance().isHasBuff(23730) || game.modules.scene.AttackConstData.getInstance().isHasBuff(23729))

            {

                localDispatch(game.modules.ui.hint.events.HintEventsList.RECEIVEINFO, {"info":common.datas.ConstData.interWords[329], "color":16776960});

                return;

            }

            var loc1:*;

            loc1 = arg1.to;

            var loc2:*;

            loc2 = arg1.mapId;

            var loc3:*;

            loc3 = this._gameSceneContainer.mapTileModel.getTilePointToStage(loc1.x, loc1.y);

            var loc4:*;

            loc4 = this._engine.gameSceneContainer.sceneName;

            if (String(loc2) != loc4)

            {

                if ((loc5 = game.modules.ui.autoPlayPath.MapPathFind.getInstance().find(uint(loc4), loc2)).length == 0)

                {

                    localDispatch(game.modules.ui.hint.events.HintEventsList.RECEIVEINFO, {"info":common.datas.ConstData.interWords[429], "color":16776960});

                    return;

                }

                loc6 = [];

                loc7 = loc5.shift();

                while (loc5.length > 0)

                {

                    loc8 = null;

                    if ((loc9 = (game.modules.ui.autoPlayPath.MapConfigData.getInstance().dic[loc7].toArr as Array).indexOf(loc5[0])) != -1)

                    {

                        loc8 = game.modules.ui.autoPlayPath.MapConfigData.getInstance().dic[loc7].toTileArr[loc9] as flash.geom.Point;

                        loc6.push(loc8);

                    }

                    loc7 = loc5.shift();

                }

                loc6.push(loc1);

                common.datas.CommonData.autoRunPathArr = loc6;

                common.datas.CommonData.actionStatus = 4;

                this.doAutoRun();

            }

            else

            {

                if (loc1.x == common.datas.CommonData.playerRoleVo.tileX && loc1.y == common.datas.CommonData.playerRoleVo.tileY)

                {

                    common.datas.CommonData.actionStatus = 4;

                    localDispatch(common.events.PlayerEventList.PLAYER_MOVE_COMPLETE);

                    localDispatch(common.events.PlayerEventList.AUTO_JUMP);

                }

                else

                {

                    common.datas.CommonData.actionStatus = 4;

                    localDispatch(common.events.PlayerEventList.AUTO_JUMP);

                    localDispatch(common.events.SceneEventList.SCENE_TEXT_SHOW, common.datas.ConstData.interWords[428]);

                    (common.datas.CommonData.player as Role.GameAnimalElementPlayer).move(loc3);

                }

            }

            localDispatch(game.modules.guide.guideEvents.GuideEvents.GUIDE_OPERATE, null, game.modules.guide.guideCommon.GuideCommon.getInstance().curTaskId, -1, game.modules.guide.guideCommon.OperateStatu.REMOVETASKTIP);

            return;

        }

        private function doAutoRun():void

        {

            var loc2:*;

            loc2 = null;

            var loc1:*;

            loc1 = common.datas.CommonData.autoRunPathArr;

            if (common.datas.CommonData.autoRunPathArr.length > 0)

            {

                loc2 = common.datas.CommonData.autoRunPathArr.shift();

                if (common.datas.CommonData.autoPathTargetId != 0)

                {

                    common.datas.CommonData.actionStatus = 4;

                }

                loc2 = this._gameSceneContainer.mapTileModel.getTilePointToStage(loc2.x, loc2.y);

                localDispatch(common.events.SceneEventList.SCENE_TEXT_SHOW, common.datas.ConstData.interWords[428]);

                (common.datas.CommonData.player as Role.GameAnimalElementPlayer).move(loc2);

            }

            return;

        }

        private function stageResize():void

        {

            this._gameSceneContainer.setMapPos(common.datas.CommonData.player.x, common.datas.CommonData.player.y, true);

            this._engine.gameTop.stageResize();

            this._engine.sceneTransLayer.stageResize();

            return;

        }

        private function sceneInit():void

        {

            this._engine = common.datas.Layer.SCENE_LAYER as Engine;

            this._engine.onMouseClickFunction = this.onMouseClickRoleScene;

            this._gameSceneContainer = this._engine.gameSceneContainer;

            this._gameRoleScene = this._engine.gameRoleScene;

            return;

        }

        private function onSmallAndSceneClick(arg1:flash.geom.Point):void

        {

            var loc1:*;

            loc1 = this._gameSceneContainer.mapTileModel.getTileStageToPoint(arg1.x, arg1.y);

            if (!this._gameSceneContainer.mapTileModel.isPass(loc1.x, loc1.y))

            {

                return;

            }

            if (common.datas.CommonData.isAutoPlay)

            {

                this.localDispatch(common.events.PlayerCombatEventList.STOP_AUTO_PLAY);

            }

            common.datas.AttackCommon.isGuideAutoPick = false;

            common.datas.AttackCommon.isAutoGather = false;

            common.datas.AttackCommon.followAttackId = -1;

            localDispatch(common.events.SceneEventList.SCENE_TEXT_HIDE);

            this.onSceneClick(arg1.x, arg1.y);

            return;

        }

        private function moveToTile(arg1:flash.geom.Point):void

        {

            if (!this._gameSceneContainer.mapTileModel.isPass(arg1.x, arg1.y))

            {

                return;

            }

            var loc1:*;

            loc1 = this._gameSceneContainer.mapTileModel.getTilePointToStage(arg1.x, arg1.y);

            common.datas.AttackCommon.followAttackId = -1;

            common.datas.AttackCommon.isGuideAutoPick = false;

            common.datas.AttackCommon.isAutoGather = false;

            this.onSceneClick(loc1.x, loc1.y);

            return;

        }

        private function enterMap(arg1:uint):void

        {

            var loc1:*;

            loc1 = null;

            localDispatch(common.events.UIEventList.INIT_USERINFO);

            localDispatch(common.events.UIEventList.ONLINE_GIFT_TIME);

            if (common.datas.CommonData.player && this._gameSceneContainer)

            {

                loc1 = this._gameSceneContainer.mapTileModel.getTilePointToStage(common.datas.CommonData.playerRoleVo.tileX, common.datas.CommonData.playerRoleVo.tileY);

                common.datas.CommonData.player.x = loc1.x;

                common.datas.CommonData.player.y = loc1.y;

            }

            game.modules.ui.task.model.TaskProxy.preMaskDayLow = common.datas.CommonData.maskDayLow;

            game.modules.ui.task.model.TaskProxy.preMaskDayHi = common.datas.CommonData.maskDayHi;

            game.modules.ui.task.model.TaskProxy.preMaskWeekLow = common.datas.CommonData.maskWeekLow;

            game.modules.ui.task.model.TaskProxy.preMaskWeekHi = common.datas.CommonData.maskWeekHi;

            this._gameSceneContainer.transferScene(String(arg1));

            this._gameSceneContainer.initializedFuntion = this.initializedGameRoleScene;

            this._gameSceneContainer.transferSceneCompleteFun = this.changeSceneComplete;

            return;

        }

        private function onChangeScene(arg1:Object):void

        {

            common.datas.AttackCommon.isGuideAutoPick = false;

            common.datas.AttackCommon.isAutoGather = false;

            common.datas.CommonData.canMove = true;

            common.datas.CommonData.keyCanUse = true;

            game.modules.scene.logic.SceneLogic.getInstance().unLockEngine();

            if (arg1.nMapId != 2012)

            {

                if (arg1.nMapId != 2014)

                {

                    if (arg1.nMapId == 2016)

                    {

                        arg1.nMapId = 2016 * 100 + game.modules.ui.countdown.data.DekaronCommonData.mapLayerJZ_diff;

                    }

                }

                else

                {

                    arg1.nMapId = 2014 * 100 + game.modules.ui.countdown.data.DekaronCommonData.mapLayerJZ;

                }

            }

            else

            {

                arg1.nMapId = 2012 * 100 + game.modules.ui.countdown.data.DekaronCommonData.mapLayer;

            }

            this._player.stop(1);

            com.greensock.TweenMax.killChildTweensOf(this._player.parent);

            this._player.changeSceneStart();

            this._gameRoleScene.removeChild(this._player);

            common.datas.CommonData.playerRoleVo.tileX = arg1.nPosX;

            common.datas.CommonData.playerRoleVo.tileY = arg1.nPosY;

            localDispatch(common.events.SceneEventList.CHANGE_SCENE_START);

            localDispatch(common.events.UIEventList.CHANGESCENE_CLOSE_PANEL);

            var loc1:*;

            loc1 = this._engine.gameSceneContainer.sceneName;

            if (loc1.charAt(0) == "2" && !(arg1.nMapId.toString().charAt(0) == "2") || !(loc1.charAt(0) == "2") && arg1.nMapId.toString().charAt(0) == "2")

            {

                localDispatch(common.events.SceneEventList.CHANGE_ABOUT_FB);

            }

            if (common.datas.CommonData.selectedTarget)

            {

                (common.datas.CommonData.selectedTarget as Role.Element).cancelSelected();

                this.localDispatch(common.events.UIEventList.DELETE_TARGET, (common.datas.CommonData.selectedTarget as Role.Element).id);

                common.datas.CommonData.selectedTarget = null;

            }

            if (this._gameSceneContainer.sceneName != String(arg1.nMapId))

            {

                this._gameSceneContainer.transferScene(arg1.nMapId);

            }

            else

            {

                this._gameSceneContainer.transSameScene();

            }

            return;

        }

        private function changeSceneComplete():void

        {

            this._gameRoleScene.addChild(this._player);

            var loc1:*;

            loc1 = this._gameSceneContainer.mapTileModel.getTilePointToStage(common.datas.CommonData.playerRoleVo.tileX, common.datas.CommonData.playerRoleVo.tileY);

            this._player.x = loc1.x;

            this._player.y = loc1.y;

            this._gameRoleScene.initializedCompleted = null;

            this._gameRoleScene.initialize();

            this._gameSceneContainer.setMapPos(this._player.x, this._player.y, true);

            this._player.map = this._gameSceneContainer.mapTileModel;

            this._player.changeScene();

            common.datas.CommonData.playerRoleVo = this._player.gameRole as common.datas.vo.role.PlayerVo;

            common.net.NetAction.requestEnterMap();

            if (common.datas.CommonData.selectedTarget)

            {

                (common.datas.CommonData.selectedTarget as Role.Element).cancelSelected();

                this.localDispatch(common.events.UIEventList.DELETE_TARGET_KEY, (common.datas.CommonData.selectedTarget as Role.Element).id);

                common.datas.CommonData.selectedTarget = null;

            }

            localDispatch(common.events.UIEventList.UPDATESMALLMAP, {"type":7});

            localDispatch(common.events.SceneEventList.CHANGE_SCENE_READY, this._gameSceneContainer.sceneName);

            localDispatch(common.events.SceneEventList.CHANGE_SCENE_END);

            game.modules.ui.toolTip.datas.ItemInfoCommon.getInstance().gc();

            this.doAutoRun();

            if (common.datas.CommonData.isChangeLine)

            {

                this._player.stop(1);

                common.datas.CommonData.isChangeLine = false;

                localDispatch(common.events.EventList.CHANGELINECOMPLETE);

                if (this._player.isDeading)

                {

                    this.localDispatch(common.events.PlayerEventList.PLAYER_RELIFE, {"nRoleId":common.datas.CommonData.playerRoleVo.userid});

                }

                localDispatch(common.events.UIEventList.UPDATESMALLMAP, {"type":5});

            }

            else

            {

                this.doTransNextAction();

            }

            if (common.datas.CommonData.guiding)

            {

                this.localDispatch(game.modules.guide.guideEvents.GuideEvents.GUIDE_OPERATE, null, game.modules.guide.guideCommon.GuideCommon.getInstance().curTaskId, uint(this._gameSceneContainer.sceneName), game.modules.guide.guideCommon.OperateStatu.ENTERMAP);

            }

            return;

        }

        private function doTransNextAction():void

        {

            if (common.datas.CommonData.actionStatus == 😎

            {

                common.datas.CommonData.actionStatus = 0;

                game.modules.scene.logic.PlayerLogic.getInstance().selectedTargetTask(common.datas.CommonData.autoPathTargetId, true);

                common.datas.CommonData.autoPathTargetId = 0;

            }

            return;

        }

        private function initializedGameRoleScene():void

        {

            this._gameRoleScene.initializedCompleted = this.palyerIntoMap;

            this._gameRoleScene.initialize();

            return;

        }

        private function palyerIntoMap():void

        {

            var loc1:*;

            loc1 = new Role.GameAnimalElementPlayer(this._engine);

            this._player = loc1;

            loc1.gameRole = common.datas.CommonData.playerRoleVo;

            new game.modules.scene.logic.PlayerLogic().setSkinStyle(loc1);

            common.datas.CommonData.playerRoleVo.type = common.datas.vo.role.BaseRoleVo.TYPE_SELF;

            common.datas.CommonData.playerRoleVo.actionType = String(Role.ActionStruct.STAND);

            common.datas.CommonData.player = loc1;

            this._gameRoleScene.addPlayer(loc1);

            this._gameRoleScene.addAnimalCompleteFunction = this.onAddElementComplete;

            this._gameRoleScene.addNPCCompleteFunction = this.addNPCComplete;

            this._gameRoleScene.addOtherPlayerCompleteFunction = this.onAddElementComplete;

            this._gameRoleScene.deleteAnimalFunction = this.deleteElement;

            this._gameRoleScene.deleteNPCFunction = this.deleteElement;

            this._gameRoleScene.deleteOtherPlayerFunction = this.deleteElement;

            this.application.localDispatch(common.events.PlayerEventList.INIT_BASEROLE_VO);

            this._gameRoleScene.setPlayerPos(loc1.gameRole.tileX, loc1.gameRole.tileY);

            common.net.NetAction.requestEnterMap();

            common.datas.CommonData.sound = this._engine.sound;

            Manager.SystemManager.getInstance().startLoadRes();

            localDispatch(common.events.UIEventList.INITIALIZE);

            localDispatch(common.events.UIEventList.UPDATESMALLMAP, {"type":7});

            framework.core.FApplication.dispatch(common.events.GlobalEvent.GLOBAL_GAMECOMPLETE);

            common.net.HeartAction.requestHeartBreak();

            return;

        }

        private function addNPCComplete(arg1:String):void

        {

            this.onAddElementComplete(arg1);

            localDispatch(game.modules.ui.task.command.TaskCommandList.NPC_INTO_SCENE, arg1);

            return;

        }

        private function onAddElementComplete(arg1:String):void

        {

            localDispatch(common.events.UIEventList.UPDATESMALLMAP, {"type":3, "id":arg1});

            var loc1:*;

            loc1 = common.datas.CommonData.sameSecnePlayerList.getGameComponect(arg1) as Role.AnimalElement;

            if (loc1 && loc1.gameRole.hp == 0 && loc1.gameRole.type == common.datas.vo.role.BaseRoleVo.TYPE_PLAYER)

            {

                (loc1 as Role.AnimalElementPlayer).startDead();

            }

            return;

        }

        private function deleteElement(arg1:String):void

        {

            localDispatch(common.events.UIEventList.UPDATESMALLMAP, {"type":4, "id":arg1});

            return;

        }

        private function onMouseClickRoleScene(arg1:int, arg2:int, arg3:flash.events.MouseEvent):void

        {

            var loc1:*;

            loc1 = this._gameSceneContainer.mapTileModel.getTileStageToPoint(arg1, arg2);

            if ((!(Manager.SysCursor.getInstance().getCurType() == Manager.SysCursor.JUMP_CURSOR) || !arg3.shiftKey) && !this._gameSceneContainer.mapTileModel.isPass(loc1.x, loc1.y))

            {

                return;

            }

            common.datas.AttackCommon.isGuideAutoPick = false;

            common.datas.AttackCommon.isAutoGather = false;

            common.datas.AttackCommon.followAttackId = -1;

            localDispatch(common.events.SceneEventList.SCENE_TEXT_HIDE);

            this.localDispatch(common.events.PlayerCombatEventList.STOP_AUTO_PLAY);

            if (common.datas.CommonData.actionStatus == 4)

            {

                this.localDispatch(common.events.SceneEventList.SCENE_TEXT_HIDE);

            }

            this.onSceneClick(arg1, arg2, arg3);

            return;

        }

        private function changeLine(arg1:int):void

        {

            common.datas.CommonData.isChangeLine = true;

            common.managers.UpdateManager.getInstance().pause();

            common.datas.CommonData.changeServer = arg1;

            if (arg1 != 0)

            {

                common.net.HeartAction.requestHeartBreak();

            }

            else

            {

                new game.modules.ui.chat.logic.channels.Synchronization().doChange();

            }

            return;

        }

        private function onSceneClick(arg1:int, arg2:int, arg3:flash.events.MouseEvent=null, arg4:Boolean=false, arg5:Boolean=false):void

        {

            var loc4:*;

            loc4 = null;

            var loc5:*;

            loc5 = null;

            if (common.datas.CommonData.isEnterMapEnd == false)

            {

                return;

            }

            if (game.modules.scene.AttackConstData.getInstance().isHasBuff(23730) || game.modules.scene.AttackConstData.getInstance().isHasBuff(23729))

            {

                localDispatch(game.modules.ui.hint.events.HintEventsList.RECEIVEINFO, {"info":common.datas.ConstData.interWords[329], "color":16776960});

                return;

            }

            if (common.datas.CommonData.actionStatus == 4)

            {

                localDispatch(game.modules.guide.guideEvents.GuideEvents.GUIDE_OPERATE, null, game.modules.guide.guideCommon.GuideCommon.getInstance().curTaskId, -1, game.modules.guide.guideCommon.OperateStatu.SHOWTASKTIP);

            }

            common.datas.CommonData.actionStatus = 0;

            common.datas.CommonData.autoRunPathArr = [];

            localDispatch(common.events.UIEventList.CLOSE_ALL_PANELS);

            var loc1:*;

            loc1 = this._gameSceneContainer.mapTileModel.getTileStageToPoint(arg1, arg2);

            var loc2:*;

            loc2 = this._gameSceneContainer.mapTileModel.getTilePointToStage(loc1.x, loc1.y);

            var loc3:*;

            loc3 = Manager.SystemManager.getInstance().getMouseIcon();

            this._gameSceneContainer.currentGameSceneMid.addChild(loc3);

            loc3.x = loc2.x;

            loc3.y = loc2.y;

            if (common.datas.CommonData.canMove == false)

            {

                localDispatch(game.modules.ui.hint.events.HintEventsList.RECEIVEINFO, {"info":common.datas.ConstData.interWords[329], "color":16776960});

                return;

            }

            if (arg3 && arg3.shiftKey || Manager.SysCursor.getInstance().getCurType() == Manager.SysCursor.JUMP_CURSOR || arg5)

            {

                if (new game.modules.scene.logic.PlayerLogic().isJump() && new game.modules.scene.logic.PlayerLogic().isMapJump(loc2.x, loc2.y))

                {

                    if (loc4 = game.modules.scene.logic.PlayerLogic.getInstance().getJumpTP(new flash.geom.Point(loc2.x, loc2.y)))

                    {

                        loc5 = this._gameSceneContainer.mapTileModel.getTileStageToPoint(loc4.x, loc4.y);

                        common.net.NetAction.jump(this._player.id, loc5, uint(this._gameSceneContainer.sceneName));

                        this.application.localDispatch(common.events.PlayerEventList.PLAYER_JUMP);

                        (common.datas.CommonData.player as Role.GameAnimalElementPlayer).jump(loc4);

                        common.datas.CommonData.playerRoleVo.sp = common.datas.CommonData.playerRoleVo.sp - 25;

                        Manager.SysCursor.getInstance().isLock = false;

                        Manager.SysCursor.getInstance().revert();

                    }

                }

                else

                {

                    if (this._gameSceneContainer.mapTileModel.isPass(loc1.x, loc1.y))

                    {

                        (common.datas.CommonData.player as Role.GameAnimalElementPlayer).move(loc2);

                    }

                    Manager.SysCursor.getInstance().isLock = false;

                    Manager.SysCursor.getInstance().revert();

                }

            }

            else

            {

                (common.datas.CommonData.player as Role.GameAnimalElementPlayer).move(loc2);

            }

            return;

        }

        public static const NAME:String="SceneController";

        public static const MAX_JUMP_DIS:uint=270;

        private var _engine:Engine;

        private var _gameSceneContainer:Scene.GameSceneContainer;

        private var _gameRoleScene:Scene.GameRoleScene;

        private var _player:Role.GameAnimalElementPlayer;

    }

}

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 5, 2013

that's not valid actionscript (as you know). 

what class is monsterChat.complete?  a function?

July 5, 2013

yes. It's a function!!