Advertisement
Guest User

ANSITIVE [source code]

a guest
May 9th, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.47 KB | None | 0 0
  1. local memrec = getAddressList().getMemoryRecordByDescription
  2.  
  3. function reopenProcessThreadFunc(thread, processName)
  4.   thread.name = '"reopenProcessThread"'
  5.  
  6.   while true do
  7.     if readInteger(processName)==nil then
  8.       if openProcess(processName) then
  9.       autoAssemble[[
  10. Growtopia.exe+13850D:
  11. db 90 90
  12.       ]]
  13.       UDF1.CELabel46.Caption = "Injected"
  14.       UDF1.CELabel46.Font.Color = 0x0000FF80
  15.       else
  16.       UDF1.CELabel46.Caption = "Not Injected"
  17.       UDF1.CELabel46.Font.Color = 0x000000FE
  18. end
  19. end
  20. sleep(100)
  21. end
  22. end
  23. createNativeThread(reopenProcessThreadFunc,"Growtopia.exe")
  24. function antiTaskmanager(thread, processName)
  25.   thread.name = '"reopenProcessThread"'
  26.  
  27.   while true do
  28.     if readInteger(processName)==nil then
  29.       if openProcess(processName) then
  30.       closeCE()
  31.    end
  32. end
  33. end
  34. end
  35. local i = 0
  36. local rainbowredhex = "FF"
  37. local rainbowbluehex = "00"
  38. local rainbowgreenhex = "00"
  39. local transparency = "FF"
  40. function opengt(thread, pname)
  41.   thread.name = "opengt"
  42.  
  43.   while true do
  44.     if readInteger(pname) == nil then
  45.       if openProcess(pname) then
  46.       autoAssemble[[
  47.       Growtopia.exe+13850D:
  48.       db 90 90
  49.       ]]
  50.       end
  51.     end
  52.     sleep(1000)
  53.   end
  54. end
  55. function RainbowTimer(sender)
  56.   --first
  57.   if i < 256 and i > -1 then
  58.     i = i+5
  59.     if i < 16 then
  60.       rainbowgreenhex = ("0"..(string.format("%X", i)))
  61.     else
  62.       rainbowgreenhex = (string.format("%X", i))
  63.       if i == 255 then
  64.         i = 755
  65.       end
  66.     end
  67.   end
  68.  
  69.   --second
  70.   if i > 499 and i < 756 then
  71.     i = i-5
  72.     if i < 516 then
  73.       rainbowredhex = ("0"..(string.format("%X", i-500)))
  74.       if i == 500 then
  75.         i = 1000
  76.       end
  77.     else
  78.       rainbowredhex = (string.format("%X", i-500))
  79.     end
  80.   end
  81.  
  82.   --third
  83.   if i > 999 and i < 1256 then
  84.     i = i+5
  85.     if i < 1016 then
  86.       rainbowbluehex = ("0"..(string.format("%X", i-1000)))
  87.     else
  88.       rainbowbluehex = (string.format("%X", i-1000))
  89.       if i == 1255 then
  90.         i = 2255
  91.       end
  92.     end
  93.   end
  94.  
  95.   --fourth
  96.   if i > 1999 and i < 2256 then
  97.     i = i-5
  98.     if i < 2016 then
  99.       rainbowgreenhex = ("0"..(string.format("%X", i-2000)))
  100.       if i == 2000 then
  101.         i = 3000
  102.       end
  103.     else
  104.       rainbowgreenhex = (string.format("%X", i-2000))
  105.     end
  106.   end
  107.  
  108.   --fifth
  109.   if i > 2999 and i < 3256 then
  110.     i = i+5
  111.     if i < 3016 then
  112.       rainbowredhex = ("0"..(string.format("%X", i-3000)))
  113.     else
  114.       rainbowredhex = (string.format("%X", i-3000))
  115.       if i == 3255 then
  116.         i = 4255
  117.       end
  118.     end
  119.   end
  120.  
  121.   --sixth
  122.   if i > 3999 and i < 4256 then
  123.     i = i-5
  124.     if i < 4016 then
  125.       rainbowbluehex = ("0"..(string.format("%X", i-4000)))
  126.       if i == 4000 then
  127.         i = 0
  128.       end
  129.     else
  130.       rainbowbluehex = (string.format("%X", i-4000))
  131.     end
  132.   end
  133.   UDF1.CELabel29.Font.Color = ("0x00"..rainbowbluehex..rainbowgreenhex..rainbowredhex)
  134.   UDF1.CELabel89.Font.Color = ("0x00"..rainbowbluehex..rainbowgreenhex..rainbowredhex)
  135.   UDF1.CELabel90.Font.Color = ("0x00"..rainbowbluehex..rainbowgreenhex..rainbowredhex)
  136.   UDF1.CELabel91.Font.Color = ("0x00"..rainbowbluehex..rainbowgreenhex..rainbowredhex)
  137.   if UDF1.CECheckbox28.Checked == true then
  138.   if UDF1.CECheckbox29.Checked == true then
  139.   memrec("Skin").Value = (rainbowbluehex..rainbowgreenhex..rainbowredhex..transparency)
  140.   UDF1.CEPanel21.Color = ("0x00"..rainbowbluehex..rainbowgreenhex..rainbowredhex)
  141.  end
  142.  end
  143.  end
  144. local colors = {"1","2","3","4","5","6","7","8","9","b","w","p","o","^","$","#","@","!","q","e","r","t","a","s"}
  145. local number = 1
  146. local timer = createTimer(getMainForm())
  147. timer.Interval = 250
  148. timer.OnTimer = function(timer)
  149. memrec("isactive").Value = 256
  150. memrec("xd").Value = "`"..colors[number].."\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n   ANSITIVE FOR GT V2.85"
  151. number = number+1
  152. if number > 24 then number = 1
  153. end
  154. end
  155. function FormMouseDown(sender, button, x, y)
  156. UDF1.DragNow()
  157. end
  158. function CEPanel1MouseDown(sender, button, x, y)
  159. UDF1.DragNow()
  160. end
  161. function CEPanel2Click(sender)
  162. closeCE()
  163. end
  164. function CEPanel2MouseEnter(sender)
  165. UDF1.CEPanel2.Color = "$000000BB"
  166. end
  167. function CEPanel2MouseLeave(sender)
  168. UDF1.CEPanel2.Color = "~"
  169. end
  170. function CEPanel4Click(sender)
  171. UDF1.CEPanel4.color = "~"
  172. UDF1.CEPanel3.color = "$00232323"
  173. UDF1.CEPanel18.Color = "$00232323"
  174. UDF1.CEPanel7.Color = "$00232323"
  175. UDF1.CEPanel23.Color = "$00232323"
  176. UDF1.CEPanel5.Visible = false
  177. UDF1.CEPanel6.Visible = true
  178. UDF1.CEPanel24.Visible = false
  179. UDF1.CEPanel19.Visible = false
  180. UDF1.CEPanel25.Visible = false
  181. end
  182. function CEPanel3Click(sender)
  183. UDF1.CEPanel3.Color = "~"
  184. UDF1.CEPanel4.Color = "$00232323"
  185. UDF1.CEPanel23.Color = "$00232323"
  186. UDF1.CEPanel18.Color = "$00232323"
  187. UDF1.CEPanel7.Color = "$00232323"
  188. UDF1.CEPanel5.Visible = true
  189. UDF1.CEPanel6.Visible = false
  190. UDF1.CEPanel24.Visible = false
  191. UDF1.CEPanel19.Visible = false
  192. UDF1.CEPanel25.Visible = false
  193. end
  194. function CEPanel23Click(sender)
  195. UDF1.CEPanel23.Color = "~"
  196. UDF1.CEPanel18.Color = "$00232323"
  197. UDF1.CEPanel4.Color = "$00232323"
  198. UDF1.CEPanel3.Color = "$00232323"
  199. UDF1.CEPanel7.Color = "$00232323"
  200. UDF1.CEPanel5.Visible = false
  201. UDF1.CEPanel6.Visible = false
  202. UDF1.CEPanel24.Visible = false
  203. UDF1.CEPanel19.Visible = false
  204. UDF1.CEPanel25.Visible = true
  205. end
  206. function CEPanel7Click(sender)
  207. UDF1.CEPanel18.Color = "$00232323"
  208. UDF1.CEPanel4.Color = "$00232323"
  209. UDF1.CEPanel3.Color = "$00232323"
  210. UDF1.CEPanel23.Color = "$00232323"
  211. UDF1.CEPanel7.Color = "~"
  212. UDF1.CEPanel24.Visible = true
  213. UDF1.CEPanel5.Visible = false
  214. UDF1.CEPanel6.Visible = false
  215. UDF1.CEPanel19.Visible = false
  216. UDF1.CEPanel25.Visible = false
  217. end
  218. function CEPanel18Click(sender)
  219. UDF1.CEPanel18.Color = "~"
  220. UDF1.CEPanel4.Color = "$00232323"
  221. UDF1.CEPanel3.Color = "$00232323"
  222. UDF1.CEPanel23.Color = "$00232323"
  223. UDF1.CEPanel7.Color = "$00232323"
  224. UDF1.CEPanel24.Visible = false
  225. UDF1.CEPanel5.Visible = false
  226. UDF1.CEPanel6.Visible = false
  227. UDF1.CEPanel19.Visible = true
  228. UDF1.CEPanel25.Visible = false
  229. end
  230. function CEPanel4MouseEnter(sender)
  231. end
  232. function CEPanel4MouseLeave(sender)
  233. end
  234. function CEPanel18MouseEnter(sender)
  235. end
  236. function CEPanel18MouseLeave(sender)
  237. end
  238. function CETimer1Timer(sender)
  239. RainbowTimer()
  240. end
  241. function CECheckbox1Change(sender)
  242. if sender.checked == true then
  243. autoAssemble[[
  244. LUACALL(speedhack_setSpeed(5))
  245. ]]
  246. else
  247. autoAssemble[[
  248. LUACALL(speedhack_setSpeed(1.0))
  249. ]]
  250. end
  251. end
  252. function CECheckbox2Change(sender)
  253. if sender.checked == true then
  254. autoAssemble[[
  255. Growtopia.exe+1F9540:
  256. db 90 90
  257. ]]
  258. else
  259. autoAssemble[[
  260. Growtopia.exe+1F9540:
  261. db 75 0D
  262. ]]
  263. end
  264. end
  265. function CECheckbox3Change(sender)
  266. if sender.checked == true then
  267. autoAssemble[[
  268. Growtopia.exe+1BA420:
  269. db 90 90 90 90 90
  270. ]]
  271. else
  272. autoAssemble[[
  273. Growtopia.exe+1BA420:
  274. db F3 0F 10 49 0C
  275. ]]
  276. end
  277. end
  278. function CECheckbox5Change(sender)
  279. if sender.checked == true then
  280. autoAssemble[[
  281. Growtopia.exe+1AE8D5:
  282. db 90 90 90 90 90 90
  283. Growtopia.exe+1AE8C3:
  284. db 90 90 90 90 90 90 90 90 90 90
  285. Growtopia.exe+A7A6A:
  286. db 90 90
  287. ]]
  288. else
  289. autoAssemble[[
  290. Growtopia.exe+1AE8D5:
  291. db 0F 85 C3 00 00 00
  292. Growtopia.exe+1AE8C3:
  293. db C7 83 50 01 00 00 CD CC 4C 3E
  294. Growtopia.exe+A7A6A:
  295. db 75 06
  296. ]]
  297. end
  298. end
  299. function CECheckbox4Change(sender)
  300. if sender.checked == true then
  301. autoAssemble[[
  302. Growtopia.exe+299358:
  303. db 7A 4F
  304. Growtopia.exe+1EB4AA:
  305. db 90 90
  306. Growtopia.exe+1F9144:
  307. db 90 90 90 90 90 90
  308. ]]
  309. else
  310. autoAssemble[[
  311. Growtopia.exe+299358:
  312. db 4F 6E
  313. Growtopia.exe+1EB4AA:
  314. db 75 07
  315. Growtopia.exe+1F9144:
  316. db 0F 84 8B 00 00 00
  317. ]]
  318. end
  319. end
  320. function CECheckbox7Change(sender)
  321. if sender.checked == true then
  322. autoAssemble[[
  323. Growtopia.exe+136AAA:
  324. db 90 90 90 90 90 90 90 90
  325. ]]
  326. else
  327. autoAssemble[[
  328. Growtopia.exe+26A998:
  329. db F3 0F 10 3D CA 22 15 00
  330. ]]
  331. end
  332. end
  333. function CECheckbox6Change(sender)
  334. if sender.checked == true then
  335. autoAssemble[[
  336. Growtopia.exe+1374F6:
  337. db 83 C0 70
  338. ]]
  339. else
  340. autoAssemble[[
  341. Growtopia.exe+1374F6:
  342. db 83 C0 02
  343. ]]
  344. end
  345. end
  346. function CECheckbox9Change(sender)
  347. if sender.checked == true then
  348. autoAssemble[[
  349. Growtopia.exe+299358:
  350. db 90 90
  351. ]]
  352. else
  353. autoAssemble[[
  354. Growtopia.exe+299358:
  355. db 4F 6E
  356. ]]
  357. end
  358. end
  359. function CECheckbox8Change(sender)
  360. if sender.checked == true then
  361. autoAssemble[[
  362. Growtopia.exe+1EB4AA:
  363. db 90 90
  364. ]]
  365. else
  366. autoAssemble[[
  367. Growtopia.exe+1EB4AA:
  368. db 75 07
  369. ]]
  370. end
  371. end
  372. function CECheckbox14Change(sender)
  373. if sender.checked == true then
  374. autoAssemble[[
  375. Growtopia.exe+2992D5:
  376. db 90
  377. ]]
  378. else
  379. autoAssemble[[
  380. Growtopia.exe+2992D5:
  381. db 6E
  382. ]]
  383. end
  384. end
  385. function CECheckbox10Change(sender)
  386. if sender.checked == true then
  387. autoAssemble[[
  388. Growtopia.exe+145019:
  389. db 90 90 90 90 90 90
  390. ]]
  391. else
  392. autoAssemble[[
  393. Growtopia.exe+145019:
  394. db 0F 84 DF 00 00 00
  395. ]]
  396. end
  397. end
  398. function CECheckbox11Change(sender)
  399. if sender.checked == true then
  400. autoAssemble[[
  401. Growtopia.exe+1BA6DA:
  402. db 90 90
  403. ]]
  404. else
  405. autoAssemble[[
  406. Growtopia.exe+1BA6DA:
  407. db 74 39
  408. ]]
  409. end
  410. end
  411. function CECheckbox12Change(sender)
  412. if sender.checked == true then
  413. autoAssemble[[
  414. Growtopia.exe+5CA25:
  415. db 90 90 90 90
  416. ]]
  417. else
  418. autoAssemble[[
  419. Growtopia.exe+5CA25:
  420. db 80 7B 24 00
  421. ]]
  422. end
  423. end
  424. function CECheckbox13Change(sender)
  425. if sender.checked == true then
  426. autoAssemble[[
  427. Growtopia.exe+9E12A:
  428. db 90 90 90 90
  429. Growtopia.exe+1ACE7C:
  430. db 90 90 90 90 90
  431. ]]
  432. else
  433. autoAssemble[[
  434. Growtopia.exe+9E12A:
  435. db F3 0F 11 11
  436. Growtopia.exe+1ACE7C:
  437. db F3 0F 11 53 20
  438. ]]
  439. end
  440. end
  441. function CECheckbox15Change(sender)
  442. if sender.checked == true then
  443. autoAssemble[[
  444. Growtopia.exe+1AAED0:
  445. db 90 90 90 90
  446. ]]
  447. else
  448. autoAssemble[[
  449. Growtopia.exe+1AAED0:
  450. db F3 0F 5C D1
  451. ]]
  452. end
  453. end
  454. function CECheckbox16Change(sender)
  455. if sender.checked == true then
  456. autoAssemble[[
  457. Growtopia.exe+1B3E40:
  458. db 75
  459. ]]
  460. else
  461. autoAssemble[[
  462. Growtopia.exe+1B3E40:
  463. db 74
  464. ]]
  465. end
  466. end
  467. function CECheckbox17Change(sender)
  468. if sender.checked == true then
  469. autoAssemble[[
  470. Growtopia.exe+1AE8C3:
  471. db 90 90 90 90 90 90 90 90 90 90
  472. ]]
  473. else
  474. autoAssemble[[
  475. Growtopia.exe+1AE8C3:
  476. db C7 83 50 01 00 00 CD CC 4C 3E
  477. ]]
  478. end
  479. end
  480. function CECheckbox18Change(sender)
  481. if sender.checked == true then
  482. autoAssemble[[
  483. Growtopia.exe+6866C:
  484. db 90 90 90 90 90
  485. ]]
  486. else
  487. autoAssemble[[
  488. Growtopia.exe+6866C:
  489. db 66 41 39 40 04
  490. ]]
  491. end
  492. end
  493. function CECheckbox19Change(sender)
  494. if sender.checked == true then
  495. autoAssemble[[
  496. Growtopia.exe+1EEC88:
  497. db 74
  498. ]]
  499. else
  500. autoAssemble[[
  501. Growtopia.exe+1EEC88:
  502. db 75
  503. ]]
  504. end
  505. end
  506. function CECheckbox22Change(sender)
  507. if sender.checked == true then
  508. autoAssemble[[
  509. Growtopia.exe+1382CD:
  510. db 74
  511. ]]
  512. else
  513. autoAssemble[[
  514. Growtopia.exe+1382CD:
  515. db 75
  516. ]]
  517. end
  518. end
  519. function CECheckbox25Change(sender)
  520. if sender.checked == true then
  521. autoAssemble[[
  522. Growtopia.exe+1F9144:
  523. db 90 90 90 90 90 90
  524. ]]
  525. else
  526. autoAssemble[[
  527. Growtopia.exe+1F9144:
  528. db 0F 84 8B 00 00 00
  529. ]]
  530. end
  531. end
  532. function CECheckbox26Change(sender)
  533. if sender.checked == true then
  534. autoAssemble[[
  535. Growtopia.exe+1B1C24:
  536. db 75
  537. ]]
  538. else
  539. autoAssemble[[
  540. Growtopia.exe+1B1C24:
  541. db 74
  542. ]]
  543. end
  544. end
  545. function CECheckbox23Change(sender)
  546. if sender.checked == true then
  547. autoAssemble[[
  548. Growtopia.exe+14029C:
  549. db 75
  550. ]]
  551. else
  552. autoAssemble[[
  553. Growtopia.exe+14029C:
  554. db 74
  555. ]]
  556. end
  557. end
  558. function CECheckbox24Change(sender)
  559. if sender.checked == true then
  560. autoAssemble[[
  561. Growtopia.exe+1BA42E:
  562. db F3 0F 11 4A 06
  563. ]]
  564. else
  565. autoAssemble[[
  566. Growtopia.exe+1BA42E:
  567. db F3 0F 11 4A 04
  568. ]]
  569. end
  570. end
  571. function CECheckbox27Change(sender)
  572. if sender.checked == true then
  573. autoAssemble[[
  574. Growtopia.exe+1B1DF2:
  575. db 75
  576. ]]
  577. else
  578. autoAssemble[[
  579. Growtopia.exe+1B1DF2:
  580. db 74
  581. ]]
  582. end
  583. end
  584. function CECheckbox30Change(sender)
  585. if sender.checked == true then
  586. autoAssemble[[
  587. Growtopia.exe+BC9DD:
  588. db 0F 84
  589. ]]
  590. else
  591. autoAssemble[[
  592. Growtopia.exe+BC9DD:
  593. db 0F 85
  594. ]]
  595. end
  596. end
  597. function CECheckbox31Change(sender)
  598. if sender.checked == true then
  599. autoAssemble[[
  600. Growtopia.exe+1E81C7:
  601. db 75
  602. ]]
  603. else
  604. autoAssemble[[
  605. Growtopia.exe+1E81C7:
  606. db 74
  607. ]]
  608. end
  609. end
  610. function CECheckbox32Change(sender)
  611. if sender.checked == true then
  612. autoAssemble[[
  613. Growtopia.exe+1B5046:
  614. db 90 90 90
  615. ]]
  616. else
  617. autoAssemble[[
  618. Growtopia.exe+1B5046:
  619. db 45 8A E5
  620. ]]
  621. end
  622. end
  623. function CECheckbox33Change(sender)
  624. if sender.checked == true then
  625. autoAssemble[[
  626. Growtopia.exe+28719C:
  627. db 90 90
  628. ]]
  629. else
  630. autoAssemble[[
  631. Growtopia.exe+28719C:
  632. db 70 6F
  633. ]]
  634. end
  635. end
  636. function CECheckbox34Change(sender)
  637. if sender.checked == true then
  638. autoAssemble[[
  639. Growtopia.exe+61A9F:
  640. db 90 90
  641. ]]
  642. else
  643. autoAssemble[[
  644. Growtopia.exe+61A9F:
  645. db 77 69
  646. ]]
  647. end
  648. end
  649. function CECheckbox35Change(sender)
  650. if sender.checked == true then
  651. autoAssemble[[
  652. Growtopia.exe+1ADFC9:
  653. db 75
  654. ]]
  655. else
  656. autoAssemble[[
  657. Growtopia.exe+1ADFC9:
  658. db 74
  659. ]]
  660. end
  661. end
  662. function CECheckbox36Change(sender)
  663. if sender.checked == true then
  664. autoAssemble[[
  665. Growtopia.exe+1AE026:
  666. db 90 90
  667. ]]
  668. else
  669. autoAssemble[[
  670. Growtopia.exe+1AE026:
  671. db 75 13
  672. ]]
  673. end
  674. end
  675. function CECheckbox37Change(sender)
  676. if sender.checked == true then
  677. autoAssemble[[
  678. Growtopia.exe+1B32D3:
  679. db 90 90
  680. ]]
  681. else
  682. autoAssemble[[
  683. Growtopia.exe+1B32D3:
  684. db 74 29
  685. ]]
  686. end
  687. end
  688. function CECheckbox39Change(sender)
  689. if sender.checked == true then
  690. autoAssemble[[
  691. Growtopia.exe+1EB4AA:
  692. db 74
  693. ]]
  694. else
  695. autoAssemble[[
  696. Growtopia.exe+1EB4AA:
  697. db 75
  698. ]]
  699. end
  700. end
  701. function CECheckbox38Change(sender)
  702. if sender.checked == true then
  703. autoAssemble[[
  704. Growtopia.exe+1EABBB:
  705. db 74
  706. ]]
  707. else
  708. autoAssemble[[
  709. Growtopia.exe+1EABBB:
  710. db 75
  711. ]]
  712. end
  713. end
  714. function CECheckbox41Change(sender)
  715. if sender.checked == true then
  716. autoAssemble[[
  717. Growtopia.exe+145019:
  718. db 90 90 90 90 90 90
  719. ]]
  720. else
  721. autoAssemble[[
  722. Growtopia.exe+145019:
  723. db 0F 84 DF 00 00 00
  724. ]]
  725. end
  726. end
  727. function CECheckbox40Change(sender)
  728. if sender.checked == true then
  729. autoAssemble[[
  730. Growtopia.exe+28719C:
  731. db 90 90
  732. ]]
  733. else
  734. autoAssemble[[
  735. Growtopia.exe+28719C:
  736. db 70 6F
  737. ]]
  738. end
  739. end
  740. function CECheckbox43Change(sender)
  741. if sender.checked == true then
  742. autoAssemble[[
  743. Growtopia.exe+299368:
  744. db 90 90
  745. ]]
  746. else
  747. autoAssemble[[
  748. Growtopia.exe+299368:
  749. db 4F 6E
  750. ]]
  751. end
  752. end
  753. function CECheckbox42Change(sender)
  754. if sender.checked == true then
  755. autoAssemble[[
  756. Growtopia.exe+1BACC8:
  757. db 90 90
  758. ]]
  759. else
  760. autoAssemble[[
  761. Growtopia.exe+1BACC8:
  762. db 74 E7
  763. ]]
  764. end
  765. end
  766. function CECheckbox48Change(sender)
  767. if sender.checked == true then
  768. autoAssemble[[
  769. Growtopia.exe+1B32D3:
  770. db 75
  771. ]]
  772. else
  773. autoAssemble[[
  774. Growtopia.exe+1B32D3:
  775. db 74
  776. ]]
  777. end
  778. end
  779. function CECheckbox44Change(sender)
  780. if sender.checked == true then
  781. autoAssemble[[
  782. Growtopia.exe+1ADE4A:
  783. db 75
  784. Growtopia.exe+1ADE7D:
  785. db 75
  786. ]]
  787. else
  788. autoAssemble[[
  789. Growtopia.exe+1ADE4A:
  790. db 74
  791. Growtopia.exe+1ADE7D:
  792. db 74
  793. ]]
  794. end
  795. end
  796. function CECheckbox45Change(sender)
  797. if sender.checked == true then
  798. autoAssemble[[
  799. Growtopia.exe+1AAF12:
  800. db 75
  801. ]]
  802. else
  803. autoAssemble[[
  804. Growtopia.exe+1AAF12:
  805. db 74
  806. ]]
  807. end
  808. end
  809. function CECheckbox46Change(sender)
  810. if sender.checked == true then
  811. autoAssemble[[
  812. Growtopia.exe+61A9F:
  813. db 90 90
  814. ]]
  815. else
  816. autoAssemble[[
  817. Growtopia.exe+61A9F:
  818. db 77 69
  819. ]]
  820. end
  821. end
  822. function CEPanel10Click(sender)
  823. memrec("Name").Value = UDF1.CEEdit1.Text
  824. memrec("Name").Active = true
  825. end
  826. function CEPanel11Click(sender)
  827. memrec("Hat").Value = UDF1.CEEdit4.Text
  828. memrec("Hat").Active = true
  829. end
  830. function CEPanel9Click(sender)
  831. memrec("Wings").Value = UDF1.CEEdit5.Text
  832. memrec("Wings").Active = true
  833. end
  834. function CEPanel8Click(sender)
  835. memrec("Hair").Value = UDF1.CEEdit6.Text
  836. memrec("Hair").Active = true
  837. end
  838. function CEPanel13Click(sender)
  839. memrec("Hand").Value = UDF1.CEEdit3.Text
  840. memrec("Hand").Active = true
  841. end
  842. function CEPanel14Click(sender)
  843. memrec("Eye").Value = UDF1.CEEdit7.Text
  844. memrec("Eye").Active = true
  845. end
  846. function CEPanel15Click(sender)
  847. memrec("Shirt").Value = UDF1.CEEdit2.Text
  848. memrec("Shirt").Active = true
  849. end
  850. function CEPanel16Click(sender)
  851. memrec("Seed").Value = UDF1.CEEdit8.Text
  852. end
  853. function CEPanel12Click(sender)
  854. memrec("Shoes").Value = UDF1.CEEdit9.Text
  855. memrec("Shoes").Active = true
  856. end
  857. function CEPanel17Click(sender)
  858. memrec("Pants").Value = UDF1.CEEdit10.Text
  859. memrec("Pants").Active = true
  860. end
  861. x,y = getMousePos()
  862. function CETimer2Timer(sender)
  863. if UDF1.CECheckbox29.Checked == false then
  864.   if x-UDF1.Left-UDF1.CEImage2.Left-UDF1.CEPanel20.Left > 340 or x-UDF1.Left-UDF1.CEImage2.Left-UDF1.CEPanel20.Left < 35 or y-UDF1.Top-UDF1.CEImage2.Top-UDF1.CEPanel20.Top > 285 or y-UDF1.Top-UDF1.CEImage2.Top-UDF1.CEPanel20.Top < 100 then
  865.   else
  866.     UDF1.CEPanel21.Color = (UDF1.CEImage2.Canvas.GetPixel(x-UDF1.Left-UDF1.CEImage2.Left-UDF1.CEPanel20.Left-32,y-UDF1.Top-UDF1.CEImage2.Top-UDF1.CEPanel20.Top-97))
  867.   end
  868. end
  869. end
  870. function CEImage2MouseDown(sender, button, x, y)
  871.   UDF1.CETimer2.Enabled = true
  872.   UDF1.CETimer5.Enabled = true
  873.   UDF1.CEImage2.Cursor = UDF1.crno.Cursor
  874.   UDF1.CEImage3.Cursor = UDF1.crno.Cursor
  875. end
  876. function CEImage2MouseUp(sender, button, x, y)
  877.   UDF1.CETimer2.Enabled = false
  878.   UDF1.CETimer5.Enabled = false
  879.   UDF1.CEImage2.Cursor = UDF1.crhp.Cursor
  880.   UDF1.CEImage3.Cursor = UDF1.crhp.Cursor
  881. end
  882. function CECheckbox28Change(sender)
  883.   if UDF1.CECheckbox28.Checked == true then
  884.     prevskin = memrec("Skin").Value
  885.     UDF1.CETimer3.Enabled = true
  886.   else
  887.     UDF1.CETimer3.Enabled = false
  888.     memrec("Skin").Value = prevskin
  889.   end
  890. end
  891. function CETimer3Timer(sender)
  892.   memrec("Skin").Value = (string.format("%X", (UDF1.CEPanel21.Color))..transparency)
  893. end
  894. local prevtext = 0
  895. function CEEdit11Change(sender)
  896.   if UDF1.CEEdit11.Text == "" then
  897.     transparency = "FF"
  898.   else
  899.     if not tonumber(UDF1.CEEdit11.Text) then
  900.       UDF1.CEEdit11.Text = prevtext
  901.     else
  902.       if tonumber(UDF1.CEEdit11.Text) > 255 then
  903.         UDF1.CEEdit11.Text = prevtext
  904.       else
  905.         prevtext = UDF1.CEEdit11.Text
  906.         if tonumber(UDF1.CEEdit11.Text) < 16 then
  907.           transparency = ("0"..string.format("%X", (UDF1.CEEdit11.Text)))
  908.         else
  909.           transparency = (string.format("%X", (UDF1.CEEdit11.Text)))
  910.         end
  911.       end
  912.     end
  913.   end
  914. end
  915. function CETimer4Timer(sender)
  916.   x,y = getMousePos()
  917. end
  918. function CETimer5Timer(sender)
  919.   if x-UDF1.Left-UDF1.CEImage2.Left-UDF1.CEPanel20.Left > 340 or x-UDF1.Left-UDF1.CEImage2.Left-UDF1.CEPanel20.Left < 35 or y-UDF1.Top-UDF1.CEImage2.Top-UDF1.CEPanel20.Top > 285 or y-UDF1.Top-UDF1.CEImage2.Top-UDF1.CEPanel20.Top < 100 then
  920.   else
  921.     UDF1.CEImage3.Top = (y-UDF1.Top-UDF1.CEPanel20.Top-UDF1.CEImage2.Top-100)
  922.     UDF1.CEImage3.Left = (x-UDF1.Left-UDF1.CEPanel20.Left-UDF1.CEImage2.Left-35)
  923.   end
  924. end
  925. function CEImage2Click(sender)
  926.   UDF1.CEImage2.Cursor = UDF1.crno.Cursor
  927.   UDF1.CEImage3.Cursor = UDF1.crno.Cursor
  928. end
  929. function CEPanel22Click(sender)
  930. memrec("Punch").Value = UDF1.CEEdit12.Text
  931. memrec("Punch").Active = true
  932. end
  933. function CELabel47MouseDown(sender, button, x, y)
  934. UDF1.DragNow()
  935. end
  936. function CELabel29MouseDown(sender, button, x, y)
  937. UDF1.DragNow()
  938. end
  939. function CELabel28MouseDown(sender, button, x, y)
  940. UDF1.DragNow()
  941. end
  942. function CEImage1MouseDown(sender, button, x, y)
  943. UDF1.DragNow()
  944. end
  945. --showMessage("This trainer was made with the help of BlueHaxorz. Please consider subscribing to him, and if you want stuff like Antibounce V3, 1 hit 3 far punch, and Mod Fly V3, buy his trainer.")
  946. UDF2.Show()
  947. UDF1.Hide()
  948. function cmdHttpGet(url,file)
  949.   assert(type(url)=='string','has to specific url string')
  950.   file = type(file)=='string' and file or '_dummy.tmp'
  951.   local cmd = string.format([[powershell -command "& { (New-Object Net.WebClient).DownloadFile('%s', '%s') }"]],url,file)
  952.   cmd = assert(io.popen(cmd,'r'))
  953.   cmd:read('*all')
  954.   cmd:close()
  955.   cmd = assert(io.open(file,'rb'))
  956.   local result = cmd:read('*all')
  957.   cmd:close()
  958.   return result
  959. end
  960.  
  961. function gethwid()
  962.   local cmd = [[cmd /C "REG QUERY "HKLM\SYSTEM\CurrentControlSet\Control\IDConfigDB\Hardware Profiles\0001" /z /v HwProfileGuid"]]
  963.   cmd = assert(io.popen(cmd,'r'))
  964.  -- print(string.match(cmd:read('*all'),"({%w+-%w+-%w+-%w+-%w+})"))
  965.   local result = tostring(string.match(cmd:read('*all'),"({%w+-%w+-%w+-%w+-%w+})"))
  966.   cmd:close()
  967.   return result
  968. end
  969.  
  970. function UDF2Panel1Click(sender)
  971. if cmdHttpGet([[http://ansitive.xyz/auth2.php?hwid=]]..gethwid().."&username="..tostring(UDF2.CEEdit1.Text).."&password="..tostring(UDF2.CEEdit2.Text).."&disc1=&disc2=&register=0&ansitive=1") == "Authenticated" then
  972. showMessage("Welcome to ANSITIVE!")
  973. UDF1.Show()
  974. UDF2.Hide()
  975. UDF3.Hide()
  976. elseif cmdHttpGet([[http://ansitive.xyz/auth2.php?hwid=]]..gethwid().."&username="..tostring(UDF2.CEEdit1.Text).."&password="..tostring(UDF2.CEEdit2.Text).."&disc1=&disc2=&register=0&ansitive=1)") == "Wrong" then
  977. showMessage("Wrong username/password!\nDid you register?")
  978. else
  979. showMessage("You're banned from ANSITIVE!")
  980. end
  981. end
  982. function UDF2Panel2Click(sender)
  983. UDF2.Hide()
  984. showMessage("This is a HWID authentacion method. Any attempt at providing a fake discord will get you blacklisted.\nIf you forget your password, there's a really low chance that we'll actually help you.\nYou have been warned.")
  985. UDF3.Show()
  986. end
  987. function UDF3Panel1Click(sender)
  988. if UDF3.CEEdit2.Text ~= UDF3.CEEdit3.Text then showMessage("The passwords should match each other!") return end
  989. if not string.match(UDF3.CEEdit4.Text, "#") then showMessage('The correct context is: Name#0000') return end
  990. if UDF3.CEEdit4.Text == "" or UDF3.CEEdit4.Text == " " or UDF3.CEEdit4.Text == " #" or UDF3.CEEdit4.Text == "# " or UDF3.CEEdit4.Text == "#" then showMessage('The correct context is: Name#0000') return end
  991. if type(UDF3.CEEdit4.Text) ~= "string" then showMessage("Please provide a taggable (a-z, A-Z, 1-9) discord username. If nessesary, change your name.") return end
  992. local disc1 = tostring(string.match(tostring(UDF3.CEEdit4.Text), "%w+"))
  993. local disc2 = tostring(string.gsub(string.match(tostring(UDF3.CEEdit4.Text), "#%w+"), "#", ""))
  994. --print(disc1.."#"..disc2)
  995. if cmdHttpGet([[http://ansitive.xyz/auth2.php?hwid=]]..gethwid().."&username="..tostring(UDF3.CEEdit1.Text).."&password="..tostring(UDF3.CEEdit2.Text).."&disc1="..disc1.."&disc2="..disc2.."&register=1&ansitive=1") == "Registered" then
  996. showMessage("Successfully registered, please log in")
  997. UDF3.Hide()
  998. UDF2.Show()
  999. elseif cmdHttpGet([[http://ansitive.xyz/auth2.php?hwid=]]..gethwid().."&username="..tostring(UDF3.CEEdit1.Text).."&password="..tostring(UDF3.CEEdit2.Text).."&disc1="..disc1.."&disc2="..disc2.."&register=1&ansitive=1") == "Alreadyregistered" then
  1000. showMessage("You're already registered. Please log in.\nForgot your password? Contact Lapada#1337 on discord.")
  1001. UDF3.Hide()
  1002. UDF2.Show()
  1003. else
  1004. showMessage("Something went wrong. Couldn't connect to server.")
  1005. UDF3.Hide()
  1006. UDF2.Show()
  1007. end
  1008. end
  1009. function UDF3Panel2Click(sender)
  1010. UDF3.Hide()
  1011. UDF2.Show()
  1012. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement