Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.90 KB | None | 0 0
  1. // Action script...
  2.  
  3. // [onClipEvent of sprite 960 in frame 2]
  4. on (press)
  5. {
  6. if (true)
  7. {
  8. } // end if
  9. if (true)
  10. {
  11. }
  12. else
  13. {
  14. function ق(ȇ, , , , Ͽ, , , , , _parent, ֏, , bypassSAIntro, R)
  15. {
  16. } // end else if
  17. }
  18.  
  19. // [onClipEvent of sprite 236 in frame 2]
  20. onClipEvent (enterFrame)
  21. {
  22. if (true)
  23. {
  24. } // end if
  25. if (true)
  26. {
  27. }
  28. else
  29. {
  30. function ق(ȇ, , , , Ͽ, , , , , , , , , )
  31. {
  32. } // end else if
  33. }
  34.  
  35. // [onClipEvent of sprite 1364 in frame 2]
  36. on (press)
  37. {
  38. if (true)
  39. {
  40. } // end if
  41. if (true)
  42. {
  43. }
  44. else
  45. {
  46. function ق(ȇ, , , , Ͽ, , , , , , , , , )
  47. {
  48. } // end else if
  49. }
  50.  
  51. // [Action in Frame 2]
  52.  
  53.  
  54. function titleFrame()
  55. {
  56. if (tutorialTimer != -1)
  57. {
  58. tutorialTimer = tutorialTimer + 33.330000;
  59. } // end if
  60. if (tutorialTimer > tutorialDelay)
  61. {
  62. startTutorial();
  63. } // end if
  64. if (!pingTestComplete)
  65. {
  66. windowPingMC.msgText0.text = windowPingMC.msgText1.text = getPingingText();
  67. } // end if
  68. } // End of the function
  69. function startTutorial()
  70. {
  71. tutorialTimer = -1;
  72. tutorialMC.gotoAndPlay(2);
  73. titleMenuMC._visible = titleVersionMC._visible = title00MC._visible = 0;
  74. } // End of the function
  75. function tutorialDone()
  76. {
  77. SFXSATheme.stop();
  78. SFXSATheme.start(5.650000);
  79. tutorialTimer = 0;
  80. tutorialMC.gotoAndStop(1);
  81. titleBG._visible = titleVersionMC._visible = title00MC._visible = 1;
  82. titleMenuMC._visible = pingTestComplete;
  83. windowPingMC._visible = !pingTestComplete;
  84. if (!pingTestComplete)
  85. {
  86. kkBXeJ("windowShow", windowPingMC);
  87. }
  88. else
  89. {
  90. kkBXeJ("windowShow", titleMenuMC);
  91. } // end else if
  92. } // End of the function
  93. function doneSAIntro()
  94. {
  95. if (autoQuickStart)
  96. {
  97. pressQuickStart();
  98. } // end if
  99. SAIntroMC._visible = 0;
  100. titleMenuMC._visible = pingTestComplete;
  101. windowPingMC._visible = !pingTestComplete;
  102. if (!pingTestComplete)
  103. {
  104. kkBXeJ("windowShow", windowPingMC);
  105. }
  106. else
  107. {
  108. kkBXeJ("windowShow", titleMenuMC);
  109. } // end else if
  110. if (specialOffer)
  111. {
  112. specialOfferMC._visible = true;
  113. specialOfferMC.headerText0.text = specialOfferMC.headerText1.text = logInText[16];
  114. specialOfferMC.msgText0.text = specialOfferMC.msgText1.text = logInText[13];
  115. specialOfferMC.imageMC.attachMovie(specialOfferImageMC, "specialOfferImageMC", 1);
  116. specialOfferMC.imageMC.specialOfferImageMC._xscale = specialOfferMC.imageMC.specialOfferImageMC._yscale = 450;
  117. }
  118. else
  119. {
  120. specialOfferMC._visible = false;
  121. } // end else if
  122. } // End of the function
  123. function bypassSAIntro(userInitiated)
  124. {
  125. if (!introBypassed)
  126. {
  127. introBypassed = true;
  128. if (userInitiated)
  129. {
  130. userInitiatedBypass = true;
  131. SFXSATheme.stop();
  132. SFXSATheme.start(5.650000);
  133. SAIntroMC.gotoAndPlay(171);
  134. } // end if
  135. titleBG._visible = titleVersionMC._visible = title00MC._visible = 1;
  136. tutorialTimer = 0;
  137. } // end if
  138. } // End of the function
  139. function pressQuickStart()
  140. {
  141. tutorialTimer = -1;
  142. titleMenuMC._visible = 0;
  143. player.kkfeoJ = getRandomName();
  144. player.col = generateColor(300, 600);
  145. player.hexColor = RGBToHex(player.col.rb, player.col.gb, player.col.bb, 100);
  146. player.vwFidm = 0;
  147. player.jhJkpo = 0;
  148. player.spinners = [];
  149. player.pets = [];
  150. profileSelectedSpinner = player.zqtPAS = player.spinners.length;
  151. player.spinners[player.spinners.length] = {num: 0, red0: player.col.rb, green0: player.col.gb, blue0: player.col.bb, red1: player.col.rb, green1: player.col.gb, blue1: player.col.bb, itemID: 0};
  152. initializeArenaVariables();
  153. for (var _loc1 = 0; _loc1 < serverName.length; ++_loc1)
  154. {
  155. serverConnectTrys[_loc1] = 0;
  156. } // end of for
  157. connectAction = "quickStart";
  158. connectToServer(serverNum, serverNum);
  159. } // End of the function
  160. function performPreLogIn()
  161. {
  162. if (serverType[serverNum] == "PREMIUM" && n ne uName)
  163. {
  164. selectRandomServerAndPort();
  165. } // end if
  166. clientBanned = false;
  167. banDate = 0;
  168. savePreferences();
  169. performLogIn();
  170. } // End of the function
  171. function onGameLoginAPIResponse(success)
  172. {
  173. } // End of the function
  174. function performLogIn()
  175. {
  176. tutorialTimer = -1;
  177. titleMenuMC._visible = 0;
  178. for (var _loc2 = 0; _loc2 < serverName.length; ++_loc2)
  179. {
  180. serverConnectTrys[_loc2] = 0;
  181. } // end of for
  182. errorAction = "login";
  183. connectAction = "authenticate";
  184. authenticateAction = "lobby";
  185. _root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x: 175, _y: 199});
  186. window2MC.msgText0.text = window2MC.msgText1.text = logInText[6] + "\r" + "\r" + "(" + serverName[serverNum] + ")";
  187. connectToServer(serverNum, serverNum);
  188. } // End of the function
  189. function pressCancelLogIn()
  190. {
  191. connectAction = "disconnect";
  192. socket[serverNum].close();
  193. replyDataAPI.onLoad = null;
  194. delete replyDataAPI.onLoad;
  195. tutorialTimer = 0;
  196. window2MC.removeMovieClip();
  197. titleMenuMC._visible = 1;
  198. selectRandomServerAndPort();
  199. kkBXeJ("windowShow", titleMenuMC);
  200. } // End of the function
  201. function pressTutorial()
  202. {
  203. SFXSATheme.stop();
  204. startTutorial();
  205. } // End of the function
  206. function pressLogIn()
  207. {
  208. tutorialTimer = -1;
  209. titleMenuMC._visible = 0;
  210. if (domainName.indexOf("KONGREGATE.COM") != -1 && useKongregateAccount)
  211. {
  212. kongregatePressLogIn();
  213. }
  214. else
  215. {
  216. _root.attachMovie("window470LogInMC", "windowMC", 200000, {_x: 40, _y: 170});
  217. kkBXeJ("windowShow", windowMC);
  218. windowMC.usernameText.text = uName;
  219. var i = 0;
  220. while (i < 3)
  221. {
  222. var n = 0;
  223. while (n < 2)
  224. {
  225. str = "windowMC.h" + i;
  226. with (eval(str + "Text" + n))
  227. {
  228. text = logInText[i];
  229. } // End of with
  230. ++n;
  231. } // end while
  232. ++i;
  233. } // end while
  234. windowMC.h3Text0.text = windowMC.h3Text1.text = logInText[11];
  235. windowMC.BTNadvancedMC.textBox0.text = windowMC.BTNadvancedMC.textBox1.text = logInText[13];
  236. var sFontName = windowMC.tDummy.getTextFormat(0, 1).font;
  237. with (windowMC.checkBoxRemember)
  238. {
  239. fontSize = 8;
  240. color = "0xA1CAFF";
  241. setStyle("embedFonts", true);
  242. setStyle("fontFamily", sFontName);
  243. } // End of with
  244. Key.addListener(loginKeyListener);
  245. } // end else if
  246. } // End of the function
  247. function pressLogInOK(n, p)
  248. {
  249. showLogInTextBoxes(false);
  250. n = windowMC.usernameText.text.toLowerCase();
  251. p = windowMC.pass0Text.text;
  252. var _loc3 = new Date();
  253. if (n.length > 2)
  254. {
  255. if (isLegalAccountString(n))
  256. {
  257. if (containsNoFilteredLanguage(n))
  258. {
  259. if (isLegalAccountString(p))
  260. {
  261. if (p.length > 2)
  262. {
  263. if (!clientBanned || banDate != _loc3.getDate())
  264. {
  265. uName = n;
  266. uPass = p;
  267. rememberUserName = windowMC.checkBoxRemember.selected;
  268. windowMC.removeMovieClip();
  269. window2MC.removeMovieClip();
  270. Key.removeListener(loginKeyListener);
  271. APIGameLogin(uName, uPass, onGameLoginAPIResponse);
  272. performPreLogIn();
  273. }
  274. else
  275. {
  276. displayLogInMessage(logInText[10]);
  277. } // end else if
  278. }
  279. else
  280. {
  281. displayLogInMessage(accountText[9]);
  282. } // end else if
  283. }
  284. else
  285. {
  286. displayLogInMessage(accountText[7]);
  287. } // end else if
  288. }
  289. else
  290. {
  291. displayLogInMessage(accountText[12]);
  292. } // end else if
  293. }
  294. else
  295. {
  296. displayLogInMessage(accountText[8]);
  297. } // end else if
  298. }
  299. else
  300. {
  301. displayLogInMessage(accountText[11]);
  302. } // end else if
  303. } // End of the function
  304. function pressCreateAccountOK(n, p, p2, e, r, g, b)
  305. {
  306. showAccountTextBoxes(false);
  307. n = n.toLowerCase();
  308. if (n.length > 2)
  309. {
  310. if (isLegalAccountString(n))
  311. {
  312. if (containsNoFilteredLanguage(n))
  313. {
  314. if (isLegalAccountString(p))
  315. {
  316. if (p.length > 2)
  317. {
  318. if (p == p2)
  319. {
  320. uName = n;
  321. uPass = p;
  322. errorAction = "createAccount";
  323. var _loc5 = pad(r, 3).toString() + pad(g, 3).toString() + pad(b, 3).toString();
  324. var replyDataPHP = new LoadVars();
  325. var _loc2 = new LoadVars();
  326. _loc2.action = "create";
  327. _loc2.username = n;
  328. _loc2.userpass = p;
  329. _loc2.usercol = _loc5;
  330. _loc2.sendAndLoad(phpURL, replyDataPHP, "POST");
  331. replyDataPHP.onLoad = function (success)
  332. {
  333. if (success)
  334. {
  335. if (this.result == "success")
  336. {
  337. displayXGenAccountCreatedMessage();
  338. performLogIn();
  339. }
  340. else
  341. {
  342. displayCreateAccountMessage(accountText[14]);
  343. } // end else if
  344. }
  345. else
  346. {
  347. displayCreateAccountMessage(accountText[13]);
  348. } // end else if
  349. };
  350. }
  351. else
  352. {
  353. displayCreateAccountMessage(accountText[10]);
  354. } // end else if
  355. }
  356. else
  357. {
  358. displayCreateAccountMessage(accountText[9]);
  359. } // end else if
  360. }
  361. else
  362. {
  363. displayCreateAccountMessage(accountText[7]);
  364. } // end else if
  365. }
  366. else
  367. {
  368. displayCreateAccountMessage(accountText[12]);
  369. } // end else if
  370. }
  371. else
  372. {
  373. displayCreateAccountMessage(accountText[8]);
  374. } // end else if
  375. }
  376. else
  377. {
  378. displayCreateAccountMessage(accountText[11]);
  379. } // end else if
  380. } // End of the function
  381. function pressLogInClose()
  382. {
  383. tutorialTimer = 0;
  384. windowMC.removeMovieClip();
  385. Key.removeListener(loginKeyListener);
  386. titleMenuMC._visible = 1;
  387. kkBXeJ("windowShow", titleMenuMC);
  388. } // End of the function
  389. function pressCreateAccountClose()
  390. {
  391. tutorialTimer = 0;
  392. windowMC.removeMovieClip();
  393. titleMenuMC._visible = 1;
  394. kkBXeJ("windowShow", titleMenuMC);
  395. } // End of the function
  396. function pressCreateAccount()
  397. {
  398. tutorialTimer = -1;
  399. titleMenuMC._visible = 0;
  400. _root.attachMovie("window470CreateAccountMC", "windowMC", 200000);
  401. windowMC._x = 40;
  402. windowMC._y = 70;
  403. kkBXeJ("windowShow", windowMC);
  404. var i = 0;
  405. while (i < 6)
  406. {
  407. var n = 0;
  408. while (n < 2)
  409. {
  410. str = "windowMC.h" + i;
  411. with (eval(str + "Text" + n))
  412. {
  413. text = accountText[i];
  414. } // End of with
  415. ++n;
  416. } // end while
  417. ++i;
  418. } // end while
  419. windowMC.gxqKQk.fqBEfG.gotoAndStop(3);
  420. windowMC.gxqKQk.fqBEfG.legs.play();
  421. windowMC.crossHairMC._x = random(int(windowMC.colorPickerMC._width)) + windowMC.colorPickerMC._x;
  422. windowMC.crossHairMC._y = random(int(windowMC.colorPickerMC._height)) + windowMC.colorPickerMC._y;
  423. if (domainName.indexOf("KONGREGATE.COM") != -1)
  424. {
  425. kongregatePressCreateAccount();
  426. } // end if
  427. windowMC.eulaNoticeText0.text = windowMC.eulaNoticeText1.text = accountText[19];
  428. var replyDataEULA = new LoadVars();
  429. var sendDataEULA = new LoadVars();
  430. sendDataEULA.sendAndLoad(eulaURL, replyDataEULA, "POST");
  431. replyDataEULA.onLoad = function (success)
  432. {
  433. if (success)
  434. {
  435. windowMC.eulaText0.text = windowMC.eulaText1.text = this.eulatext;
  436. } // end if
  437. };
  438. } // End of the function
  439. function showAccountTextBoxes(b)
  440. {
  441. windowMC.usernameText._visible = windowMC.pass0Text._visible = windowMC.pass1Text._visible = windowMC.emailText._visible = windowMC.colorPickerMC._visible = windowMC.btnXMC._visible = windowMC.btnOKMC._visible = b;
  442. } // End of the function
  443. function showLogInTextBoxes(b)
  444. {
  445. windowMC.usernameText._visible = windowMC.pass0Text._visible = windowMC.btnXMC._visible = windowMC.btnOKMC._visible = b;
  446. } // End of the function
  447. function displayCreateAccountMessage(msg)
  448. {
  449. _root.attachMovie("window304CreateAccountMessageMC", "window2MC", 200001, {_x: 123, _y: 10});
  450. kkBXeJ("windowShow", window2MC);
  451. window2MC.msgText0.text = window2MC.msgText1.text = msg;
  452. } // End of the function
  453. function displayLogInMessage(msg)
  454. {
  455. _root.attachMovie("window304LogInMessageMC", "window2MC", 200001, {_x: 123, _y: 10});
  456. kkBXeJ("windowShow", window2MC);
  457. window2MC.msgText0.text = window2MC.msgText1.text = msg;
  458. } // End of the function
  459. function closeCreateAccountMessage()
  460. {
  461. showAccountTextBoxes(true);
  462. } // End of the function
  463. function closeLogInMessage()
  464. {
  465. showLogInTextBoxes(true);
  466. } // End of the function
  467. function pressCloseSpecialOffer()
  468. {
  469. specialOfferMC._visible = false;
  470. specialOffer = false;
  471. } // End of the function
  472. function pressCredits()
  473. {
  474. if (windowMC == null && window2MC == null)
  475. {
  476. SFXSATheme.stop();
  477. windowMC.removeMovieClip();
  478. window2MC.removeMovieClip();
  479. Key.removeListener(loginKeyListener);
  480. gotoAndStop("creditsFrame");
  481. } // end if
  482. } // End of the function
  483. stop ();
  484. setProperty("", _quality, "BEST");
  485. stopAllSounds ();
  486. if (!isCurrentVersion)
  487. {
  488. gotoFrame = "deadEnd";
  489. msgText = versionNotCurrentText;
  490. gotoAndStop("preReturnFrame");
  491. }
  492. else
  493. {
  494. checkForClientUpdate();
  495. } // end else if
  496. titleVersionMC.versionText.text = titleVersionMC.versionText0.text = titleVersionMC.versionText1.text = titleVersionMC.versionText2.text = titleVersionMC.versionText3.text = titleVersionMC.reflectionMC.versionText.text = titleVersionMC.reflectionMC.versionText0.text = titleVersionMC.reflectionMC.versionText1.text = titleVersionMC.reflectionMC.versionText2.text = titleVersionMC.reflectionMC.versionText3.text = "Modded by 92Garfield" + "";
  497. titleBG._visible = titleMenuMC._visible = windowPingMC._visible = titleVersionMC._visible = title00MC._visible = instructionsMC._visible = loadGameMC._visible = 0;
  498. if (!specialOffer)
  499. {
  500. specialOfferMC._visible = false;
  501. } // end if
  502. var introBypassed = false;
  503. var userInitiatedBypass = false;
  504. gameArea = 0;
  505. if (domainName.indexOf("KONGREGATE.COM") != -1)
  506. {
  507. titleMenuMC.createAccountBTNMC._visible = false;
  508. var sFontName = tDummy.getTextFormat(0, 1).font;
  509. with (titleMenuMC.checkBoxLoginKongregate)
  510. {
  511. fontSize = 8;
  512. color = "0xA1CAFF";
  513. setStyle("embedFonts", true);
  514. setStyle("fontFamily", sFontName);
  515. } // End of with
  516. }
  517. else
  518. {
  519. titleMenuMC.checkBoxLoginKongregate._visible = false;
  520. } // end else if
  521. if (skipIntro)
  522. {
  523. bypassSAIntro(true);
  524. }
  525. else
  526. {
  527. SFXSATheme.stop();
  528. SFXSATheme.start();
  529. } // end else if
  530. if (titleAction == "quickStart")
  531. {
  532. titleAction = null;
  533. pressQuickStart();
  534. SAIntroMC._visible = 0;
  535. SFXSATheme.stop();
  536. } // end if
  537. loginKeyListener = new Object();
  538. loginKeyListener.onKeyDown = function ()
  539. {
  540. pressedKey = Key.getAscii();
  541. if (pressedKey == 13)
  542. {
  543. pressLogInOK();
  544. } // end if
  545. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement