Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- $Form2 = GUICreate("BitQuest seller helper changelog", 627, 382, 192, 124)
- $Label1c = GUICtrlCreateLabel("ChangeLog", 256, 8, 103, 32)
- GUICtrlSetFont(-1, 15, 400, 0, "Segoe UI Historic")
- $Label2c = GUICtrlCreateLabel("V1.0 Added the main boxes (Selling for pieces bits) and SELL button", 32, 64, 325, 17)
- $Label3c = GUICtrlCreateLabel("V1.1 Fixed message sometimes not sending correctly", 32, 88, 252, 17)
- $Label4c = GUICtrlCreateLabel("V1.2 Fixed message not adding a ! at the beggining", 32, 112, 246, 17)
- $Label5c = GUICtrlCreateLabel("V1.3 Added the Add ! before message option (before the player could talk only globally)", 32, 136, 413, 17)
- $Label6c = GUICtrlCreateLabel("V1.4 Added the Press enter when done option (before the player had to send the message by himself)", 32, 160, 481, 17)
- $Label7c = GUICtrlCreateLabel("V1.5 Overall aspect tweaks", 32, 184, 134, 17)
- $Label8c = GUICtrlCreateLabel("V1.6 Added the Spam it! Option", 32, 208, 153, 17)
- $Label9c = GUICtrlCreateLabel("V1.7 Added the Times option (before the message would not stop and script would have crashed)", 32, 232, 463, 17)
- $Label10c = GUICtrlCreateLabel("V1.8 Added the delay functions (due to player being kicked)", 32, 256, 286, 17)
- $Label11c = GUICtrlCreateLabel("V1.9 Added this changelog", 32, 280, 132, 17)
- $Label12c = GUICtrlCreateLabel("V2.0 Fixed that annoying bug where you could send empty boxes (selling for / bits)", 32, 304, 500, 17)
- $Label13c = GUICtrlCreateLabel("V2.1 Fixed that annoying bug where you could send empty boxes to the spam it option, crashing the script", 32, 328, 500, 17)
- #Region ### START Koda GUI section ### Form=
- $Form1 = GUICreate("BitQuest seller helper", 615, 200, 192, 154)
- GUISwitch($Form1)
- $LabelCreds = GUICtrlCreateLabel("Created by mattiamarziali22", 2, 187, 130, 17)
- $ButtonCHG = GUICtrlCreateButton("Changelog", 506, 180, 109, 20)
- $LabelTip1 = GUICtrlCreateLabel("TIP: Around 1700 won't kick you!", 124, 159, 200, 17)
- $Label1 = GUICtrlCreateLabel("Watcha selling?", 232, 8, 149, 30)
- GUICtrlSetFont(-1, 15, 400, 0, "Yu Gothic")
- $Label2 = GUICtrlCreateLabel("Im selling: ", 24, 64, 53, 17)
- $Input1 = GUICtrlCreateInput("0", 80, 64, 121, 21) ;Item box
- $Label3 = GUICtrlCreateLabel("for", 216, 64, 16, 17)
- $Input2 = GUICtrlCreateInput("0", 240, 64, 121, 21) ;pieces box
- $Label4 = GUICtrlCreateLabel("pieces", 368, 64, 35, 17)
- $Input3 = GUICtrlCreateInput("0", 408, 64, 121, 21) ;bits box
- $Label5 = GUICtrlCreateLabel("bits", 536, 64, 20, 17)
- $Button1 = GUICtrlCreateButton("SELL!", 208, 96, 169, 25)
- GUICtrlSetFont(-1, 14, 400, 0, "HelvLight")
- GUISetFont(12, 400, 0, "Segoe UI Historic")
- $Radio1 = GUICtrlCreateCheckbox("Add ! before message", 8, 96, 193, 27)
- $Radio2 = GUICtrlCreateCheckbox("Press enter when done", 400, 96, 193, 27)
- $Radio3 = GUICtrlCreateCheckbox("Spam it Delay:", 8, 134, 143, 24)
- $LaPrebel6 = GUICtrlCreateLabel("milliseconds Times:", 276, 135, 200, 17)
- GUISetFont(10, 400, 0, "Segoe UI Historic")
- $Input4 = GUICtrlCreateInput("", 430, 137, 121, 21) ;Times
- $Input5 = GUICtrlCreateInput("", 150, 137, 121, 21) ;Delay
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Run("taskmgr.exe")
- ProcessClose("taskmgr.exe")
- Exit
- Case $Button1
- local $string = GUICtrlRead($Input1), $string1 = GUICtrlRead($Input2), $string2 = GUICtrlRead($Input3), $true = GUICtrlRead($Radio1)
- Local $true2 = GUICtrlRead($Radio2), $spam = GUICtrlRead($Radio3), $delay = GUICtrlRead($Input5)
- Local $times = GUICtrlRead($Input4), $i = 0, $ok = 1
- if($string = '0' AND $string1 = 0 AND $string2 = 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave all the boxes blank!", 3)
- EndIf
- if($string <> '0' AND $string1 <> 0 AND $string2 = 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the bits box blank!", 3)
- EndIf
- if($string <> '0' AND $string1 = 0 AND $string2 <> 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the pieces box blank!", 3)
- EndIf
- if($string <> '0' AND $string1 = 0 AND $string2 = 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the bits box and the pieces blank!", 3)
- EndIf
- if($string = '0' AND $string1 <> 0 AND $string2 <> 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the item box blank!", 3)
- EndIf
- if($string = '0' AND $string1 <> 0 AND $string2 = 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the item box and the bits box blank!", 3)
- EndIf
- if($string = '0' AND $string1 = 0 AND $string2 <> 0) Then
- $ok = 0
- MsgBox(16, "Error!", "I am sorry but you cannot leave the item box and the pieces blank!", 3)
- EndIf
- if($spam = 1 AND $ok = 1) Then
- if($delay = 0 or $times = 0) Then
- MsgBox(16, "Error!", "Oops! You forgot to fulfill one of your boxes! (either delay or time)", 3)
- EndIf
- if($delay <> 0 AND $times <> 0) Then
- MsgBox(1, "Message", "Now go into minecraft and open your chat! Delete the slash thing! You got 3 seconds!")
- Sleep(3000)
- while $i < $times
- if $true == 1 Then
- Send("{!}")
- EndIf
- Send("Hey everyone! I am selling: " & $string & " for the amazing price of: " & $string1 & "/" & $string2 & " bits!")
- if $true2 = 1 Then
- Sleep(100)
- Send("{ENTER}")
- Send("{!}")
- EndIf
- Sleep($delay)
- $i = $i + 1
- Send("T")
- Sleep(100)
- WEnd
- EndIf
- EndIf
- if($spam <> 1 AND $ok = 1) Then
- MsgBox(1, "Message", "Now go into minecraft and open your chat! Delete the slash thing! You got 3 seconds!")
- Sleep(3000)
- if $true = 1 Then
- Send("{!}")
- EndIf
- Send("Hey everyone! I am selling: " & $string & " for the amazing price of: " & $string1 & "/" & $string2 & " bits!")
- if $true2 == 1 Then
- Sleep(100)
- Send("{ENTER}")
- Send("{!}")
- EndIf
- EndIf
- Case $ButtonCHG
- GUISwitch($Form2)
- GUISetState(@SW_SHOW)
- While 1
- $nMsg1 = GUIGetMsg()
- Switch $nMsg1
- Case $GUI_EVENT_CLOSE
- GUISetState(@SW_HIDE)
- GUISwitch($Form1)
- ExitLoop
- EndSwitch
- WEnd
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement