maat7043

AddHacks Class (2/1/14)

Feb 1st, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 122.16 KB | None | 0 0
  1. Imports System.Net
  2. Imports System.IO
  3.  
  4. Public Class AddHacks
  5.     ''' Define Public Variable
  6.     Dim swfok As Boolean
  7.     Dim exists As Boolean
  8.     Dim Current As String = Date.Today
  9.     Dim Today As String = Current.Replace("/", "-")
  10.     Dim Length(13) As String
  11.     Dim LinesAndFiles As String = Application.StartupPath & "\LinesAndFiles_" & Today & ".txt"
  12.     Dim Info As StreamWriter
  13.  
  14.     Dim Quote As String = """"
  15.  
  16.     Dim Folder As String = Application.StartupPath & "\AddHacks"
  17.     Dim arytext() As String
  18.     Dim FILE_NAME As String
  19.  
  20.     Dim Hacks As Integer = 23
  21.     ' Create a check for Success
  22.     Dim Success(Hacks) As Boolean
  23.     '' For the parts of each hack
  24.     Dim TempSuccess(5) As Boolean
  25.     Dim Version As String
  26.  
  27.     ' Load
  28.     Private Sub Load_Event(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  29.         ' Form Loading Event
  30.         '   Create a Clients folder for the completed client
  31.         If My.Computer.FileSystem.DirectoryExists(Application.StartupPath & "\Clients") Then
  32.         Else
  33.             My.Computer.FileSystem.CreateDirectory(Application.StartupPath & "\Clients")
  34.         End If
  35.         Button1.Enabled = False
  36.         Button15.Enabled = False
  37.         swfok = False
  38.         exists = False
  39.  
  40.         ' Initialize Success And MOD Arrays
  41.         For i = 1 To Hacks
  42.             Success(i) = False
  43.         Next
  44.         For i = 1 To 5
  45.             Success(i) = False
  46.         Next
  47.     End Sub
  48.     ' File Selector Dialog
  49.     Private Sub File_Selector(sender As System.Object, e As System.EventArgs) Handles Button7.Click
  50.         Dim fd As OpenFileDialog = New OpenFileDialog()
  51.         Dim strFileName As String
  52.         fd.Title = "Open File Dialog"
  53.         fd.InitialDirectory = Application.StartupPath & "\Clients"
  54.         fd.Filter = "Shockwave Flash Objects (*.swf)|*.*"
  55.         fd.FilterIndex = 2
  56.         fd.RestoreDirectory = True
  57.  
  58.         If fd.ShowDialog() = DialogResult.OK Then
  59.             strFileName = fd.FileName
  60.             If InStr(strFileName, ".swf") <> 0 Then
  61.                 TextBox2.Text = strFileName
  62.                 swfok = True
  63.             Else
  64.                 MessageBox.Show("You have to pick a .swf silly...")
  65.             End If
  66.         End If
  67.     End Sub
  68.     ' Back Button
  69.     Private Sub Back_Button(sender As System.Object, e As System.EventArgs) Handles Button8.Click
  70.         ItemSelect.Show()
  71.         Me.Close()
  72.     End Sub
  73.     ' Check to see if an swf is selected and RABCDasm exists
  74.     Private Sub RABCDASM_Exists(sender As System.Object, e As System.EventArgs) Handles Button2.Click
  75.         ' Check to See if RABCDasm Exists
  76.         If My.Computer.FileSystem.DirectoryExists(Application.StartupPath & "\RABCDasm") Then
  77.             exists = True
  78.             RabLBL.Text = "Yes"
  79.             RabLBL.ForeColor = Color.Black
  80.         Else
  81.             MsgBox("Make sure you have the entire RABCDasm folder in the same directory as the application. Click help if you dont understand!", MsgBoxStyle.Critical)
  82.             RabLBL.ForeColor = Color.Red
  83.             RabLBL.Text = "No"
  84.         End If
  85.  
  86.         ' Check to see if the file is a .swf
  87.         If swfok = False Then
  88.             MessageBox.Show("You have to pick a .swf silly...")
  89.         End If
  90.  
  91.         If exists = True And swfok = True Then
  92.             Button15.Enabled = True
  93.         End If
  94.     End Sub
  95.     ' Add Hacks Button
  96.     Private Sub Add_Hacks(sender As System.Object, e As System.EventArgs) Handles Button15.Click
  97.         ' Create a Temporary Folder to build the hacks in
  98.         If TextBox2.Text = "" Then
  99.             MessageBox.Show("You have to pick a .swf silly...")
  100.         Else
  101.             ' Create Folder and copy over RABCDasm
  102.             If My.Computer.FileSystem.DirectoryExists(Folder) Then
  103.                 My.Computer.FileSystem.DeleteDirectory(Folder, FileIO.DeleteDirectoryOption.DeleteAllContents)
  104.             End If
  105.             Dim fullPath As String = Application.StartupPath
  106.             My.Computer.FileSystem.CopyDirectory(fullPath & "\RABCDasm", Folder)
  107.             My.Computer.FileSystem.CopyFile(TextBox2.Text, Folder & "\client.swf", True)
  108.  
  109.             ' Create a batchfile for decompile process
  110.             Decompile()
  111.  
  112.             ' Get Version Number
  113.             GetVersion()
  114.  
  115.             ' Create a new string with all of the Hack lines and files2mod
  116.             File.Create(LinesAndFiles).Dispose()
  117.  
  118.             ' Add Hacks
  119.             Prod()
  120.             ForceLQ()
  121.             QuestDelay()
  122.             FPS()
  123.             LavaWalls()
  124.             Numeric()
  125.             Autonexus()
  126.             Confuse()
  127.             Drunk()
  128.             Blind()
  129.             Hallucinating()
  130.             Unstable()
  131.             Darkness()
  132.             SWTile()
  133.             NecroPart()
  134.             HPBars()
  135.             SWSlow()
  136.             SwSpeed()
  137.             OdomSW()
  138.             RemLoad()
  139.             SpamNot()
  140.             AllyProj()
  141.             TrimJitter()
  142.  
  143.             ' Recompile SWF
  144.             Recompile()
  145.  
  146.             ' Clean up Directory
  147.             My.Computer.FileSystem.CopyFile(Folder & "\client.swf", fullPath & "\Clients\" & Version & "_AIOtool.swf", True)
  148.             My.Computer.FileSystem.DeleteDirectory(Folder, FileIO.DeleteDirectoryOption.DeleteAllContents)
  149.  
  150.             ' Display Messages
  151.             MessageBox.Show("Client is named: " & Version & "_AIOtool.swf" & Environment.NewLine & "It contains all the hacks you selected")
  152.             Button1.Enabled = True
  153.             For i = 1 To Hacks
  154.                 If Success(i) = False And ListBox1.GetSelected(i - 1) = True Then
  155.                     MessageBox.Show("Hack: " & ListBox1.Items(i - 1).ToString & "-> needs to be done manually")
  156.                 End If
  157.             Next
  158.         End If
  159.     End Sub
  160.     ' Decompile
  161.     Private Sub Decompile()
  162.         Dim FILE_NAME As String = Folder & "\decompile.bat"
  163.         Dim aryText(4) As String
  164.         aryText(0) = "cd " & Folder
  165.         aryText(1) = "swfdecompress client.swf"
  166.         aryText(2) = "abcexport client.swf"
  167.         aryText(3) = "rabcdasm client-1.abc"
  168.         Create_Batch(aryText, FILE_NAME)
  169.     End Sub
  170.     ' Get File Version
  171.     Private Sub GetVersion()
  172.         Dim VersionLine As String = ""
  173.         Dim VersionFile As String = Folder & "\client-1\com\company\assembleegameclient\parameters\Parameters.class.asasm"
  174.         Dim VersionCheck As Boolean = False
  175.  
  176.         Using sr As StreamReader = New StreamReader(VersionFile)
  177.             VersionLine = sr.ReadLine
  178.             Do While (Not VersionLine Is Nothing)
  179.  
  180.                 If VersionLine.Contains("/init") Then
  181.                     VersionCheck = True
  182.                 End If
  183.  
  184.                 If VersionLine.Contains("pushstring") And VersionCheck = True Then
  185.                     Version = VersionLine
  186.                     Exit Do
  187.                 End If
  188.  
  189.                 VersionLine = sr.ReadLine
  190.             Loop
  191.         End Using
  192.  
  193.         Version = Version.Split("""")(1)
  194.     End Sub
  195.     ' Connect to Production
  196.     Private Sub Prod()
  197.         If ListBox1.GetSelected(0) = True Then
  198.             Try
  199.                 FILE_NAME = Folder & "\production.bat"
  200.                 Array.Resize(arytext, 4)
  201.                 arytext(0) = "cd " & Folder
  202.                 arytext(1) = "findstr /s /m " & Quote & "Desktop" & Quote & " *class.asasm >results1.txt"
  203.                 arytext(2) = "findstr /m /f:results1.txt " & Quote & "Production" & Quote & " *class.asasm >results2.txt"
  204.                 arytext(3) = "findstr /m /f:results2.txt " & Quote & "Capabilities" & Quote & " *class.asasm >results3.txt"
  205.                 Create_Batch(arytext, FILE_NAME)
  206.  
  207.                 Dim MyFile As String = File.ReadAllText(Folder & "\results3.txt")
  208.                 MyFile = MyFile.Replace(Environment.NewLine, "")
  209.                 Dim NewFile As String = Folder & "\Production.class.asasm"
  210.                 Dim Count As Integer = 1
  211.                 Dim CurrentLine As String = ""
  212.                 Dim RetVal As Integer = 0
  213.  
  214.  
  215.                 'Read for the last instance of returnvalue before Capabilities
  216.                 Using sr As StreamReader = New StreamReader(Folder & "\" & MyFile)
  217.                     CurrentLine = sr.ReadLine
  218.                     Do While (Not CurrentLine Is Nothing)
  219.  
  220.                         If CurrentLine.Contains("Capabilities") Then
  221.                             Exit Do
  222.                         End If
  223.  
  224.                         If CurrentLine.Contains("returnvalue") Then
  225.                             RetVal = Count
  226.                             TempSuccess(2) = True
  227.                         End If
  228.  
  229.                         CurrentLine = sr.ReadLine
  230.                         Count = Count + 1
  231.                     Loop
  232.                 End Using
  233.  
  234.                 Count = 1
  235.  
  236.                 ' Write The Hack lines in
  237.                 Using sr As StreamReader = New StreamReader(Folder & "/" & MyFile)
  238.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  239.                         CurrentLine = sr.ReadLine
  240.                         Do While (Not CurrentLine Is Nothing)
  241.                             Dim LinetoWrite = CurrentLine
  242.  
  243.                             If Count = RetVal Then
  244.                                 sw.WriteLine("      pop")
  245.                                 sw.WriteLine("      pushtrue")
  246.                             End If
  247.  
  248.                             sw.WriteLine(LinetoWrite)
  249.                             Count = Count + 1
  250.                             CurrentLine = sr.ReadLine
  251.                         Loop
  252.                     End Using
  253.                 End Using
  254.  
  255.                 ' Copy the temporary class file back into the clients-1 folder
  256.                 If MyFile <> "" Then
  257.                     TempSuccess(1) = True
  258.                 End If
  259.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  260.                     Success(1) = True
  261.                     My.Computer.FileSystem.CopyFile(NewFile, Folder & "/" & MyFile, True)
  262.                 End If
  263.  
  264.                 ' Write the updated code information
  265.                 Dim Info As StreamWriter
  266.                 Info = File.AppendText(LinesAndFiles)
  267.                 Info.WriteLine("Connect to Production:")
  268.                 Info.WriteLine("Line: " & RetVal - 1)
  269.                 MyFile = MyFile.Replace("client-1\", "")
  270.                 Info.WriteLine(MyFile)
  271.                 Info.WriteLine("")
  272.                 Info.Flush()
  273.                 Info.Close()
  274.             Catch
  275.             End Try
  276.         End If
  277.     End Sub
  278.     ' Force Low Quality
  279.     Private Sub ForceLQ()
  280.         If ListBox1.GetSelected(1) = True Then
  281.             Try
  282.                 Dim MyFile As String = Folder & "\client-1\WebMain.class.asasm"
  283.                 Dim NewFile As String = Folder & "\LowQ.class.asasm"
  284.                 Dim forcelq As String = File.ReadAllText(Folder & "\forcelq.txt")
  285.                 Dim Count As Integer = 1
  286.                 Dim CurrentLine As String = ""
  287.                 Dim Setup As Integer = 0
  288.                 Dim RetVoid As Integer = 0
  289.  
  290.                 Using sr As StreamReader = New StreamReader(MyFile)
  291.                     CurrentLine = sr.ReadLine
  292.                     Do While (Not CurrentLine Is Nothing)
  293.  
  294.                         If CurrentLine.Contains("/setup") Then
  295.                             Setup = Count
  296.                         End If
  297.  
  298.                         If CurrentLine.Contains("returnvoid") Then
  299.                             If Setup <> 0 Then
  300.                                 RetVoid = Count
  301.                                 Exit Do
  302.                             End If
  303.                         End If
  304.  
  305.                         CurrentLine = sr.ReadLine
  306.                         Count = Count + 1
  307.                     Loop
  308.                 End Using
  309.  
  310.                 Count = 1
  311.  
  312.                 Using sr As StreamReader = New StreamReader(MyFile)
  313.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  314.                         CurrentLine = sr.ReadLine
  315.                         Do While (Not CurrentLine Is Nothing)
  316.                             Dim LinetoWrite = CurrentLine
  317.  
  318.                             If Count = RetVoid - 1 Then
  319.                                 sw.WriteLine(forcelq)
  320.                             End If
  321.  
  322.                             sw.WriteLine(LinetoWrite)
  323.                             Count = Count + 1
  324.                             CurrentLine = sr.ReadLine
  325.                         Loop
  326.                     End Using
  327.                 End Using
  328.  
  329.                 For i = 1 To 5
  330.                     TempSuccess(i) = False
  331.                 Next
  332.                 If MyFile <> "" Then
  333.                     TempSuccess(1) = True
  334.                 End If
  335.                 If RetVoid <> 1 Then
  336.                     TempSuccess(2) = True
  337.                 End If
  338.  
  339.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  340.                     Success(2) = True
  341.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  342.                 End If
  343.  
  344.                 Dim Info As StreamWriter
  345.                 Info = File.AppendText(LinesAndFiles)
  346.                 Info.WriteLine("Force Low Quality:")
  347.                 Info.WriteLine("Line: " & RetVoid - 1)
  348.                 Info.WriteLine("WebMain.class.asasm")
  349.                 Info.WriteLine("")
  350.                 Info.Flush()
  351.                 Info.Close()
  352.  
  353.             Catch
  354.             End Try
  355.         End If
  356.     End Sub
  357.     ' No Quest Delay
  358.     Private Sub QuestDelay()
  359.         If ListBox1.GetSelected(2) = True Then
  360.             Try
  361.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\map\Quest.class.asasm"
  362.                 Dim NewFile As String = Folder & "\QNote.class.asasm"
  363.                 Dim LineNum As String = ""
  364.                 Dim Count As Integer = 1
  365.                 Dim CurrentLine As String = ""
  366.                 Dim GetObj As Integer = 0
  367.                 Dim Line As Integer = 0
  368.                 Dim PushScope As Integer = 0
  369.                 Dim Method As String = ""
  370.  
  371.                 For i = 1 To 5
  372.                     TempSuccess(i) = False
  373.                 Next
  374.  
  375.                 Using sr As StreamReader = New StreamReader(MyFile)
  376.                     CurrentLine = sr.ReadLine
  377.                     Do While (Not CurrentLine Is Nothing)
  378.  
  379.                         If CurrentLine.Contains("/getObject") Then
  380.                             GetObj = Count
  381.                             Exit Do
  382.                         End If
  383.  
  384.                         CurrentLine = sr.ReadLine
  385.                         Count = Count + 1
  386.                     Loop
  387.                 End Using
  388.  
  389.                 Count = 1
  390.  
  391.                 Using sr As StreamReader = New StreamReader(MyFile)
  392.                     CurrentLine = sr.ReadLine
  393.                     Do While (Not CurrentLine Is Nothing)
  394.  
  395.                         If CurrentLine.Contains(":") And CurrentLine.IndexOf("L") = 0 Then
  396.                             If Count > GetObj Then
  397.                                 LineNum = CurrentLine
  398.                                 TempSuccess(1) = True
  399.                             End If
  400.                         End If
  401.  
  402.                         If Count > GetObj Then
  403.                             If CurrentLine.Contains("end") Then
  404.                                 Exit Do
  405.                             End If
  406.                         End If
  407.  
  408.                         CurrentLine = sr.ReadLine
  409.                         Count = Count + 1
  410.                     Loop
  411.                 End Using
  412.                 LineNum = LineNum.Replace(":", "")
  413.                 LineNum = "      jump                " & LineNum
  414.  
  415.                 Count = 1
  416.  
  417.                 Using sr As StreamReader = New StreamReader(MyFile)
  418.                     CurrentLine = sr.ReadLine
  419.                     Do While (Not CurrentLine Is Nothing)
  420.  
  421.                         If Count > GetObj Then
  422.                             If CurrentLine.Contains("pushscope") Then
  423.                                 PushScope = Count
  424.                                 Exit Do
  425.                             End If
  426.                         End If
  427.  
  428.                         CurrentLine = sr.ReadLine
  429.                         Count = Count + 1
  430.                     Loop
  431.                 End Using
  432.  
  433.                 Count = 1
  434.  
  435.                 Using sr As StreamReader = New StreamReader(MyFile)
  436.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  437.                         CurrentLine = sr.ReadLine
  438.                         Do While (Not CurrentLine Is Nothing)
  439.                             Dim LinetoWrite = CurrentLine
  440.  
  441.                             If Count = PushScope + 1 Then
  442.                                 sw.WriteLine(LineNum)
  443.                             End If
  444.  
  445.                             sw.WriteLine(LinetoWrite)
  446.                             Count = Count + 1
  447.                             CurrentLine = sr.ReadLine
  448.                         Loop
  449.                     End Using
  450.                 End Using
  451.  
  452.                 ' Check for Success
  453.                 If PushScope <> 1 Then
  454.                     TempSuccess(2) = True
  455.                 End If
  456.  
  457.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  458.                     Success(3) = True
  459.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  460.                 End If
  461.  
  462.                 Dim Info As StreamWriter
  463.                 Info = File.AppendText(LinesAndFiles)
  464.                 Info.WriteLine("No Quest Delay:")
  465.                 Info.WriteLine("Line: " & PushScope)
  466.                 Info.WriteLine("com\company\assembleegameclient\map\Quest.class.asasm")
  467.                 Info.WriteLine("")
  468.                 Info.WriteLine("Updated Code:")
  469.                 Info.WriteLine(LineNum)
  470.                 Info.WriteLine("")
  471.                 Info.Flush()
  472.                 Info.Close()
  473.             Catch
  474.             End Try
  475.         End If
  476.  
  477.     End Sub
  478.     ' FPS Cap to 60
  479.     Private Sub FPS()
  480.         If ListBox1.GetSelected(3) = True Then
  481.             Try
  482.                 Dim MyFile As String = Folder & "\client-1\WebMain.class.asasm"
  483.                 Dim NewFile As String = Folder & "\60fps.class.asasm"
  484.                 Dim forcelq As String = File.ReadAllText(Folder & "\60fps.txt")
  485.                 Dim Count As Integer = 1
  486.                 Dim CurrentLine As String = ""
  487.                 Dim Setup As Integer = 0
  488.                 Dim RetVoid As Integer = 0
  489.  
  490.                 Using sr As StreamReader = New StreamReader(MyFile)
  491.                     CurrentLine = sr.ReadLine
  492.                     Do While (Not CurrentLine Is Nothing)
  493.  
  494.                         If CurrentLine.Contains("/setup") Then
  495.                             Setup = Count
  496.                         End If
  497.  
  498.                         If CurrentLine.Contains("returnvoid") Then
  499.                             If Setup <> 0 Then
  500.                                 RetVoid = Count
  501.                                 Exit Do
  502.                             End If
  503.                         End If
  504.  
  505.                         CurrentLine = sr.ReadLine
  506.                         Count = Count + 1
  507.                     Loop
  508.                 End Using
  509.  
  510.                 Count = 1
  511.  
  512.                 Using sr As StreamReader = New StreamReader(MyFile)
  513.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  514.                         CurrentLine = sr.ReadLine
  515.                         Do While (Not CurrentLine Is Nothing)
  516.                             Dim LinetoWrite = CurrentLine
  517.  
  518.                             If Count = RetVoid - 1 Then
  519.                                 sw.WriteLine(forcelq)
  520.                             End If
  521.  
  522.                             sw.WriteLine(LinetoWrite)
  523.                             Count = Count + 1
  524.                             CurrentLine = sr.ReadLine
  525.                         Loop
  526.                     End Using
  527.                 End Using
  528.  
  529.                 ' Check for Success
  530.                 For i = 1 To 5
  531.                     TempSuccess(i) = False
  532.                 Next
  533.                 If MyFile <> "" Then
  534.                     TempSuccess(1) = True
  535.                 End If
  536.                 If RetVoid <> 1 Then
  537.                     TempSuccess(2) = True
  538.                 End If
  539.  
  540.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  541.                     Success(4) = True
  542.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  543.                 End If
  544.  
  545.                 Dim Info As StreamWriter
  546.                 Info = File.AppendText(LinesAndFiles)
  547.                 Info.WriteLine("Change FPS Cap to 60fps:")
  548.                 If ListBox1.GetSelected(2) = True Then
  549.                     RetVoid = RetVoid - 4
  550.                 End If
  551.                 Info.WriteLine("Line: " & RetVoid - 1)
  552.                 Info.WriteLine("WebMain.class.asasm")
  553.                 Info.WriteLine("")
  554.                 Info.Flush()
  555.                 Info.Close()
  556.  
  557.             Catch
  558.             End Try
  559.         End If
  560.     End Sub
  561.     ' Jnoobs LavaWalls V2
  562.     Private Sub LavaWalls()
  563.         If ListBox1.GetSelected(4) = True Then
  564.             Try
  565.                 Dim FILE_NAME As String = Folder & "\LavaWalls.bat"
  566.                 Array.Resize(arytext, 3)
  567.                 arytext(0) = "cd " & Folder
  568.                 arytext(1) = "findstr /s /m " & Quote & "useAltWeapon" & Quote & " *class.asasm >results10.txt"
  569.                 arytext(2) = "findstr /m /f:results10.txt onMouseDown *class.asasm >results11.txt"
  570.                 Create_Batch(arytext, FILE_NAME)
  571.  
  572.  
  573.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Player.class.asasm"
  574.                 Dim NewFile As String = Folder & "\LavaWalls.class.asasm"
  575.                 Dim LavaWalls As String = File.ReadAllText(Folder & "\lavawalls.txt")
  576.                 Dim Count As Integer = 1
  577.                 Dim CurrentLine As String = ""
  578.                 Dim GetSquare As Integer = 0
  579.                 Dim Check As Boolean = False
  580.  
  581.                 Dim OnMouseDown As String = File.ReadAllText(Folder & "\results11.txt")
  582.                 OnMouseDown = OnMouseDown.Replace(Environment.NewLine, "")
  583.                 Dim MouseClass As String = OnMouseDown
  584.                 Dim Clicked As String = ""
  585.                 OnMouseDown = OnMouseDown.Split("\")(5).Replace(".class.asasm", "")
  586.  
  587.                 Using sr As StreamReader = New StreamReader(Folder & "\" & MouseClass)
  588.                     CurrentLine = sr.ReadLine
  589.                     Do While (Not CurrentLine Is Nothing)
  590.  
  591.                         If CurrentLine.Contains("/onMouseDown") Then
  592.                             Check = True
  593.                         End If
  594.  
  595.                         If Check = True And CurrentLine.Contains("initproperty") Then
  596.                             Clicked = CurrentLine
  597.                             Exit Do
  598.                         End If
  599.  
  600.                         CurrentLine = sr.ReadLine
  601.                         Count = Count + 1
  602.                     Loop
  603.                 End Using
  604.  
  605.                 Dim Temp As String = Clicked.Split(","c)(2).TrimStart(" """.ToCharArray)
  606.                 Clicked = Temp.Substring(0, Temp.IndexOf(""""c))
  607.  
  608.                 LavaWalls = LavaWalls.Replace("Change1", OnMouseDown)
  609.                 LavaWalls = LavaWalls.Replace("Change2", Clicked)
  610.  
  611.                 Count = 1
  612.  
  613.                 Using sr As StreamReader = New StreamReader(MyFile)
  614.                     CurrentLine = sr.ReadLine
  615.                     Do While (Not CurrentLine Is Nothing)
  616.  
  617.                         If CurrentLine.Contains("getSquare") Then
  618.                             GetSquare = Count
  619.                             Exit Do
  620.                         End If
  621.  
  622.                         CurrentLine = sr.ReadLine
  623.                         Count = Count + 1
  624.                     Loop
  625.                 End Using
  626.  
  627.                 Count = 1
  628.  
  629.                 Using sr As StreamReader = New StreamReader(MyFile)
  630.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  631.                         CurrentLine = sr.ReadLine
  632.                         Do While (Not CurrentLine Is Nothing)
  633.                             Dim LinetoWrite = CurrentLine
  634.  
  635.                             If Count = GetSquare + 3 Then
  636.                                 sw.WriteLine(LavaWalls)
  637.                             End If
  638.  
  639.                             sw.WriteLine(LinetoWrite)
  640.                             Count = Count + 1
  641.                             CurrentLine = sr.ReadLine
  642.                         Loop
  643.                     End Using
  644.                 End Using
  645.  
  646.                 For i = 1 To 5
  647.                     TempSuccess(i) = False
  648.                 Next
  649.                 If MyFile <> "" Then
  650.                     TempSuccess(1) = True
  651.                 End If
  652.                 If GetSquare <> 1 Then
  653.                     TempSuccess(2) = True
  654.                 End If
  655.  
  656.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  657.                     Success(5) = True
  658.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  659.                 End If
  660.  
  661.                 Dim Info As StreamWriter
  662.                 Info = File.AppendText(LinesAndFiles)
  663.                 Info.WriteLine("LavaWalls Hack V2:")
  664.                 Info.WriteLine("Line: " & GetSquare + 3)
  665.                 Info.WriteLine("com\company\assembleegameclient\objects\Player.class.asasm")
  666.                 Info.WriteLine("")
  667.                 Info.WriteLine("Code Added:")
  668.                 Info.WriteLine("#set mouseClass     com.company.assembleegameclient.game:" & OnMouseDown)
  669.                 Info.WriteLine("#set mouseClicked   " & Clicked)
  670.                 Info.WriteLine("")
  671.                 Info.Flush()
  672.                 Info.Close()
  673.  
  674.             Catch
  675.             End Try
  676.         End If
  677.     End Sub
  678.     ' Numerical HP/MP/Fame
  679.     Private Sub Numeric()
  680.         If ListBox1.GetSelected(5) = True Then
  681.             Try
  682.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\ui\StatusBar.class.asasm"
  683.                 Dim NewFile As String = Folder & "\Numeric.class.asasm"
  684.                 Dim Numeric As String = File.ReadAllText(Folder & "\numericHpMp.txt")
  685.                 Dim Count As Integer = 1
  686.                 Dim CurrentLine As String = ""
  687.                 Dim Line As Integer = 0
  688.                 Dim Fal As Integer = 0
  689.                 Dim Method As String = ""
  690.  
  691.                 Using sr As StreamReader = New StreamReader(MyFile)
  692.                     CurrentLine = sr.ReadLine
  693.                     Do While (Not CurrentLine Is Nothing)
  694.  
  695.                         If CurrentLine.Contains("False()") Then
  696.                             Method = CurrentLine
  697.                             Fal = Count
  698.                             Exit Do
  699.                         End If
  700.  
  701.                         CurrentLine = sr.ReadLine
  702.                         Count = Count + 1
  703.                     Loop
  704.                 End Using
  705.  
  706.                 Dim Temp As String = Method.Split(","c)(2).TrimStart(" """.ToCharArray)
  707.                 Method = Temp.Substring(0, Temp.IndexOf(""""c))
  708.  
  709.                 Count = 1
  710.  
  711.                 Using sr As StreamReader = New StreamReader(MyFile)
  712.                     CurrentLine = sr.ReadLine
  713.                     Do While (Not CurrentLine Is Nothing)
  714.  
  715.                         If CurrentLine.Contains(Method) Then
  716.                             If Count > Fal Then
  717.                                 Line = Count
  718.                                 Exit Do
  719.                             End If
  720.                         End If
  721.  
  722.                         CurrentLine = sr.ReadLine
  723.                         Count = Count + 1
  724.                     Loop
  725.                 End Using
  726.  
  727.                 Count = 1
  728.  
  729.                 Using sr As StreamReader = New StreamReader(MyFile)
  730.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  731.                         CurrentLine = sr.ReadLine
  732.                         Do While (Not CurrentLine Is Nothing)
  733.                             Dim LinetoWrite = CurrentLine
  734.  
  735.                             If Count = Line + 1 Then
  736.                                 sw.WriteLine(Numeric)
  737.                             End If
  738.  
  739.                             sw.WriteLine(LinetoWrite)
  740.                             Count = Count + 1
  741.                             CurrentLine = sr.ReadLine
  742.                         Loop
  743.                     End Using
  744.                 End Using
  745.  
  746.                 ' Check for Success
  747.                 For i = 1 To 5
  748.                     TempSuccess(i) = False
  749.                 Next
  750.                 If MyFile <> "" Then
  751.                     TempSuccess(1) = True
  752.                 End If
  753.                 If Line <> 1 Then
  754.                     TempSuccess(2) = True
  755.                 End If
  756.  
  757.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  758.                     Success(6) = True
  759.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  760.                 End If
  761.  
  762.                 Dim Info As StreamWriter
  763.                 Info = File.AppendText(LinesAndFiles)
  764.                 Info.WriteLine("Numerical HP/MP/Fame:")
  765.                 Info.WriteLine("Line: " & Line)
  766.                 Info.WriteLine("com\company\assembleegameclient\ui\StatusBar.class.asasm")
  767.                 Info.WriteLine("")
  768.                 Info.Flush()
  769.                 Info.Close()
  770.  
  771.             Catch
  772.             End Try
  773.         End If
  774.     End Sub
  775.     ' AutoNexus
  776.     Private Sub Autonexus()
  777.         If ListBox1.GetSelected(6) = True Then
  778.             Try
  779.                 Dim GameObj As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  780.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Player.class.asasm"
  781.                 Dim NewFile As String = Folder & "\AutoNexus.class.asasm"
  782.                 Dim Nexus As String = File.ReadAllText(Folder & "\autoNexus.txt")
  783.                 Dim Count As Integer = 1
  784.                 Dim CurrentLine As String = ""
  785.                 Dim CharHP As Integer = 0
  786.                 Dim MethodHP As String = ""
  787.                 Dim CharMaxHP As Integer = 0
  788.                 Dim MethodMaxHP As String = ""
  789.                 Dim LastDam As Integer = 0
  790.                 Dim RetVal As Integer = 0
  791.  
  792.                 ' Find Method for Current Player HP
  793.                 Using sr As StreamReader = New StreamReader(GameObj)
  794.                     CurrentLine = sr.ReadLine
  795.                     Do While (Not CurrentLine Is Nothing)
  796.  
  797.                         If CurrentLine.Contains("Integer(200)") Then
  798.                             MethodHP = CurrentLine
  799.                         End If
  800.  
  801.                         CurrentLine = sr.ReadLine
  802.                         Count = Count + 1
  803.                     Loop
  804.                 End Using
  805.  
  806.                 Count = 1
  807.  
  808.                 ' Find Player Max HP
  809.                 Using sr As StreamReader = New StreamReader(GameObj)
  810.                     CurrentLine = sr.ReadLine
  811.                     Do While (Not CurrentLine Is Nothing)
  812.  
  813.                         If CurrentLine.Contains("Integer(200)") Then
  814.                             MethodMaxHP = CurrentLine
  815.                             Exit Do
  816.                         End If
  817.  
  818.                         CurrentLine = sr.ReadLine
  819.                         Count = Count + 1
  820.                     Loop
  821.                 End Using
  822.  
  823.                 ' Trim All but Method Name
  824.                 Dim Temp As String = MethodHP.Split(","c)(2).TrimStart(" """.ToCharArray)
  825.                 MethodHP = Temp.Substring(0, Temp.IndexOf(""""c))
  826.  
  827.                 Temp = MethodMaxHP.Split(","c)(2).TrimStart(" """.ToCharArray)
  828.                 MethodMaxHP = Temp.Substring(0, Temp.IndexOf(""""c))
  829.  
  830.                 ' Replace Methods into code
  831.                 Nexus = Nexus.Replace("CHANGE1", MethodHP)
  832.                 Nexus = Nexus.Replace("CHANGE2", MethodMaxHP)
  833.  
  834.                 ' Check to see if replacements were made
  835.                 For i = 1 To 5
  836.                     TempSuccess(i) = False
  837.                 Next
  838.                 If Nexus.Contains("CHANGE") Then
  839.                 Else
  840.                     TempSuccess(1) = True
  841.                 End If
  842.  
  843.                 Count = 1
  844.  
  845.                 ' Find Line number
  846.                 Using sr As StreamReader = New StreamReader(MyFile)
  847.                     CurrentLine = sr.ReadLine
  848.                     Do While (Not CurrentLine Is Nothing)
  849.  
  850.                         If CurrentLine.Contains("lastDamage_") Then
  851.                             LastDam = Count
  852.                         End If
  853.  
  854.                         CurrentLine = sr.ReadLine
  855.                         Count = Count + 1
  856.                     Loop
  857.                 End Using
  858.  
  859.                 Count = 1
  860.  
  861.                 ' Find Line number
  862.                 Using sr As StreamReader = New StreamReader(MyFile)
  863.                     CurrentLine = sr.ReadLine
  864.                     Do While (Not CurrentLine Is Nothing)
  865.  
  866.                         If CurrentLine.Contains("returnvalue") Then
  867.                             If Count >= LastDam Then
  868.                                 RetVal = Count
  869.                                 Exit Do
  870.                             End If
  871.                         End If
  872.  
  873.                         CurrentLine = sr.ReadLine
  874.                         Count = Count + 1
  875.                     Loop
  876.                 End Using
  877.  
  878.                 Count = 1
  879.  
  880.                 Using sr As StreamReader = New StreamReader(MyFile)
  881.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  882.                         CurrentLine = sr.ReadLine
  883.                         Do While (Not CurrentLine Is Nothing)
  884.                             Dim LinetoWrite = CurrentLine
  885.  
  886.                             If Count = RetVal Then
  887.                                 sw.WriteLine(Nexus)
  888.                             End If
  889.  
  890.                             sw.WriteLine(LinetoWrite)
  891.                             Count = Count + 1
  892.                             CurrentLine = sr.ReadLine
  893.                         Loop
  894.                     End Using
  895.                 End Using
  896.  
  897.                 ' Check Success
  898.                 If MyFile <> "" Then
  899.                     TempSuccess(2) = True
  900.                 End If
  901.                 If RetVal <> 1 Then
  902.                     TempSuccess(3) = True
  903.                 End If
  904.  
  905.                 If TempSuccess(1) = True And TempSuccess(2) = True And TempSuccess(3) = True Then
  906.                     Success(7) = True
  907.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  908.                 End If
  909.  
  910.                 Dim Info As StreamWriter
  911.                 Info = File.AppendText(LinesAndFiles)
  912.                 Info.WriteLine("AutoNexus:")
  913.                 If ListBox1.GetSelected(4) = True Then
  914.                     RetVal = RetVal - 42
  915.                 End If
  916.                 Info.WriteLine("Line: " & RetVal - 1)
  917.                 Info.WriteLine("com\company\assembleegameclient\objects\Player.class.asasm")
  918.                 Info.WriteLine("")
  919.                 Info.WriteLine("Updated Code:")
  920.                 Info.WriteLine("charHp:     " & MethodHP)
  921.                 Info.WriteLine("charMaxHp:  " & MethodMaxHP)
  922.                 Info.WriteLine("")
  923.                 Info.Flush()
  924.                 Info.Close()
  925.  
  926.             Catch
  927.             End Try
  928.         End If
  929.     End Sub
  930.     ' Disable Confuse
  931.     Private Sub Confuse()
  932.         If ListBox1.GetSelected(7) = True Then
  933.             Try
  934.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  935.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  936.                 Dim NewFile As String = Folder & "\Confuse.class.asasm"
  937.                 Dim Confuse As String = ""
  938.                 Dim Count As Integer = 1
  939.                 Dim CurrentLine As String = ""
  940.                 Dim ConfLine As Integer = 0
  941.                 Dim Code As Integer = 0
  942.  
  943.                 Using sr As StreamReader = New StreamReader(CondEff)
  944.                     CurrentLine = sr.ReadLine
  945.                     Do While (Not CurrentLine Is Nothing)
  946.  
  947.                         If CurrentLine.Contains("Confused") Then
  948.                             ConfLine = Count
  949.                             Exit Do
  950.                         End If
  951.  
  952.                         CurrentLine = sr.ReadLine
  953.                         Count = Count + 1
  954.                     Loop
  955.                 End Using
  956.  
  957.                 Count = 1
  958.  
  959.                 Using sr As StreamReader = New StreamReader(CondEff)
  960.                     CurrentLine = sr.ReadLine
  961.                     Do While (Not CurrentLine Is Nothing)
  962.  
  963.                         If Count = ConfLine + 1 Then
  964.                             Confuse = CurrentLine
  965.                         End If
  966.  
  967.                         CurrentLine = sr.ReadLine
  968.                         Count = Count + 1
  969.                     Loop
  970.                 End Using
  971.  
  972.                 Dim Temp As String = Confuse.Split(","c)(2).TrimStart(" """.ToCharArray)
  973.                 Confuse = Temp.Substring(0, Temp.IndexOf(""""c))
  974.  
  975.                 Count = 1
  976.  
  977.                 Using sr As StreamReader = New StreamReader(MyFile)
  978.                     CurrentLine = sr.ReadLine
  979.                     Do While (Not CurrentLine Is Nothing)
  980.  
  981.                         If CurrentLine.Contains("code") Then
  982.                             Code = Count
  983.                         End If
  984.  
  985.                         If CurrentLine.Contains(Confuse) Then
  986.                             Exit Do
  987.                         End If
  988.  
  989.                         CurrentLine = sr.ReadLine
  990.                         Count = Count + 1
  991.                     Loop
  992.                 End Using
  993.  
  994.                 Count = 1
  995.  
  996.                 Using sr As StreamReader = New StreamReader(MyFile)
  997.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  998.                         CurrentLine = sr.ReadLine
  999.                         Do While (Not CurrentLine Is Nothing)
  1000.                             Dim LinetoWrite = CurrentLine
  1001.  
  1002.                             If Count = Code + 1 Then
  1003.                                 sw.WriteLine("pushfalse")
  1004.                                 sw.WriteLine("returnvalue")
  1005.                             End If
  1006.  
  1007.                             sw.WriteLine(LinetoWrite)
  1008.                             Count = Count + 1
  1009.                             CurrentLine = sr.ReadLine
  1010.                         Loop
  1011.                     End Using
  1012.                 End Using
  1013.  
  1014.                 ' Check Success
  1015.                 For i = 1 To 5
  1016.                     TempSuccess(i) = False
  1017.                 Next
  1018.                 If Confuse.Contains("_-") Then
  1019.                     Success(8) = True
  1020.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1021.                 End If
  1022.  
  1023.                 Dim Info As StreamWriter
  1024.                 Info = File.AppendText(LinesAndFiles)
  1025.                 Info.WriteLine("Confuse:")
  1026.                 Info.WriteLine("Line: " & Code)
  1027.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1028.                 Info.WriteLine("")
  1029.                 Info.Flush()
  1030.                 Info.Close()
  1031.  
  1032.             Catch
  1033.             End Try
  1034.         End If
  1035.     End Sub
  1036.     ' Disable Drunk
  1037.     Private Sub Drunk()
  1038.         If ListBox1.GetSelected(8) = True Then
  1039.             Try
  1040.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1041.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  1042.                 Dim NewFile As String = Folder & "\Drunk.class.asasm"
  1043.                 Dim Effect As String = ""
  1044.                 Dim Count As Integer = 1
  1045.                 Dim CurrentLine As String = ""
  1046.                 Dim effLine As Integer = 0
  1047.                 Dim Code As Integer = 0
  1048.  
  1049.                 Using sr As StreamReader = New StreamReader(CondEff)
  1050.                     CurrentLine = sr.ReadLine
  1051.                     Do While (Not CurrentLine Is Nothing)
  1052.  
  1053.                         If CurrentLine.Contains("Drunk") Then
  1054.                             effLine = Count
  1055.                             Exit Do
  1056.                         End If
  1057.  
  1058.                         CurrentLine = sr.ReadLine
  1059.                         Count = Count + 1
  1060.                     Loop
  1061.                 End Using
  1062.  
  1063.                 Count = 1
  1064.  
  1065.                 Using sr As StreamReader = New StreamReader(CondEff)
  1066.                     CurrentLine = sr.ReadLine
  1067.                     Do While (Not CurrentLine Is Nothing)
  1068.  
  1069.                         If Count = effLine + 1 Then
  1070.                             Effect = CurrentLine
  1071.                         End If
  1072.  
  1073.                         CurrentLine = sr.ReadLine
  1074.                         Count = Count + 1
  1075.                     Loop
  1076.                 End Using
  1077.  
  1078.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  1079.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  1080.  
  1081.                 Count = 1
  1082.  
  1083.                 Using sr As StreamReader = New StreamReader(MyFile)
  1084.                     CurrentLine = sr.ReadLine
  1085.                     Do While (Not CurrentLine Is Nothing)
  1086.  
  1087.                         If CurrentLine.Contains("code") Then
  1088.                             Code = Count
  1089.                         End If
  1090.  
  1091.                         If CurrentLine.Contains(Effect) Then
  1092.                             Exit Do
  1093.                         End If
  1094.  
  1095.                         CurrentLine = sr.ReadLine
  1096.                         Count = Count + 1
  1097.                     Loop
  1098.                 End Using
  1099.  
  1100.                 Count = 1
  1101.  
  1102.                 Using sr As StreamReader = New StreamReader(MyFile)
  1103.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1104.                         CurrentLine = sr.ReadLine
  1105.                         Do While (Not CurrentLine Is Nothing)
  1106.                             Dim LinetoWrite = CurrentLine
  1107.  
  1108.                             If Count = Code + 1 Then
  1109.                                 sw.WriteLine("pushfalse")
  1110.                                 sw.WriteLine("returnvalue")
  1111.                             End If
  1112.  
  1113.                             sw.WriteLine(LinetoWrite)
  1114.                             Count = Count + 1
  1115.                             CurrentLine = sr.ReadLine
  1116.                         Loop
  1117.                     End Using
  1118.                 End Using
  1119.  
  1120.                 ' Check Success
  1121.                 For i = 1 To 5
  1122.                     TempSuccess(i) = False
  1123.                 Next
  1124.                 If Effect.Contains("_-") Then
  1125.                     Success(9) = True
  1126.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1127.                 End If
  1128.  
  1129.                 Dim Info As StreamWriter
  1130.                 Info = File.AppendText(LinesAndFiles)
  1131.                 Info.WriteLine("Drunk:")
  1132.                 Info.WriteLine("Line: " & Code)
  1133.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1134.                 Info.WriteLine("")
  1135.                 Info.Flush()
  1136.                 Info.Close()
  1137.  
  1138.             Catch
  1139.             End Try
  1140.         End If
  1141.     End Sub
  1142.     ' Disable Blind
  1143.     Private Sub Blind()
  1144.         If ListBox1.GetSelected(9) = True Then
  1145.             Try
  1146.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1147.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  1148.                 Dim NewFile As String = Folder & "\Blind.class.asasm"
  1149.                 Dim Effect As String = ""
  1150.                 Dim Count As Integer = 1
  1151.                 Dim CurrentLine As String = ""
  1152.                 Dim effLine As Integer = 0
  1153.                 Dim Code As Integer = 0
  1154.  
  1155.                 Using sr As StreamReader = New StreamReader(CondEff)
  1156.                     CurrentLine = sr.ReadLine
  1157.                     Do While (Not CurrentLine Is Nothing)
  1158.  
  1159.                         If CurrentLine.Contains("Blind") Then
  1160.                             effLine = Count
  1161.                             Exit Do
  1162.                         End If
  1163.  
  1164.                         CurrentLine = sr.ReadLine
  1165.                         Count = Count + 1
  1166.                     Loop
  1167.                 End Using
  1168.  
  1169.                 Count = 1
  1170.  
  1171.                 Using sr As StreamReader = New StreamReader(CondEff)
  1172.                     CurrentLine = sr.ReadLine
  1173.                     Do While (Not CurrentLine Is Nothing)
  1174.  
  1175.                         If Count = effLine + 1 Then
  1176.                             Effect = CurrentLine
  1177.                         End If
  1178.  
  1179.                         CurrentLine = sr.ReadLine
  1180.                         Count = Count + 1
  1181.                     Loop
  1182.                 End Using
  1183.  
  1184.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  1185.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  1186.  
  1187.                 Count = 1
  1188.  
  1189.                 Using sr As StreamReader = New StreamReader(MyFile)
  1190.                     CurrentLine = sr.ReadLine
  1191.                     Do While (Not CurrentLine Is Nothing)
  1192.  
  1193.                         If CurrentLine.Contains("code") Then
  1194.                             Code = Count
  1195.                         End If
  1196.  
  1197.                         If CurrentLine.Contains(Effect) Then
  1198.                             Exit Do
  1199.                         End If
  1200.  
  1201.                         CurrentLine = sr.ReadLine
  1202.                         Count = Count + 1
  1203.                     Loop
  1204.                 End Using
  1205.  
  1206.                 Count = 1
  1207.  
  1208.                 Using sr As StreamReader = New StreamReader(MyFile)
  1209.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1210.                         CurrentLine = sr.ReadLine
  1211.                         Do While (Not CurrentLine Is Nothing)
  1212.                             Dim LinetoWrite = CurrentLine
  1213.  
  1214.                             If Count = Code + 1 Then
  1215.                                 sw.WriteLine("pushfalse")
  1216.                                 sw.WriteLine("returnvalue")
  1217.                             End If
  1218.  
  1219.                             sw.WriteLine(LinetoWrite)
  1220.                             Count = Count + 1
  1221.                             CurrentLine = sr.ReadLine
  1222.                         Loop
  1223.                     End Using
  1224.                 End Using
  1225.  
  1226.                 ' Check Success
  1227.                 For i = 1 To 5
  1228.                     TempSuccess(i) = False
  1229.                 Next
  1230.                 If Effect.Contains("_-") Then
  1231.                     Success(10) = True
  1232.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1233.                 End If
  1234.  
  1235.                 Dim Info As StreamWriter
  1236.                 Info = File.AppendText(LinesAndFiles)
  1237.                 Info.WriteLine("Blind:")
  1238.                 Info.WriteLine("Line: " & Code)
  1239.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1240.                 Info.WriteLine("")
  1241.                 Info.Flush()
  1242.                 Info.Close()
  1243.  
  1244.             Catch
  1245.             End Try
  1246.         End If
  1247.     End Sub
  1248.     ' Disable Hallucinating
  1249.     Private Sub Hallucinating()
  1250.         If ListBox1.GetSelected(10) = True Then
  1251.             Try
  1252.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1253.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  1254.                 Dim NewFile As String = Folder & "\Hallucinating.class.asasm"
  1255.                 Dim Effect As String = ""
  1256.                 Dim Count As Integer = 1
  1257.                 Dim CurrentLine As String = ""
  1258.                 Dim effLine As Integer = 0
  1259.                 Dim Code As Integer = 0
  1260.  
  1261.                 Using sr As StreamReader = New StreamReader(CondEff)
  1262.                     CurrentLine = sr.ReadLine
  1263.                     Do While (Not CurrentLine Is Nothing)
  1264.  
  1265.                         If CurrentLine.Contains("Hallucinating") Then
  1266.                             effLine = Count
  1267.                             Exit Do
  1268.                         End If
  1269.  
  1270.                         CurrentLine = sr.ReadLine
  1271.                         Count = Count + 1
  1272.                     Loop
  1273.                 End Using
  1274.  
  1275.                 Count = 1
  1276.  
  1277.                 Using sr As StreamReader = New StreamReader(CondEff)
  1278.                     CurrentLine = sr.ReadLine
  1279.                     Do While (Not CurrentLine Is Nothing)
  1280.  
  1281.                         If Count = effLine + 1 Then
  1282.                             Effect = CurrentLine
  1283.                         End If
  1284.  
  1285.                         CurrentLine = sr.ReadLine
  1286.                         Count = Count + 1
  1287.                     Loop
  1288.                 End Using
  1289.  
  1290.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  1291.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  1292.  
  1293.                 Count = 1
  1294.  
  1295.                 Using sr As StreamReader = New StreamReader(MyFile)
  1296.                     CurrentLine = sr.ReadLine
  1297.                     Do While (Not CurrentLine Is Nothing)
  1298.  
  1299.                         If CurrentLine.Contains("code") Then
  1300.                             Code = Count
  1301.                         End If
  1302.  
  1303.                         If CurrentLine.Contains(Effect) Then
  1304.                             Exit Do
  1305.                         End If
  1306.  
  1307.                         CurrentLine = sr.ReadLine
  1308.                         Count = Count + 1
  1309.                     Loop
  1310.                 End Using
  1311.  
  1312.                 Count = 1
  1313.  
  1314.                 Using sr As StreamReader = New StreamReader(MyFile)
  1315.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1316.                         CurrentLine = sr.ReadLine
  1317.                         Do While (Not CurrentLine Is Nothing)
  1318.                             Dim LinetoWrite = CurrentLine
  1319.  
  1320.                             If Count = Code + 1 Then
  1321.                                 sw.WriteLine("pushfalse")
  1322.                                 sw.WriteLine("returnvalue")
  1323.                             End If
  1324.  
  1325.                             sw.WriteLine(LinetoWrite)
  1326.                             Count = Count + 1
  1327.                             CurrentLine = sr.ReadLine
  1328.                         Loop
  1329.                     End Using
  1330.                 End Using
  1331.  
  1332.                 ' Check Success
  1333.                 For i = 1 To 5
  1334.                     TempSuccess(i) = False
  1335.                 Next
  1336.                 If Effect.Contains("_-") Then
  1337.                     Success(11) = True
  1338.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1339.                 End If
  1340.  
  1341.                 Dim Info As StreamWriter
  1342.                 Info = File.AppendText(LinesAndFiles)
  1343.                 Info.WriteLine("Hallucinating:")
  1344.                 If ListBox1.GetSelected(7) = True Then
  1345.                     Code = Code - 2
  1346.                 End If
  1347.                 If ListBox1.GetSelected(8) = True Then
  1348.                     Code = Code - 2
  1349.                 End If
  1350.                 If ListBox1.GetSelected(9) = True Then
  1351.                     Code = Code - 2
  1352.                 End If
  1353.                 Info.WriteLine("Line: " & Code)
  1354.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1355.                 Info.WriteLine("")
  1356.                 Info.Flush()
  1357.                 Info.Close()
  1358.  
  1359.             Catch
  1360.             End Try
  1361.         End If
  1362.     End Sub
  1363.     ' Disable Unstable
  1364.     Private Sub Unstable()
  1365.         If ListBox1.GetSelected(11) = True Then
  1366.             Try
  1367.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1368.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  1369.                 Dim NewFile As String = Folder & "\Unstable.class.asasm"
  1370.                 Dim Effect As String = ""
  1371.                 Dim Count As Integer = 1
  1372.                 Dim CurrentLine As String = ""
  1373.                 Dim effLine As Integer = 0
  1374.                 Dim Code As Integer = 0
  1375.  
  1376.                 Using sr As StreamReader = New StreamReader(CondEff)
  1377.                     CurrentLine = sr.ReadLine
  1378.                     Do While (Not CurrentLine Is Nothing)
  1379.  
  1380.                         If CurrentLine.Contains("Unstable") Then
  1381.                             effLine = Count
  1382.                             Exit Do
  1383.                         End If
  1384.  
  1385.                         CurrentLine = sr.ReadLine
  1386.                         Count = Count + 1
  1387.                     Loop
  1388.                 End Using
  1389.  
  1390.                 Count = 1
  1391.  
  1392.                 Using sr As StreamReader = New StreamReader(CondEff)
  1393.                     CurrentLine = sr.ReadLine
  1394.                     Do While (Not CurrentLine Is Nothing)
  1395.  
  1396.                         If Count = effLine + 1 Then
  1397.                             Effect = CurrentLine
  1398.                         End If
  1399.  
  1400.                         CurrentLine = sr.ReadLine
  1401.                         Count = Count + 1
  1402.                     Loop
  1403.                 End Using
  1404.  
  1405.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  1406.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  1407.  
  1408.                 Count = 1
  1409.  
  1410.                 Using sr As StreamReader = New StreamReader(MyFile)
  1411.                     CurrentLine = sr.ReadLine
  1412.                     Do While (Not CurrentLine Is Nothing)
  1413.  
  1414.                         If CurrentLine.Contains("code") Then
  1415.                             Code = Count
  1416.                         End If
  1417.  
  1418.                         If CurrentLine.Contains(Effect) Then
  1419.                             Exit Do
  1420.                         End If
  1421.  
  1422.                         CurrentLine = sr.ReadLine
  1423.                         Count = Count + 1
  1424.                     Loop
  1425.                 End Using
  1426.  
  1427.                 Count = 1
  1428.  
  1429.                 Using sr As StreamReader = New StreamReader(MyFile)
  1430.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1431.                         CurrentLine = sr.ReadLine
  1432.                         Do While (Not CurrentLine Is Nothing)
  1433.                             Dim LinetoWrite = CurrentLine
  1434.  
  1435.                             If Count = Code + 1 Then
  1436.                                 sw.WriteLine("pushfalse")
  1437.                                 sw.WriteLine("returnvalue")
  1438.                             End If
  1439.  
  1440.                             sw.WriteLine(LinetoWrite)
  1441.                             Count = Count + 1
  1442.                             CurrentLine = sr.ReadLine
  1443.                         Loop
  1444.                     End Using
  1445.                 End Using
  1446.  
  1447.  
  1448.                 ' Check Success
  1449.                 For i = 1 To 5
  1450.                     TempSuccess(i) = False
  1451.                 Next
  1452.                 If Effect.Contains("_-") Then
  1453.                     Success(12) = True
  1454.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1455.                 End If
  1456.  
  1457.                 Dim Info As StreamWriter
  1458.                 Info = File.AppendText(LinesAndFiles)
  1459.                 Info.WriteLine("Unstable:")
  1460.                 If ListBox1.GetSelected(7) = True Then
  1461.                     Code = Code - 2
  1462.                 End If
  1463.                 If ListBox1.GetSelected(8) = True Then
  1464.                     Code = Code - 2
  1465.                 End If
  1466.                 If ListBox1.GetSelected(9) = True Then
  1467.                     Code = Code - 2
  1468.                 End If
  1469.                 If ListBox1.GetSelected(10) = True Then
  1470.                     Code = Code - 2
  1471.                 End If
  1472.                 Info.WriteLine("Line: " & Code)
  1473.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1474.                 Info.WriteLine("")
  1475.                 Info.Flush()
  1476.                 Info.Close()
  1477.             Catch
  1478.             End Try
  1479.         End If
  1480.  
  1481.     End Sub
  1482.     ' Disable Darkness
  1483.     Private Sub Darkness()
  1484.         If ListBox1.GetSelected(12) = True Then
  1485.             Try
  1486.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1487.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  1488.                 Dim NewFile As String = Folder & "\Darkness.class.asasm"
  1489.                 Dim Effect As String = ""
  1490.                 Dim Count As Integer = 1
  1491.                 Dim CurrentLine As String = ""
  1492.                 Dim effLine As Integer = 0
  1493.                 Dim Code As Integer = 0
  1494.  
  1495.                 Using sr As StreamReader = New StreamReader(CondEff)
  1496.                     CurrentLine = sr.ReadLine
  1497.                     Do While (Not CurrentLine Is Nothing)
  1498.  
  1499.                         If CurrentLine.Contains("Darkness") Then
  1500.                             effLine = Count
  1501.                             Exit Do
  1502.                         End If
  1503.  
  1504.                         CurrentLine = sr.ReadLine
  1505.                         Count = Count + 1
  1506.                     Loop
  1507.                 End Using
  1508.  
  1509.                 Count = 1
  1510.  
  1511.                 Using sr As StreamReader = New StreamReader(CondEff)
  1512.                     CurrentLine = sr.ReadLine
  1513.                     Do While (Not CurrentLine Is Nothing)
  1514.  
  1515.                         If Count = effLine + 1 Then
  1516.                             Effect = CurrentLine
  1517.                         End If
  1518.  
  1519.                         CurrentLine = sr.ReadLine
  1520.                         Count = Count + 1
  1521.                     Loop
  1522.                 End Using
  1523.  
  1524.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  1525.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  1526.  
  1527.                 Count = 1
  1528.  
  1529.                 Using sr As StreamReader = New StreamReader(MyFile)
  1530.                     CurrentLine = sr.ReadLine
  1531.                     Do While (Not CurrentLine Is Nothing)
  1532.  
  1533.                         If CurrentLine.Contains("code") Then
  1534.                             Code = Count
  1535.                         End If
  1536.  
  1537.                         If CurrentLine.Contains(Effect) Then
  1538.                             Exit Do
  1539.                         End If
  1540.  
  1541.                         CurrentLine = sr.ReadLine
  1542.                         Count = Count + 1
  1543.                     Loop
  1544.                 End Using
  1545.  
  1546.                 Count = 1
  1547.  
  1548.                 Using sr As StreamReader = New StreamReader(MyFile)
  1549.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1550.                         CurrentLine = sr.ReadLine
  1551.                         Do While (Not CurrentLine Is Nothing)
  1552.                             Dim LinetoWrite = CurrentLine
  1553.  
  1554.                             If Count = Code + 1 Then
  1555.                                 sw.WriteLine("pushfalse")
  1556.                                 sw.WriteLine("returnvalue")
  1557.                             End If
  1558.  
  1559.                             sw.WriteLine(LinetoWrite)
  1560.                             Count = Count + 1
  1561.                             CurrentLine = sr.ReadLine
  1562.                         Loop
  1563.                     End Using
  1564.                 End Using
  1565.  
  1566.                 ' Check Success
  1567.                 For i = 1 To 5
  1568.                     TempSuccess(i) = False
  1569.                 Next
  1570.                 If Effect.Contains("_-") Then
  1571.                     Success(13) = True
  1572.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1573.                 End If
  1574.  
  1575.                 Dim Info As StreamWriter
  1576.                 Info = File.AppendText(LinesAndFiles)
  1577.                 Info.WriteLine("Darkness:")
  1578.                 If ListBox1.GetSelected(7) = True Then
  1579.                     Code = Code - 2
  1580.                 End If
  1581.                 If ListBox1.GetSelected(8) = True Then
  1582.                     Code = Code - 2
  1583.                 End If
  1584.                 If ListBox1.GetSelected(9) = True Then
  1585.                     Code = Code - 2
  1586.                 End If
  1587.                 If ListBox1.GetSelected(10) = True Then
  1588.                     Code = Code - 2
  1589.                 End If
  1590.                 If ListBox1.GetSelected(11) = True Then
  1591.                     Code = Code - 2
  1592.                 End If
  1593.                 Info.WriteLine("Line: " & Code)
  1594.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  1595.                 Info.WriteLine("")
  1596.                 Info.Flush()
  1597.                 Info.Close()
  1598.  
  1599.             Catch
  1600.             End Try
  1601.         End If
  1602.     End Sub
  1603.     ' SW Tile Hack
  1604.     Private Sub SWTile()
  1605.         If ListBox1.GetSelected(13) = True Then
  1606.             Try
  1607.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Player.class.asasm"
  1608.                 Dim NewFile As String = Folder & "\SWTile.class.asasm"
  1609.                 Dim Tile As String = File.ReadAllText(Folder & "\tileHack.txt")
  1610.                 Dim Count As Integer = 1
  1611.                 Dim CurrentLine As String = ""
  1612.                 Dim push As Integer = 0
  1613.  
  1614.                 Using sr As StreamReader = New StreamReader(MyFile)
  1615.                     CurrentLine = sr.ReadLine
  1616.                     Do While (Not CurrentLine Is Nothing)
  1617.  
  1618.                         If CurrentLine.Contains("push_") Then
  1619.                             ' Check Success
  1620.                             Success(14) = True
  1621.                             push = Count
  1622.                             Exit Do
  1623.                         End If
  1624.  
  1625.                         CurrentLine = sr.ReadLine
  1626.                         Count = Count + 1
  1627.                     Loop
  1628.                 End Using
  1629.  
  1630.                 Count = 1
  1631.  
  1632.                 Using sr As StreamReader = New StreamReader(MyFile)
  1633.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1634.                         CurrentLine = sr.ReadLine
  1635.                         Do While (Not CurrentLine Is Nothing)
  1636.                             Dim LinetoWrite = CurrentLine
  1637.  
  1638.                             If Count = push + 1 Then
  1639.                                 sw.WriteLine(Tile)
  1640.                             End If
  1641.  
  1642.                             sw.WriteLine(LinetoWrite)
  1643.                             Count = Count + 1
  1644.                             CurrentLine = sr.ReadLine
  1645.                         Loop
  1646.                     End Using
  1647.                 End Using
  1648.                 'Check Success
  1649.                 If Success(14) = True Then
  1650.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  1651.                 End If
  1652.  
  1653.                 Dim Info As StreamWriter
  1654.                 Info = File.AppendText(LinesAndFiles)
  1655.                 Info.WriteLine("SW Tile Hack:")
  1656.                 If ListBox1.GetSelected(4) = True Then
  1657.                     push = push - 42
  1658.                 End If
  1659.                 Info.WriteLine("Line: " & push)
  1660.                 Info.WriteLine("com\company\assembleegameclient\objects\Player.class.asasm")
  1661.                 Info.WriteLine("")
  1662.                 Info.Flush()
  1663.                 Info.Close()
  1664.  
  1665.             Catch
  1666.             End Try
  1667.         End If
  1668.     End Sub
  1669.     ' Disable Necromancer Particles
  1670.     Private Sub NecroPart()
  1671.         If ListBox1.GetSelected(14) = True Then
  1672.             Try
  1673.                 FILE_NAME = Folder & "\NoLagro.bat"
  1674.                 Array.Resize(arytext, 2)
  1675.                 arytext(0) = "cd " & Folder
  1676.                 arytext(1) = "findstr /s /m " & Quote & "serverName" & Quote & " *class.asasm >results4.txt"
  1677.                 Create_Batch(arytext, FILE_NAME)
  1678.  
  1679.                 Dim MyFile As String = File.ReadAllText(Folder & "\results4.txt")
  1680.                 MyFile = MyFile.Replace(Environment.NewLine, "")
  1681.                 Dim NewFile As String = Folder & "\NoLagro.class.asasm"
  1682.                 Dim Count As Integer = 1
  1683.                 Dim CurrentLine As String = ""
  1684.                 Dim Label As Integer = 0
  1685.  
  1686.                 ' Initialize Success Array
  1687.                 For i = 1 To 5
  1688.                     TempSuccess(i) = False
  1689.                 Next
  1690.  
  1691.                 Using sr As StreamReader = New StreamReader(Folder & "\" & MyFile)
  1692.                     CurrentLine = sr.ReadLine
  1693.                     Do While (Not CurrentLine Is Nothing)
  1694.  
  1695.                         If CurrentLine.Contains("FlowEffect") Then
  1696.                             TempSuccess(1) = True
  1697.                             Exit Do
  1698.                         End If
  1699.  
  1700.                         If CurrentLine.Contains("label") Then
  1701.                             Label = Count
  1702.                         End If
  1703.  
  1704.                         CurrentLine = sr.ReadLine
  1705.                         Count = Count + 1
  1706.                     Loop
  1707.                 End Using
  1708.                 Count = 1
  1709.                 Using sr As StreamReader = New StreamReader(Folder & "/" & MyFile)
  1710.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  1711.                         CurrentLine = sr.ReadLine
  1712.                         Do While (Not CurrentLine Is Nothing)
  1713.                             Dim LinetoWrite = CurrentLine
  1714.  
  1715.                             If Count = Label + 1 Then
  1716.                                 sw.WriteLine("      returnvoid")
  1717.                             End If
  1718.  
  1719.                             sw.WriteLine(LinetoWrite)
  1720.                             Count = Count + 1
  1721.                             CurrentLine = sr.ReadLine
  1722.                         Loop
  1723.                     End Using
  1724.                 End Using
  1725.  
  1726.                 ' Check Success
  1727.                 If MyFile <> "" Then
  1728.                     TempSuccess(2) = True
  1729.                 End If
  1730.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  1731.                     Success(15) = True
  1732.                     My.Computer.FileSystem.CopyFile(NewFile, Folder & "/" & MyFile, True)
  1733.                 End If
  1734.  
  1735.                 Dim Info As StreamWriter
  1736.                 Info = File.AppendText(LinesAndFiles)
  1737.                 Info.WriteLine("No Necromancer Particles:")
  1738.                 Info.WriteLine("Line: " & Label)
  1739.                 MyFile = MyFile.Replace("client-1\", "")
  1740.                 Info.WriteLine(MyFile)
  1741.                 Info.WriteLine("")
  1742.                 Info.Flush()
  1743.                 Info.Close()
  1744.             Catch
  1745.             End Try
  1746.         End If
  1747.     End Sub
  1748.     ' HP Bars
  1749.     Private Sub HPBars()
  1750.         If ListBox1.GetSelected(15) = True Then
  1751.             Try
  1752.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Character.class.asasm"
  1753.                 Dim NewFile As String = Folder & "\HPBars.class.asasm"
  1754.                 Dim HPBars As String = File.ReadAllText(Folder & "\hpBar.txt")
  1755.                 Dim Count As Integer = 1
  1756.                 Dim CurrentLine As String = ""
  1757.                 Dim CharNS As String = ""
  1758.                 Dim spnsGameObject As String = ""
  1759.                 Dim spnsBasicObject As String = ""
  1760.                 Dim Code As Integer = 0
  1761.  
  1762.                 Using sr As StreamReader = New StreamReader(MyFile)
  1763.                     CurrentLine = sr.ReadLine
  1764.                     Do While (Not CurrentLine Is Nothing)
  1765.  
  1766.                         If CurrentLine.Contains("ProtectedNamespace") Then
  1767.                             CharNS = CurrentLine
  1768.                             Exit Do
  1769.                         End If
  1770.  
  1771.                         CurrentLine = sr.ReadLine
  1772.                         Count = Count + 1
  1773.                     Loop
  1774.                 End Using
  1775.  
  1776.                 Dim Temp As String = CharNS.Split("(")(1).TrimStart("""")
  1777.                 CharNS = Temp.Substring(0, Temp.IndexOf(""""))
  1778.                 HPBars = HPBars.Replace("Change01", CharNS)
  1779.                 Count = 1
  1780.  
  1781.                 Using sr As StreamReader = New StreamReader(Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm")
  1782.                     CurrentLine = sr.ReadLine
  1783.                     Do While (Not CurrentLine Is Nothing)
  1784.  
  1785.                         If CurrentLine.Contains("ProtectedNamespace") Then
  1786.                             spnsGameObject = CurrentLine
  1787.                             Exit Do
  1788.                         End If
  1789.  
  1790.                         CurrentLine = sr.ReadLine
  1791.                         Count = Count + 1
  1792.                     Loop
  1793.                 End Using
  1794.  
  1795.                 Temp = spnsGameObject.Split("(")(1).TrimStart("""")
  1796.                 spnsGameObject = Temp.Substring(0, Temp.IndexOf(""""))
  1797.                 HPBars = HPBars.Replace("Change02", spnsGameObject)
  1798.                 Count = 1
  1799.  
  1800.                 Using sr As StreamReader = New StreamReader(Folder & "\client-1\com\company\assembleegameclient\objects\BasicObject.class.asasm")
  1801.                     CurrentLine = sr.ReadLine
  1802.                     Do While (Not CurrentLine Is Nothing)
  1803.  
  1804.                         If CurrentLine.Contains("ProtectedNamespace") Then
  1805.                             spnsBasicObject = CurrentLine
  1806.                             Exit Do
  1807.                         End If
  1808.  
  1809.                         CurrentLine = sr.ReadLine
  1810.                         Count = Count + 1
  1811.                     Loop
  1812.                 End Using
  1813.  
  1814.                 Temp = spnsBasicObject.Split("(")(1).TrimStart("""")
  1815.                 spnsBasicObject = Temp.Substring(0, Temp.IndexOf(""""))
  1816.                 HPBars = HPBars.Replace("Change03", spnsBasicObject)
  1817.                 Count = 1
  1818.  
  1819.  
  1820.                 FILE_NAME = Folder & "\Util.bat"
  1821.                 Array.Resize(arytext, 2)
  1822.                 arytext(0) = "cd " & Folder & "\client-1\com\company\util"
  1823.                 arytext(1) = "findstr /s /m " & Quote & "MOVE_TO" & Quote & " *class.asasm >results5.txt"
  1824.                 Create_Batch(arytext, FILE_NAME)
  1825.  
  1826.                 My.Computer.FileSystem.MoveFile(Folder & "\client-1\com\company\util\results5.txt", Folder & "\results5.txt", True)
  1827.  
  1828.                 Dim Util As String = File.ReadAllText(Folder & "\results5.txt")
  1829.                 Util = Util.Replace(Environment.NewLine, "")
  1830.                 Dim Utilshort As String = Util.Split(".")(0)
  1831.                 HPBars = HPBars.Replace("Change04", Utilshort)
  1832.  
  1833.                 Dim graphicUtilsCommands As String = ""
  1834.                 Count = 1
  1835.  
  1836.                 Using sr As StreamReader = New StreamReader(Folder & "\client-1\com\company\util\" & Util)
  1837.                     CurrentLine = sr.ReadLine
  1838.                     Do While (Not CurrentLine Is Nothing)
  1839.  
  1840.                         If CurrentLine.Contains("slotid 2") Then
  1841.                             graphicUtilsCommands = CurrentLine
  1842.                             Exit Do
  1843.                         End If
  1844.  
  1845.                         CurrentLine = sr.ReadLine
  1846.                         Count = Count + 1
  1847.                     Loop
  1848.                 End Using
  1849.  
  1850.                 Temp = graphicUtilsCommands.Split(",")(2).TrimStart(" """.ToCharArray)
  1851.                 graphicUtilsCommands = Temp.Substring(0, Temp.IndexOf(""""))
  1852.                 HPBars = HPBars.Replace("Change05", graphicUtilsCommands)
  1853.                 Count = 1
  1854.  
  1855.                 Dim charPos As String = ""
  1856.                 Using sr As StreamReader = New StreamReader(Folder & "\client-1\com\company\assembleegameclient\objects\BasicObject.class.asasm")
  1857.                     CurrentLine = sr.ReadLine
  1858.                     Do While (Not CurrentLine Is Nothing)
  1859.  
  1860.                         If CurrentLine.Contains("sortVal_") Then
  1861.                             Exit Do
  1862.                         End If
  1863.                         charPos = CurrentLine
  1864.  
  1865.                         CurrentLine = sr.ReadLine
  1866.                         Count = Count + 1
  1867.                     Loop
  1868.                 End Using
  1869.  
  1870.                 Temp = charPos.Split(",")(2).TrimStart(" """.ToCharArray)
  1871.                 charPos = Temp.Substring(0, Temp.IndexOf(""""))
  1872.                 HPBars = HPBars.Replace("Change06", charPos)
  1873.                 Count = 1
  1874.  
  1875.                 Dim GameObj As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  1876.                 Dim Player As String = Folder & "\client-1\com\company\assembleegameclient\objects\Player.class.asasm"
  1877.                 Dim MethodHP As String = ""
  1878.                 Dim MethodMaxHP As String = ""
  1879.                 ' Find Method for Current Player HP
  1880.                 Using sr As StreamReader = New StreamReader(GameObj)
  1881.                     CurrentLine = sr.ReadLine
  1882.                     Do While (Not CurrentLine Is Nothing)
  1883.  
  1884.                         If CurrentLine.Contains("Integer(200)") Then
  1885.                             MethodHP = CurrentLine
  1886.                         End If
  1887.  
  1888.                         CurrentLine = sr.ReadLine
  1889.                         Count = Count + 1
  1890.                     Loop
  1891.                 End Using
  1892.  
  1893.                 Count = 1
  1894.  
  1895.                 ' Find Player Max HP
  1896.                 Using sr As StreamReader = New StreamReader(GameObj)
  1897.                     CurrentLine = sr.ReadLine
  1898.                     Do While (Not CurrentLine Is Nothing)
  1899.  
  1900.                         If CurrentLine.Contains("Integer(200)") Then
  1901.                             MethodMaxHP = CurrentLine
  1902.                             Exit Do
  1903.                         End If
  1904.  
  1905.                         CurrentLine = sr.ReadLine
  1906.                         Count = Count + 1
  1907.                     Loop
  1908.                 End Using
  1909.  
  1910.                 ' Trim All but Method Name
  1911.                 Temp = MethodHP.Split(","c)(2).TrimStart(" """.ToCharArray)
  1912.                 MethodHP = Temp.Substring(0, Temp.IndexOf(""""c))
  1913.  
  1914.                 Temp = MethodMaxHP.Split(","c)(2).TrimStart(" """.ToCharArray)
  1915.                 MethodMaxHP = Temp.Substring(0, Temp.IndexOf(""""c))
  1916.  
  1917.                 ' Replace Methods into code
  1918.                 HPBars = HPBars.Replace("Change07", MethodHP)
  1919.                 HPBars = HPBars.Replace("Change08", MethodMaxHP)
  1920.  
  1921.                 Count = 1
  1922.  
  1923.                 Dim PlayerMana As String = ""
  1924.                 Dim PlayerMaxMana As String = ""
  1925.                 Dim Breath As Boolean = False
  1926.  
  1927.                 Using sr As StreamReader = New StreamReader(Player)
  1928.                     CurrentLine = sr.ReadLine
  1929.                     Do While (Not CurrentLine Is Nothing)
  1930.  
  1931.                         If CurrentLine.Contains("breath_") Then
  1932.                             Breath = True
  1933.                         End If
  1934.                         If CurrentLine.Contains("Integer(0)") And Breath = True Then
  1935.                             PlayerMana = CurrentLine
  1936.                             Exit Do
  1937.                         End If
  1938.                         CurrentLine = sr.ReadLine
  1939.                         Count = Count + 1
  1940.                     Loop
  1941.                 End Using
  1942.  
  1943.                 Count = 1
  1944.                 Breath = False
  1945.  
  1946.                 Using sr As StreamReader = New StreamReader(Player)
  1947.                     CurrentLine = sr.ReadLine
  1948.                     Do While (Not CurrentLine Is Nothing)
  1949.  
  1950.                         If CurrentLine.Contains("breath_") Then
  1951.                             Breath = True
  1952.                         End If
  1953.                         If CurrentLine.Contains("Integer(200)") And Breath = True Then
  1954.                             PlayerMaxMana = CurrentLine
  1955.                             Exit Do
  1956.                         End If
  1957.                         CurrentLine = sr.ReadLine
  1958.                         Count = Count + 1
  1959.                     Loop
  1960.                 End Using
  1961.  
  1962.                 Temp = PlayerMana.Split(",")(2).TrimStart(" """.ToCharArray)
  1963.                 PlayerMana = Temp.Substring(0, Temp.IndexOf(""""))
  1964.  
  1965.                 Temp = PlayerMaxMana.Split(",")(2).TrimStart(" """.ToCharArray)
  1966.                 PlayerMaxMana = Temp.Substring(0, Temp.IndexOf(""""))
  1967.  
  1968.                 HPBars = HPBars.Replace("Change09", PlayerMana)
  1969.                 HPBars = HPBars.Replace("Change10", PlayerMaxMana)
  1970.  
  1971.                 Count = 1
  1972.  
  1973.                 Dim Draw As Boolean = False
  1974.                 Dim GameBoard As String = ""
  1975.  
  1976.                 Using sr As StreamReader = New StreamReader(GameObj)
  1977.                     CurrentLine = sr.ReadLine
  1978.                     Do While (Not CurrentLine Is Nothing)
  1979.  
  1980.                         If CurrentLine.Contains("/draw") Then
  1981.                             Draw = True
  1982.                         End If
  1983.  
  1984.                         If CurrentLine.Contains("map") And Draw = True Then
  1985.                             GameBoard = CurrentLine
  1986.                             Exit Do
  1987.                         End If
  1988.  
  1989.                         CurrentLine = sr.ReadLine
  1990.                         Count = Count + 1
  1991.                     Loop
  1992.                 End Using
  1993.  
  1994.                 Temp = GameBoard.Split(",")(1).TrimStart(" """.ToCharArray)
  1995.                 GameBoard = Temp.Substring(0, Temp.IndexOf(""""))
  1996.  
  1997.                 HPBars = HPBars.Replace("Change11", GameBoard)
  1998.  
  1999.                 'Check Success
  2000.                 For i = 1 To 5
  2001.                     TempSuccess(i) = False
  2002.                 Next
  2003.                 If HPBars.Contains("Change") Then
  2004.                 Else
  2005.                     Success(16) = True
  2006.                 End If
  2007.  
  2008.                 Count = 1
  2009.  
  2010.                 Dim Slot As Integer = 0
  2011.  
  2012.                 Using sr As StreamReader = New StreamReader(MyFile)
  2013.                     CurrentLine = sr.ReadLine
  2014.                     Do While (Not CurrentLine Is Nothing)
  2015.  
  2016.                         If CurrentLine.Contains("trait slot") Then
  2017.                             Slot = Count
  2018.                         End If
  2019.  
  2020.                         CurrentLine = sr.ReadLine
  2021.                         Count = Count + 1
  2022.                     Loop
  2023.                 End Using
  2024.  
  2025.                 Count = 1
  2026.  
  2027.                 Using sr As StreamReader = New StreamReader(MyFile)
  2028.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2029.                         CurrentLine = sr.ReadLine
  2030.                         Do While (Not CurrentLine Is Nothing)
  2031.                             Dim LinetoWrite = CurrentLine
  2032.  
  2033.                             If Count = Slot + 1 Then
  2034.                                 sw.WriteLine(HPBars)
  2035.                             End If
  2036.  
  2037.                             sw.WriteLine(LinetoWrite)
  2038.                             Count = Count + 1
  2039.                             CurrentLine = sr.ReadLine
  2040.                         Loop
  2041.                     End Using
  2042.                 End Using
  2043.  
  2044.                 If Success(16) = True Then
  2045.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  2046.                 End If
  2047.  
  2048.                 Dim Info As StreamWriter
  2049.                 Info = File.AppendText(LinesAndFiles)
  2050.                 Info.WriteLine("HP Bars:")
  2051.                 Info.WriteLine("Line: " & Slot)
  2052.                 Info.WriteLine("com/company/assembleegameclient/objects/Character.class.asasm")
  2053.                 Info.WriteLine("")
  2054.                 Info.WriteLine("Updated Code: ")
  2055.  
  2056.                 Dim Check As Boolean = False
  2057.  
  2058.                 Using sr As StreamReader = New StreamReader(NewFile)
  2059.                     CurrentLine = sr.ReadLine
  2060.                     Do While (Not CurrentLine Is Nothing)
  2061.                         Dim LinetoWrite = CurrentLine
  2062.                         If CurrentLine.Contains("#set") And Check = True Then
  2063.                             Info.WriteLine(CurrentLine)
  2064.                         End If
  2065.                         If CurrentLine.Contains(" Guild Hall") Then
  2066.                             Check = True
  2067.                         End If
  2068.  
  2069.                         Count = Count + 1
  2070.                         CurrentLine = sr.ReadLine
  2071.                     Loop
  2072.                 End Using
  2073.                 Info.WriteLine("")
  2074.                 Info.Flush()
  2075.                 Info.Close()
  2076.             Catch
  2077.             End Try
  2078.         End If
  2079.     End Sub
  2080.     ' SW Slow
  2081.     Private Sub SWSlow()
  2082.         If ListBox1.GetSelected(16) = True Then
  2083.             Try
  2084.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\GameObject.class.asasm"
  2085.                 Dim CondEff As String = Folder & "\client-1\com\company\assembleegameclient\util\ConditionEffect.class.asasm"
  2086.                 Dim NewFile As String = Folder & "\SWSlow.class.asasm"
  2087.                 Dim Effect As String = ""
  2088.                 Dim Count As Integer = 1
  2089.                 Dim CurrentLine As String = ""
  2090.                 Dim effLine As Integer = 0
  2091.                 Dim Code As Integer = 0
  2092.                 Dim SWSlow As String = File.ReadAllText(Folder & "\swNoSlow.txt")
  2093.  
  2094.                 ' Initialize Success
  2095.                 For i = 1 To 5
  2096.                     TempSuccess(i) = False
  2097.                 Next
  2098.  
  2099.                 Using sr As StreamReader = New StreamReader(CondEff)
  2100.                     CurrentLine = sr.ReadLine
  2101.                     Do While (Not CurrentLine Is Nothing)
  2102.  
  2103.                         If CurrentLine.Contains("Slow") Then
  2104.                             TempSuccess(1) = True
  2105.                             effLine = Count
  2106.                             Exit Do
  2107.                         End If
  2108.  
  2109.                         CurrentLine = sr.ReadLine
  2110.                         Count = Count + 1
  2111.                     Loop
  2112.                 End Using
  2113.  
  2114.                 Count = 1
  2115.  
  2116.                 Using sr As StreamReader = New StreamReader(CondEff)
  2117.                     CurrentLine = sr.ReadLine
  2118.                     Do While (Not CurrentLine Is Nothing)
  2119.  
  2120.                         If Count = effLine + 1 Then
  2121.                             Effect = CurrentLine
  2122.                         End If
  2123.  
  2124.                         CurrentLine = sr.ReadLine
  2125.                         Count = Count + 1
  2126.                     Loop
  2127.                 End Using
  2128.  
  2129.                 Dim Temp As String = Effect.Split(","c)(2).TrimStart(" """.ToCharArray)
  2130.                 Effect = Temp.Substring(0, Temp.IndexOf(""""c))
  2131.  
  2132.                 Count = 1
  2133.  
  2134.                 Using sr As StreamReader = New StreamReader(MyFile)
  2135.                     CurrentLine = sr.ReadLine
  2136.                     Do While (Not CurrentLine Is Nothing)
  2137.  
  2138.                         If CurrentLine.Contains("pushscope") Then
  2139.                             Code = Count
  2140.                         End If
  2141.  
  2142.                         If CurrentLine.Contains(Effect) Then
  2143.                             Exit Do
  2144.                         End If
  2145.  
  2146.                         CurrentLine = sr.ReadLine
  2147.                         Count = Count + 1
  2148.                     Loop
  2149.                 End Using
  2150.  
  2151.                 Count = 1
  2152.  
  2153.                 Using sr As StreamReader = New StreamReader(MyFile)
  2154.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2155.                         CurrentLine = sr.ReadLine
  2156.                         Do While (Not CurrentLine Is Nothing)
  2157.                             Dim LinetoWrite = CurrentLine
  2158.  
  2159.                             If Count = Code + 1 Then
  2160.                                 sw.WriteLine(SWSlow)
  2161.                             End If
  2162.  
  2163.                             sw.WriteLine(LinetoWrite)
  2164.                             Count = Count + 1
  2165.                             CurrentLine = sr.ReadLine
  2166.                         Loop
  2167.                     End Using
  2168.                 End Using
  2169.  
  2170.                 'Check Success
  2171.                 If TempSuccess(1) = True Then
  2172.                     Success(17) = True
  2173.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  2174.                 End If
  2175.  
  2176.                 Dim Info As StreamWriter
  2177.                 Info = File.AppendText(LinesAndFiles)
  2178.                 Info.WriteLine("Disable SW Slow Effect:")
  2179.                 Info.WriteLine("Line: " & Code)
  2180.                 Info.WriteLine("com\company\assembleegameclient\objects\GameObject.class.asasm")
  2181.                 Info.WriteLine("")
  2182.                 Info.Flush()
  2183.                 Info.Close()
  2184.  
  2185.             Catch
  2186.             End Try
  2187.         End If
  2188.     End Sub
  2189.     ' SW Speed Multiplier
  2190.     Private Sub SwSpeed()
  2191.         If ListBox1.GetSelected(17) = True Then
  2192.             Try
  2193.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Player.class.asasm"
  2194.                 Dim NewFile As String = Folder & "\SWSpeed.class.asasm"
  2195.                 Dim Count As Integer = 1
  2196.                 Dim CurrentLine As String = ""
  2197.                 Dim PreviousLine As String = ""
  2198.                 Dim Check As Boolean = False
  2199.                 Dim Init As String = ""
  2200.                 Dim Props As String = ""
  2201.                 Dim Speed As String = ""
  2202.                 Dim SWSpeed As String = File.ReadAllText(Folder & "\swSpeed.txt")
  2203.  
  2204.                 Using sr As StreamReader = New StreamReader(MyFile)
  2205.                     CurrentLine = sr.ReadLine
  2206.                     Do While (Not CurrentLine Is Nothing)
  2207.  
  2208.                         If CurrentLine.Contains("speed_") And PreviousLine.Contains("props_") Then
  2209.                             Check = True
  2210.                         End If
  2211.  
  2212.                         If CurrentLine.Contains("initproperty") And Check = True Then
  2213.                             Init = CurrentLine
  2214.                             Exit Do
  2215.                         End If
  2216.  
  2217.                         PreviousLine = CurrentLine
  2218.                         CurrentLine = sr.ReadLine
  2219.  
  2220.                         Count = Count + 1
  2221.                     Loop
  2222.                 End Using
  2223.  
  2224.                 Count = 1
  2225.  
  2226.                 Dim Temp As String = Init.Split("(")(2).TrimStart("""".ToCharArray)
  2227.                 Props = Temp.Substring(0, Temp.IndexOf(""""c))
  2228.                 SWSpeed = SWSpeed.Replace("Change1", Props)
  2229.  
  2230.                 Temp = Init.Split(","c)(1).TrimStart(" """.ToCharArray)
  2231.                 Speed = Temp.Substring(0, Temp.IndexOf(""""c))
  2232.                 SWSpeed = SWSpeed.Replace("Change2", Speed)
  2233.  
  2234.                 ' Check Success
  2235.                 For i = 1 To 5
  2236.                     TempSuccess(i) = False
  2237.                 Next
  2238.                 If SWSpeed.Contains("Change") Then
  2239.                 Else
  2240.                     Success(18) = True
  2241.                 End If
  2242.  
  2243.                 Count = 1
  2244.                 Check = False
  2245.                 Dim Line As Integer = 0
  2246.  
  2247.                 Using sr As StreamReader = New StreamReader(MyFile)
  2248.                     CurrentLine = sr.ReadLine
  2249.                     Do While (Not CurrentLine Is Nothing)
  2250.  
  2251.                         If CurrentLine.Contains("dy_") Then
  2252.                             Line = Count
  2253.                         End If
  2254.  
  2255.                         CurrentLine = sr.ReadLine
  2256.                         Count = Count + 1
  2257.                     Loop
  2258.                 End Using
  2259.  
  2260.                 Count = 1
  2261.                 Dim NewLine As Integer = 1
  2262.  
  2263.                 Using sr As StreamReader = New StreamReader(MyFile)
  2264.                     CurrentLine = sr.ReadLine
  2265.                     Do While (Not CurrentLine Is Nothing)
  2266.  
  2267.                         If Count > Line And CurrentLine.Contains("update") Then
  2268.                             Exit Do
  2269.                         End If
  2270.  
  2271.                         If Count > Line And CurrentLine.Contains("multiply") Then
  2272.                             NewLine = Count
  2273.                         End If
  2274.  
  2275.                         CurrentLine = sr.ReadLine
  2276.                         Count = Count + 1
  2277.                     Loop
  2278.                 End Using
  2279.  
  2280.                 Count = 1
  2281.  
  2282.                 Using sr As StreamReader = New StreamReader(MyFile)
  2283.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2284.                         CurrentLine = sr.ReadLine
  2285.                         Do While (Not CurrentLine Is Nothing)
  2286.                             Dim LinetoWrite = CurrentLine
  2287.  
  2288.                             If Count = NewLine + 1 Then
  2289.                                 sw.WriteLine(SWSpeed)
  2290.                             End If
  2291.  
  2292.                             sw.WriteLine(LinetoWrite)
  2293.                             Count = Count + 1
  2294.                             CurrentLine = sr.ReadLine
  2295.                         Loop
  2296.                     End Using
  2297.                 End Using
  2298.  
  2299.                 If ListBox1.GetSelected(4) = True Then
  2300.                     NewLine = NewLine - 42
  2301.                 End If
  2302.                 If ListBox1.GetSelected(13) = True Then
  2303.                     NewLine = NewLine - 2
  2304.                 End If
  2305.  
  2306.                 If Success(18) = True Then
  2307.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  2308.                 End If
  2309.  
  2310.                 Dim Info As StreamWriter
  2311.                 Info = File.AppendText(LinesAndFiles)
  2312.                 Info.WriteLine("Modify Speed in SW:")
  2313.                 Info.WriteLine("Line: " & NewLine)
  2314.                 Info.WriteLine("com\company\assembleegameclient\objects\Player.class.asasm")
  2315.                 Info.WriteLine("")
  2316.                 Info.WriteLine("Update Code:")
  2317.                 Info.WriteLine("#set Props    " & Props)
  2318.                 Info.WriteLine("#set Speed    " & Speed)
  2319.                 Info.WriteLine("")
  2320.                 Info.Flush()
  2321.                 Info.Close()
  2322.             Catch
  2323.             End Try
  2324.         End If
  2325.     End Sub
  2326.     ' Odom Style SW
  2327.     Private Sub OdomSW()
  2328.         If ListBox1.GetSelected(18) = True Then
  2329.             Try
  2330.                 Dim CurrentLine As String = ""
  2331.                 Dim Trees As String = Folder & "\client-30.bin"
  2332.                 Dim NewTrees As String = Folder & "\Trees.bin"
  2333.  
  2334.                 FILE_NAME = Folder & "\XML.bat"
  2335.                 Array.Resize(arytext, 4)
  2336.                 arytext(0) = "cd " & Folder
  2337.                 arytext(1) = "swfdecompress client.swf"
  2338.                 arytext(2) = "swfbinexport client.swf"
  2339.                 arytext(3) = "rabcdasm client-1.abc"
  2340.                 Create_Batch(arytext, FILE_NAME)
  2341.  
  2342.                 Dim Count As Integer = 1
  2343.                 Dim Line1 As Integer = 1
  2344.                 Dim Line2 As Integer = 1
  2345.                 Dim Line3 As Integer = 1
  2346.                 Dim Line4 As Integer = 1
  2347.                 Dim Line5 As Integer = 1
  2348.                 Dim Line6 As Integer = 1
  2349.                 Dim Obj As Integer = 1
  2350.  
  2351.                 ' Initialize Success Array
  2352.                 For i = 1 To 5
  2353.                     TempSuccess(i) = False
  2354.                 Next
  2355.  
  2356.                 Using sr As StreamReader = New StreamReader(Trees)
  2357.                     CurrentLine = sr.ReadLine
  2358.                     Do While (Not CurrentLine Is Nothing)
  2359.  
  2360.                         If Line1 <> 1 And CurrentLine.Contains("</Object>") Then
  2361.                             Obj = Count
  2362.                             Exit Do
  2363.                         End If
  2364.  
  2365.                         If CurrentLine.Contains("White Sprite Tree") Then
  2366.                             TempSuccess(1) = True
  2367.                             Line1 = Count
  2368.                         End If
  2369.  
  2370.  
  2371.                         CurrentLine = sr.ReadLine
  2372.                         Count = Count + 1
  2373.                     Loop
  2374.                 End Using
  2375.  
  2376.                 Count = 1
  2377.  
  2378.                 Using sr As StreamReader = New StreamReader(Trees)
  2379.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2380.                         CurrentLine = sr.ReadLine
  2381.                         Do While (Not CurrentLine Is Nothing)
  2382.                             Dim LinetoWrite = CurrentLine
  2383.  
  2384.                             If Count >= Line1 And Count <= Obj Then
  2385.                                 If CurrentLine.Contains("<Static/>") Then
  2386.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2387.                                 ElseIf CurrentLine.Contains("<File>") Then
  2388.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2389.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2390.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2391.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2392.                                     sw.WriteLine("      <Size>40</Size>")
  2393.                                 Else
  2394.                                     sw.WriteLine(LinetoWrite)
  2395.                                 End If
  2396.                             Else
  2397.                                 sw.WriteLine(LinetoWrite)
  2398.                             End If
  2399.  
  2400.                             Count = Count + 1
  2401.                             CurrentLine = sr.ReadLine
  2402.                         Loop
  2403.                     End Using
  2404.                 End Using
  2405.  
  2406.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2407.                 Count = 1
  2408.  
  2409.                 Using sr As StreamReader = New StreamReader(Trees)
  2410.                     CurrentLine = sr.ReadLine
  2411.                     Do While (Not CurrentLine Is Nothing)
  2412.  
  2413.                         If Line2 > 1 And CurrentLine.Contains("</Object>") Then
  2414.                             Obj = Count
  2415.                             Exit Do
  2416.                         End If
  2417.  
  2418.                         If CurrentLine.Contains("Green Sprite Tree") Then
  2419.                             Line2 = Count
  2420.                         End If
  2421.  
  2422.  
  2423.                         CurrentLine = sr.ReadLine
  2424.                         Count = Count + 1
  2425.                     Loop
  2426.                 End Using
  2427.  
  2428.                 Count = 1
  2429.  
  2430.                 Using sr As StreamReader = New StreamReader(Trees)
  2431.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2432.                         CurrentLine = sr.ReadLine
  2433.                         Do While (Not CurrentLine Is Nothing)
  2434.                             Dim LinetoWrite = CurrentLine
  2435.  
  2436.                             If Count >= Line2 And Count <= Obj Then
  2437.                                 If CurrentLine.Contains("<Static/>") Then
  2438.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2439.                                 ElseIf CurrentLine.Contains("<File>") Then
  2440.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2441.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2442.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2443.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2444.                                     sw.WriteLine("      <Size>40</Size>")
  2445.                                 Else
  2446.                                     sw.WriteLine(LinetoWrite)
  2447.                                 End If
  2448.                             Else
  2449.                                 sw.WriteLine(LinetoWrite)
  2450.                             End If
  2451.                             Count = Count + 1
  2452.                             CurrentLine = sr.ReadLine
  2453.                         Loop
  2454.                     End Using
  2455.                 End Using
  2456.  
  2457.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2458.                 Count = 1
  2459.  
  2460.                 Using sr As StreamReader = New StreamReader(Trees)
  2461.                     CurrentLine = sr.ReadLine
  2462.                     Do While (Not CurrentLine Is Nothing)
  2463.  
  2464.                         If Line3 > 1 And CurrentLine.Contains("</Object>") Then
  2465.                             Obj = Count
  2466.                             Exit Do
  2467.                         End If
  2468.  
  2469.                         If CurrentLine.Contains("Yellow Sprite Tree") Then
  2470.                             Line3 = Count
  2471.                         End If
  2472.  
  2473.  
  2474.                         CurrentLine = sr.ReadLine
  2475.                         Count = Count + 1
  2476.                     Loop
  2477.                 End Using
  2478.  
  2479.                 Count = 1
  2480.  
  2481.                 Using sr As StreamReader = New StreamReader(Trees)
  2482.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2483.                         CurrentLine = sr.ReadLine
  2484.                         Do While (Not CurrentLine Is Nothing)
  2485.                             Dim LinetoWrite = CurrentLine
  2486.  
  2487.                             If Count >= Line3 And Count <= Obj Then
  2488.                                 If CurrentLine.Contains("<Static/>") Then
  2489.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2490.                                 ElseIf CurrentLine.Contains("<File>") Then
  2491.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2492.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2493.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2494.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2495.                                     sw.WriteLine("      <Size>40</Size>")
  2496.                                 Else
  2497.                                     sw.WriteLine(LinetoWrite)
  2498.                                 End If
  2499.                             Else
  2500.                                 sw.WriteLine(LinetoWrite)
  2501.                             End If
  2502.                             Count = Count + 1
  2503.                             CurrentLine = sr.ReadLine
  2504.                         Loop
  2505.                     End Using
  2506.                 End Using
  2507.  
  2508.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2509.                 Count = 1
  2510.  
  2511.                 Using sr As StreamReader = New StreamReader(Trees)
  2512.                     CurrentLine = sr.ReadLine
  2513.                     Do While (Not CurrentLine Is Nothing)
  2514.  
  2515.                         If Line4 > 1 And CurrentLine.Contains("</Object>") Then
  2516.                             Obj = Count
  2517.                             Exit Do
  2518.                         End If
  2519.  
  2520.                         If CurrentLine.Contains("Purple Sprite Tree") Then
  2521.                             Line4 = Count
  2522.                         End If
  2523.  
  2524.  
  2525.                         CurrentLine = sr.ReadLine
  2526.                         Count = Count + 1
  2527.                     Loop
  2528.                 End Using
  2529.  
  2530.                 Count = 1
  2531.  
  2532.                 Using sr As StreamReader = New StreamReader(Trees)
  2533.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2534.                         CurrentLine = sr.ReadLine
  2535.                         Do While (Not CurrentLine Is Nothing)
  2536.                             Dim LinetoWrite = CurrentLine
  2537.  
  2538.                             If Count >= Line4 And Count <= Obj Then
  2539.                                 If CurrentLine.Contains("<Static/>") Then
  2540.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2541.                                 ElseIf CurrentLine.Contains("<File>") Then
  2542.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2543.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2544.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2545.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2546.                                     sw.WriteLine("      <Size>40</Size>")
  2547.                                 Else
  2548.                                     sw.WriteLine(LinetoWrite)
  2549.                                 End If
  2550.                             Else
  2551.                                 sw.WriteLine(LinetoWrite)
  2552.                             End If
  2553.                             Count = Count + 1
  2554.                             CurrentLine = sr.ReadLine
  2555.                         Loop
  2556.                     End Using
  2557.                 End Using
  2558.  
  2559.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2560.                 Count = 1
  2561.  
  2562.                 Using sr As StreamReader = New StreamReader(Trees)
  2563.                     CurrentLine = sr.ReadLine
  2564.                     Do While (Not CurrentLine Is Nothing)
  2565.  
  2566.                         If Line5 > 1 And CurrentLine.Contains("</Object>") Then
  2567.                             Obj = Count
  2568.                             Exit Do
  2569.                         End If
  2570.  
  2571.                         If CurrentLine.Contains("Red Sprite Tree") Then
  2572.                             Line5 = Count
  2573.                         End If
  2574.  
  2575.  
  2576.                         CurrentLine = sr.ReadLine
  2577.                         Count = Count + 1
  2578.                     Loop
  2579.                 End Using
  2580.  
  2581.                 Count = 1
  2582.  
  2583.                 Using sr As StreamReader = New StreamReader(Trees)
  2584.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2585.                         CurrentLine = sr.ReadLine
  2586.                         Do While (Not CurrentLine Is Nothing)
  2587.                             Dim LinetoWrite = CurrentLine
  2588.  
  2589.                             If Count >= Line5 And Count <= Obj Then
  2590.                                 If CurrentLine.Contains("<Static/>") Then
  2591.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2592.                                 ElseIf CurrentLine.Contains("<File>") Then
  2593.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2594.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2595.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2596.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2597.                                     sw.WriteLine("      <Size>40</Size>")
  2598.                                 Else
  2599.                                     sw.WriteLine(LinetoWrite)
  2600.                                 End If
  2601.                             Else
  2602.                                 sw.WriteLine(LinetoWrite)
  2603.                             End If
  2604.                             Count = Count + 1
  2605.                             CurrentLine = sr.ReadLine
  2606.                         Loop
  2607.                     End Using
  2608.                 End Using
  2609.  
  2610.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2611.                 Count = 1
  2612.  
  2613.                 Using sr As StreamReader = New StreamReader(Trees)
  2614.                     CurrentLine = sr.ReadLine
  2615.                     Do While (Not CurrentLine Is Nothing)
  2616.  
  2617.                         If Line6 > 1 And CurrentLine.Contains("</Object>") Then
  2618.                             Obj = Count
  2619.                             Exit Do
  2620.                         End If
  2621.  
  2622.                         If CurrentLine.Contains("Blue Sprite Tree") Then
  2623.                             Line6 = Count
  2624.                         End If
  2625.  
  2626.  
  2627.                         CurrentLine = sr.ReadLine
  2628.                         Count = Count + 1
  2629.                     Loop
  2630.                 End Using
  2631.  
  2632.                 Count = 1
  2633.  
  2634.                 Using sr As StreamReader = New StreamReader(Trees)
  2635.                     Using sw As StreamWriter = New StreamWriter(NewTrees)
  2636.                         CurrentLine = sr.ReadLine
  2637.                         Do While (Not CurrentLine Is Nothing)
  2638.                             Dim LinetoWrite = CurrentLine
  2639.  
  2640.                             If Count >= Line6 And Count <= Obj Then
  2641.                                 If CurrentLine.Contains("<Static/>") Then
  2642.                                 ElseIf CurrentLine.Contains("<Enemy/>") Then
  2643.                                 ElseIf CurrentLine.Contains("<File>") Then
  2644.                                     sw.WriteLine("         <File>lofiChar28x8</File>")
  2645.                                 ElseIf CurrentLine.Contains("<Index>") Then
  2646.                                     sw.WriteLine("         <Index>0x1a</Index>")
  2647.                                 ElseIf CurrentLine.Contains("<Size>") Then
  2648.                                     sw.WriteLine("      <Size>40</Size>")
  2649.                                 Else
  2650.                                     sw.WriteLine(LinetoWrite)
  2651.                                 End If
  2652.                             Else
  2653.                                 sw.WriteLine(LinetoWrite)
  2654.                             End If
  2655.                             Count = Count + 1
  2656.                             CurrentLine = sr.ReadLine
  2657.                         Loop
  2658.                     End Using
  2659.                 End Using
  2660.  
  2661.                 My.Computer.FileSystem.CopyFile(NewTrees, Trees, True)
  2662.  
  2663.                 Dim Tiles As String = Folder & "\client-27.bin"
  2664.                 Dim NewTiles As String = Folder & "\NewTiles.bin"
  2665.                 Dim Check As Boolean = False
  2666.  
  2667.                 Count = 1
  2668.  
  2669.                 Using sr As StreamReader = New StreamReader(Tiles)
  2670.                     Using sw As StreamWriter = New StreamWriter(NewTiles)
  2671.                         CurrentLine = sr.ReadLine
  2672.                         Do While (Not CurrentLine Is Nothing)
  2673.                             Dim LinetoWrite = CurrentLine
  2674.  
  2675.                             If CurrentLine.Contains("White Alpha Square") Then
  2676.                                 TempSuccess(2) = True
  2677.                                 Check = True
  2678.                             End If
  2679.                             If Check = True And CurrentLine.Contains("<Index>0x31</Index>") Then
  2680.                                 sw.WriteLine("         <Index>0x30</Index>")
  2681.                             ElseIf Check = True And CurrentLine.Contains("<Index>0x32</Index>") Then
  2682.                                 sw.WriteLine("         <Index>0x30</Index>")
  2683.                             ElseIf Check = True And CurrentLine.Contains("<Index>0x33</Index>") Then
  2684.                                 sw.WriteLine("         <Index>0x30</Index>")
  2685.                             ElseIf Check = True And CurrentLine.Contains("<Index>0x34</Index>") Then
  2686.                                 sw.WriteLine("         <Index>0x30</Index>")
  2687.                             ElseIf Check = True And CurrentLine.Contains("<Index>0x35</Index>") Then
  2688.                                 sw.WriteLine("         <Index>0x30</Index>")
  2689.                             ElseIf Check = True And CurrentLine.Contains("</Animate>") Then
  2690.                                 ' Do nothing and skip line
  2691.                             ElseIf CurrentLine.Contains("0xad") Then
  2692.                                 sw.WriteLine(CurrentLine)
  2693.                                 Check = False
  2694.                             Else
  2695.                                 sw.WriteLine(LinetoWrite)
  2696.                             End If
  2697.  
  2698.                             Count = Count + 1
  2699.                             CurrentLine = sr.ReadLine
  2700.                         Loop
  2701.                     End Using
  2702.                 End Using
  2703.  
  2704.                 My.Computer.FileSystem.CopyFile(NewTiles, Tiles, True)
  2705.  
  2706.                 FILE_NAME = Folder & "\XML_Recompile.bat"
  2707.                 Array.Resize(arytext, 3)
  2708.                 arytext(0) = "cd " & Folder
  2709.                 arytext(1) = "swfbinreplace client.swf 30 client-30.bin"
  2710.                 arytext(2) = "swfbinreplace client.swf 27 client-27.bin"
  2711.                 Create_Batch(arytext, FILE_NAME)
  2712.  
  2713.                 If TempSuccess(1) = True And TempSuccess(2) = True Then
  2714.                     Success(19) = True
  2715.                     Dim Info As StreamWriter
  2716.                     Info = File.AppendText(LinesAndFiles)
  2717.                     Info.WriteLine("All Tiles SW Tiles are White and the trees have been replaced with Valentines")
  2718.                     Info.WriteLine("")
  2719.                     Info.Flush()
  2720.                     Info.Close()
  2721.                 End If
  2722.             Catch
  2723.             End Try
  2724.         End If
  2725.     End Sub
  2726.     ' Remove Loading Screen
  2727.     Private Sub RemLoad()
  2728.         If ListBox1.GetSelected(19) = True Then
  2729.             Try
  2730.                 FILE_NAME = Folder & "\NoLoading.bat"
  2731.                 Array.Resize(arytext, 2)
  2732.                 arytext(0) = "cd " & Folder
  2733.                 arytext(1) = "findstr /s /m " & Quote & "indicator_" & Quote & " *class.asasm >results6.txt"
  2734.                 Create_Batch(arytext, FILE_NAME)
  2735.  
  2736.                 Dim MyFile As String = File.ReadAllText(Folder & "\results6.txt")
  2737.                 MyFile = MyFile.Replace(Environment.NewLine, "")
  2738.                 Dim NewFile As String = Folder & "\NoLoading.class.asasm"
  2739.                 Dim Count As Integer = 1
  2740.                 Dim CurrentLine As String = ""
  2741.                 Dim TraitMethod As Boolean = False
  2742.                 Dim Code As Integer = 0
  2743.  
  2744.                 Using sr As StreamReader = New StreamReader(Folder & "\" & MyFile)
  2745.                     CurrentLine = sr.ReadLine
  2746.                     Do While (Not CurrentLine Is Nothing)
  2747.  
  2748.                         If CurrentLine.Contains("trait method") Then
  2749.                             TraitMethod = True
  2750.                         End If
  2751.  
  2752.                         If CurrentLine.Contains("pushfalse") And TraitMethod = True Then
  2753.                             Code = Count
  2754.                             Exit Do
  2755.                         End If
  2756.  
  2757.                         CurrentLine = sr.ReadLine
  2758.                         Count = Count + 1
  2759.                     Loop
  2760.                 End Using
  2761.  
  2762.                 Count = 1
  2763.  
  2764.                 Using sr As StreamReader = New StreamReader(Folder & "/" & MyFile)
  2765.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2766.                         CurrentLine = sr.ReadLine
  2767.                         Do While (Not CurrentLine Is Nothing)
  2768.                             Dim LinetoWrite = CurrentLine
  2769.  
  2770.                             If Count = Code + 1 Then
  2771.                                 sw.WriteLine("")
  2772.                                 sw.WriteLine("      returnvoid")
  2773.                                 sw.WriteLine("")
  2774.                             End If
  2775.  
  2776.                             sw.WriteLine(LinetoWrite)
  2777.                             Count = Count + 1
  2778.                             CurrentLine = sr.ReadLine
  2779.                         Loop
  2780.                     End Using
  2781.                 End Using
  2782.  
  2783.                 ' Check Success
  2784.                 If MyFile <> "" Then
  2785.                     Success(20) = True
  2786.                     My.Computer.FileSystem.CopyFile(NewFile, Folder & "/" & MyFile, True)
  2787.                 End If
  2788.                 Dim Info As StreamWriter
  2789.                 Info = File.AppendText(LinesAndFiles)
  2790.                 Info.WriteLine("Remove Loading Screen:")
  2791.                 Info.WriteLine("Line: " & Code)
  2792.                 MyFile = MyFile.Replace("client-1\", "")
  2793.                 Info.WriteLine(MyFile)
  2794.                 Info.WriteLine("")
  2795.                 Info.Flush()
  2796.                 Info.Close()
  2797.             Catch
  2798.             End Try
  2799.         End If
  2800.     End Sub
  2801.     ' Allow Spammable Notifications
  2802.     Private Sub SpamNot()
  2803.         If ListBox1.GetSelected(20) = True Then
  2804.             Try
  2805.                 FILE_NAME = Folder & "\SpamNot.bat"
  2806.                 Array.Resize(arytext, 3)
  2807.                 arytext(0) = "cd " & Folder & "/client-1"
  2808.                 arytext(1) = "findstr /s /m addQueuedText *class.asasm >results7.txt"
  2809.                 arytext(2) = "findstr /m /f:results7.txt addStatusText *class.asasm >results8.txt"
  2810.                 Create_Batch(arytext, FILE_NAME)
  2811.  
  2812.                 My.Computer.FileSystem.CopyFile(Folder & "\client-1\results8.txt", Folder & "\results8.txt", True)
  2813.  
  2814.                 Dim MyFile As String = File.ReadAllText(Folder & "\results8.txt")
  2815.                 MyFile = MyFile.Replace(Environment.NewLine, "")
  2816.                 Dim NewFile As String = Folder & "\SpamNot.class.asasm"
  2817.                 Dim Count As Integer = 1
  2818.                 Dim CurrentLine As String = ""
  2819.                 Dim AddQued As Boolean = False
  2820.                 Dim Code As Integer = 0
  2821.  
  2822.                 Using sr As StreamReader = New StreamReader(Folder & "\client-1\" & MyFile)
  2823.                     CurrentLine = sr.ReadLine
  2824.                     Do While (Not CurrentLine Is Nothing)
  2825.  
  2826.                         If CurrentLine.Contains("/addQueuedText") Then
  2827.                             Success(21) = True
  2828.                             AddQued = True
  2829.                         End If
  2830.  
  2831.                         If CurrentLine.Contains("inclocal_i") And AddQued = True Then
  2832.                             If CurrentLine.Contains("5") Then
  2833.                                 Code = Count
  2834.                                 Exit Do
  2835.                             End If
  2836.                         End If
  2837.  
  2838.                         CurrentLine = sr.ReadLine
  2839.                         Count = Count + 1
  2840.                     Loop
  2841.                 End Using
  2842.  
  2843.                 Count = 1
  2844.  
  2845.                 Using sr As StreamReader = New StreamReader(Folder & "/client-1/" & MyFile)
  2846.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2847.                         CurrentLine = sr.ReadLine
  2848.                         Do While (Not CurrentLine Is Nothing)
  2849.                             Dim LinetoWrite = CurrentLine
  2850.  
  2851.                             If Count = Code + 2 Then
  2852.                                 sw.WriteLine("      pop")
  2853.                                 sw.WriteLine("      pushfalse")
  2854.                             End If
  2855.  
  2856.                             sw.WriteLine(LinetoWrite)
  2857.                             Count = Count + 1
  2858.                             CurrentLine = sr.ReadLine
  2859.                         Loop
  2860.                     End Using
  2861.                 End Using
  2862.  
  2863.                 If Success(21) = True Then
  2864.                     My.Computer.FileSystem.CopyFile(NewFile, Folder & "/client-1/" & MyFile, True)
  2865.                 End If
  2866.  
  2867.                 Dim Info As StreamWriter
  2868.                 Info = File.AppendText(LinesAndFiles)
  2869.                 Info.WriteLine("Allow Spammable Notifications:")
  2870.                 Info.WriteLine("Line: " & Code + 2)
  2871.                 MyFile = MyFile.Replace("client-1\", "")
  2872.                 Info.WriteLine(MyFile)
  2873.                 Info.WriteLine("")
  2874.                 Info.Flush()
  2875.                 Info.Close()
  2876.             Catch
  2877.             End Try
  2878.         End If
  2879.     End Sub
  2880.     ' Disable Ally Projectiles
  2881.     Private Sub AllyProj()
  2882.         If ListBox1.GetSelected(21) = True Then
  2883.             Try
  2884.                 Dim MyFile As String = Folder & "\client-1\com\company\assembleegameclient\objects\Projectile.class.asasm"
  2885.                 Dim NewFile As String = Folder & "\AllyProj.class.asasm"
  2886.                 Dim Count As Integer = 1
  2887.                 Dim CurrentLine As String = ""
  2888.                 Dim ownBullet As String = ""
  2889.                 Dim Check As Boolean = False
  2890.                 Dim noAlly As String = File.ReadAllText(Folder & "\noAlly.txt")
  2891.  
  2892.                 Using sr As StreamReader = New StreamReader(MyFile)
  2893.                     CurrentLine = sr.ReadLine
  2894.                     Do While (Not CurrentLine Is Nothing)
  2895.  
  2896.                         If Check = True Then
  2897.                             ownBullet = CurrentLine
  2898.                             Exit Do
  2899.                         End If
  2900.  
  2901.                         If CurrentLine.Contains("bulletType_") Then
  2902.                             Check = True
  2903.                         End If
  2904.  
  2905.                         CurrentLine = sr.ReadLine
  2906.                         Count = Count + 1
  2907.                     Loop
  2908.                 End Using
  2909.  
  2910.                 Dim Temp As String = ownBullet.Split(",")(2).TrimStart(" """.ToCharArray)
  2911.                 ownBullet = Temp.Substring(0, Temp.IndexOf(""""))
  2912.                 noAlly = noAlly.Replace("Change1", ownBullet)
  2913.  
  2914.                 If noAlly.Contains("Change") Then
  2915.                 Else
  2916.                     Success(22) = True
  2917.                 End If
  2918.  
  2919.                 Count = 1
  2920.  
  2921.                 Check = False
  2922.                 Dim Draw As Integer = 1
  2923.                 Dim DrawShadow As Integer = 1
  2924.  
  2925.                 Using sr As StreamReader = New StreamReader(MyFile)
  2926.                     CurrentLine = sr.ReadLine
  2927.                     Do While (Not CurrentLine Is Nothing)
  2928.  
  2929.                         If Check = True And CurrentLine.Contains("pushscope") Then
  2930.                             Draw = Count
  2931.                             Exit Do
  2932.                         End If
  2933.  
  2934.                         If CurrentLine.Contains("/draw" & Quote) Then
  2935.                             Check = True
  2936.                         End If
  2937.  
  2938.                         CurrentLine = sr.ReadLine
  2939.                         Count = Count + 1
  2940.                     Loop
  2941.                 End Using
  2942.  
  2943.                 Count = 1
  2944.  
  2945.                 Using sr As StreamReader = New StreamReader(MyFile)
  2946.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2947.                         CurrentLine = sr.ReadLine
  2948.                         Do While (Not CurrentLine Is Nothing)
  2949.                             Dim LinetoWrite = CurrentLine
  2950.  
  2951.                             If Count = Draw + 2 Then
  2952.                                 sw.WriteLine(noAlly)
  2953.                             End If
  2954.  
  2955.                             sw.WriteLine(LinetoWrite)
  2956.                             Count = Count + 1
  2957.                             CurrentLine = sr.ReadLine
  2958.                         Loop
  2959.                     End Using
  2960.                 End Using
  2961.  
  2962.                 My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  2963.                 Check = False
  2964.                 Count = 1
  2965.  
  2966.                 Using sr As StreamReader = New StreamReader(MyFile)
  2967.                     CurrentLine = sr.ReadLine
  2968.                     Do While (Not CurrentLine Is Nothing)
  2969.  
  2970.                         If Check = True And CurrentLine.Contains("pushscope") Then
  2971.                             DrawShadow = Count
  2972.                             Exit Do
  2973.                         End If
  2974.  
  2975.                         If CurrentLine.Contains("/drawShadow" & Quote) Then
  2976.                             Check = True
  2977.                         End If
  2978.  
  2979.                         CurrentLine = sr.ReadLine
  2980.                         Count = Count + 1
  2981.                     Loop
  2982.                 End Using
  2983.  
  2984.                 Count = 1
  2985.  
  2986.                 Using sr As StreamReader = New StreamReader(MyFile)
  2987.                     Using sw As StreamWriter = New StreamWriter(NewFile)
  2988.                         CurrentLine = sr.ReadLine
  2989.                         Do While (Not CurrentLine Is Nothing)
  2990.                             Dim LinetoWrite = CurrentLine
  2991.  
  2992.                             If Count = DrawShadow + 2 Then
  2993.                                 sw.WriteLine(noAlly)
  2994.                             End If
  2995.  
  2996.                             sw.WriteLine(LinetoWrite)
  2997.                             Count = Count + 1
  2998.                             CurrentLine = sr.ReadLine
  2999.                         Loop
  3000.                     End Using
  3001.                 End Using
  3002.  
  3003.                 If Success(22) = True Then
  3004.                     My.Computer.FileSystem.CopyFile(NewFile, MyFile, True)
  3005.                 End If
  3006.  
  3007.                 Dim Info As StreamWriter
  3008.                 Info = File.AppendText(LinesAndFiles)
  3009.                 Info.WriteLine("No Ally Projectiles:")
  3010.                 Info.WriteLine("Line: " & Draw + 1)
  3011.                 Info.WriteLine("Line: " & DrawShadow - 17)
  3012.                 Info.WriteLine("com\company\assembleegameclient\objects\Projectile.class.asasm")
  3013.                 Info.WriteLine("")
  3014.                 Info.WriteLine("Updated Code: ")
  3015.                 Info.WriteLine("#set ownBullet       " & ownBullet)
  3016.                 Info.WriteLine("")
  3017.                 Info.Flush()
  3018.                 Info.Close()
  3019.             Catch
  3020.             End Try
  3021.         End If
  3022.     End Sub
  3023.     ' Trim Net Jitter
  3024.     Private Sub TrimJitter()
  3025.             If ListBox1.GetSelected(22) = True Then
  3026.                 Try
  3027.                     FILE_NAME = Folder & "\Jitter.bat"
  3028.                     Array.Resize(arytext, 2)
  3029.                     arytext(0) = "cd " & Folder
  3030.                     arytext(1) = "findstr /s /m :JitterWatcher *class.asasm >results9.txt"
  3031.                     Create_Batch(arytext, FILE_NAME)
  3032.  
  3033.                     Dim MyFile As String = File.ReadAllText(Folder & "\results9.txt")
  3034.                     MyFile = MyFile.Replace(Environment.NewLine, "")
  3035.                     Dim NewFile As String = Folder & "\Jitter.class.asasm"
  3036.                     Dim Roundjitter As String = File.ReadAllText(Folder & "\Roundjitter.txt")
  3037.                     Dim Count As Integer = 1
  3038.                     Dim CurrentLine As String = ""
  3039.                     Dim jitter As Boolean = False
  3040.                     Dim RetVal As Integer = 1
  3041.  
  3042.                     Using sr As StreamReader = New StreamReader(Folder & "\" & MyFile)
  3043.                         CurrentLine = sr.ReadLine
  3044.                         Do While (Not CurrentLine Is Nothing)
  3045.  
  3046.                             If CurrentLine.Contains("/cinit") Then
  3047.                                 Exit Do
  3048.                             End If
  3049.  
  3050.                             If CurrentLine.Contains("/jitter") Then
  3051.                                 Success(23) = True
  3052.                                 jitter = True
  3053.                             End If
  3054.  
  3055.                             If CurrentLine.Contains("returnvalue") And jitter = True Then
  3056.                                 RetVal = Count
  3057.                             End If
  3058.  
  3059.                             CurrentLine = sr.ReadLine
  3060.                             Count = Count + 1
  3061.                         Loop
  3062.                     End Using
  3063.  
  3064.                     Count = 1
  3065.  
  3066.                     Using sr As StreamReader = New StreamReader(Folder & "\" & MyFile)
  3067.                         Using sw As StreamWriter = New StreamWriter(NewFile)
  3068.                             CurrentLine = sr.ReadLine
  3069.                             Do While (Not CurrentLine Is Nothing)
  3070.                                 Dim LinetoWrite = CurrentLine
  3071.  
  3072.                                 If Count = RetVal Then
  3073.                                     sw.WriteLine(Roundjitter)
  3074.                                 End If
  3075.  
  3076.                                 sw.WriteLine(LinetoWrite)
  3077.                                 Count = Count + 1
  3078.                                 CurrentLine = sr.ReadLine
  3079.                             Loop
  3080.                         End Using
  3081.                     End Using
  3082.  
  3083.                     If Success(23) = True Then
  3084.                         My.Computer.FileSystem.CopyFile(NewFile, Folder & "\" & MyFile, True)
  3085.                     End If
  3086.  
  3087.                 Dim Info As StreamWriter
  3088.                 Info = File.AppendText(LinesAndFiles)
  3089.                 Info.WriteLine("Round Net Jitter:")
  3090.                 Info.WriteLine("Line: " & RetVal - 1)
  3091.                 MyFile = MyFile.Replace("client-1\", "")
  3092.                 Info.WriteLine(MyFile)
  3093.                 Info.WriteLine("")
  3094.                 Info.Flush()
  3095.                 Info.Close()
  3096.             Catch
  3097.             End Try
  3098.             End If
  3099.     End Sub
  3100.     ' Recompile SWF
  3101.     Private Sub Recompile()
  3102.         Dim FILE_NAME As String = Folder & "\recompile.bat"
  3103.         Dim aryText(3) As String
  3104.         aryText(0) = "cd " & Folder
  3105.         aryText(1) = "rabcasm client-1\client-1.main.asasm"
  3106.         aryText(2) = "abcreplace client.swf 1 client-1\client-1.main.abc"
  3107.         Create_Batch(aryText, FILE_NAME)
  3108.     End Sub
  3109.     ' Create And Run Batch Files
  3110.     Public Sub Create_Batch(aryText() As String, FileName As String)
  3111.         Dim objWriter As New System.IO.StreamWriter(FileName, False)
  3112.         For i = 0 To aryText.Length - 1
  3113.             objWriter.WriteLine(aryText(i))
  3114.         Next
  3115.         objWriter.Close()
  3116.  
  3117.         Dim Process As New Process
  3118.         Dim ps As New ProcessStartInfo(FileName)
  3119.         ps.RedirectStandardError = True
  3120.         ps.RedirectStandardOutput = True
  3121.         ps.CreateNoWindow = False
  3122.         ps.WindowStyle = ProcessWindowStyle.Hidden
  3123.         ps.UseShellExecute = False
  3124.         Process.StartInfo = ps
  3125.         Process.Start()
  3126.         Process.WaitForExit()
  3127.     End Sub
  3128.     'Show Code Updates
  3129.     Private Sub Code_Updates(sender As System.Object, e As System.EventArgs) Handles Button1.Click
  3130.         Process.Start(LinesAndFiles)
  3131.     End Sub
  3132. End Class
Add Comment
Please, Sign In to add comment