nPhoenix

[Habbo] New User CS

Sep 15th, 2013
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var NewUserReception = {
  2.     checkName: function (a) {
  3.         var b = {
  4.             name: a
  5.         };
  6.         new Ajax.Request("/new-user-reception/check-name", {
  7.             parameters: b,
  8.             onSuccess: function (c) {
  9.                 var d = c.responseJSON;
  10.                 FlashExternalInterface.clientElement.newUserReceptionCheckNameResponse(a, d.code, d.validationResult || [], d.suggestions)
  11.             },
  12.             onFailure: function (c) {
  13.                 FlashExternalInterface.clientElement.newUserReceptionCheckNameFailed(a)
  14.             }
  15.         })
  16.     },
  17.     claimName: function (b, a) {
  18.         var c = {
  19.             name: b,
  20.             isFemale: a
  21.         };
  22.         new Ajax.Request("/new-user-reception/claim-name", {
  23.             parameters: c,
  24.             onSuccess: function (d) {
  25.                 var e = d.responseJSON;
  26.                 FlashExternalInterface.clientElement.newUserReceptionClaimNameResponse(e.code, e.validationResult, e.suggestions)
  27.             },
  28.             onFailure: function (d) {
  29.                 FlashExternalInterface.clientElement.newUserReceptionClaimNameFailed(b)
  30.             }
  31.         })
  32.     },
  33.     logStep: function (a) {
  34.         var b = {
  35.             step: a
  36.         };
  37.         new Ajax.Request("/new-user-reception/log-step", {
  38.             parameters: b
  39.         })
  40.     },
  41.     saveOutfit: function (b, a) {
  42.         var c = {
  43.             figure: b,
  44.             gender: a
  45.         };
  46.         new Ajax.Request("/new-user-reception/save-outfit", {
  47.             parameters: c,
  48.             onSuccess: function (d) {
  49.                 var e = d.responseJSON;
  50.                 FlashExternalInterface.clientElement.newUserReceptionSaveOutfitResponse(b, a, e.code)
  51.             },
  52.             onFailure: function (d) {
  53.                 FlashExternalInterface.clientElement.newUserReceptionSaveOutfitFailed(b, a)
  54.             }
  55.         })
  56.     },
  57.     chooseRoom: function (b) {
  58.         var a = {
  59.             roomChoice: b
  60.         };
  61.         new Ajax.Request("/new-user-reception/choose-room", {
  62.                 parameters: a,
  63.                 onSuccess: function (c) {
  64.                     var d = c.responseJSON;
  65.                     FlashExternalInterface.clientElement.newUserReceptionChooseRoomResponse()
  66.                 },
  67.                 onFailure: function (c) {
  68.                     FlashExternalInterface.clientElement.newUserReceptionChooseRoomFailed()
Advertisement
Add Comment
Please, Sign In to add comment