Public dxArray(11, 4) As Long
Public dyArray(11, 4) As Long
Private Const StarString As String = "http://www.neopets.com/altador/astro.phtml?star_submit="
Dim Constellations(2 To 13) As String
Sub Main()
dxArray(0, 0) = 40: dxArray(0, 1) = 80: dxArray(0, 2) = 120: dxArray(0, 3) = 160: dxArray(0, 4) = 200
dxArray(1, 0) = 60: dxArray(1, 1) = 120: dxArray(1, 2) = 130: dxArray(1, 3) = 190: dxArray(1, 4) = 110
dxArray(2, 0) = 20: dxArray(2, 1) = 80: dxArray(2, 2) = 160: dxArray(2, 3) = 140: dxArray(2, 4) = 80
dxArray(3, 0) = 140: dxArray(3, 1) = 10: dxArray(3, 2) = 120: dxArray(3, 3) = 160: dxArray(3, 4) = 80
dxArray(4, 0) = 60: dxArray(4, 1) = 120: dxArray(4, 2) = 0: dxArray(4, 3) = 60: dxArray(4, 4) = 120
dxArray(5, 0) = 50: dxArray(5, 1) = 170: dxArray(5, 2) = 200: dxArray(5, 3) = 190: dxArray(5, 4) = 140
dxArray(6, 0) = 70: dxArray(6, 1) = 140: dxArray(6, 2) = 40: dxArray(6, 3) = 70: dxArray(6, 4) = 100
dxArray(7, 0) = 10: dxArray(7, 1) = 100: dxArray(7, 2) = 100: dxArray(7, 3) = 190: dxArray(7, 4) = 200
dxArray(8, 0) = 40: dxArray(8, 1) = 20: dxArray(8, 2) = 40: dxArray(8, 3) = -50: dxArray(8, 4) = -60
dxArray(9, 0) = 40: dxArray(9, 1) = -30: dxArray(9, 2) = 10: dxArray(9, 3) = 110: dxArray(9, 4) = 120
dxArray(10, 0) = -70: dxArray(10, 1) = 70: dxArray(10, 2) = 0: dxArray(10, 3) = 0: dxArray(10, 4) = -130
dxArray(11, 0) = 10: dxArray(11, 1) = 120: dxArray(11, 2) = 160: dxArray(11, 3) = 170: dxArray(11, 4) = 200
dyArray(0, 0) = -30: dyArray(0, 1) = -60: dyArray(0, 2) = -60: dyArray(0, 3) = -30: dyArray(0, 4) = 0
dyArray(1, 0) = -20: dyArray(1, 1) = 0: dyArray(1, 2) = 40: dyArray(1, 3) = 60: dyArray(1, 4) = -90
dyArray(2, 0) = 60: dyArray(2, 1) = 80: dyArray(2, 2) = 0: dyArray(2, 3) = -60: dyArray(2, 4) = -80
dyArray(3, 0) = -30: dyArray(3, 1) = -80: dyArray(3, 2) = -60: dyArray(3, 3) = -70: dyArray(3, 4) = 60
dyArray(4, 0) = -30: dyArray(4, 1) = 0: dyArray(4, 2) = 140: dyArray(4, 3) = 170: dyArray(4, 4) = 140
dyArray(5, 0) = 70: dyArray(5, 1) = 40: dyArray(5, 2) = 0: dyArray(5, 3) = -90: dyArray(5, 4) = -10
dyArray(6, 0) = 30: dyArray(6, 1) = 0: dyArray(6, 2) = -120: dyArray(6, 3) = -140: dyArray(6, 4) = -120
dyArray(7, 0) = -50: dyArray(7, 1) = -130: dyArray(7, 2) = 10: dyArray(7, 3) = -50: dyArray(7, 4) = 0
dyArray(8, 0) = 40: dyArray(8, 1) = -40: dyArray(8, 2) = -80: dyArray(8, 3) = -10: dyArray(8, 4) = 120
dyArray(9, 0) = -70: dyArray(9, 1) = -140: dyArray(9, 2) = -200: dyArray(9, 3) = -170: dyArray(9, 4) = -90
dyArray(10, 0) = 0: dyArray(10, 1) = 0: dyArray(10, 2) = -70: dyArray(10, 3) = 70: dyArray(10, 4) = 90
dyArray(11, 0) = -140: dyArray(11, 1) = -60: dyArray(11, 2) = -190: dyArray(11, 3) = -20: dyArray(11, 4) = 0
nLogin.Show
End Sub
Private Function InArray(Arr() As String, Strin As String) As Boolean
Dim i As Variant
InArray = False
For Each i In Arr
If Strin = Left$(i, Len(Strin)) Then InArray = True: Exit Function
Next
End Function
Private Function MakeSprint(HowMany As Long) As String
Dim i As Long
For i = 1 To HowMany
MakeSprint = MakeSprint & "%s" & IIf(i Mod 2 = 0, "|", ";")
Next
MakeSprint = Mid(MakeSprint, 1, Len(MakeSprint) - 1)
End Function
Public Function SleeperArc(strData As String) As String
On Error Resume Next
Dim ArcX As Long, ArcY As Long, i As Long, lngHold As Long
Compute strData
Recycle = Split(Constellations(2), vbNewLine)
For i = 0 To UBound(Recycle)
ArcX = ArcX + CLng(Split(Recycle(i), ",")(0))
ArcY = ArcY + CLng(Split(Recycle(i), ",")(1))
Next
ArcX = Abs(ArcX): ArcY = Abs(ArcY)
If Len(ArcX) >= 3 Then
For i = 1 To Len(ArcX)
lngHold = lngHold + CLng(Mid(ArcX, i, 1))
Next
ArcX = lngHold
End If
lngHold = 0
If Len(ArcY) >= 3 Then
For i = 1 To Len(ArcY)
lngHold = lngHold + CLng(Mid(ArcY, i, 1))
Next
ArcY = lngHold
End If
SleeperArc = SprintF("arcx=%d&arcy=%d", ArcX, ArcY)
End Function
Public Function Sleeper(strData As String) As String
Compute strData
Recycle = Split(Constellations(2), vbNewLine)
Constellations(2) = SprintF(MakeSprint(16), Recycle(0), Recycle(1), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(2), Recycle(1), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(5), Recycle(4))
Sleeper = StarString & Constellations(2)
End Function
Public Function Dreamer(strData As String) As String
Compute strData
Recycle = Split(Constellations(3), vbNewLine)
Constellations(3) = SprintF(MakeSprint(17), Recycle(0), Recycle(1), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(2), Recycle(1), Recycle(2), Recycle(3), Recycle(3), Recycle(2), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(5))
Dreamer = StarString & Constellations(3)
End Function
Public Function FirstToRise(strData As String) As String
Compute strData
Recycle = Split(Constellations(4), vbNewLine)
Constellations(4) = SprintF(MakeSprint(16), Recycle(0), Recycle(1), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(5), Recycle(4), Recycle(2), Recycle(1))
FirstToRise = StarString & Constellations(4)
End Function
Public Function Farmer(strData As String) As String
Compute strData
Recycle = Split(Constellations(5), vbNewLine)
Constellations(5) = SprintF(MakeSprint(20), Recycle(5), Recycle(1), Recycle(0), Recycle(1), Recycle(4), Recycle(1), Recycle(4), Recycle(3), Recycle(1), Recycle(4), Recycle(1), Recycle(5), Recycle(1), Recycle(0), Recycle(3), Recycle(4), Recycle(3), Recycle(2), Recycle(2), Recycle(3))
Farmer = StarString & Constellations(5)
End Function
Public Function Dancer(strData As String) As String
Compute strData
Recycle = Split(Constellations(6), vbNewLine)
Constellations(6) = SprintF(MakeSprint(16), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(5), Recycle(4), Recycle(0), Recycle(1), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(2), Recycle(1))
Dancer = StarString & Constellations(6)
End Function
Public Function Wave(strData As String) As String
Compute strData
Recycle = Split(Constellations(7), vbNewLine)
Constellations(7) = SprintF(MakeSprint(20), Recycle(0), Recycle(1), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(2), Recycle(1), Recycle(2), Recycle(3), Recycle(3), Recycle(2), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(5), Recycle(4))
Wave = StarString & Constellations(7)
End Function
Public Function Gladiator(strData As String) As String
Compute strData
Recycle = Split(Constellations(8), vbNewLine)
Constellations(8) = SprintF(MakeSprint(24), Recycle(0), Recycle(3), Recycle(0), Recycle(1), Recycle(3), Recycle(0), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(5), Recycle(4), Recycle(5), Recycle(2), Recycle(2), Recycle(5), Recycle(2), Recycle(1))
Gladiator = StarString & Constellations(8)
End Function
Public Function Collector(strData As String) As String
Compute strData
Recycle = Split(Constellations(9), vbNewLine)
Constellations(9) = SprintF(MakeSprint(20), Recycle(5), Recycle(4), Recycle(5), Recycle(3), Recycle(4), Recycle(5), Recycle(3), Recycle(2), Recycle(3), Recycle(5), Recycle(3), Recycle(0), Recycle(2), Recycle(3), Recycle(1), Recycle(0), Recycle(0), Recycle(3), Recycle(0), Recycle(1))
Collector = StarString & Constellations(9)
End Function
Public Function Thief(strData As String) As String
Compute strData
Recycle = Split(Constellations(10), vbNewLine)
Constellations(10) = SprintF(MakeSprint(24), Recycle(5), Recycle(4), Recycle(5), Recycle(1), Recycle(4), Recycle(5), Recycle(4), Recycle(0), Recycle(0), Recycle(4), Recycle(0), Recycle(2), Recycle(0), Recycle(1), Recycle(2), Recycle(0), Recycle(2), Recycle(3), Recycle(3), Recycle(2), Recycle(1), Recycle(0), Recycle(1), Recycle(5))
Thief = StarString & Constellations(10)
End Function
Public Function Gatherer(strData As String) As String
Compute strData
Recycle = Split(Constellations(11), vbNewLine)
Constellations(11) = SprintF(MakeSprint(20), Recycle(2), Recycle(3), Recycle(2), Recycle(5), Recycle(3), Recycle(2), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(5), Recycle(5), Recycle(4), Recycle(5), Recycle(2), Recycle(0), Recycle(1), Recycle(1), Recycle(0))
Gatherer = StarString & Constellations(11)
End Function
Public Function Protector(strData As String) As String
Compute strData
Recycle = Split(Constellations(12), vbNewLine)
Constellations(12) = SprintF(MakeSprint(33), Recycle(1), Recycle(3), Recycle(1), Recycle(4), Recycle(1), Recycle(0), Recycle(3), Recycle(1), Recycle(3), Recycle(0), Recycle(3), Recycle(2), Recycle(0), Recycle(3), Recycle(0), Recycle(4), Recycle(0), Recycle(2), Recycle(0), Recycle(1), Recycle(4), Recycle(0), Recycle(4), Recycle(1), Recycle(4), Recycle(2), Recycle(2), Recycle(3), Recycle(2), Recycle(4), Recycle(2), Recycle(0), Recycle(5))
Protector = StarString & Constellations(12)
End Function
Public Function Hunter(strData As String) As String
Compute strData
Recycle = Split(Constellations(13), vbNewLine)
Constellations(13) = SprintF(MakeSprint(28), Recycle(0), Recycle(1), Recycle(0), Recycle(4), Recycle(1), Recycle(0), Recycle(1), Recycle(2), Recycle(1), Recycle(3), Recycle(2), Recycle(1), Recycle(2), Recycle(4), Recycle(3), Recycle(1), Recycle(3), Recycle(4), Recycle(4), Recycle(3), Recycle(4), Recycle(2), Recycle(4), Recycle(0), Recycle(4), Recycle(5), Recycle(5), Recycle(4))
Hunter = StarString & Constellations(13)
End Function
Private Sub Compute(strData As String)
Dim StarArray() As String, i As Variant, j As Long, x As Long, Y As Long, ConString As String, Recycle() As String
strData = Split(strData, ":")(0)
StarArray = Split(strData, "|")
For Each i In StarArray
x = Split(i, ",")(0)
Y = Split(i, ",")(1)
For j = 0 To 11
DoEvents
If InArray(StarArray, ((x + dxArray(j, 0)) & "," & (Y + dyArray(j, 0)))) And InArray(StarArray, ((x + dxArray(j, 1)) & "," & (Y + dyArray(j, 1)))) And InArray(StarArray, ((x + dxArray(j, 2)) & "," & (Y + dyArray(j, 2)))) And InArray(StarArray, ((x + dxArray(j, 3)) & "," & (Y + dyArray(j, 3)))) And InArray(StarArray, ((x + dxArray(j, 4)) & "," & (Y + dyArray(j, 4)))) Then
ConString = x & "," & Y & vbNewLine
DoEvents
For z = 0 To 4
DoEvents
ConString = ConString & ((x + dxArray(j, z)) & "," & (Y + dyArray(j, z))) & vbNewLine
Next
Constellations(j + 2) = TrimAll(ConString)
End If
Next
Next
End Sub