Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendJoinGameOverride(game_name)
- {
- var _loc7 = game_name;
- if (_global.getCurrentShell().getCurrentGameRoomId() == undefined)
- {
- _global.getCurrentShell().loadGameStartTime = getTimer();
- var _loc1 = _global.getCurrentShell().getGameCrumbsByName(game_name);
- for (var _loc2 in _loc1)
- {
- } // end of for...in
- _global.getCurrentShell()._trackerAS2.sendToAS3StartAssetLoad("load.game." + _loc1.room_id);
- last_known_xpos = _global.getCurrentShell().getMyPlayerObject().x;
- last_known_ypos = _global.getCurrentShell().getMyPlayerObject().y;
- var _loc5 = 0;
- var _loc4 = 0;
- if (_loc1 != undefined)
- {
- _global.getCurrentAirtower().send(_global.getCurrentAirtower().PLAY_EXT, _global.getCurrentAirtower().NAVIGATION + "#" + _global.getCurrentAirtower().JOIN_ROOM, [_loc1.room_id, _loc5, _loc4], "str", _global.getCurrentShell().getCurrentServerRoomId());
- }
- else if (_loc7 == "test")
- {
- // _global.getCurrentShell().sendJoinRoom("cup05");
- _global.getCurrentAirtower().send(_global.getCurrentAirtower().PLAY_EXT, _global.getCurrentAirtower().NAVIGATION + "#" + _global.getCurrentAirtower().JOIN_ROOM, [4205, _loc5, _loc4], "str", _global.getCurrentShell().getCurrentServerRoomId());
- }
- else
- {
- _global.getCurrentShell().$e("[shell] sendJoinGame() -> Tried to join a game which did not exist. game_name: " + game_name);
- } // end else if
- _global.getCurrentShell().startRoomMusic();
- }
- else
- {
- _global.getCurrentShell().$e("[shell] sendJoinGame() -> Tried to join a room while in a game room!", {error_code: PLAYER_IN_ROOM});
- } // end else if
- _global.getCurrentShell().startRoomMusic();
- } // End of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement