Advertisement
dcomicboy

Entire MCPE Mod Menu

Mar 16th, 2019
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 106.04 KB | None | 0 0
  1. (function(){
  2. var BoilerplateClass = function () {
  3.  
  4. // Properties
  5. this.publicProperty = 'foo';
  6. this._privateProperty = 'bar';
  7.  
  8. // Constructor
  9. this.initialise = function(){
  10. };
  11.  
  12. // Functions
  13. this.publicFn = function(){
  14. };
  15.  
  16. this._privateFn = function(){
  17. };
  18. };
  19. })();
  20. print("Welcome to WWEClient Mobile")
  21.  
  22. var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
  23. var Button = android.widget.Button;
  24. var LinearLayout = android.widget.LinearLayout;
  25. var RelativeLayout = android.widget.RelativeLayout;
  26. var PopupWindow = android.widget.PopupWindow;
  27. var ScrollView = android.widget.ScrollView;
  28. var TextView = android.widget.TextView;
  29. var CheckBox = android.widget.CheckBox;
  30. var Switch = android.widget.Switch;
  31. var Toast = android.widget.Toast;
  32. var Runnable = java.lang.Runnable;
  33. var View = android.view.View;
  34. var ColorDrawable = android.graphics.drawable.ColorDrawable;
  35. var Color = android.graphics.Color;
  36. var Gravity = android.view.Gravity;
  37. var view = 0;
  38. var Intent = android.content.Intent;
  39. var Uri = android.net.Uri;
  40.  
  41. var view = 0;
  42.  
  43. var lhtick = 0;
  44.  
  45. var esp = false;
  46. var tbg = new android.graphics.drawable.GradientDrawable();
  47. tbg.setColor(android.graphics.Color.argb(0,0,0,0));//ButtonBGColor
  48. tbg.setStroke(2,android.graphics.Color.TRANSPARENT); //ButtonStroke
  49. tbg.setCornerRadius(0); //ButtonCornerRadius
  50.  
  51.  
  52. //BACKGROUND STUFF
  53.  
  54. var bg = new android.graphics.drawable.GradientDrawable();
  55. bg.setColor(android.graphics.Color.WHITE); //ButtonBGColor
  56. bg.setStroke(4, android.graphics.Color.GRAY); //ButtonStroke
  57. bg.setCornerRadius(2); //ButtonCornerRadius
  58.  
  59. var bgon = new android.graphics.drawable.GradientDrawable();
  60. bgon.setColor(android.graphics.Color.GREEN); //ButtonBGColor
  61.  
  62. bgon.setCornerRadius(2); //ButtonCornerRadius
  63.  
  64. var bgoff = new android.graphics.drawable.GradientDrawable();
  65. bgoff.setColor(android.graphics.Color.BLACK); //ButtonBGColor
  66.  
  67. bgoff.setCornerRadius(2); //ButtonCornerRadius
  68.  
  69. var bg1 = new android.graphics.drawable.GradientDrawable();
  70. bg1.setColor(android.graphics.Color.BLACK); //ButtonBGColor
  71. bg1.setStroke(4, android.graphics.Color.GREEN); //ButtonStroke
  72. bg1.setCornerRadius(2); //ButtonCornerRadius
  73.  
  74. var bg2 = new android.graphics.drawable.GradientDrawable();
  75. bg2.setColor(android.graphics.Color.BLACK); //ButtonBGColor
  76.  
  77. bg2.setCornerRadius(2); //ButtonCornerRadius
  78.  
  79. var xbg = new android.graphics.drawable.GradientDrawable();
  80. xbg.setColor(android.graphics.Color.TRANSPARENT); //XButtonBGColor
  81. xbg.setStroke(4, android.graphics.Color.BLACK); //XButtonStroke
  82. xbg.setCornerRadius(2); //XButtonCornerRadius
  83.  
  84. var btbg = new android.graphics.drawable.GradientDrawable();
  85. btbg.setColor(Color.GREEN);
  86. btbg.setAlpha(100);
  87.  
  88. var btbg2 = new android.graphics.drawable.GradientDrawable();
  89. btbg2.setColor(Color.BLACK);
  90. btbg2.setAlpha(100);
  91.  
  92. var bttheme = new android.graphics.drawable.GradientDrawable();
  93. bttheme.setColor(android.graphics.Color.WHITE);
  94. bttheme.setStroke(7, android.graphics.Color.RED);
  95. bttheme.setCornerRadius(10);
  96.  
  97. var darktheme = new android.graphics.drawable.GradientDrawable();
  98. darktheme.setColor(android.graphics.Color.BLACK);
  99. darktheme.setStroke(7, android.graphics.Color.RED);
  100. darktheme.setCornerRadius(0);
  101.  
  102. var darkbt = new android.graphics.drawable.GradientDrawable();
  103. darkbt.setColor(android.graphics.Color.WHITE);
  104. darkbt.setStroke(7, android.graphics.Color.RED);
  105. darkbt.setCornerRadius(0);
  106.  
  107. var darkbt2 = new android.graphics.drawable.GradientDrawable();
  108. darkbt2.setColor(android.graphics.Color.BLACK);
  109. darkbt2.setStroke(7, android.graphics.Color.RED);
  110. darkbt2.setCornerRadius(0);
  111.  
  112. var maintheme = bttheme;
  113. var mainbt = btbg;
  114. var mainbt2 = btbg2;
  115.  
  116. //MORE GUI + VARIABLES
  117. function newLevel()
  118. {
  119. ModPE.showTipMessage('§aMade By TechX')
  120. ModPE.showTipMessage('§aDont Abuse The Cheats - TechX')
  121. }
  122. ModPE.langEdit("menu.copyright"," WWEMobile 1.0");
  123.  
  124. var GUI;
  125. var menu;
  126. var exitUI;
  127.  
  128. //YOUR CLIENT INFORMATION
  129.  
  130. var VERSION = " [Beta 1]";
  131. var NAME = "TechX";
  132. var DEVELOPERS = "TechX";
  133. var CHANELOG = "Made gui, added sprint, safewalk, aimbot, jesus, antiLagg, ect!";
  134.  
  135. //Variables
  136.  
  137. var dx = 0;
  138. var dy = 0;
  139. var dx2 = 0;
  140. var dy2 = 0;
  141. var mPosX2 = 0;
  142. var mPosY2 = 0;
  143.  
  144. var dx232 = 0;
  145. var dy232 = 0;
  146. var mPosX232 = 285 + 285;
  147. var mPosY232 = 0;
  148.  
  149. var dx23 = 0;
  150. var dy23 = 0;
  151. var mPosX23 = 285;
  152. var mPosY23 = 0;
  153.  
  154. var dxf = 0;
  155. var dyf = 0;
  156. var mPosXf = 0;
  157. var mPosYf = 0;
  158.  
  159. var dxj = 0;
  160. var dyj = 0;
  161. var mPosXj = 0;
  162. var mPosYj = 0;
  163. var moving = false;
  164.  
  165. var gmSwitchs
  166. var gmSwitched = false;
  167.  
  168. var daynight1
  169. var daynight3 = false;
  170.  
  171. var gmSwitchs0
  172. var gmSwitched3 = false;
  173.  
  174. var gmSwitchs1
  175. var gmSwitchedd = false;
  176.  
  177. var gmSwitchs2
  178. var gmSwitcheddd = false;
  179.  
  180. var gmSwitchs3
  181. var gmSwitchedddd = false;
  182.  
  183. var gmSwitchs4
  184. var gmSwitcheddddd = false;
  185.  
  186. var gmSwitchs5
  187. var gmSwitchedddddd = false;
  188.  
  189. var gmSwitchs5
  190. var gmSwitchedd2 = false;
  191.  
  192. var gmSwitchs6
  193. var gmSwitchedd3 = false;
  194.  
  195. var gmSwitchs7
  196. var gmSwitchedd4 = false;
  197.  
  198. var gmSwitchs8
  199. var gmSwitchedd5 = false;
  200.  
  201. var gmSwitchs9
  202. var gmSwitchedd6 = false;
  203.  
  204. var gmSwitchs10
  205. var gmSwitchedd7 = false;
  206.  
  207. var gmSwitchs11
  208. var gmSwitchedd8 = false;
  209.  
  210. var gmSwitchs12
  211. var gmSwitchedd9 = false;
  212.  
  213. var gmSwitchs13
  214. var gmSwitchedd10 = false;
  215.  
  216. var gmSwitchs14
  217. var gmSwitchedd11 = false;
  218.  
  219. var aim;
  220. var aimbot = false;
  221. var aimed = false;
  222.  
  223. var vtped = false;
  224. var vtp;
  225. var vport = false;
  226.  
  227. var cspeeds
  228. var cspeedss = false;
  229. var cspeeded = false;
  230.  
  231. var elevators = false;
  232. var elevatored = false;
  233.  
  234. var elevators4
  235. var elevatoredddd = false;
  236.  
  237. var ndglides
  238. var ndglidess = false;
  239. var ndglideed = false;
  240.  
  241. var taptowers
  242. var taptowerss = false;
  243. var taptowered = false;
  244.  
  245. var taptps
  246. var taptpss = false;
  247. var taptped = false;
  248.  
  249. var toggled = false;
  250.  
  251. var antikbs
  252. var antikbss = false;
  253. var antikbed = false;
  254.  
  255. var spams
  256. var spamss = false;
  257. var spammed = false;
  258.  
  259. var livecords
  260. var livecordss = false;
  261. var livecored = false;
  262.  
  263. var bhop = false;
  264. var bhopl = false;
  265. var bhoped = false;
  266.  
  267. var bhop2 = false;
  268. var bhopll = false;
  269. var bhoped2 = false;
  270.  
  271. var steps
  272. var stepss = false;
  273. var steped = false;
  274.  
  275. var farbots
  276. var farbotss = false;
  277. var farboted = false;
  278.  
  279. var hitboxs
  280. var hitboxss = false;
  281. var hitboxed = false;
  282.  
  283. var quickescapes
  284. var quickescapess = false;
  285. var quickescaped = false;
  286.  
  287. var jsed = false;
  288. var js;
  289. var jesus = false;
  290.  
  291. var msped = false;
  292. var msp;
  293. var motion = false;
  294.  
  295. var js
  296. var js1 = false;
  297. var js2 = false;
  298.  
  299. var sw
  300. var sw1 = false;
  301. var sw2 = false;
  302.  
  303. var mh
  304. var mh1 = false;
  305. var mh2 = false;
  306.  
  307. var sc
  308. var sc1 = false;
  309. var sc2 = false;
  310.  
  311. var nf
  312. var nf1 = false;
  313. var nf2 = false;
  314.  
  315. var fb
  316. var fb1 = false;
  317. var fb2 = false;
  318.  
  319. var glides
  320. var glidess = false;
  321. var glideed = false;
  322.  
  323. var pg
  324. var pg1 = false;
  325.  
  326. var sm
  327. var sm1 = false;
  328.  
  329. var sf
  330. var sf1 = false;
  331.  
  332. var ci
  333. var ci1 = false;
  334.  
  335. var fp
  336. var fp1 = false;
  337.  
  338. var lg
  339. var lg1 = false;
  340.  
  341. var ahged = false;
  342. var ahg;
  343. var ahunger = false;
  344.  
  345. var reged = false;
  346. var reg;
  347. var regen = false;
  348.  
  349. var bf2 = false;
  350. var bf1 = false;
  351. var bouncedelay = 9;
  352. var bouncevel = 0.33;
  353. var bouncespeed = 1.08;
  354.  
  355. var time = 2.0;
  356.  
  357. var lg
  358. var lg1 = false;
  359. var lg2 = false;
  360.  
  361. var tb
  362. var tb1 = false;
  363. var tb2 = false;
  364.  
  365. var pe
  366. var pe1 = false;
  367. var pe2 = false;
  368.  
  369. var yp
  370. var yp1 = false;
  371. var yp2 = false;
  372.  
  373. var ba
  374. var ba1 = false;
  375. var ba2 = false;
  376.  
  377. var airjumps
  378. var airjumped = false;
  379.  
  380. var at
  381. var at1 = false;
  382. var at2 = false;
  383.  
  384. var aw
  385. var aw1 = false;
  386. var aw2 = false;
  387.  
  388. var sb2 = false;
  389. var sb1 = false;
  390. var bouncedelay = 9;
  391. var bouncevel = 0.40;
  392. var bouncespeed = 1.08;
  393.  
  394. var tima = 3.0;
  395.  
  396. var ls
  397. var ls1 = false;
  398. var ls2 = false;
  399.  
  400. var gr
  401. var gr1 = false;
  402. var gr2 = false;
  403.  
  404. var csb
  405. var csb1 = false;
  406. var csb2 = false;
  407.  
  408. var btp
  409. var btp1 = false;
  410. var btp2 = false;
  411.  
  412. var bz
  413. var bz1 = false;
  414. var bz2 = false;
  415.  
  416. var bw
  417. var bw1 = false;
  418. var bw2 = false;
  419.  
  420. var dv
  421. var dv1 = false;
  422. var dv2 = false;
  423.  
  424. var hj
  425. var hj1 = false;
  426. var hj2 = false;
  427.  
  428. var forcedestroys
  429. var forcedestroyss = false;
  430. var forcedestroyed = false;
  431.  
  432. var ch
  433. var ch1 = false;
  434. var ch2 = false;
  435.  
  436. var cs
  437. var cs1 = false;
  438. var cs2 = false;
  439.  
  440. var ab
  441. var ab1 = false;
  442. var ab2 = false;
  443.  
  444. var jp
  445. var jp1 = false;
  446. var jp2 = false;
  447.  
  448. var airjumpss
  449. var airjumpedd = false;
  450.  
  451. var airjumpsss
  452. var airjumpeddd = false;
  453.  
  454. var airjumpssss
  455. var airjumpedddd = false;
  456.  
  457. var airjumpsssss
  458. var airjumpeddddd = false;
  459.  
  460. var airjumpssssss
  461. var airjumpedddddd = false;
  462.  
  463. var airjumpsssssss
  464. var airjumpeddddddd = false;
  465.  
  466. var airjumpssssssss
  467. var airjumpedddddddd = false;
  468.  
  469. var airjumpsssssssss
  470. var airjumpeddddddddd = false;
  471.  
  472. var he
  473. var he1 = false;
  474. var he2 = false;
  475.  
  476. var dj
  477. var dj1 = false;
  478. var dj2 = false;
  479.  
  480. var lh
  481. var lh1 = false;
  482. var lh2 = false;
  483.  
  484. var bj
  485. var bj1 = false;
  486. var bj2 = false;
  487.  
  488. var ljj
  489. var ljj1 = false;
  490. var ljj2 = false;
  491.  
  492. var ir
  493. var ir1 = false;
  494. var ir2 = false;
  495. var ir3 = null;
  496.  
  497. var lh
  498. var lh1 = false;
  499. var lh2 = false;
  500. var can = 1;
  501. var canGetHP = 1;
  502. var HP;
  503. var gravity = -0.07840000092983246;
  504.  
  505. var fa
  506. var fa1 = false;
  507. var fa2 = false;
  508.  
  509. var blj
  510. var blj1 = false;
  511. var blj2 = false;
  512. var sacounter = null;
  513.  
  514. var ljc
  515. var ljc1 = false;
  516. var ljc2 = false;
  517. var sboost = 1.1;
  518. var jboost = 1.247;
  519. var fboost = 0.84;
  520. var normalspeed = 1.00;
  521.  
  522. var tnt
  523. var tnt1 = false;
  524. var tnt2 = false;
  525.  
  526. var ar
  527. var ar1 = false;
  528. var ar2 = false;
  529.  
  530. var nt
  531. var nt1 = false;
  532. var nt2 = false;
  533.  
  534. var nw
  535. var nw1 = false;
  536. var nw2 = false;
  537.  
  538. var sp
  539. var sp1 = false;
  540. var sp2 = false;
  541.  
  542. var rtp
  543. var rtp1 = false;
  544. var rtp2 = false;
  545.  
  546. var mdglides
  547. var mdglidess = false;
  548. var mdglideed = false;
  549.  
  550. var gdglides
  551. var gdglidess = false;
  552. var gdglideed = false;
  553.  
  554. var ta
  555. var ta1 = false;
  556. var ta2 = false;
  557. var ta3 = null;
  558.  
  559. var as
  560. var as1 = false;
  561. var as2 = false;
  562.  
  563. var sa
  564. var sa1 = false;
  565. var sa2 = false;
  566.  
  567. var saa
  568. var saa1 = false;
  569. var saa2 = false;
  570.  
  571. var Gui
  572. var Gui1 = false;
  573.  
  574. var Gui
  575. var Gui2 = false;
  576.  
  577. var Gui
  578. var Gui3 = false;
  579.  
  580. var Gui
  581. var Gui4 = false;
  582.  
  583. var css
  584. var css1 = false;
  585. var css2 = false;
  586.  
  587. var fw
  588. var fw1 = false;
  589. var fw2 = false;
  590.  
  591. var bb
  592. var bb1 = false;
  593. var bb2 = false;
  594.  
  595. var rg
  596. var rg1 = false;
  597. var rg2 = false;
  598. var regenX = Player.getX();
  599. var regenZ = Player.getZ();
  600.  
  601. var aas
  602. var aas1 = false;
  603. var aas2 = false;
  604.  
  605. var az
  606. var az1 = false;
  607. var az2 = false;
  608. var time = 0;
  609.  
  610. var ea
  611. var ea1 = false;
  612. var ea2 = false;
  613. var tCounter = 0;
  614.  
  615. var Gui
  616. var Gui5 = false;
  617.  
  618. var Gui
  619. var Gui6 = false;
  620.  
  621. var Gui
  622. var Gui7 = false;
  623.  
  624. var eaet = false;
  625. var uspe = 2;
  626.  
  627. var stealths
  628. var stealthss = false;
  629. var stealthed = false;
  630.  
  631. var ddj
  632. var ddj1 = false;
  633. var ddj2 = false;
  634.  
  635. var ftp
  636. var ftp1 = false;
  637. var ftp2 = false;
  638. var ftp3 = null;
  639.  
  640. var nbb
  641. var nbb1 = false;
  642. var nbb2 = false;
  643.  
  644.  
  645. var fl
  646. var fl1 = false;
  647. var fl2 = false;
  648. var ladderspeed = 1;
  649.  
  650. var bst
  651. var bst1 = false;
  652. var bst2 = false;
  653.  
  654. var ff
  655. var ff1 = false;
  656. var ff2 = false;
  657.  
  658. var fv
  659. var fv1 = false;
  660. var fv2 = false;
  661. var vinespeed = 1;
  662.  
  663. var fi
  664. var fi1 = false;
  665. var fi2 = false;
  666.  
  667. var cm
  668. var cm1 = false;
  669. var cm2 = false;
  670. var tptick = 0;
  671.  
  672. var nw
  673. var nw1 = false;
  674. var nw2 = false;
  675.  
  676. var asb
  677. var asb1 = false;
  678. var asb2 = false;
  679.  
  680. var da
  681. var da1 = false;
  682. var da2 = false;
  683.  
  684. var bgl
  685. var bgl1 = false;
  686. var bgl2 = false;
  687. var mftick = 0;
  688.  
  689. var ninja
  690. var ninja1 = false;
  691. var ninja2 = false;
  692.  
  693. var textview
  694.  
  695. //Utlis
  696.  
  697. var defaultDestroyTime = [
  698. null, 1.5, 0.6, 0.5, 2, 2, 0, -1, null, null, null, null, 0.5, 0.6, 3, 3, 3, 2,
  699. 0.2, 0.6, 0.3, 3, 3, null, 0.8, null, 0.2, 0.7, null, null, 4, 0, 0, null, null,
  700. 0.8, null, 0, 0, 0, 0, 3, 5, 2, 2, 2, 0, 1.5, 2, 50, 0, 0, null, 2, 2.5, null,
  701. 3, 5, 2.5, 0, 0.6, 3.5, 3.5, 1, 3, 0.4, 0.7, 2, 1, null, null, 5, null, 3, 3,
  702. null, null, null, 0.1, 0.5, 0.2, 0.4, 0.6, 0, null, 2, 1, 0.4, 0.3, null, 1, 0.5,
  703. null, null, -1, 3, null, 1.5, null, null, 5, 0.3, 1, 0, 0, null, 2, 2, 1.5, null,
  704. null, 2, null, 2, null, null, null, null, null, null, null, null, null, null, null,
  705. null, null, 0.8, null, null, null, null, null, 2, 2, 2, null, null, 2, null, 0, 0,
  706. null, null, null, null, null, null, null, null, null, null, null, null, 0.8, 0.8,
  707. 2, 2, null, null, null, null, null, null, null, null, null, null, null, 0.5, 0.1,
  708. 5, null, null, null, null, null, null, null, null, null, null, null, null, null,
  709. null, null, null, null, null, null, null, null, null, null, null, null, null, null,
  710. null, null, null, null, null, null, null, null, null, null, null, null, null, null,
  711. null, null, null, null, null, null, null, null, null, null, null, null, null, null,
  712. null, null, null, null, null, null, null, null, null, null, null, null, null, null,
  713. null, 0, 3.5, 50, 5, 0.6, 0.6, 5, null, null, null, null, 0
  714. ];
  715.  
  716. var playerDir = [0, 0, 0];
  717. var DEG_TO_RAD = Math.PI / 180;
  718. var playerFlySpeed = 50;
  719. var falling = 0;
  720. var next = 0;
  721. var px, py, pz, lx, ly, lz, vel, saver;
  722. var cd = 0;
  723. var s = 0;
  724. var Xdiff;
  725. var Zdiff;
  726. var Xpos;
  727. var Zpos;
  728. var can = 1;
  729. var canGetHP = 1;
  730. var HP;
  731. var gravity = -0.07840000092983246;
  732. var Entities = [];
  733. var counter = 0;
  734.  
  735. var Utils = {
  736. File: { dragopDir: android.os.Environment.getExternalStorageDirectory() + "/DragOP/", getTextFromFile: function (file) { let readed = (new java.io.BufferedReader(new java.io.FileReader(file))); let data = new java.lang.StringBuilder(); let string; while((string = readed.readLine()) != null) data.append(string + "\n"); return data.toString(); }, saveTextToFile: function (file, text) { if(!file.exists()) file.createNewFile(); let bytes = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, text.length()); for(let i = 0; i < text.length(); i++) bytes[i] = text.charCodeAt(i); let stream = new java.io.FileOutputStream(file); try { stream.write(bytes); } finally { stream.close(); } } }, Render: {
  737. getFloatBuffer: function (fArray) {
  738. let bBuffer = java.nio.ByteBuffer.allocateDirect(fArray.length * 4);
  739. bBuffer.order(java.nio.ByteOrder.nativeOrder());
  740.  
  741. let fBuffer = bBuffer.asFloatBuffer();
  742. fBuffer.put(fArray);
  743. fBuffer.position(0);
  744. return fBuffer;
  745. },
  746. getShortBuffer: function (sArray) {
  747. let bBuffer = java.nio.ByteBuffer.allocateDirect(sArray.length * 2);
  748. bBuffer.order(java.nio.ByteOrder.nativeOrder());
  749.  
  750. let sBuffer = bBuffer.asShortBuffer();
  751. sBuffer.put(sArray);
  752. sBuffer.position(0);
  753. return sBuffer;
  754. },
  755. renderer: null,
  756. glSurface: null,
  757. fov: 90,
  758.  
  759. color: android.graphics.Color.argb(180, 255, 0, 0),
  760.  
  761. initted: false,
  762. init: function () {
  763. if(Utils.Render.initted)
  764. return;
  765. let options = Utils.File.getTextFromFile(new java.io.File(android.os.Environment.getExternalStorageDirectory() + "/games/com.mojang/minecraftpe/", "options.txt"));
  766.  
  767.  
  768. options = options.split("\n");
  769. options.forEach(function (entry) {
  770. let suboption = entry.split(":");
  771. if(suboption[0] == "gfx_field_of_view") {
  772. Utils.Render.fov = suboption[1];
  773.  
  774.  
  775. }
  776. });
  777. this.renderer = new android.opengl.GLSurfaceView.Renderer({
  778. onSurfaceCreated: function (gl, config) {
  779. let GL10 = javax.microedition.khronos.opengles.GL10;
  780. gl.glClearColor(0, 0, 0, 0);
  781. gl.glShadeModel(GL10.GL_SMOOTH);
  782. gl.glClearDepthf(1.0);
  783. gl.glDisable(GL10.GL_DITHER);
  784. gl.glEnable(GL10.GL_DEPTH_TEST);
  785. gl.glDepthFunc(GL10.GL_LEQUAL);
  786. gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);
  787. },
  788. onSurfaceChanged: function (gl, width, height) {
  789. let GL10 = javax.microedition.khronos.opengles.GL10;
  790. gl.glMatrixMode(GL10.GL_PROJECTION);
  791. gl.glLoadIdentity();
  792. android.opengl.GLU.gluPerspective(gl, Utils.Render.fov, width / height, 0.1, 100);
  793. gl.glMatrixMode(GL10.GL_MODELVIEW);
  794. gl.glLoadIdentity();
  795. },
  796. onDrawFrame: function (gl) {
  797.  
  798. let GL10 = javax.microedition.khronos.opengles.GL10;
  799. gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
  800. gl.glLoadIdentity();
  801.  
  802. if(esp == true && getPlayerEnt() != -1) {
  803. try {
  804.  
  805. gl.glDisable(GL10.GL_LIGHTING);
  806. let yaw = getYaw() % 360;
  807. let pitch = getPitch() % 360;
  808. let eyeX = getPlayerX();
  809. let eyeY = getPlayerY() + 1;
  810. let eyeZ = getPlayerZ();
  811.  
  812. let dCenterX = Math.sin(yaw / 180 * Math.PI);
  813. let dCenterZ = Math.cos(yaw / 180 * Math.PI);
  814. let dCenterY = Math.sqrt(dCenterX * dCenterX + dCenterZ * dCenterZ) * Math.tan((pitch - 180) / 180 * Math.PI);
  815.  
  816. let centerX = eyeX - dCenterX;
  817. let centerZ = eyeZ + dCenterZ;
  818. let centerY = eyeY - dCenterY;
  819.  
  820. android.opengl.GLU.gluLookAt(gl, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, 0, 1.0, 0);
  821.  
  822. //Hardcoding the esp
  823. //Skidders, dont do that xddd
  824. //also hi for looking inside the code
  825.  
  826. let mobs = Entity.getAll();
  827. let players = Server.getAllPlayers();
  828.  
  829. //clientMessage(mobs.length);
  830. mobs.forEach(function (entry) {
  831.  
  832. if(entry != getPlayerEnt() && Entity.getEntityTypeId(entry) == EntityType.PLAYER) {
  833. Utils.Render.drawBox(gl, Entity.getX(entry) - 0.5, Entity.getY(entry) - 0.5, Entity.getZ(entry) - 0.50, 1, 2, 1);
  834.  
  835. }
  836. });
  837. players.forEach(function (entry) {
  838. if(entry != getPlayerEnt() && Entity.getEntityTypeId(entry) == EntityType.PLAYER) {
  839. Utils.Render.drawBox(gl, Entity.getX(entry) - 0.5, Entity.getY(entry) - 0.5, Entity.getZ(entry) - 0.5, 1, 2, 1);
  840.  
  841. }
  842. });
  843.  
  844.  
  845. } catch(e) {
  846. clientMessage("RenderProblem: " + e);
  847. }
  848.  
  849. } else {
  850.  
  851. }
  852. }
  853. });
  854. ctx.runOnUiThread(new java.lang.Runnable({
  855. run: function () {
  856. Utils.Render.glSurface = new android.opengl.GLSurfaceView(ctx);
  857. Utils.Render.glSurface.setZOrderOnTop(true);
  858.  
  859.  
  860. Utils.Render.glSurface.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
  861. Utils.Render.glSurface.getHolder().setFormat(android.graphics.PixelFormat.TRANSLUCENT);
  862. Utils.Render.glSurface.setRenderer(Utils.Render.renderer);
  863.  
  864.  
  865. ctx.getWindow().getDecorView().addView(Utils.Render.glSurface);
  866.  
  867. Utils.Render.initted = true;
  868. }
  869. }));
  870.  
  871. },
  872. drawBox: function (gl, x, y, z, xsize, ysize, zsize) {
  873.  
  874. let GL10 = javax.microedition.khronos.opengles.GL10;
  875. let size = new Array(xsize, ysize, zsize);
  876. let vertices = [
  877. 0, 0, 0,
  878. size[0], 0, 0,
  879. 0, 0, size[2],
  880. size[0], 0, size[2],
  881.  
  882. 0, size[1], 0,
  883. size[0], size[1], 0,
  884. 0, size[1], size[2],
  885. size[0], size[1], size[2]
  886. ];
  887. let vertexBuffer = Utils.Render.getFloatBuffer(vertices);
  888. let lineIndices = [
  889. 0, 1,
  890. 0, 2,
  891. 0, 4,
  892.  
  893. 3, 1,
  894. 3, 2,
  895. 3, 7,
  896.  
  897. 5, 4,
  898. 5, 7,
  899. 5, 1,
  900.  
  901. 6, 4,
  902. 6, 7,
  903. 6, 2
  904. ];
  905. let polyIndices = [
  906. 0, 1, 4,
  907. 1, 4, 5,
  908.  
  909. 2, 3, 6,
  910. 7, 6, 3,
  911.  
  912. 1, 3, 7,
  913. 7, 1, 5,
  914.  
  915. 0, 2, 6,
  916. 6, 0, 4,
  917.  
  918. 0, 1, 2,
  919. 3, 1, 2,
  920.  
  921. 4, 5, 6,
  922. 7, 5, 6
  923. ];
  924. let lineBuffer = Utils.Render.getShortBuffer(lineIndices);
  925. let polyBuffer = Utils.Render.getShortBuffer(polyIndices);
  926. gl.glTranslatef(x, y, z);
  927. gl.glFrontFace(GL10.GL_CCW);
  928. gl.glEnable(GL10.GL_BLEND);
  929. //gl.glEnable(GL10.GL_LINE_SMOOTH);
  930. gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
  931. gl.glLineWidth(7);
  932. gl.glColor4f(android.graphics.Color.blue(Utils.Render.color) / 255,android.graphics.Color.green(Utils.Render.color) / 255, android.graphics.Color.red(Utils.Render.color) / 255, 0.7);
  933. gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
  934. gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
  935.  
  936. gl.glColor4f(android.graphics.Color.blue(Utils.Render.color) / 255, android.graphics.Color.green(Utils.Render.color) / 255, android.graphics.Color.red(Utils.Render.color) / 255, 0.2);
  937. gl.glDrawElements(GL10.GL_TRIANGLES, polyIndices.length, GL10.GL_UNSIGNED_SHORT, polyBuffer);
  938. gl.glDisable(GL10.GL_LINE_SMOOTH);
  939. gl.glTranslatef(-x, -y, -z);
  940. },
  941. drawLine: function (gl, x, y, z, x2, y2, z2) {
  942.  
  943. let GL10 = javax.microedition.khronos.opengles.GL10;
  944. let size = new Array(x2, y2, z2);
  945. let vertices = [
  946. 0, 0, 0,
  947. x2 - x, y2 - y, z2 - z
  948. ];
  949. let vertexBuffer = Utils.Render.getFloatBuffer(vertices);
  950. let indices = [
  951. 0, 1
  952. ];
  953. let indexBuffer = Utils.Render.getShortBuffer(indices);
  954. gl.glTranslatef(x, y, z);
  955. gl.glEnable(GL10.GL_BLEND);
  956. gl.glDepthMask(false);
  957. //gl.glEnable(GL10.GL_LINE_SMOOTH);
  958. gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
  959. gl.glLineWidth(4);
  960. gl.glColor4f(android.graphics.Color.red(Utils.Render.color) / 255,android.graphics.Color.green(Utils.Render.color) / 255, android.graphics.Color.blue(Utils.Render.color) /255, 0.7);
  961. gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
  962. gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
  963. gl.glDrawElements(GL10.GL_LINES, indices.length, GL10.GL_UNSIGNED_SHORT, indexBuffer);
  964. gl.glTranslatef(-x, -y, -z);
  965. gl.glDepthMask(true);
  966. gl.glDisable(GL10.GL_LINE_SMOOTH);
  967. }
  968. },
  969. Block: {
  970. isLiquid: function(id) {
  971. if (id >= 8 && id <= 11) return true;
  972. return false;
  973. },
  974. isLadder: function(id) {
  975. if (id = 65) return true;
  976. return false;
  977. },
  978. isWeb: function(id) {
  979. if (id = 30) return true;
  980. return false;
  981. },
  982. isIce: function(id) {
  983. if (id = 79 && id = 174) return true;
  984. return false;
  985. }
  986. },
  987. onRender: function (gl) {
  988. if(!this.state)
  989. return
  990. var all = Utils.Entity.getAll();
  991. var players = Server.getAllPlayers();
  992. var px = getPlayerX();
  993. var py = getPlayerY();
  994. var pz = getPlayerZ();
  995. all.forEach(function(entry){
  996. var x = Entity.getX(entry) - px;
  997. var y = Entity.getY(entry) - py;
  998. var z = Entity.getZ(entry) - pz;
  999.  
  1000. var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
  1001.  
  1002. if(dist <= 200 && dist > 0.1)
  1003. Utils.Render.drawLine(gl, px,py+0.8, pz, Entity.getX(entry), Entity.getY(entry)+1, Entity.getZ(entry));
  1004. });
  1005. players.forEach(function(entry){
  1006. var x = Entity.getX(entry) - px;
  1007. var y = Entity.getY(entry) - py;
  1008. var z = Entity.getZ(entry) - pz;
  1009.  
  1010. var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
  1011.  
  1012. if(dist <= 200 && dist > 0.1)
  1013. Utils.Render.drawLine(gl, px,py+0.8, pz, Entity.getX(entry), Entity.getY(entry)+1, Entity.getZ(entry));
  1014. });
  1015. },
  1016. Velocity: {
  1017. calculateSpeed: function() {
  1018. return Math.sqrt(Math.pow(Entity.getVelX(getPlayerEnt()), 2) + Math.pow(Entity.getVelZ(getPlayerEnt()), 2));
  1019. }
  1020. },
  1021. Player: {
  1022. isFall: function() {
  1023. var velo = -0.07840000092983246;
  1024. if(!Utils.Player.onGround() && Entity.getVelY(Player.getEntity()) < velo) return true;
  1025. return false;
  1026. },
  1027. isAutoEagle: function(){
  1028. if(getTile(getPlayerX()+0.0001, getPlayerY()-2, getPlayerZ()+0.0001) == 0 ||
  1029. getTile(getPlayerX()-0.0001, getPlayerY()-2, getPlayerZ()-0.0001) == 0 ||
  1030. getTile(getPlayerX()+0.0001, getPlayerY()-2, getPlayerZ()-0.0001) == 0 ||
  1031. getTile(getPlayerX()-0.0001, getPlayerY()-2, getPlayerZ()+0.0001) == 0)return true;
  1032. return false;
  1033. },
  1034. isInWater: function() {
  1035. if(Utils.Block.isLiquid(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 1.65, Entity.getZ(getPlayerEnt())))) {
  1036. return true;
  1037. } else {
  1038. return false;
  1039. }
  1040. },
  1041. isInIce: function() {
  1042. if(Utils.Block.isIce(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 0.1, Entity.getZ(getPlayerEnt())))) {
  1043. return true;
  1044. } else {
  1045. return false;
  1046. }
  1047. },
  1048. isOnWeb: function(){
  1049. if(Utils.Block.isWeb(getTile(Entity.getX(getPlayerEnt()), Entity.getY(getPlayerEnt()) - 0.1, Entity.getZ(getPlayerEnt())))) {
  1050. return true;
  1051. } else {
  1052. return false;
  1053. }
  1054. },
  1055. isOnLadder: function(){
  1056. if(Utils.Block.isLadder(getTile(getPlayerX(), getPlayerY() + 0.1, getPlayerZ())))return true;
  1057. return false;
  1058. },
  1059. onGround: function() {
  1060. var y = getPlayerY();
  1061. while (y > 1) y -= 1;
  1062.  
  1063. if (Math.round(y * 100) == 62 && getTile(getPlayerX(), getPlayerY() - 1.65, getPlayerZ()) != 0 && !Utils.Block.isLiquid(getTile(getPlayerX(), getPlayerY() - 1.65, getPlayerZ()))) return true;
  1064. if (Math.round(y * 100) == 12 && getTile(getPlayerX(), getPlayerY() - 1.65, getPlayerZ()) != 0 && !Utils.Block.isLiquid(getTile(getPlayerX(), getPlayerY() - 1.65, getPlayerZ()))) return true;
  1065. return false;
  1066. },
  1067. overGround: function() {
  1068. var y = getPlayerY();
  1069. while (y > 2) y -= 2;
  1070.  
  1071. if (Math.round(y * 100) == 62 && getTile(getPlayerX(), getPlayerY() - 2.15, getPlayerZ()) != 0 && !Utils.Block.isLiquid(getTile(getPlayerX(), getPlayerY() - 2.15, getPlayerZ()))) return true;
  1072. if (Math.round(y * 100) == 12 && getTile(getPlayerX(), getPlayerY() - 2.15, getPlayerZ()) != 0 && !Utils.Block.isLiquid(getTile(getPlayerX(), getPlayerY() - 2.15, getPlayerZ()))) return true;
  1073. return false;
  1074. },
  1075. isCollidedHorizontally: function() {
  1076. var x = getPlayerX();
  1077. var z = getPlayerZ();
  1078. var blockX = Math.round(x - 0.5);
  1079. var blockZ = Math.round(z - 0.5);
  1080. while (x < 1) x += 1;
  1081. while (z < 1) z += 1;
  1082. while (x > 1) x -= 1;
  1083. while (z > 1) z -= 1;
  1084.  
  1085. if(Math.round(x * 100) == 31) x -= 0.01;
  1086. if(Math.round(z * 100) == 31) z -= 0.01;
  1087. if(Math.round(x * 100) == 69) x += 0.01;
  1088. if(Math.round(z * 100) == 69) z += 0.01;
  1089. if(Math.round(x * 100) == 30) blockX--;
  1090. if(Math.round(z * 100) == 30) blockZ--;
  1091. if(Math.round(x * 100) == 70) blockX++;
  1092. if(Math.round(z * 100) == 70) blockZ++;
  1093. //clientMessage(blockX+";"+blockZ);
  1094. if(getTile(blockX, Entity.getY(getPlayerEnt()), blockZ) == 0 && getTile(blockX, Entity.getY(getPlayerEnt()) - 1, blockZ) == 0) return false;
  1095.  
  1096. if(Block.getDestroyTime(getTile(blockX, Entity.getY(getPlayerEnt()) - 1, blockZ)) <= 0.1 && Block.getDestroyTime(getTile(blockX, Entity.getY(getPlayerEnt()), blockZ)) <= 0.1) return false;
  1097.  
  1098. if (Math.round(x * 100) == 30 || Math.round(x * 100) == 70) return true;
  1099. if (Math.round(z * 100) == 30 || Math.round(z * 100) == 70) return true;
  1100. return false;
  1101. }
  1102. },
  1103. Vel: {
  1104. lastX: 0,
  1105. lastY: 0,
  1106. lastZ: 0,
  1107. calculateSpeed: function() {
  1108. return Math.sqrt(Math.pow(Entity.getVelX(getPlayerEnt()), 2) + Math.pow(Entity.getVelZ(getPlayerEnt()), 2));
  1109. }
  1110. }
  1111. };
  1112.  
  1113.  
  1114. function dip2px(dips){
  1115. return Math.ceil(dips * ctx.getResources().getDisplayMetrics().density);
  1116. }
  1117. function showElevatorBtn() {
  1118.  
  1119. ctx.runOnUiThread(new Runnable({ run: function(){
  1120. try{
  1121. var layout = new LinearLayout(ctx);
  1122. layout.setOrientation(1);
  1123. var elevatorUpBtn = new Button(ctx);
  1124. elevatorUpBtn.setText("Up");
  1125. elevatorUpBtn.setTextColor(Color.WHITE);
  1126. elevatorUpBtn.setBackground(bg2);
  1127. elevatorUpBtn.setBackground(bg2);
  1128. elevatorUpBtn.setPadding(10,10,10,10);
  1129. elevatorUpBtn.getBackground().setAlpha(150);
  1130. elevatorUpBtn.setOnClickListener(new View.OnClickListener({
  1131. onClick: function(viewarg){
  1132. Entity.setPositionRelative(getPlayerEnt(), 0, +2.53, 0);
  1133. }
  1134. }));
  1135. layout.addView(elevatorUpBtn);
  1136.  
  1137. var elevatorDownBtn = new Button(ctx);
  1138. elevatorDownBtn.setText("Down");
  1139. elevatorDownBtn.setTextColor(Color.WHITE);
  1140. elevatorDownBtn.setBackground(bg2);
  1141. elevatorDownBtn.setPadding(10,10,10,10);
  1142. elevatorDownBtn.getBackground().setAlpha(150);
  1143. elevatorDownBtn.setOnClickListener(new View.OnClickListener({
  1144. onClick: function(viewarg){
  1145. Entity.setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()-1.01, getPlayerZ());
  1146. }
  1147. }));
  1148. layout.addView(elevatorDownBtn);
  1149.  
  1150. GUIe = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
  1151. GUIe.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  1152. GUIe.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.CENTER, 0, 0);
  1153. }catch(err){
  1154. Toast.makeText(ctx, "An error occured: " + err, 1).show();
  1155. }
  1156. }}));
  1157. }
  1158. function showJumpBtn() {
  1159.  
  1160. ctx.runOnUiThread(new Runnable({ run: function(){
  1161. try{
  1162. var layout = new LinearLayout(ctx);
  1163. layout.setOrientation(1);
  1164. var jumpBtn = new Button(ctx);
  1165. jumpBtn.setText("J");
  1166. jumpBtn.setTextColor(Color.WHITE);
  1167. jumpBtn.setBackground(bg2);
  1168. jumpBtn.getBackground().setAlpha(100);
  1169. jumpBtn.setOnClickListener(new View.OnClickListener({
  1170. onClick: function(viewarg){
  1171. setVelY(getPlayerEnt(), 0.4);
  1172. }
  1173. }));
  1174. layout.addView(jumpBtn);
  1175.  
  1176. GUIj = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
  1177. GUIj.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  1178. GUIj.showAtLocation(ctx.getWindow().getDecorView(), Gravity.RIGHT | Gravity.BOTTOM, 0, 0);
  1179. }catch(err){
  1180. Toast.makeText(ctx, "An error occured: " + err, 1).show();
  1181. }
  1182. }}));
  1183. }
  1184.  
  1185. function showCrossBtn() {
  1186.  
  1187. ctx.runOnUiThread(new Runnable({ run: function(){
  1188. try{
  1189. var layout = new LinearLayout(ctx);
  1190. layout.setOrientation(1);
  1191. var AimBtn = new Button(ctx);
  1192. AimBtn.setText("<¤>");
  1193. AimBtn.setTextColor(Color.WHITE);
  1194. AimBtn.setTextSize(35);
  1195. AimBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.TRANSPARENT));
  1196. AimBtn.setPadding(10,10,10,10);
  1197. AimBtn.getBackground().setAlpha(100);
  1198. AimBtn.setOnClickListener(new View.OnClickListener({
  1199. onClick: function(viewarg){
  1200. }
  1201. }));
  1202. layout.addView(AimBtn);
  1203.  
  1204. GUIv = new PopupWindow(layout, RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
  1205. GUIv.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  1206. GUIv.showAtLocation(ctx.getWindow().getDecorView(), Gravity.CENTER | Gravity.CENTER, 0, 0);
  1207. }catch(err){
  1208. Toast.makeText(ctx, "An error occured: " + err, 1).show();
  1209. }
  1210. }}));
  1211. }
  1212.  
  1213. function showtextview() {
  1214.  
  1215. ctx.runOnUiThread(new Runnable({ run: function(){
  1216. try{
  1217. var layout = new LinearLayout(ctx);
  1218. var menuScroll = new ScrollView(ctx);
  1219. var layout1 = new LinearLayout(ctx);
  1220. layout.setOrientation(1);
  1221. layout1.setOrientation(1);
  1222. layout.setBackground(bg1);
  1223. menuScroll.addView(layout);
  1224. layout1.addView(menuScroll);
  1225.  
  1226. //WaterMark
  1227.  
  1228. var menuBtn4 = new TextView(ctx);
  1229. menuBtn4.setTextSize(18);
  1230. menuBtn4.setText("TechX WWE Client Exploit");
  1231. menuBtn4.setTextColor(android.graphics.Color.PURPLE);
  1232. menuBtn4.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1233. menuBtn4.getBackground().setAlpha(150);
  1234. menuBtn4.setGravity(Gravity.CENTER);
  1235. layout.addView(menuBtn4);
  1236.  
  1237. var textvieww = new android.widget.TextView(ctx);
  1238. textvieww.setTextSize(15);
  1239. textvieww.setText('Combat');
  1240. textvieww.setGravity(android.view.Gravity.CENTER);
  1241. textvieww.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1242. textvieww.setTextColor(android.graphics.Color.WHITE); textvieww.setOnClickListener(new android.view.View.OnClickListener({
  1243. onClick: function(viewarg){
  1244. if(!Gui1){
  1245. mainMenu4();
  1246. textvieww.setBackground(bgon);
  1247. Gui1 = true;
  1248. }else{
  1249. menu2.dismiss();
  1250. textvieww.setBackground(bgoff);
  1251. Gui1 = false;
  1252. }
  1253. }
  1254. }));
  1255. textvieww.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1256. onTouch: function (view, motionEvent) {
  1257. try {
  1258. if(!moving) return false;
  1259. switch(motionEvent.getAction()) {
  1260. case android.view.MotionEvent.ACTION_DOWN:
  1261. dx = mPosX - motionEvent.getRawX();
  1262. dy = mPosY - motionEvent.getRawY();
  1263. break;
  1264. case android.view.MotionEvent.ACTION_MOVE:
  1265. mPosX = (motionEvent.getRawX() + dx);
  1266. mPosY = (motionEvent.getRawY() + dy);
  1267. GUI4.update(mPosX, mPosY - 15, -1, -1);
  1268. break;
  1269. case android.view.MotionEvent.ACTION_UP:
  1270. case android.view.MotionEvent.ACTION_CANCEL:
  1271. moving = false;
  1272. break;
  1273. }
  1274. } catch(e) {
  1275. }
  1276.  
  1277. return true;
  1278. }
  1279. }));
  1280. textvieww.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1281. onLongClick: function (v, t) {
  1282. moving = true;
  1283. return true;
  1284. }
  1285. }));
  1286. layout.addView(textvieww);
  1287.  
  1288. var textvieew = new android.widget.TextView(ctx);
  1289. textvieew.setTextSize(15);
  1290. textvieew.setText('Montion');
  1291. textvieew.setGravity(android.view.Gravity.CENTER);
  1292. textvieew.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1293. textvieew.setTextColor(android.graphics.Color.WHITE); textvieew.setOnClickListener(new android.view.View.OnClickListener({
  1294. onClick: function(viewarg){
  1295. if(!Gui2){
  1296. mainMenu5();
  1297. textvieew.setBackground(bgon);
  1298. Gui2 = true;
  1299. }else{
  1300. menu3.dismiss();
  1301. textvieew.setBackground(bgoff);
  1302. Gui2 = false;
  1303. }
  1304. }
  1305. }));
  1306. textvieew.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1307. onTouch: function (view, motionEvent) {
  1308. try {
  1309. if(!moving) return false;
  1310. switch(motionEvent.getAction()) {
  1311. case android.view.MotionEvent.ACTION_DOWN:
  1312. dx = mPosX - motionEvent.getRawX();
  1313. dy = mPosY - motionEvent.getRawY();
  1314. break;
  1315. case android.view.MotionEvent.ACTION_MOVE:
  1316. mPosX = (motionEvent.getRawX() + dx);
  1317. mPosY = (motionEvent.getRawY() + dy);
  1318. GUI4.update(mPosX, mPosY - 15, -1, -1);
  1319. break;
  1320. case android.view.MotionEvent.ACTION_UP:
  1321. case android.view.MotionEvent.ACTION_CANCEL:
  1322. moving = false;
  1323. break;
  1324. }
  1325. } catch(e) {
  1326. }
  1327.  
  1328. return true;
  1329. }
  1330. }));
  1331. textvieew.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1332. onLongClick: function (v, t) {
  1333. moving = true;
  1334. return true;
  1335. }
  1336. }));
  1337. layout.addView(textvieew);
  1338.  
  1339. var textviiew = new android.widget.TextView(ctx);
  1340. textviiew.setTextSize(15);
  1341. textviiew.setText('Player');
  1342. textviiew.setGravity(android.view.Gravity.CENTER);
  1343. textviiew.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1344. textviiew.setTextColor(android.graphics.Color.WHITE); textviiew.setOnClickListener(new android.view.View.OnClickListener({
  1345. onClick: function(viewarg){
  1346. if(!Gui3){
  1347. mainMenu3();
  1348. textviiew.setBackground(bgon);
  1349. Gui3 = true;
  1350. }else{
  1351. menu1.dismiss();
  1352. textviiew.setBackground(bgoff);
  1353. Gui3 = false;
  1354. }
  1355. }
  1356. }));
  1357. textviiew.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1358. onTouch: function (view, motionEvent) {
  1359. try {
  1360. if(!moving) return false;
  1361. switch(motionEvent.getAction()) {
  1362. case android.view.MotionEvent.ACTION_DOWN:
  1363. dx = mPosX - motionEvent.getRawX();
  1364. dy = mPosY - motionEvent.getRawY();
  1365. break;
  1366. case android.view.MotionEvent.ACTION_MOVE:
  1367. mPosX = (motionEvent.getRawX() + dx);
  1368. mPosY = (motionEvent.getRawY() + dy);
  1369. GUI4.update(mPosX, mPosY - 15, -1, -1);
  1370. break;
  1371. case android.view.MotionEvent.ACTION_UP:
  1372. case android.view.MotionEvent.ACTION_CANCEL:
  1373. moving = false;
  1374. break;
  1375. }
  1376. } catch(e) {
  1377. }
  1378.  
  1379. return true;
  1380. }
  1381. }));
  1382. textviiew.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1383. onLongClick: function (v, t) {
  1384. moving = true;
  1385. return true;
  1386. }
  1387. }));
  1388. layout.addView(textviiew);
  1389.  
  1390. var texttview = new android.widget.TextView(ctx);
  1391. texttview.setTextSize(15);
  1392. texttview.setText('Render');
  1393. texttview.setGravity(android.view.Gravity.CENTER);
  1394. texttview.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1395. texttview.setTextColor(android.graphics.Color.WHITE); texttview.setOnClickListener(new android.view.View.OnClickListener({
  1396. onClick: function(viewarg){
  1397. if(!Gui5){
  1398. mainMenu8();
  1399. texttview.setBackground(bgon);
  1400. Gui5 = true;
  1401. }else{
  1402. menu6.dismiss();
  1403. texttview.setBackground(bgoff);
  1404. Gui5 = false;
  1405. }
  1406. }
  1407. }));
  1408. texttview.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1409. onTouch: function (view, motionEvent) {
  1410. try {
  1411. if(!moving) return false;
  1412. switch(motionEvent.getAction()) {
  1413. case android.view.MotionEvent.ACTION_DOWN:
  1414. dx = mPosX - motionEvent.getRawX();
  1415. dy = mPosY - motionEvent.getRawY();
  1416. break;
  1417. case android.view.MotionEvent.ACTION_MOVE:
  1418. mPosX = (motionEvent.getRawX() + dx);
  1419. mPosY = (motionEvent.getRawY() + dy);
  1420. GUI4.update(mPosX, mPosY - 15, -1, -1);
  1421. break;
  1422. case android.view.MotionEvent.ACTION_UP:
  1423. case android.view.MotionEvent.ACTION_CANCEL:
  1424. moving = false;
  1425. break;
  1426. }
  1427. } catch(e) {
  1428. }
  1429.  
  1430. return true;
  1431. }
  1432. }));
  1433. texttview.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1434. onLongClick: function (v, t) {
  1435. moving = true;
  1436. return true;
  1437. }
  1438. }));
  1439. layout.addView(texttview);
  1440.  
  1441. var textvview = new android.widget.TextView(ctx);
  1442. textvview.setTextSize(15);
  1443. textvview.setText('World');
  1444. textvview.setGravity(android.view.Gravity.CENTER);
  1445. textvview.setBackgroundDrawable(new ColorDrawable(Color.BLACK));
  1446. textvview.setTextColor(android.graphics.Color.WHITE); textvview.setOnClickListener(new android.view.View.OnClickListener({
  1447. onClick: function(viewarg){
  1448. if(!Gui4){
  1449. mainMenu6();
  1450. textvview.setBackground(bgon);
  1451. Gui4 = true;
  1452. }else{
  1453. menu4.dismiss();
  1454. textvview.setBackground(bgoff);
  1455. Gui4 = false;
  1456. }
  1457. }
  1458. }));
  1459. textvview.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1460. onTouch: function (view, motionEvent) {
  1461. try {
  1462. if(!moving) return false;
  1463. switch(motionEvent.getAction()) {
  1464. case android.view.MotionEvent.ACTION_DOWN:
  1465. dx = mPosX - motionEvent.getRawX();
  1466. dy = mPosY - motionEvent.getRawY();
  1467. break;
  1468. case android.view.MotionEvent.ACTION_MOVE:
  1469. mPosX = (motionEvent.getRawX() + dx);
  1470. mPosY = (motionEvent.getRawY() + dy);
  1471. GUI4.update(mPosX, mPosY - 15, -1, -1);
  1472. break;
  1473. case android.view.MotionEvent.ACTION_UP:
  1474. case android.view.MotionEvent.ACTION_CANCEL:
  1475. moving = false;
  1476. break;
  1477. }
  1478. } catch(e) {
  1479. }
  1480.  
  1481. return true;
  1482. }
  1483. }));
  1484. textvview.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1485. onLongClick: function (v, t) {
  1486. moving = true;
  1487. return true;
  1488. }
  1489. }));
  1490. layout.addView(textvview);
  1491.  
  1492.  
  1493. GUI4 = new PopupWindow(layout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/7, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  1494. GUI4.setAnimationStyle(android.R.style.Animation_InputMethod);
  1495. GUI4.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  1496. GUI4.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT| Gravity.TOP, 0, 0);
  1497. }catch(error){
  1498. Toast.makeText(ctx, "Template Error: " + error, 1).show();
  1499. }
  1500. }}));
  1501. }
  1502. showtextview();
  1503.  
  1504. function mainMenu4(){
  1505. ctx.runOnUiThread(new Runnable({ run: function(){
  1506. try{
  1507. var menuLayout = new LinearLayout(ctx);
  1508. var menuScroll = new ScrollView(ctx);
  1509. var menuLayout1 = new LinearLayout(ctx);
  1510. menuLayout.setOrientation(1);
  1511. menuLayout1.setOrientation(1);
  1512. menuScroll.addView(menuLayout);
  1513. menuLayout1.addView(menuScroll);
  1514.  
  1515. var button = new android.widget.TextView(ctx);
  1516. button.setText('Combat'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN));
  1517. button.getBackground().setAlpha(150);
  1518. button.setOnClickListener(new android.view.View.OnClickListener({
  1519. onClick: function(viewarg){
  1520. }
  1521. }));
  1522. button.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1523. onTouch: function (view, motionEvent) {
  1524. try {
  1525. if(!moving) return false;
  1526. switch(motionEvent.getAction()) {
  1527. case android.view.MotionEvent.ACTION_DOWN:
  1528. dx = mPosX - motionEvent.getRawX();
  1529. dy = mPosY - motionEvent.getRawY();
  1530. break;
  1531. case android.view.MotionEvent.ACTION_MOVE:
  1532. mPosX = (motionEvent.getRawX() + dx);
  1533. mPosY = (motionEvent.getRawY() + dy);
  1534. menu2.update(mPosX, mPosY - 15, -1, -1);
  1535. break;
  1536. case android.view.MotionEvent.ACTION_UP:
  1537. case android.view.MotionEvent.ACTION_CANCEL:
  1538. moving = false;
  1539. break;
  1540. }
  1541. } catch(e) {
  1542. }
  1543.  
  1544. return true;
  1545. }
  1546. }));
  1547. button.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1548. onLongClick: function (v, t) {
  1549. moving = true;
  1550. return true;
  1551. }
  1552. }));
  1553. menuLayout.addView(button);
  1554.  
  1555. var buttonn = new android.widget.TextView(ctx);
  1556. buttonn.setText('Aimbot');
  1557. buttonn.setTextColor(android.graphics.Color.WHITE);
  1558. buttonn.setBackground(aimbot ? mainbt : mainbt2);
  1559. buttonn.setTextSize(15);
  1560. buttonn.getBackground().setAlpha(150);
  1561. buttonn.setOnClickListener(new android.view.View.OnClickListener({
  1562. onClick: function(viewarg){
  1563. if(!aimed){
  1564. aimbot = true;
  1565. aimed = true;
  1566. buttonn.setBackground(mainbt);
  1567. print("Aim on ")
  1568. clientMessage('By TechX"')
  1569. }else{
  1570. print("Aim Off loser ")
  1571. aimbot = false;
  1572. aimed = false;
  1573. buttonn.setBackground(mainbt2);
  1574. }
  1575.  
  1576. }
  1577. }));
  1578. menuLayout.addView(buttonn);
  1579.  
  1580. var button2 = new android.widget.TextView(ctx);
  1581. button2.setText('HitAim -Not Working');
  1582. button2.setTextColor(android.graphics.Color.WHITE);
  1583. button2.setBackground(aas2 ? mainbt : mainbt2);
  1584. button2.setTextSize(15);
  1585. button2.getBackground().setAlpha(150);
  1586. button2.setOnClickListener(new android.view.View.OnClickListener({
  1587. onClick: function(viewarg){
  1588. if(!aas2){
  1589. aas1 = true;
  1590. aas2 = true;
  1591. button2.setBackground(mainbt);
  1592. }else{
  1593. aas1 = false;
  1594. aas2 = false;
  1595. button2.setBackground(mainbt2);
  1596. }
  1597.  
  1598. }
  1599. }));
  1600. menuLayout.addView(button2);
  1601.  
  1602. var button5 = new android.widget.TextView(ctx);
  1603. button5.setText('HitBox');
  1604. button5.setTextColor(android.graphics.Color.WHITE);
  1605. button5.setBackground(hitboxed ? mainbt : mainbt2);
  1606. button5.setTextSize(15);
  1607. button5.getBackground().setAlpha(150);
  1608. button5.setOnClickListener(new android.view.View.OnClickListener({
  1609. onClick: function(viewarg){
  1610. if(!hitboxed){
  1611. hitboxss = true;
  1612. hitboxed = true;
  1613. button5.setBackground(mainbt);
  1614. print("KillAura on")
  1615. }else{
  1616. print("KillAura Off ")
  1617. hitboxss = false;
  1618. hitboxed = false;
  1619. button5.setBackground(mainbt2);
  1620. }
  1621.  
  1622. }
  1623. }));
  1624. menuLayout.addView(button5);
  1625.  
  1626. var button6 = new android.widget.TextView(ctx);
  1627. button6.setText('Tpaura');
  1628. button6.setTextColor(android.graphics.Color.WHITE);
  1629. button6.setBackground(vtped ? mainbt : mainbt2);
  1630. button6.setTextSize(15);
  1631. button6.getBackground().setAlpha(150);
  1632. button6.setOnClickListener(new android.view.View.OnClickListener({
  1633. onClick: function(viewarg){
  1634. if(!vtped){
  1635. vtped = true;
  1636. vport = true;
  1637. button6.setBackground(mainbt);
  1638. print("TpAura on ")
  1639. }else{
  1640. print("TpAura Off ")
  1641. vtped = false;
  1642. vport = false;
  1643. button6.setBackground(mainbt2);
  1644. }
  1645.  
  1646. }
  1647. }));
  1648. menuLayout.addView(button6);
  1649.  
  1650. var button8 = new android.widget.TextView(ctx);
  1651. button8.setText('Criticales');
  1652. button8.setTextColor(android.graphics.Color.WHITE);
  1653. button8.setBackground(cs2 ? mainbt : mainbt2);
  1654. button8.setTextSize(15);
  1655. button8.getBackground().setAlpha(150);
  1656. button8.setOnClickListener(new android.view.View.OnClickListener({
  1657. onClick: function(viewarg){
  1658. if(!cs2){
  1659. cs1 = true;
  1660. cs2 = true;
  1661. button8.setBackground(mainbt);
  1662. }else{
  1663. cs1 = false;
  1664. cs2 = false;
  1665. button8.setBackground(mainbt2);
  1666. }
  1667.  
  1668. }
  1669. }));
  1670. menuLayout.addView(button8);
  1671.  
  1672. var button11 = new android.widget.TextView(ctx);
  1673. button11.setText('Hover Aura');
  1674. button11.setTextColor(android.graphics.Color.WHITE);
  1675. button11.setBackground(ir2 ? mainbt : mainbt2);
  1676. button11.setTextSize(15);
  1677. button11.getBackground().setAlpha(150);
  1678. button11.setOnClickListener(new android.view.View.OnClickListener({
  1679. onClick: function(viewarg){
  1680. if(!ir2){
  1681. ir1 = true;
  1682. ir2 = true;
  1683. button11.setBackground(mainbt);
  1684. }else{
  1685. ir1 = false;
  1686. ir2 = false;
  1687. button11.setBackground(mainbt2);
  1688. }
  1689.  
  1690. }
  1691. }));
  1692. menuLayout.addView(button11);
  1693.  
  1694. var button12 = new android.widget.TextView(ctx);
  1695. button12.setText('Reach -Dont Work');
  1696. button12.setTextColor(android.graphics.Color.WHITE);
  1697. button12.setBackground(gmSwitchedddd ? mainbt : mainbt2);
  1698. button12.setTextSize(15);
  1699. button12.getBackground().setAlpha(150);
  1700. button12.setOnClickListener(new android.view.View.OnClickListener({
  1701. onClick: function(viewarg){
  1702. if(!gmSwitchedddd){
  1703. Level.setGameMode(1)
  1704. Player.setCanFly(0)
  1705. gmSwitchedddd = true;
  1706. button12.setBackground(mainbt);
  1707. print("Reach on")
  1708. }else{
  1709. print("Reach off")
  1710. Level.setGameMode(0)
  1711. gmSwitchedddd = false;
  1712. button12.setBackground(mainbt2);
  1713. }
  1714.  
  1715. }
  1716. }));
  1717. menuLayout.addView(button12);
  1718.  
  1719. menu2 = new PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/6, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  1720. menu2.setAnimationStyle(android.R.style.Animation_InputMethod);
  1721. menu2.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  1722. menu2.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT | Gravity.BOTTOM, 0, 0);
  1723. }catch(err){
  1724. Toast.makeText(ctx, "An error occured: " + err, 1).show();
  1725. }
  1726. }}));
  1727. }
  1728.  
  1729. function mainMenu5(){
  1730. ctx.runOnUiThread(new Runnable({ run: function(){
  1731. try{
  1732. var menuLayoutt = new LinearLayout(ctx);
  1733. var menuScroll = new ScrollView(ctx);
  1734. var menuLayout1 = new LinearLayout(ctx);
  1735. menuLayoutt.setOrientation(1);
  1736. menuLayout1.setOrientation(1);
  1737. menuScroll.addView(menuLayoutt);
  1738. menuLayout1.addView(menuScroll);
  1739.  
  1740. var button = new android.widget.TextView(ctx);
  1741. button.setText('Motion'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN));
  1742. button.getBackground().setAlpha(150);
  1743. button.setOnClickListener(new android.view.View.OnClickListener({
  1744. onClick: function(viewarg){
  1745. }
  1746. }));
  1747. button.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  1748. onTouch: function (view, motionEvent) {
  1749. try {
  1750. if(!moving) return false;
  1751. switch(motionEvent.getAction()) {
  1752. case android.view.MotionEvent.ACTION_DOWN:
  1753. dx = mPosX - motionEvent.getRawX();
  1754. dy = mPosY - motionEvent.getRawY();
  1755. break;
  1756. case android.view.MotionEvent.ACTION_MOVE:
  1757. mPosX = (motionEvent.getRawX() + dx);
  1758. mPosY = (motionEvent.getRawY() + dy);
  1759. menu3.update(mPosX, mPosY - 15, -1, -1);
  1760. break;
  1761. case android.view.MotionEvent.ACTION_UP:
  1762. case android.view.MotionEvent.ACTION_CANCEL:
  1763. moving = false;
  1764. break;
  1765. }
  1766. } catch(e) {
  1767. }
  1768.  
  1769. return true;
  1770. }
  1771. }));
  1772. button.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  1773. onLongClick: function (v, t) {
  1774. moving = true;
  1775. return true;
  1776. }
  1777. }));
  1778. menuLayoutt.addView(button);
  1779.  
  1780. var button54 = new TextView(ctx);
  1781. button54.setText('MotionSpeed -Not Working');
  1782. button54.setTextColor(android.graphics.Color.WHITE);
  1783. button54.setBackground(msped ? mainbt : mainbt2);
  1784. button54.setTextSize(15);
  1785. button54.getBackground().setAlpha(150);
  1786. button54.setOnClickListener(new android.view.View.OnClickListener({
  1787. onClick: function(viewarg){
  1788. if(!msped){
  1789. msped = true;
  1790. motion = true;
  1791. button54.setBackground(mainbt);
  1792. }else{
  1793. msped = false;
  1794. motion = false;
  1795. button54.setBackground(mainbt2);
  1796. }
  1797.  
  1798. }
  1799. }));
  1800. menuLayoutt.addView(button54);
  1801.  
  1802. var button57 = new TextView(ctx);
  1803. button57.setText('B hop');
  1804. button57.setTextColor(android.graphics.Color.WHITE);
  1805. button57.setBackground(bhoped ? mainbt : mainbt2);
  1806. button57.setTextSize(15);
  1807. button57.getBackground().setAlpha(150);
  1808. button57.setOnClickListener(new android.view.View.OnClickListener({
  1809. onClick: function(viewarg){
  1810. if(!bhoped){
  1811. bhopl = true;
  1812. bhoped = true;
  1813. button57.setBackground(mainbt);
  1814. }else{
  1815. bhopl = false;
  1816. bhoped = false;
  1817. button57.setBackground(mainbt2);
  1818. }
  1819.  
  1820. }
  1821. }));
  1822. menuLayoutt.addView(button57);
  1823.  
  1824. var button13 = new android.widget.TextView(ctx);
  1825. button13.setText('Tower -Not Working');
  1826. button13.setTextColor(android.graphics.Color.WHITE);
  1827. button13.setBackground(taptowered ? mainbt : mainbt2);
  1828. button13.setTextSize(15);
  1829. button13.getBackground().setAlpha(150);
  1830. button13.setOnClickListener(new android.view.View.OnClickListener({
  1831. onClick: function(viewarg){
  1832. if(!taptowered){
  1833. taptowerss = true;
  1834. taptowered = true;
  1835. button13.setBackground(mainbt);
  1836. print("Tower on ")
  1837. }else{
  1838. print("Tower Off ")
  1839. taptowerss = false;
  1840. taptowered = false;
  1841. button13.setBackground(mainbt2);
  1842. }
  1843.  
  1844. }
  1845. }));
  1846. menuLayoutt.addView(button13);
  1847.  
  1848.  
  1849. var button15 = new android.widget.TextView(ctx);
  1850. button15.setText('AirJump');
  1851. button15.setTextColor(android.graphics.Color.WHITE);
  1852. button15.setBackground(airjumped ? mainbt : mainbt2);
  1853. button15.setTextSize(15);
  1854. button15.getBackground().setAlpha(150);
  1855. button15.setOnClickListener(new android.view.View.OnClickListener({
  1856. onClick: function(viewarg){
  1857. if(!airjumped){
  1858. showJumpBtn();
  1859. airjumped = true;
  1860. button15.setBackground(mainbt);
  1861. }else{
  1862. GUIj.dismiss();
  1863. airjumped = false;
  1864. button15.setBackground(mainbt2);
  1865. }
  1866.  
  1867. }
  1868. }));
  1869. menuLayoutt.addView(button15);
  1870.  
  1871. var button16 = new android.widget.TextView(ctx);
  1872. button16.setText('AutoWalk');
  1873. button16.setTextColor(android.graphics.Color.WHITE);
  1874. button16.setBackground(aw2 ? mainbt : mainbt2);
  1875. button16.setTextSize(15);
  1876. button16.getBackground().setAlpha(150);
  1877. button16.setOnClickListener(new android.view.View.OnClickListener({
  1878. onClick: function(viewarg){
  1879. if(!aw2){
  1880. aw1 = true;
  1881. aw2 = true;
  1882. button16.setBackground(mainbt);
  1883. }else{
  1884. aw1 = false;
  1885. aw2 = false;
  1886. button16.setBackground(mainbt2);
  1887. }
  1888.  
  1889. }
  1890. }));
  1891. menuLayoutt.addView(button16);
  1892.  
  1893. var button17 = new android.widget.TextView(ctx);
  1894. button17.setText('Step');
  1895. button17.setTextColor(android.graphics.Color.WHITE);
  1896. button17.setBackground(steped ? mainbt : mainbt2);
  1897. button17.setTextSize(15);
  1898. button17.getBackground().setAlpha(150);
  1899. button17.setOnClickListener(new android.view.View.OnClickListener({
  1900. onClick: function(viewarg){
  1901. if(!steped){
  1902. stepss = true;
  1903. steped = true;
  1904. button17.setBackground(mainbt);
  1905. }else{
  1906. stepss = false;
  1907. steped = false;
  1908. button17.setBackground(mainbt2);
  1909. }
  1910.  
  1911. }
  1912. }));
  1913. menuLayoutt.addView(button17);
  1914.  
  1915.  
  1916. var button20 = new android.widget.TextView(ctx);
  1917. button20.setText('LongJump');
  1918. button20.setTextColor(android.graphics.Color.WHITE);
  1919. button20.setBackground(ljc2 ? mainbt : mainbt2);
  1920. button20.setTextSize(15);
  1921. button20.getBackground().setAlpha(150);
  1922. button20.setOnClickListener(new android.view.View.OnClickListener({
  1923. onClick: function(viewarg){
  1924. if(!ljc2){
  1925. ljc1 = true;
  1926. ljc2 = true;
  1927. button20.setBackground(mainbt);
  1928. }else{
  1929. ljc1 = false;
  1930. ljc2 = false;
  1931. button20.setBackground(mainbt2);
  1932. }
  1933.  
  1934. }
  1935. }));
  1936. menuLayoutt.addView(button20);
  1937.  
  1938. var button24 = new android.widget.TextView(ctx);
  1939. button24.setText('FastBridge');
  1940. button24.setTextColor(android.graphics.Color.WHITE);
  1941. button24.setBackground(fb2 ? mainbt : mainbt2);
  1942. button24.setTextSize(15);
  1943. button24.getBackground().setAlpha(150);
  1944. button24.setOnClickListener(new android.view.View.OnClickListener({
  1945. onClick: function(viewarg){
  1946. if(!fb2){
  1947. fb1 = true;
  1948. fb2 = true;
  1949. button24.setBackground(mainbt);
  1950. }else{
  1951. fb1 = false;
  1952. fb2 = false;
  1953. button24.setBackground(mainbt2);
  1954. }
  1955.  
  1956. }
  1957. }));
  1958. menuLayoutt.addView(button24);
  1959.  
  1960. var buttonn = new android.widget.TextView(ctx);
  1961. buttonn.setText('GlideTick');
  1962. buttonn.setTextColor(android.graphics.Color.WHITE);
  1963. buttonn.setBackground(bgl2 ? mainbt : mainbt2);
  1964. buttonn.setTextSize(15);
  1965. buttonn.getBackground().setAlpha(150);
  1966. buttonn.setOnClickListener(new android.view.View.OnClickListener({
  1967. onClick: function(viewarg){
  1968. if(!bgl2){
  1969. bgl1 = true;
  1970. bgl2 = true;
  1971. buttonn.setBackground(mainbt);
  1972. }else{
  1973. bgl1 = false;
  1974. bgl2 = false;
  1975. buttonn.setBackground(mainbt2);
  1976. }
  1977.  
  1978. }
  1979. }));
  1980. menuLayoutt.addView(buttonn);
  1981.  
  1982. var button26 = new android.widget.TextView(ctx);
  1983. button26.setText('Sacffold');
  1984. button26.setTextColor(android.graphics.Color.WHITE);
  1985. button26.setBackground(sc2 ? mainbt : mainbt2);
  1986. button26.setTextSize(15);
  1987. button26.getBackground().setAlpha(150);
  1988. button26.setOnClickListener(new android.view.View.OnClickListener({
  1989. onClick: function(viewarg){
  1990. if(!sc2){
  1991. sc1 = true;
  1992. sc2 = true;
  1993. button26.setBackground(mainbt);
  1994. }else{
  1995. sc1 = false;
  1996. sc2 = false;
  1997. button26.setBackground(mainbt2);
  1998. }
  1999.  
  2000. }
  2001. }));
  2002. menuLayoutt.addView(button26);
  2003.  
  2004. var button27 = new android.widget.TextView(ctx);
  2005. button27.setText('SafeWalk');
  2006. button27.setTextColor(android.graphics.Color.WHITE);
  2007. button27.setBackground(sw2 ? mainbt : mainbt2);
  2008. button27.setTextSize(15);
  2009. button27.getBackground().setAlpha(150);
  2010. button27.setOnClickListener(new android.view.View.OnClickListener({
  2011. onClick: function(viewarg){
  2012. if(!sw2){
  2013. sw1 = true;
  2014. sw2 = true;
  2015. button27.setBackground(mainbt);
  2016. }else{
  2017. sw1 = false;
  2018. sw2 = false;
  2019. button27.setBackground(mainbt2);
  2020. }
  2021.  
  2022. }
  2023. }));
  2024. menuLayoutt.addView(button27);
  2025.  
  2026. var button28 = new android.widget.TextView(ctx);
  2027. button28.setText('NoDownGlide');
  2028. button28.setTextColor(android.graphics.Color.WHITE);
  2029. button28.setBackground(ndglideed ? mainbt : mainbt2);
  2030. button28.setTextSize(15);
  2031. button28.getBackground().setAlpha(150);
  2032. button28.setOnClickListener(new android.view.View.OnClickListener({
  2033. onClick: function(viewarg){
  2034. if(!ndglideed){
  2035. ndglidess = true;
  2036. ndglideed = true;
  2037. button28.setBackground(mainbt);
  2038. print("NoDownGlide on ")
  2039. }else{
  2040. print("NoDownGlide Off ")
  2041. ndglidess = false;
  2042. ndglideed = false;
  2043. button28.setBackground(mainbt2);
  2044. }
  2045.  
  2046. }
  2047. }));
  2048. menuLayoutt.addView(button28);
  2049.  
  2050.  
  2051. var button29 = new android.widget.TextView(ctx);
  2052. button29.setText('Elevator');
  2053. button29.setTextColor(android.graphics.Color.WHITE);
  2054. button29.setBackground(elevatored ? mainbt : mainbt2);
  2055. button29.setTextSize(15);
  2056. button29.getBackground().setAlpha(150);
  2057. button29.setOnClickListener(new android.view.View.OnClickListener({
  2058. onClick: function(viewarg){
  2059. if(!elevatored){
  2060. showElevatorBtn();
  2061. elevatored = true;
  2062. button29.setBackground(mainbt);
  2063. print("Elevator on ")
  2064. }else{
  2065. print("Elevator Off ")
  2066. GUIe.dismiss();
  2067. elevatored = false;
  2068. button29.setBackground(mainbt2);
  2069. }
  2070.  
  2071. }
  2072. }));
  2073. menuLayoutt.addView(button29);
  2074.  
  2075. menu3 = new PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/6, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  2076. menu3.setAnimationStyle(android.R.style.Animation_InputMethod);
  2077. menu3.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  2078. menu3.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT| Gravity.TOP, 250 ,0);
  2079. }catch(error){
  2080. Toast.makeText(ctx, "Template Error: " + error, 1).show();
  2081. }
  2082. }}));
  2083. }
  2084.  
  2085. function screenChangeHook(screen) {
  2086. if(screen.toString().indexOf("progress_screen") > -1){
  2087. Utils.Render.init();
  2088. }
  2089. }
  2090. var entry = getPlayerEnt()
  2091. function mainMenu3(){
  2092. ctx.runOnUiThread(new Runnable({ run: function(){
  2093. try{
  2094. var menuLayouttt = new LinearLayout(ctx);
  2095. var menuScroll = new ScrollView(ctx);
  2096. var menuLayout1 = new LinearLayout(ctx);
  2097. menuLayouttt.setOrientation(1);
  2098. menuLayout1.setOrientation(1);
  2099. menuScroll.addView(menuLayouttt);
  2100. menuLayout1.addView(menuScroll);
  2101.  
  2102. var button = new android.widget.TextView(ctx);
  2103. button.setText('Player'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN));
  2104. button.getBackground().setAlpha(150);
  2105. button.setOnClickListener(new android.view.View.OnClickListener({
  2106. onClick: function(viewarg){
  2107. }
  2108. }));
  2109. button.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  2110. onTouch: function (view, motionEvent) {
  2111. try {
  2112. if(!moving) return false;
  2113. switch(motionEvent.getAction()) {
  2114. case android.view.MotionEvent.ACTION_DOWN:
  2115. dx = mPosX - motionEvent.getRawX();
  2116. dy = mPosY - motionEvent.getRawY();
  2117. break;
  2118. case android.view.MotionEvent.ACTION_MOVE:
  2119. mPosX = (motionEvent.getRawX() + dx);
  2120. mPosY = (motionEvent.getRawY() + dy);
  2121. menu1.update(mPosX, mPosY - 15, -1, -1);
  2122. break;
  2123. case android.view.MotionEvent.ACTION_UP:
  2124. case android.view.MotionEvent.ACTION_CANCEL:
  2125. moving = false;
  2126. break;
  2127. }
  2128. } catch(e) {
  2129. }
  2130.  
  2131. return true;
  2132. }
  2133. }));
  2134. button.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  2135. onLongClick: function (v, t) {
  2136. moving = true;
  2137. return true;
  2138. }
  2139. }));
  2140. menuLayouttt.addView(button);
  2141.  
  2142. var button31 = new android.widget.TextView(ctx);
  2143. button31.setText('AntiKnockBack');
  2144. button31.setTextColor(android.graphics.Color.WHITE);
  2145. button31.setBackground(antikbed ? mainbt : mainbt2);
  2146. button31.setTextSize(15);
  2147. button31.getBackground().setAlpha(150);
  2148. button31.setOnClickListener(new android.view.View.OnClickListener({
  2149. onClick: function(viewarg){
  2150. if(!antikbed){
  2151. antikbss = true;
  2152. antikbed = true;
  2153. button31.setBackground(mainbt);
  2154. print("AntiKnockBack on ")
  2155. }else{
  2156. print("AntiKnockBack Off ")
  2157. antikbss = false;
  2158. antikbed = false;
  2159. button31.setBackground(mainbt2);
  2160. }
  2161.  
  2162. }
  2163. }));
  2164. menuLayouttt.addView(button31);
  2165.  
  2166. var button60 = new TextView(ctx);
  2167. button60.setText('Jesus');
  2168. button60.setTextColor(android.graphics.Color.WHITE);
  2169. button60.setBackground(bj2 ? mainbt : mainbt2);
  2170. button60.setTextSize(15);
  2171. button60.getBackground().setAlpha(150);
  2172. button60.setOnClickListener(new android.view.View.OnClickListener({
  2173. onClick: function(viewarg){
  2174. if(!bj2){
  2175. bj1 = true;
  2176. bj2 = true;
  2177. button60.setBackground(mainbt);
  2178. }else{
  2179. bj1 = false;
  2180. bj2 = false;
  2181. button60.setBackground(mainbt2);
  2182. }
  2183.  
  2184. }
  2185. }));
  2186. menuLayouttt.addView(button60);
  2187.  
  2188. var button62 = new TextView(ctx);
  2189. button62.setText('Dolphin');
  2190. button62.setTextColor(android.graphics.Color.WHITE);
  2191. button62.setBackground(jsed ? mainbt : mainbt2);
  2192. button62.setTextSize(15);
  2193. button62.getBackground().setAlpha(150);
  2194. button62.setOnClickListener(new android.view.View.OnClickListener({
  2195. onClick: function(viewarg){
  2196. if(!jsed){
  2197. jsed = true;
  2198. jesus = true;
  2199. button62.setBackground(mainbt);
  2200. }else{
  2201. jsed = false;
  2202. jesus = false;
  2203. button62.setBackground(mainbt2);
  2204. }
  2205.  
  2206. }
  2207. }));
  2208. menuLayouttt.addView(button62);
  2209.  
  2210. var button32 = new android.widget.TextView(ctx);
  2211. button32.setText('TapTP');
  2212. button32.setTextColor(android.graphics.Color.WHITE);
  2213. button32.setBackground(taptped ? mainbt : mainbt2);
  2214. button32.setTextSize(15);
  2215. button32.getBackground().setAlpha(150);
  2216. button32.setOnClickListener(new android.view.View.OnClickListener({
  2217. onClick: function(viewarg){
  2218. if(!taptped){
  2219. taptpss = true;
  2220. taptped = true;
  2221. button32.setBackground(mainbt);
  2222. print("Tap tp on ")
  2223. }else{
  2224. print("Tap tp Off ")
  2225. taptpss = false;
  2226. taptped = false;
  2227. button32.setBackground(mainbt2);
  2228. }
  2229.  
  2230. }
  2231. }));
  2232. menuLayouttt.addView(button32);
  2233.  
  2234. var button770 = new android.widget.TextView(ctx);
  2235. button770.setText('FastLadder');
  2236. button770.setTextColor(android.graphics.Color.WHITE);
  2237. button770.setBackground(fl2 ? mainbt : mainbt2);
  2238. button770.setTextSize(15);
  2239. button770.getBackground().setAlpha(150);
  2240. button770.setOnClickListener(new android.view.View.OnClickListener({
  2241. onClick: function(viewarg){
  2242. if(!fl2){
  2243. fl1 = true;
  2244. fl2 = true;
  2245. button770.setBackground(mainbt);
  2246. }else{
  2247. fl1 = false;
  2248. fl2 = false;
  2249. button770.setBackground(mainbt2);
  2250. }
  2251.  
  2252. }
  2253. }));
  2254. menuLayouttt.addView(button770);
  2255.  
  2256. var button644 = new android.widget.TextView(ctx);
  2257. button644.setText('NoBob');
  2258. button644.setTextColor(android.graphics.Color.WHITE);
  2259. button644.setBackground(nbb2 ? mainbt : mainbt2);
  2260. button644.setTextSize(15);
  2261. button644.getBackground().setAlpha(150);
  2262. button644.setOnClickListener(new android.view.View.OnClickListener({
  2263. onClick: function(viewarg){
  2264. if(!nbb2){
  2265. nbb1 = true;
  2266. nbb2 = true;
  2267. button644.setBackground(mainbt);
  2268. }else{
  2269. nbb1 = false;
  2270. nbb2 = false;
  2271. button644.setBackground(mainbt2);
  2272. }
  2273.  
  2274. }
  2275. }));
  2276. menuLayouttt.addView(button644);
  2277.  
  2278. var button40 = new android.widget.TextView(ctx);
  2279. button40.setText('YourHeath -TechX');
  2280. button40.setTextColor(android.graphics.Color.WHITE);
  2281. button40.setBackground(spammed ? mainbt : mainbt2);
  2282. button40.setTextSize(15);
  2283. button40.getBackground().setAlpha(150);
  2284. button40.setOnClickListener(new android.view.View.OnClickListener({
  2285. onClick: function(viewarg){
  2286. if(!spammed){
  2287. spamss = true;
  2288. spammed = true;
  2289. button40.setBackground(mainbt);
  2290. }else{
  2291. spamss = false;
  2292. spammed = false;
  2293. button40.setBackground(mainbt2);
  2294. }
  2295.  
  2296. }
  2297. }));
  2298. menuLayouttt.addView(button40);
  2299.  
  2300. var button41 = new android.widget.TextView(ctx);
  2301. button41.setText('Coordinates');
  2302. button41.setTextColor(android.graphics.Color.WHITE);
  2303. button41.setBackground(livecored ? mainbt : mainbt2);
  2304. button41.setTextSize(15);
  2305. button41.getBackground().setAlpha(150);
  2306. button41.getBackground().setAlpha(150);
  2307. button41.setOnClickListener(new android.view.View.OnClickListener({
  2308. onClick: function(viewarg){
  2309. if(!livecored){
  2310. livecordss = true;
  2311. livecored = true;
  2312. button41.setBackground(mainbt);
  2313. }else{
  2314. livecordss = false;
  2315. livecored = false;
  2316. button41.setBackground(mainbt2);
  2317. }
  2318.  
  2319. }
  2320. }));
  2321. menuLayouttt.addView(button41);
  2322.  
  2323. menu1 = new PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/6, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  2324. menu1.setAnimationStyle(android.R.style.Animation_InputMethod);
  2325. menu1.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  2326. menu1.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT| Gravity.TOP, 500, 0);
  2327. }catch(error){
  2328. Toast.makeText(ctx, "Template Error: " + error, 1).show();
  2329. }
  2330. }}));
  2331. }
  2332.  
  2333. function mainMenu6(){
  2334. ctx.runOnUiThread(new Runnable({ run: function(){
  2335. try{
  2336. var menuLayoutttt = new LinearLayout(ctx);
  2337. var menuScroll = new ScrollView(ctx);
  2338. var menuLayout1 = new LinearLayout(ctx);
  2339. menuLayoutttt.setOrientation(1);
  2340. menuLayout1.setOrientation(1);
  2341. menuScroll.addView(menuLayoutttt);
  2342. menuLayout1.addView(menuScroll);
  2343.  
  2344. var button = new android.widget.TextView(ctx);
  2345. button.setText('World'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN));
  2346. button.getBackground().setAlpha(150);
  2347. button.setOnClickListener(new android.view.View.OnClickListener({
  2348. onClick: function(viewarg){
  2349. }
  2350. }));
  2351. button.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  2352. onTouch: function (view, motionEvent) {
  2353. try {
  2354. if(!moving) return false;
  2355. switch(motionEvent.getAction()) {
  2356. case android.view.MotionEvent.ACTION_DOWN:
  2357. dx = mPosX - motionEvent.getRawX();
  2358. dy = mPosY - motionEvent.getRawY();
  2359. break;
  2360. case android.view.MotionEvent.ACTION_MOVE:
  2361. mPosX = (motionEvent.getRawX() + dx);
  2362. mPosY = (motionEvent.getRawY() + dy);
  2363. menu4.update(mPosX, mPosY - 15, -1, -1);
  2364. break;
  2365. case android.view.MotionEvent.ACTION_UP:
  2366. case android.view.MotionEvent.ACTION_CANCEL:
  2367. moving = false;
  2368. break;
  2369. }
  2370. } catch(e) {
  2371. }
  2372.  
  2373. return true;
  2374. }
  2375. }));
  2376. button.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  2377. onLongClick: function (v, t) {
  2378. moving = true;
  2379. return true;
  2380. }
  2381. }));
  2382. menuLayoutttt.addView(button);
  2383.  
  2384. var button42 = new android.widget.TextView(ctx);
  2385. button42.setText('GameMods');
  2386. button42.setTextColor(android.graphics.Color.WHITE);
  2387. button42.setBackground(gmSwitched ? mainbt : mainbt2);
  2388. button42.setTextSize(15);
  2389. button42.getBackground().setAlpha(150);
  2390. button42.setOnClickListener(new android.view.View.OnClickListener({
  2391. onClick: function(viewarg){
  2392. if(!gmSwitched){
  2393. Level.setGameMode(1);
  2394. gmSwitched = true;
  2395. button42.setBackground(mainbt);
  2396. print("Creative Mode XD")
  2397. }else{
  2398. print("Survival Mode xd")
  2399. Level.setGameMode(0);
  2400. gmSwitched = false;
  2401. button42.setBackground(mainbt2);
  2402. }
  2403.  
  2404. }
  2405. }));
  2406. menuLayoutttt.addView(button42);
  2407.  
  2408. var button43 = new android.widget.TextView(ctx);
  2409. button43.setText('FreeCam - not Working');
  2410. button43.setTextColor(android.graphics.Color.WHITE);
  2411. button43.setBackground(gmSwitched3 ? mainbt : mainbt2);
  2412. button43.setTextSize(15);
  2413. button43.getBackground().setAlpha(150);
  2414. button43.setOnClickListener(new android.view.View.OnClickListener({
  2415. onClick: function(viewarg){
  2416. if(!gmSwitched3){
  2417. Level.setGameMode(3);
  2418. gmSwitched3 = true;
  2419. button43.setBackground(mainbt);
  2420. print("Freecam on")
  2421. }else{
  2422. print("Freecam off")
  2423. Level.setGameMode(0);
  2424. gmSwitched3 = false;
  2425. button43.setBackground(mainbt2);
  2426. }
  2427.  
  2428. }
  2429. }));
  2430. menuLayoutttt.addView(button43);
  2431.  
  2432. var button45 = new android.widget.TextView(ctx);
  2433. button45.setText('CrossHair');
  2434. button45.setTextColor(android.graphics.Color.WHITE);
  2435. button45.setBackground(Gui7 ? mainbt : mainbt2);
  2436. button45.setTextSize(15);
  2437. button45.getBackground().setAlpha(150);
  2438. button45.setOnClickListener(new android.view.View.OnClickListener({
  2439. onClick: function(viewarg){
  2440. if(!Gui7){
  2441. showCrossBtn();
  2442. Gui7 = true;
  2443. button45.setBackground(mainbt);
  2444. }else{
  2445. GUIv.dismiss();
  2446. Gui7 = false;
  2447. button45.setBackground(mainbt2);
  2448. }
  2449.  
  2450. }
  2451. }));
  2452. menuLayoutttt.addView(button45);
  2453.  
  2454. var button47 = new android.widget.TextView(ctx);
  2455. button47.setText('BedBreaker');
  2456. button47.setTextColor(android.graphics.Color.WHITE);
  2457. button47.setBackground(bb2 ? mainbt : mainbt2);
  2458. button47.setTextSize(15);
  2459. button47.getBackground().setAlpha(150);
  2460. button47.setOnClickListener(new android.view.View.OnClickListener({
  2461. onClick: function(viewarg){
  2462. if(!bb2){
  2463. bb1 = true;
  2464. bb2 = true;
  2465. button47.setBackground(mainbt);
  2466. }else{
  2467. bb1 = false;
  2468. bb2 = false;
  2469. button47.setBackground(mainbt2);
  2470. }
  2471.  
  2472. }
  2473. }));
  2474. menuLayoutttt.addView(button47);
  2475.  
  2476. var buttonvv = new android.widget.TextView(ctx);
  2477. buttonvv.setText('FastIce');
  2478. buttonvv.setTextColor(android.graphics.Color.WHITE);
  2479. buttonvv.setBackground(fi2 ? mainbt : mainbt2);
  2480. buttonvv.setTextSize(15);
  2481. buttonvv.getBackground().setAlpha(150);
  2482. buttonvv.setOnClickListener(new android.view.View.OnClickListener({
  2483. onClick: function(viewarg){
  2484. if(!fi2){
  2485. fi1 = true;
  2486. fi2 = true;
  2487. buttonvv.setBackground(mainbt);
  2488. }else{
  2489. fi1 = false;
  2490. fi2 = false;
  2491. buttonvv.setBackground(mainbt2);
  2492. }
  2493.  
  2494. }
  2495. }));
  2496. menuLayoutttt.addView(buttonvv);
  2497.  
  2498. var button53 = new android.widget.TextView(ctx);
  2499. button53.setText('AntiGravity');
  2500. button53.setTextColor(android.graphics.Color.WHITE);
  2501. button53.setBackground(tnt2 ? mainbt : mainbt2);
  2502. button53.setTextSize(15);
  2503. button53.getBackground().setAlpha(150);
  2504. button53.setOnClickListener(new android.view.View.OnClickListener({
  2505. onClick: function(viewarg){
  2506. if(!tnt2){
  2507. tnt1 = true;
  2508. tnt2 = true;
  2509. button53.setBackground(mainbt);
  2510. }else{
  2511. tnt1 = false;
  2512. tnt2 = false;
  2513. button53.setBackground(mainbt2);
  2514. }
  2515.  
  2516. }
  2517. }));
  2518. menuLayoutttt.addView(button53);
  2519.  
  2520. menu4 = new PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/6, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  2521. menu4.setAnimationStyle(android.R.style.Animation_InputMethod);
  2522. menu4.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  2523. menu4.showAtLocation(ctx.getWindow().getDecorView(), Gravity.LEFT| Gravity.TOP, 750, 0);
  2524. }catch(error){
  2525. Toast.makeText(ctx, "Template Error: " + error, 1).show();
  2526. }
  2527. }}));
  2528. }
  2529.  
  2530. function mainMenu8(){
  2531. var ctx = com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
  2532. ctx.runOnUiThread(new java.lang.Runnable({ run: function(){
  2533. try{
  2534. var menuLayout = new android.widget.LinearLayout(ctx);
  2535. var menuScroll = new android.widget.ScrollView(ctx);
  2536. var menuLayout1 = new android.widget.LinearLayout(ctx);
  2537. menuLayout.setOrientation(1);
  2538. menuLayout1.setOrientation(1);
  2539. menuScroll.addView(menuLayout);
  2540. menuLayout1.addView(menuScroll);
  2541.  
  2542. var button = new android.widget.TextView(ctx);
  2543. button.setText('Render'); button.setTextColor(android.graphics.Color.WHITE); button.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.GREEN));
  2544. button.getBackground().setAlpha(150);
  2545. button.setOnClickListener(new android.view.View.OnClickListener({
  2546. onClick: function(viewarg){
  2547. }
  2548. }));
  2549. button.setOnTouchListener(new android.view.View.OnTouchListener( { // ability to move from dragop
  2550. onTouch: function (view, motionEvent) {
  2551. try {
  2552. if(!moving) return false;
  2553. switch(motionEvent.getAction()) {
  2554. case android.view.MotionEvent.ACTION_DOWN:
  2555. dx = mPosX - motionEvent.getRawX();
  2556. dy = mPosY - motionEvent.getRawY();
  2557. break;
  2558. case android.view.MotionEvent.ACTION_MOVE:
  2559. mPosX = (motionEvent.getRawX() + dx);
  2560. mPosY = (motionEvent.getRawY() + dy);
  2561. menu6.update(mPosX, mPosY - 15, -1, -1);
  2562. break;
  2563. case android.view.MotionEvent.ACTION_UP:
  2564. case android.view.MotionEvent.ACTION_CANCEL:
  2565. moving = false;
  2566. break;
  2567. }
  2568. } catch(e) {
  2569. }
  2570.  
  2571. return true;
  2572. }
  2573. }));
  2574. button.setOnLongClickListener(new android.view.View.OnLongClickListener( {
  2575. onLongClick: function (v, t) {
  2576. moving = true;
  2577. return true;
  2578. }
  2579. }));
  2580. menuLayout.addView(button);
  2581.  
  2582. var menuBtn = new TextView(ctx);
  2583. menuBtn.setTextColor(android.graphics.Color.WHITE);
  2584. menuBtn.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK));
  2585. menuBtn.getBackground().setAlpha(150);
  2586. menuBtn.setText('Esp - not even clickable xd');
  2587. menuBtn.setOnClickListener(new View.OnClickListener({
  2588. onClick: function(viewarg){
  2589. esp = true;
  2590.  
  2591. }
  2592. }));
  2593. menuLayout.addView(menuBtn);
  2594.  
  2595. var button35 = new android.widget.TextView(ctx);
  2596. button35.setText('Ghost');
  2597. button35.setTextColor(android.graphics.Color.WHITE);
  2598. button35.setBackground(gmSwitchedd9 ? mainbt : mainbt2);
  2599. button35.setTextSize(15);
  2600. button35.getBackground().setAlpha(150);
  2601. button35.setOnClickListener(new android.view.View.OnClickListener({
  2602. onClick: function(viewarg){
  2603. if(!gmSwitchedd9){
  2604. Entity.setCollisionSize(getPlayerEnt(), 0.0, 0.0);
  2605. gmSwitchedd9 = true;
  2606. button35.setBackground(mainbt);
  2607. print("Ghost on")
  2608. }else{
  2609. print("Ghost off")
  2610. Entity.setCollisionSize(getPlayerEnt(), 1, 2);
  2611. gmSwitchedd9 = false;
  2612. button35.setBackground(mainbt2);
  2613. }
  2614.  
  2615. }
  2616. }));
  2617. menuLayout.addView(button35);
  2618.  
  2619. var button36 = new android.widget.TextView(ctx);
  2620. button36.setText('NameTag');
  2621. button36.setTextColor(android.graphics.Color.WHITE);
  2622. button36.setBackground(nt2 ? mainbt : mainbt2);
  2623. button36.setTextSize(15);
  2624. button36.getBackground().setAlpha(150);
  2625. button36.setOnClickListener(new android.view.View.OnClickListener({
  2626. onClick: function(viewarg){
  2627. if(!nt2){
  2628. nt1 = true;
  2629. nt2 = true;
  2630. button36.setBackground(mainbt);
  2631. }else{
  2632. nt1 = false;
  2633. nt2 = false;
  2634. button36.setBackground(mainbt2);
  2635. }
  2636.  
  2637. }
  2638. }));
  2639. menuLayout.addView(button36);
  2640.  
  2641. var button37 = new android.widget.TextView(ctx);
  2642. button37.setText('OverStep');
  2643. button37.setTextColor(android.graphics.Color.WHITE);
  2644. button37.setBackground(gmSwitchedd8 ? mainbt : mainbt2);
  2645. button37.setTextSize(15);
  2646. button37.getBackground().setAlpha(150);
  2647. button37.setOnClickListener(new android.view.View.OnClickListener({
  2648. onClick: function(viewarg){
  2649. if(!gmSwitchedd8){
  2650. Entity.setCollisionSize(getPlayerEnt(), 0.1, 0.1);
  2651. gmSwitchedd8 = true;
  2652. button37.setBackground(mainbt);
  2653. print("OverStep on")
  2654. }else{
  2655. print("OverStep off")
  2656. Entity.setCollisionSize(getPlayerEnt(), 1, 2);
  2657. gmSwitchedd8 = false;
  2658. button37.setBackground(mainbt2);
  2659. }
  2660.  
  2661. }
  2662. }));
  2663. menuLayout.addView(button37);
  2664.  
  2665. var button38 = new android.widget.TextView(ctx);
  2666. button38.setText('FullBright');
  2667. button38.setTextColor(android.graphics.Color.WHITE);
  2668. button38.setBackground(gmSwitchedddddd ? mainbt : mainbt2);
  2669. button38.setTextSize(15);
  2670. button38.getBackground().setAlpha(150);
  2671. button38.setOnClickListener(new android.view.View.OnClickListener({
  2672. onClick: function(viewarg){
  2673. if(!gmSwitchedddddd){
  2674. Entity.addEffect(Player.getEntity(), MobEffect.nightVision, 999999, 100, false, false);
  2675. gmSwitchedddddd = true;
  2676. button38.setBackground(mainbt);
  2677. print("FullBright on")
  2678. }else{
  2679. print("FullBright off")
  2680. Entity.removeAllEffects(getPlayerEnt());
  2681. gmSwitchedddddd = false;
  2682. button38.setBackground(mainbt2);
  2683. }
  2684.  
  2685. }
  2686. }));
  2687. menuLayout.addView(button38);
  2688.  
  2689. var button39 = new android.widget.TextView(ctx);
  2690. button39.setText('Zoom');
  2691. button39.setTextColor(android.graphics.Color.WHITE);
  2692. button39.setBackground(gmSwitchedd ? mainbt : mainbt2);
  2693. button39.setTextSize(15);
  2694. button39.getBackground().setAlpha(150);
  2695. button39.setOnClickListener(new android.view.View.OnClickListener({
  2696. onClick: function(viewarg){
  2697. if(!gmSwitchedd){
  2698. ModPE.setFov(10.0)
  2699. gmSwitchedd = true;
  2700. button39.setBackground(mainbt);
  2701. print("Zoom on")
  2702. }else{
  2703. print("Zoom off")
  2704. ModPE.resetFov()
  2705. gmSwitchedd = false;
  2706. button39.setBackground(mainbt2);
  2707. }
  2708.  
  2709. }
  2710. }));
  2711. menuLayout.addView(button39);
  2712.  
  2713. menu6 = new android.widget.PopupWindow(menuLayout1, ctx.getWindowManager().getDefaultDisplay().getWidth()/6, ctx.getWindowManager().getDefaultDisplay().getHeight()/2);
  2714. menu6.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
  2715. menu6.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.LEFT | android.view.Gravity.BOTTOM, 500, 0);
  2716. }catch(error){
  2717. print("An error occured: " + error);
  2718. }
  2719. }}));
  2720. }
  2721.  
  2722. //codes
  2723.  
  2724. function toDirectionalVector(vector, yaw, pitch) { //some parts of this function are made by @zhuowei
  2725. vector[0] = Math.cos(yaw) * Math.cos(pitch);
  2726. vector[1] = Math.sin(pitch);
  2727. vector[2] = Math.sin(yaw) * Math.cos(pitch);
  2728. }
  2729. function attackHook(att, vic) {
  2730. if(att == Player.getEntity() && vport && Entity.getHealth(vic) > 0) {
  2731. setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic) + 2,Entity.getZ(vic));
  2732. }
  2733. if(att == Player.getEntity() && ninja1 && Entity.getHealth(vic) > 0) {
  2734. setPosition(getPlayerEnt(), Entity.getX(vic),Entity.getY(vic) + 3,Entity.getZ(vic));
  2735. }
  2736. if(att == Player.getEntity() && fa1) {
  2737. Entity.setCollisionSize(vic, 0, 0);
  2738. }
  2739. if(att == Player.getEntity() && cs1 && Utils.Player.onGround()) {
  2740. setVelY(getPlayerEnt(), 0.4);
  2741. }
  2742. if(att == Player.getEntity() && he1 && Entity.getHealth(vic) > 0) {
  2743. var ent = getNearestEntity(8);
  2744. Entity.setCollisionSize(ent, 7, 5);
  2745. }
  2746. if(att == Player.getEntity() && bw1 && Entity.getHealth(vic) > 0) {
  2747. setPosition(getPlayerEnt(), Entity.getX(vic)- 15,Entity.getY(vic)+ 1,Entity.getZ(vic));
  2748. }
  2749. if(att == Player.getEntity() && cm1 && Entity.getHealth(vic) > 0) {
  2750. var hit = getYaw() + 90;
  2751. var hitY = getPitch() - 180;
  2752. x = Math.cos(hit * (Math.PI /180));
  2753. y = Math.sin(hitY * (Math.PI /180));
  2754. z = Math.sin(hit * (Math.PI / 180));
  2755. setVelX(Player.getEntity(), x * 1);
  2756. setVelY(Player.getEntity(), y * 1);
  2757. setVelZ(Player.getEntity(), z * 1);
  2758. setPosition(getPlayerEnt(), Entity.getX(vic)+1.5,Entity.getY(vic)+1,Entity.getZ(vic) + 1.5)
  2759. setPosition(getPlayerEnt(), Entity.getX(vic)-.7,Entity.getY(vic)+1,Entity.getZ(vic) - .6)
  2760. var hit = getYaw() + 80;
  2761. var hitY = getPitch() - 180;
  2762. x = Math.cos(hit * (Math.PI /180));
  2763. y = Math.sin(hitY * (Math.PI /180));
  2764. z = Math.sin(hit * (Math.PI / 180));
  2765. setVelX(Player.getEntity(), x * - 2);
  2766. setVelY(Player.getEntity(), y * - 2);
  2767. setVelZ(Player.getEntity(), z * - 2);
  2768. setPosition(getPlayerEnt(), Entity.getX(vic)+1.5,Entity.getY(vic)+1.8,Entity.getZ(vic) + 1.7)
  2769. setPosition(getPlayerEnt(), Entity.getX(vic)-1,Entity.getY(vic)+1.4,Entity.getZ(vic) - .7)
  2770. var hit = getYaw() + 70;
  2771. var hitY = getPitch() - 180;
  2772. x = Math.cos(hit * (Math.PI /180));
  2773. y = Math.sin(hitY * (Math.PI /180));
  2774. z = Math.sin(hit * (Math.PI / 180));
  2775. setVelX(Player.getEntity(), x * 1);
  2776. setVelY(Player.getEntity(), y * 1);
  2777. setVelZ(Player.getEntity(), z * 1);
  2778. setPosition(getPlayerEnt(), Entity.getX(vic)+1.7,Entity.getY(vic)+1.6,Entity.getZ(vic) + 1.5)
  2779. setPosition(getPlayerEnt(), Entity.getX(vic)-1.2,Entity.getY(vic)+1.6,Entity.getZ(vic) - .6)
  2780. var hit = getYaw() + 60;
  2781. var hitY = getPitch() - 180;
  2782. x = Math.cos(hit * (Math.PI /180));
  2783. y = Math.sin(hitY * (Math.PI /180));
  2784. z = Math.sin(hit * (Math.PI / 180));
  2785. setVelX(Player.getEntity(), x * - 2);
  2786. setVelY(Player.getEntity(), y * - 2);
  2787. setVelZ(Player.getEntity(), z * - 2);
  2788. setPosition(getPlayerEnt(), Entity.getX(vic)+2,Entity.getY(vic)+1,Entity.getZ(vic) + 2)
  2789. setPosition(getPlayerEnt(), Entity.getX(vic)-1.4,Entity.getY(vic)+1,Entity.getZ(vic) - .8)
  2790. var hit = getYaw() + 90;
  2791. var hitY = getPitch() - 180;
  2792. x = Math.cos(hit * (Math.PI /180));
  2793. y = Math.sin(hitY * (Math.PI /180));
  2794. z = Math.sin(hit * (Math.PI / 180));
  2795. setVelX(Player.getEntity(), x * 1);
  2796. setVelY(Player.getEntity(), y * 1);
  2797. setVelZ(Player.getEntity(), z * 1);
  2798. setPosition(getPlayerEnt(), Entity.getX(vic)+1,Entity.getY(vic)+1.9,Entity.getZ(vic) + 1)
  2799. setPosition(getPlayerEnt(), Entity.getX(vic)-1.8,Entity.getY(vic)+1.6,Entity.getZ(vic) - .9)
  2800. var hit = getYaw() + 80;
  2801. var hitY = getPitch() - 180;
  2802. x = Math.cos(hit * (Math.PI /180));
  2803. y = Math.sin(hitY * (Math.PI /180));
  2804. z = Math.sin(hit * (Math.PI / 180));
  2805. setVelX(Player.getEntity(), x * - 2);
  2806. setVelY(Player.getEntity(), y * - 2);
  2807. setVelZ(Player.getEntity(), z * - 2);
  2808. setPosition(getPlayerEnt(), Entity.getX(vic)+1.6,Entity.getY(vic)+1.2,Entity.getZ(vic) + 1.3)
  2809. setPosition(getPlayerEnt(), Entity.getX(vic)-1.4,Entity.getY(vic)+1.5,Entity.getZ(vic) - .6)
  2810. }
  2811. if(att == Player.getEntity() && aas1 && Entity.getHealth(vic) > 0) {
  2812. var ent = Player.getPointedEntity();
  2813. var ent = getNearestEntity(8)
  2814. if(ent != null) crosshairAimAt(ent);
  2815. }
  2816. if(att == Player.getEntity() && rtp1 && Entity.getHealth(vic) > 0) {
  2817. var hit = getYaw() + 90;
  2818. var hitY = getPitch() - 180;
  2819. x = Math.cos(hit * (Math.PI / 180));
  2820. y = Math.sin(hitY * (Math.PI / 180));
  2821. z = Math.sin(hit * (Math.PI / 180));
  2822. setVelX(Player.getEntity(), x * -2);
  2823. setVelY(Player.getEntity(), y * -2);
  2824. setVelZ(Player.getEntity(), z * -2);
  2825. }
  2826. if(att == Player.getEntity() && blj1 && Entity.getHealth(vic) > 0) {
  2827. var hit = getYaw() + 90;
  2828. var hitY = getPitch() - 180;
  2829. x = Math.cos(hit * (Math.PI / 180));
  2830. y = Math.sin(hitY * (Math.PI / 180));
  2831. z = Math.sin(hit * (Math.PI / 180));
  2832. setVelX(Player.getEntity(), x * 1);
  2833. setVelZ(Player.getEntity(), z * 1);
  2834. }
  2835. if(att == Player.getEntity() && bst1 && Entity.getHealth(vic) > 0) {
  2836. var hit = getYaw() + 45;
  2837. var hitY = getPitch() - 180;
  2838. x = Math.cos(hit * (Math.PI / 180));
  2839. y = Math.sin(hitY * (Math.PI / 180));
  2840. z = Math.sin(hit * (Math.PI / 180));
  2841. setVelY(Player.getEntity(), y * 0.7);
  2842. setVelX(Player.getEntity(), x * 0.6);
  2843. setVelZ(Player.getEntity(), z * 0.6);
  2844. }
  2845. }
  2846. function getNearestEntity(maxrange) {
  2847. var mobs = Entity.getAll();
  2848. var players = Server.getAllPlayers();
  2849. var small = maxrange;
  2850. var ent = null;
  2851. for (var i = 0; i < mobs.length; i++) {
  2852. var x = Entity.getX(mobs[i]) - getPlayerX();
  2853. var y = Entity.getY(mobs[i]) - getPlayerY();
  2854. var z = Entity.getZ(mobs[i]) - getPlayerZ();
  2855. var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
  2856. if (dist < small && dist > 0 && Entity.getEntityTypeId(mobs[i]) <= 63 && Entity.getHealth(mobs[i]) >= 1) {
  2857. small = dist;
  2858. ent = mobs[i];
  2859. }
  2860. }
  2861. for (var i = 0; i < players.length; i++) {
  2862. var x = Entity.getX(players[i]) - getPlayerX();
  2863. var y = Entity.getY(players[i]) - getPlayerY();
  2864. var z = Entity.getZ(players[i]) - getPlayerZ();
  2865. var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
  2866. if (dist < small && dist > 0 && Entity.getHealth(players[i]) >= 1) {
  2867. small = dist;
  2868. ent = players[i];
  2869. }
  2870. }
  2871. return ent;
  2872. }
  2873.  
  2874. function crosshairAimAt(ent, pos) {
  2875. if(ent != null) {
  2876. var x = Entity.getX(ent) - getPlayerX();
  2877. var y = Entity.getY(ent) - getPlayerY();
  2878. var z = Entity.getZ(ent) - getPlayerZ();
  2879. if(pos != null && pos instanceof Array) {
  2880.  
  2881. x = Entity.getX(ent) - pos[0];
  2882. y = Entity.getY(ent) - pos[1];
  2883. z = Entity.getZ(ent) - pos[2];
  2884. }
  2885. if(Entity.getEntityTypeId(ent) != 63)
  2886. y += 0.5;
  2887. var a = 0.5 + Entity.getX(ent);
  2888. var b = Entity.getY(ent);
  2889. var c = 0.5 + Entity.getZ(ent);
  2890. var len = Math.sqrt(x * x + y * y + z * z);
  2891. var y = y / len;
  2892. var pitch = Math.asin(y);
  2893. pitch = pitch * 180.0 / Math.PI;
  2894. pitch = -pitch;
  2895. var yaw = -Math.atan2(a - (Player.getX() + 0.5), c - (Player.getZ() + 0.5)) * (180 / Math.PI);
  2896. if(pitch < 89 && pitch > -89) {
  2897. Entity.setRot(Player.getEntity(), yaw, pitch);
  2898. }
  2899. }
  2900. }
  2901.  
  2902. function nearArrow(range) {
  2903. var entities = Entity.getAll();
  2904. var small = range;
  2905. var ent = null;
  2906. for (var i = 0; i < entities.length; i++) {
  2907. var x = Entity.getX(entities[i]) - getPlayerX();
  2908. var y = Entity.getY(entities[i]) - getPlayerY();
  2909. var z = Entity.getZ(entities[i]) - getPlayerZ();
  2910. var dist = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
  2911.  
  2912. if(dist < small && dist > 0) {
  2913. small = dist;
  2914. ent = entities[i];
  2915. }
  2916. }
  2917. return ent;
  2918. }
  2919.  
  2920. function modTick() {
  2921. if(aimbot) {
  2922. var ent = getNearestEntity(7)
  2923. if(ent != null) crosshairAimAt(ent);
  2924.  
  2925. }
  2926.  
  2927. var px = Player.getX();
  2928. var py = Player.getY();
  2929. var pz = Player.getZ();
  2930. var x = Player.getX();
  2931. var y = Player.getY();
  2932. var z = Player.getZ();
  2933.  
  2934. if (at1) {
  2935. setTile(getPlayerX(), getPlayerY()-1, getPlayerZ(), 50);
  2936. }
  2937. if (gr1) {
  2938. setTile(getPlayerX(), getPlayerY()-3, getPlayerZ(), 51);
  2939. }
  2940. if(hitboxed) {
  2941. var ent = getNearestEntity(8);
  2942. Entity.setCollisionSize(ent, 10, 10);
  2943. }else{
  2944. Entity.setCollisionSize(ent, 1, 2);
  2945. }
  2946. if(jesus){
  2947. if(Utils.Player.isInWater())
  2948. setVelY(getPlayerEnt(), 0.25);
  2949. if(Utils.Player.isInWater())
  2950. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.4);
  2951. if(Utils.Player.isInWater())
  2952. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.4);
  2953. }
  2954. if(ff1){
  2955. if(Utils.Player.isInWater())
  2956. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.5);
  2957. if(Utils.Player.isInWater())
  2958. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.5);
  2959. }
  2960. if(fi1){
  2961. if(Utils.Player.isInIce())
  2962. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.09);
  2963. if(Utils.Player.isInIce())
  2964. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.09);
  2965. }
  2966. if(bj1){
  2967. if(Utils.Player.isInWater())
  2968. setVelY(getPlayerEnt(), 0.00000001);
  2969. if(Utils.Player.isInWater())
  2970. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.08);
  2971. if(Utils.Player.isInWater())
  2972. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.08);
  2973. }
  2974. if(motion){
  2975. if(Utils.Player.onGround())
  2976. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.2);
  2977. if(Utils.Player.onGround())
  2978. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.2);
  2979. }
  2980. if (js1 && Utils.Player.isInWater()) {
  2981. setVelY(getPlayerEnt(), 0.1);
  2982. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.3);
  2983. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.3);
  2984. }
  2985. if(sw1){
  2986. Entity.setSneaking(getPlayerEnt(), true);
  2987. }
  2988. if(mh1){
  2989. if(Utils.Player.onGround())
  2990. setVelY(getPlayerEnt(), 0.2);
  2991. if(Utils.Player.onGround())
  2992. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.4);
  2993. if(Utils.Player.onGround())
  2994. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.4);
  2995. }
  2996. if(gdglidess){
  2997. setVelY(getPlayerEnt(), -0.15);
  2998. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.06);
  2999. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.06);
  3000. }
  3001. if (mdglidess) {
  3002. setVelY(getPlayerEnt(), -0.001);
  3003. }
  3004. if(sc1) {
  3005. if(!Player.getCarriedItem()==0) {
  3006. Level.setTile(getPlayerX(), getPlayerY()-2, getPlayerZ(), Player.getCarriedItem(), 50);
  3007. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*0.55);
  3008. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*0.55);
  3009. }
  3010. }
  3011. if(nf1){
  3012. if(Utils.Player.isFall()) {
  3013. setVelY(getPlayerEnt(), -200);
  3014. }
  3015. }
  3016. if (glidess) {
  3017. if(Utils.Player.isFall()) {
  3018. setPosition(getPlayerEnt(), px, py +0.19, pz);
  3019. setVelY(getPlayerEnt(), -0.3);
  3020. }
  3021. }
  3022. if(ahunger){
  3023. Player.setHunger(20);
  3024. }
  3025. if(regen){
  3026. Player.setHealth(20);
  3027. }
  3028. if(sb1){
  3029. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.08);
  3030. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.08);
  3031. if(tima !== 0) {
  3032. tima--;
  3033. }
  3034. if(tima == 0) {
  3035. tima = 9;
  3036. var hit = getYaw() + 90;
  3037. var hitY = getPitch() - 180;
  3038. x = Math.cos(hit * (Math.PI / 180));
  3039. y = Math.sin(hitY * (Math.PI / 180));
  3040. z = Math.sin(hit * (Math.PI / 180));
  3041. setVelX(Player.getEntity(), x * 1);
  3042. setVelY(Player.getEntity(), y * 1);
  3043. setVelZ(Player.getEntity(), z * 1);
  3044. }
  3045. }
  3046. if(lg1){
  3047. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.09);
  3048. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.09);
  3049. }
  3050. if(bf1){
  3051. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.08);
  3052. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.08);
  3053. if(time !== 0) {
  3054. time--;
  3055. }
  3056. if(time == 0) {
  3057. time = 9;
  3058. setVelY(getPlayerEnt(), 0.33);
  3059. }
  3060. }
  3061. if(pe1) {
  3062. var ent = getNearestEntity(8)
  3063. var hit = getYaw() + 90;
  3064. var hitY = getPitch() - 180;
  3065. x = Math.cos(hit * (Math.PI / 180));
  3066. y = Math.sin(hitY * (Math.PI / 180));
  3067. z = Math.sin(hit * (Math.PI / 180));
  3068. setVelX(Player.getEntity(), x * -2);
  3069. setVelY(Player.getEntity(), y * -2);
  3070. setVelZ(Player.getEntity(), z * -2);
  3071. }
  3072. if (csb1) {
  3073. Entity.setSneaking(getPlayerEnt(), true);
  3074. var hit = getYaw() + 90;
  3075. var hitY = getPitch() - 180;
  3076. x = Math.cos(hit * (Math.PI / 180));
  3077. y = Math.sin(hitY * (Math.PI / 180));
  3078. z = Math.sin(hit * (Math.PI / 180));
  3079. setVelX(Player.getEntity(), x * 1);
  3080. setVelY(Player.getEntity(), y * 1);
  3081. setVelZ(Player.getEntity(), z * 1);
  3082. }
  3083. if(bz1)
  3084. {
  3085. if(getCarriedItem()==261)
  3086. {
  3087. ModPE.setFov(25)
  3088. }else{
  3089. ModPE.resetFov();
  3090. }
  3091. }
  3092. if(dv1)
  3093. {
  3094. Level.destroyBlock(Player.getPointedBlockX(),Player.getPointedBlockY(),Player.getPointedBlockZ())
  3095. }
  3096. if(ab1){
  3097. setVelY( getPlayerEnt(), 0.4)
  3098. setTile(getPlayerX(), getPlayerY()-1, getPlayerZ(), 4);
  3099. }
  3100. if(dj1){
  3101. if(Utils.Player.isFall()) {
  3102. setVelY(getPlayerEnt(), 1);
  3103. }
  3104. }
  3105. if(ljj1){
  3106. if(Utils.Player.isAutoEagle()) {
  3107. Entity.setSneaking(getPlayerEnt(), true);
  3108. }
  3109. }
  3110. if(ar1) {
  3111. Player.setArmorSlot(0, 310, 0);
  3112. Player.setArmorSlot(1, 311, 0);
  3113. Player.setArmorSlot(2, 312, 0);
  3114. Player.setArmorSlot(3, 313, 0);
  3115. }
  3116. if(nt1) {
  3117. var ent = getNearestEntity(30);
  3118. ModPE.showTipMessage( ChatColor.WHITE + "Detected : "+ ChatColor.RED + Player.getName(ent) + ChatColor.RED + "");
  3119. }
  3120. if (as1) {
  3121. var slotId = 0;
  3122. var getInvSword = Player.getInventorySlot(slotId);
  3123. if (getInvSword == 276 || getInvSword == 268 || getInvSword == 283 || getInvSword == 267 || getInvSword == 272) {
  3124. var invSword = slotId;
  3125. } else {
  3126. slotId++;
  3127. }
  3128. if (slotId = 27) {
  3129. slotId = 0;
  3130. }
  3131. var ent = getNearestEntity(8);
  3132. Player.setSelectedSlotId(invSword);
  3133. }
  3134. if (saa1) {
  3135. var ent = getNearestEntity(8);
  3136. if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) {
  3137. var hit = getYaw() + 45;
  3138. var hitY = getPitch() - 180;
  3139. x = Math.cos(hit * (Math.PI / 180));
  3140. y = Math.sin(hitY * (Math.PI / 180));
  3141. z = Math.sin(hit * (Math.PI / 180));
  3142. setVelX(Player.getEntity(), x * 0.6);
  3143. setVelZ(Player.getEntity(), z * 0.6);
  3144. }
  3145. }
  3146. if(css1) {
  3147. if(Player.getPointedBlockId() == 54) {
  3148. Level.destroyBlock(Player.getPointedBlockX(), Player.getPointedBlockY(), Player.getPointedBlockZ(), true);
  3149. }
  3150. }
  3151. if(bb1) {
  3152. if(Player.getPointedBlockId() == 26) {
  3153. Level.destroyBlock(Player.getPointedBlockX(), Player.getPointedBlockY(), Player.getPointedBlockZ(), true);
  3154. }
  3155. }
  3156. if(rg1) {
  3157. var pX = Player.getX();
  3158. var pZ = Player.getZ();
  3159. if(Entity.getHealth(getPlayerEnt()) != 20 && Player.getHunger() == 20 && regenX == pX || regenZ == pZ) {
  3160. ModPE.setGameSpeed(120);
  3161. } else if(Entity.getHealth(getPlayerEnt()) == 20 && regenX != pX || regenZ != pZ) {
  3162. ModPE.setGameSpeed(20);
  3163. }
  3164. }
  3165. if(ea1) {
  3166. var ent = getNearestEntity(8);
  3167. if(ent != null && Player.getName(ent) != "" && Player.getName(ent) != " " && Player.getName(ent)) {
  3168. var hit = getYaw() + 90;
  3169. var hitY = getPitch() - 180;
  3170. x = Math.cos(hit * (Math.PI / 180));
  3171. y = Math.sin(hitY * (Math.PI / 180));
  3172. z = Math.sin(hit * (Math.PI / 180));
  3173. setVelX(Player.getEntity(), x * -2);
  3174. setVelY(Player.getEntity(), y * -2);
  3175. setVelZ(Player.getEntity(), z * -2);
  3176. }
  3177. }
  3178. if(nbb1){
  3179. if(Utils.Player.onGround()){
  3180. setVelY(getPlayerEnt(), 0.3)
  3181. setVelY(getPlayerEnt(), 0.0);
  3182. }
  3183. }
  3184. if(fl1) {
  3185. if(getTile(getPlayerX(), getPlayerY() +1, getPlayerZ()) == 65){
  3186. setVelY(getPlayerEnt(), ladderspeed);
  3187. Entity.setPosition(getPlayerEnt(),Player.getX(),Player.getY()+ ladderspeed,Player.getZ());
  3188. }
  3189. }
  3190. if(fv1) {
  3191. if(getTile(getPlayerX(), getPlayerY() +1, getPlayerZ()) == 106){
  3192. setVelY(getPlayerEnt(), vinespeed);
  3193. Entity.setPosition(getPlayerEnt(),Player.getX(),Player.getY()+ vinespeed,Player.getZ());
  3194. }
  3195. }
  3196. if(nw1){
  3197. if(Player.getPointedBlockId() == 30) {
  3198. var hit = getYaw() + 90;
  3199. var hitY = getPitch() - 180;
  3200. x = Math.cos(hit * (Math.PI / 180));
  3201. y = Math.sin(hitY * (Math.PI / 180));
  3202. z = Math.sin(hit * (Math.PI / 180));
  3203. setVelX(Player.getEntity(), x * 0.6);
  3204. setVelZ(Player.getEntity(), z * 0.6);
  3205. }
  3206. }
  3207. if(asb1) {
  3208. var snowball = nearArrow(9);
  3209. if(snowball != null && Entity.getEntityTypeId(snowball) == EntityType.SNOWBALL) {
  3210. var hit = getYaw() + 90;
  3211. var hitY = getPitch() - 180;
  3212. x = Math.cos(hit * (Math.PI / 180));
  3213. y = Math.sin(hitY * (Math.PI / 180));
  3214. z = Math.sin(hit * (Math.PI / 180));
  3215. setVelX(Player.getEntity(), x * -2);
  3216. setVelY(Player.getEntity(), y * -2);
  3217. setVelZ(Player.getEntity(), z * -2);
  3218. }
  3219. }
  3220. if(da1) {
  3221. var arrow = nearArrow(9);
  3222. if(arrow != null && Entity.getEntityTypeId(arrow) == EntityType.ARROW) {
  3223. var hit = getYaw() + 90;
  3224. var hitY = getPitch() - 180;
  3225. x = Math.cos(hit * (Math.PI / 180));
  3226. y = Math.sin(hitY * (Math.PI / 180));
  3227. z = Math.sin(hit * (Math.PI / 180));
  3228. setVelX(Player.getEntity(), x * -2);
  3229. setVelY(Player.getEntity(), y * -2);
  3230. setVelZ(Player.getEntity(), z * -2);
  3231. }
  3232. }
  3233. if(bgl1 && !Utils.Player.onGround()) {
  3234. mftick++;
  3235. if(Entity.getVelY(getPlayerEnt()) < 1) {
  3236. setVelY(getPlayerEnt(), -0.060)
  3237. if(mftick == 46) {
  3238. setPosition(getPlayerEnt(), getPlayerX(), getPlayerY()+3.40, getPlayerZ());
  3239. mftick = 0;
  3240. }
  3241. }
  3242. }
  3243.  
  3244.  
  3245.  
  3246. if(farbotss) {
  3247. var ent = getNearestEntity(500)
  3248. if(ent != null) crosshairAimAt(ent);
  3249.  
  3250. }
  3251. if(fw1) {
  3252. var x = Player.getX();
  3253. var y = Player.getY();
  3254. var z = Player.getZ();
  3255. if(getTile(x, y-1, z) == 8) {
  3256. setTile(x, y-1, z, 79, 0);
  3257. }
  3258. if(getTile(x, y-1, z) == 9) {
  3259. setTile(x, y-1, z, 79, 0);
  3260. }
  3261. if(getTile(x, y-1, z) == 10) {
  3262. setTile(x, y-1, z, 4, 0);
  3263. }
  3264. if(getTile(x, y-1, z) == 11) {
  3265. setTile(x, y-1, z, 4, 0);
  3266. }
  3267. if(getTile(x, y, z) == 8) {
  3268. setTile(x, y, z, 79, 0);
  3269. setPosition(getPlayerEnt(), x, y+1, z);
  3270. }
  3271. if(getTile(x, y, z) == 9) {
  3272. setTile(x, y, z, 79, 0);
  3273. setPosition(getPlayerEnt(), x, y+1, z);
  3274. }
  3275. if(getTile(x, y, z) == 10) {
  3276. setTile(x, y, z, 4, 0);
  3277. setPosition(getPlayerEnt(), x, y+1, z);
  3278. }
  3279. if(getTile(x, y, z) == 11) {
  3280. setTile(x, y, z, 4, 0);
  3281. setPosition(getPlayerEnt(), x, y+1, z);
  3282. }
  3283. }
  3284. if(ir1) {
  3285. ir3 = getNearestEntity(15);
  3286. if(ir3 != null && Entity.getEntityTypeId(ir3) == EntityType.PLAYER) {
  3287. setPosition(getPlayerEnt(), Entity.getX(ir3), Entity.getY(ir3)+ 2, Entity.getZ(ir3));
  3288. }
  3289. }
  3290. if(ftp1) {
  3291. ftp3 = getNearestEntity(10);
  3292. if(ftp3 != null && Entity.getEntityTypeId(ftp3) == EntityType.PLAYER) {
  3293. setPosition(getPlayerEnt(), Entity.getX(ftp3)- 5, Entity.getY(ftp3)+ 1, Entity.getZ(ftp3));
  3294. }
  3295. }
  3296. if(az1){
  3297. var playerDir = [0, 0, 0];
  3298. toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1);
  3299. setVelX(getPlayerEnt(), playerDir[0]);
  3300. setVelY(getPlayerEnt(), 0.45);
  3301. setVelZ(getPlayerEnt(), playerDir[2]);
  3302. setVelY(getPlayerEnt(), -0.4);
  3303. if(time !== 0) {
  3304. time--;
  3305. }
  3306. if(time == 0) {
  3307. time = 3;
  3308. setVelX(getPlayerEnt(), 0);
  3309. setVelZ(getPlayerEnt(), 0);
  3310. setVelY(getPlayerEnt(), 0.3);
  3311. }
  3312. }
  3313. if (stepss && Utils.Player.isCollidedHorizontally()) {
  3314. Entity.setPositionRelative(getPlayerEnt(), 0, 1.6, 0);
  3315. }
  3316. if (sp1 && Utils.Player.isCollidedHorizontally()) {
  3317. setVelY( getPlayerEnt(), 0.4)
  3318. }
  3319. if(bhopll){
  3320. if(Utils.Player.onGround()){
  3321. ModPE.setGameSpeed(40)
  3322. setVelY( getPlayerEnt(), 0.4)
  3323. }
  3324. }
  3325. if(yp1){
  3326. if(Utils.Player.onGround())
  3327. setVelY(getPlayerEnt(), 0.09);
  3328. if(Utils.Player.onGround())
  3329. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.4);
  3330. if(Utils.Player.onGround())
  3331. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.4);
  3332. }
  3333. if (btp1) {
  3334. if(Utils.Player.onGround())
  3335. setVelY(getPlayerEnt(), 0.4);
  3336. if(Utils.Player.onGround())
  3337. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*4.8);
  3338. if(Utils.Player.onGround())
  3339. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*4.8);
  3340. }
  3341. if(bhopl){
  3342. if(Utils.Player.onGround())
  3343. setVelY(getPlayerEnt(), 0.4);
  3344. if(Utils.Player.onGround())
  3345. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.4);
  3346. if(Utils.Player.onGround())
  3347. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.4);
  3348. }
  3349. if(spamss) {
  3350. ModPE.showTipMessage("\n" + "§aYour Health: §4" + Entity.getHealth(getPlayerEnt()));
  3351. }
  3352. if(quickescaped) {
  3353. var yaw = Entity.getYaw(getPlayerEnt());
  3354. setVelX(getPlayerEnt(), -0.49 * Math.sin(yaw / 180 * Math.PI));
  3355. setVelZ(getPlayerEnt(), 0.49 * Math.cos(yaw / 180 * Math.PI));
  3356. }
  3357. if (ddj1) {
  3358. if(Utils.Player.overGround())
  3359. setVelY(getPlayerEnt(), 0.4);
  3360. }
  3361.  
  3362. if(livecored) {
  3363. ModPE.showTipMessage("§a> Your Coordinates are:\nx: " + Math.floor(Player.getX()) + " y: " + Math.floor(Player.getY() - 1) + " z: " + Math.floor(Player.getZ()));
  3364. }
  3365. if(tnt1) {
  3366. setVelY(getPlayerEnt(), 0.4);
  3367. }
  3368. if (antikbss || Entity.getHealth(getPlayerEnt()) <= 0) {
  3369. if(this.tick > 0) {
  3370. tick--;
  3371. } else {
  3372. Entity.setImmobile(getPlayerEnt(), false);
  3373. }
  3374. if(this.health > Entity.getHealth(getPlayerEnt())){
  3375. Entity.setImmobile(getPlayerEnt(), true);
  3376. this.tick = 1;
  3377. }
  3378. this.tick = 0;
  3379. this.health = Entity.getHealth(getPlayerEnt());
  3380. }
  3381. if (ndglidess) {
  3382. setVelY(getPlayerEnt(), 0.00000001);
  3383. }
  3384. if(ljc1) {
  3385. setVelX(getPlayerEnt(),Entity.getVelX(getPlayerEnt())*sboost);
  3386. setVelY(getPlayerEnt(),Entity.getVelY(getPlayerEnt())*jboost);
  3387. setVelZ(getPlayerEnt(),Entity.getVelZ(getPlayerEnt())*sboost);
  3388. if(Utils.Player.isFall())
  3389. setVelY(getPlayerEnt(),Entity.getVelY(getPlayerEnt())*fboost);
  3390. }
  3391. if (lh1) {
  3392.  
  3393. if(Entity.getVelY(getPlayerEnt())< -0.1) {
  3394. var playerDir = [0, 0, 0];
  3395. toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1);
  3396. setVelX(getPlayerEnt(), 4 * playerDir[0]);
  3397. setVelZ(getPlayerEnt(), 4 * playerDir[2]);
  3398. }
  3399. if(Entity.getVelY(getPlayerEnt())< 0.35 && Entity.getVelY(getPlayerEnt())> 0.2 && can==1 && canGetHP==1) {
  3400. setVelY(getPlayerEnt(), 0.6);
  3401. can = 2;
  3402. HP = Entity.getHealth(getPlayerEnt());
  3403. canGetHP = 0;
  3404. }
  3405. if(Entity.getVelY(getPlayerEnt())>gravity && can==2) {
  3406. Player.setHealth(HP);
  3407. canGetHP = 1;
  3408. can = 0;
  3409. }
  3410. if(Entity.getVelY(getPlayerEnt())==gravity && can==0) {
  3411. Player.setHealth(HP);
  3412. canGetHP = 1;
  3413. can = 1;
  3414. }
  3415. }
  3416. if (aw1) {
  3417. var playerDir = [0, 0, 0];
  3418. toDirectionalVector(playerDir, (getYaw() + 90) * Math.PI / 180, getPitch() * Math.PI / 180 * -1);
  3419. setVelX(getPlayerEnt(), 0.4 * playerDir[0]);
  3420. setVelZ(getPlayerEnt(), 0.4 * playerDir[2]);
  3421. }
  3422. if (jp1) {
  3423. var hit = getYaw() + 90;
  3424. var hitY = getPitch() - 180;
  3425. x = Math.cos(hit * (Math.PI / 180));
  3426. y = Math.sin(hitY * (Math.PI / 180));
  3427. z = Math.sin(hit * (Math.PI / 180));
  3428. setVelX(Player.getEntity(), x * 1);
  3429. setVelY(Player.getEntity(), y * 1);
  3430. setVelZ(Player.getEntity(), z * 1);
  3431. }
  3432. if (cspeedss) {
  3433. //CrouchSpeed code from NNeBBuRR (VC Team)
  3434. if(Entity.isSneaking(Player.getEntity()) == true){
  3435. setVelY(getPlayerEnt(), -100.0);
  3436. setVelX(getPlayerEnt(), Entity.getVelX(getPlayerEnt())*1.7);
  3437. setVelZ(getPlayerEnt(), Entity.getVelZ(getPlayerEnt())*1.7);
  3438. }
  3439. }}
  3440.  
  3441. function useItem(x, y, z, itemid, blockid, side, itemDamage, blockDamage) {
  3442. if (taptowerss) {
  3443. setVelY(getPlayerEnt(), 0.4);
  3444. }
  3445. if (ljj1) {
  3446. setVelY(getPlayerEnt(), 0.100);
  3447. }
  3448. if (sa1) {
  3449. explode(getPlayerX(),getPlayerY(),getPlayerZ(),2);
  3450. }
  3451. if (ls1) {
  3452. var yaw = Entity.getYaw(getPlayerEnt());
  3453. setVelX(getPlayerEnt(), -0.49 * Math.sin(yaw / 180 * Math.PI));
  3454. setVelZ(getPlayerEnt(), 0.49 * Math.cos(yaw / 180 * Math.PI));
  3455. }
  3456. if (tb1) {
  3457. var hit = getYaw() + 90;
  3458. var hitY = getPitch() - 180;
  3459. x = Math.cos(hit * (Math.PI / 180));
  3460. y = Math.sin(hitY * (Math.PI / 180));
  3461. z = Math.sin(hit * (Math.PI / 180));
  3462. setVelX(Player.getEntity(), x * 1);
  3463. setVelY(Player.getEntity(), y * 1);
  3464. setVelZ(Player.getEntity(), z * 1);
  3465. }
  3466. if(taptpss && getTile(x, y + 1, z) == 0 && getTile(x, y + 2, z) == 0) {
  3467. Entity.setPosition(Player.getEntity(), x + 0.5, y + 2.63 , z + 0.5);
  3468. }
  3469. if(ch1 && Player.getCarriedItem() == 0) {
  3470. Level.setTile(x, y, z, 0, 0);
  3471. Level.setTile(x, y-1, z, 0, 0);
  3472. }
  3473. if(ta1) {
  3474. ta3 = getNearestEntity(8);
  3475. if(ta3 != null && Entity.getEntityTypeId(ta3) == EntityType.PLAYER) {
  3476. setPosition(getPlayerEnt(), Entity.getX(ta3), Entity.getY(ta3)+ 1, Entity.getZ(ta3));
  3477. }
  3478. }
  3479. if(fb1){
  3480. if(side == BlockFace.NORTH) {
  3481. Entity.setPositionRelative(getPlayerEnt(), 0, 0, -1);
  3482. } else if(side == BlockFace.SOUTH) {
  3483. Entity.setPositionRelative(getPlayerEnt(), 0, 0, 1);
  3484. } else if(side == BlockFace.WEST) {
  3485. Entity.setPositionRelative(getPlayerEnt(), -1, 0, 0);
  3486. } else if(side == BlockFace.EAST) {
  3487. Entity.setPositionRelative(getPlayerEnt(), 1, 0, 0);
  3488. } else if(side == BlockFace.UP) {
  3489. Entity.setPositionRelative(getPlayerEnt(), 0, 1, 0);
  3490. }
  3491. }
  3492. }
  3493.  
  3494. function rptask() {
  3495. ctx.runOnUiThread(new java.lang.Runnable({
  3496. run: function () {
  3497. new android.os.Handler().postDelayed(new java.lang.Runnable({
  3498. run: function () {
  3499. if (ba1 && getCarriedItem() == 261 ) {
  3500. var ent = getNearestEntity(50)
  3501. if(ent != null) crosshairAimAt(ent);
  3502. }
  3503. if(hj1) {
  3504. var ent = getNearestEntity(15);
  3505. if(ent != null) crosshairAimAt(ent);
  3506. var yaw = Entity.getYaw(getPlayerEnt());
  3507. setVelX(getPlayerEnt(), -0.49 * Math.sin(yaw / 180 * Math.PI));
  3508. setVelZ(getPlayerEnt(), 0.49 * Math.cos(yaw / 180 * Math.PI));
  3509. }
  3510.  
  3511.  
  3512. nx = getPlayerX();
  3513. ny = getPlayerY();
  3514. nz = getPlayerZ();
  3515. eval(rptask())
  3516. }
  3517. }), 900 / 70)
  3518. }
  3519. }))
  3520. }
  3521. rptask();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement