Code:
###IDC_Drain By:Kaus###
####Auto Relogs in Game to drain IDC's/Cannons
#######################
logging off
cutText CURRENTLINE $location 1 12
if ($location <> "Command [TL=")
echo ANSI_6 "*[" ANSI_14 "This script must be run from the Command Prompt" ANSI_6 "]*" ANSI_7
halt
end
SetVar $I 1
Echo "**"
GetInput $pw "Whats your password?"
Echo "**"
GetInput $times "How many times?"
Echo "**"
Echo ANSI_11 "Refill Figs Off Planet? (Y/N)"
GetConsoleInput $refill SINGLEKEY
Setdelaytrigger go :go 2000
:go
If ($refill = "Y") or ($refill = "y")
Echo "**"
GetInput $planet "Which Planet To Refill From?"
Else
Send " "
End
:Start
If ($refill = "Y") or ($refill = "y")
Send "l" & $planet & "* m n t * q q y n t* n *"
Else
send "q y n t* n *"
End
waitfor "Password?"
send $pw & "*"
send " a * z n "
WaitFor "Command [TL="
Add $I 1
If ($I = $times)
Goto one
Else
Goto :Start
End
one
logging On
Halt
The Breakdown
logging off
## exactually as it soungs logging off to prevent spam in well the logs
-------=-=-=-=-=-=-=--=-==-
cutText CURRENTLINE $location 1 12
if ($location <> "Command [TL=")
echo ANSI_6 "*[" ANSI_14 "This script must be run from the Command Prompt" ANSI_6 "]*" ANSI_7
halt
end
##Check to see if were at the command prompt
-=-=-=-=-=-=--=-==-=
SetVar $I 1
##Set a VAriable named I to numeric value of 1
-=-=-=-=
Echo "**"
##Send to user screen the character enter twice same as #^M or pressing enter
-=-=--=-=-=-=
GetInput $pw "Whats your password?"
##Get input from user as to what there password is
#And store it to a variable name pw the
#question is in the quotations
=-==-=-=
Echo "**"
GetInput $times "How many times?"
Echo "**"
##Same as above except store how many times to
#execute the script.. this can be any numeric value
#There is not failsafe to check if its actually a number
-=-=-=-=-=-=-
Echo ANSI_11 "Refill Figs Off Planet? (Y/N)"
GetConsoleInput $refill SINGLEKEY
##Send to the terminal the question in quatations
#Then get a SINGLEKEY answer I.E. you can't
#type more than a single character
-=-=-=--=
Setdelaytrigger go :go 2000
:go
#After it recieves the required Y or N answer to the above
# it will pause for 2000 which equals 2 seconds
#the timer runs of 1000=1second so one minute
#would = 60000
-=-=-=-
If ($refill = "Y") or ($refill = "y")
Echo "**"
GetInput $planet "Which Planet To Refill From?"
Else
Send " "
End
#If structure to determine IF the required answer matchs
#what i want from the user which is a Y for yes in
#either captital or lowercase it then asks which planet
#to refill off it if the user typed in any other key it will
#skip this IF statement as it isnt true and as all computers
#they will only recognise true or false staments or 1 and 0
#0's
-=-=-=
:Start
If ($refill = "Y") or ($refill = "y")
Send "l" & $planet & "* m n t * q q y n t* n *"
Else
send "q y n t* n *"
End
##If the user answered yes to refilling the planet
#SEND the sting of keys with a space between them
#As space cancels out all the annoying ascii text/pics
#and speeds up the script
#ELSE send a standard quit without a planet
-=-=-
waitfor "Password?"
send $pw & "*"
send " a * z n "
WaitFor "Command [TL="
Add $I 1
##Tells the script to WAITFOR the word in quotations
#Then send the user password and enter
#send astring to attack any figs that may be inthe sector
#however i added this to actually get through any alien
#msg's and clear through entrance ascii which is why
#no fighters are included in this string
#after it runs it WAITFORS the word in quotations and
#add's 1 to our index variable I
-=-=-=-=
If ($I = $times)
Goto one
Else
Goto :Start
End
one
logging On
Halt
##If our index variable I equals our user defined variable
#times they goto done turn on logging and halt
#ELSE the script will loop to start and add another
#digit to the index counter at the end and check again
-Kaus