Advertisement
WindowsTV

Untitled

Jan 16th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sendJoinGameOverride(game_name)
  2. {
  3.     var _loc7 = game_name;
  4.     if (_global.getCurrentShell().getCurrentGameRoomId() == undefined)
  5.     {
  6.         _global.getCurrentShell().loadGameStartTime = getTimer();
  7.         var _loc1 = _global.getCurrentShell().getGameCrumbsByName(game_name);
  8.         for (var _loc2 in _loc1)
  9.         {
  10.         } // end of for...in
  11.         _global.getCurrentShell()._trackerAS2.sendToAS3StartAssetLoad("load.game." + _loc1.room_id);
  12.         last_known_xpos = _global.getCurrentShell().getMyPlayerObject().x;
  13.         last_known_ypos = _global.getCurrentShell().getMyPlayerObject().y;
  14.         var _loc5 = 0;
  15.         var _loc4 = 0;
  16.         if (_loc1 != undefined)
  17.         {
  18.             _global.getCurrentAirtower().send(_global.getCurrentAirtower().PLAY_EXT, _global.getCurrentAirtower().NAVIGATION + "#" + _global.getCurrentAirtower().JOIN_ROOM, [_loc1.room_id, _loc5, _loc4], "str", _global.getCurrentShell().getCurrentServerRoomId());
  19.         }
  20.         else if (_loc7 == "test")
  21.         {
  22.         //  _global.getCurrentShell().sendJoinRoom("cup05");
  23.             _global.getCurrentAirtower().send(_global.getCurrentAirtower().PLAY_EXT, _global.getCurrentAirtower().NAVIGATION + "#" + _global.getCurrentAirtower().JOIN_ROOM, [4205, _loc5, _loc4], "str", _global.getCurrentShell().getCurrentServerRoomId());
  24.         }
  25.         else
  26.         {
  27.             _global.getCurrentShell().$e("[shell] sendJoinGame() -> Tried to join a game which did not exist. game_name: " + game_name);
  28.         } // end else if
  29.         _global.getCurrentShell().startRoomMusic();
  30.     }
  31.     else
  32.     {
  33.         _global.getCurrentShell().$e("[shell] sendJoinGame() -> Tried to join a room while in a game room!", {error_code: PLAYER_IN_ROOM});
  34.     } // end else if
  35.     _global.getCurrentShell().startRoomMusic();
  36. } // End of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement