Morpheous
01-08-04, 13:01
http://www.icarusnetworks.co.uk/neocron/Runspeed.exe
My first ever Neocron application, more coming :p
I'm learning Visual Basic .NET at the moment, actually bought a MS product- the VB Studio .NET thingy! Feel all wierd...
It's a calculator for spy runspeed :)
Enjoy
Edit: I'll do them for other classes or put it all in one app if someone can post or PM me with the number of points you need in AGL and ATL added together, gimmie numbers for Fast, Slow and turtle :p
Anyhow, i'll release the source later but here's the code if you're interested:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim agl As Single
Dim ath As Single
Dim runspeed As Single
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents ExitButton As System.Windows.Forms.Button
Friend WithEvents InputAthletics As System.Windows.Forms.TextBox
Friend WithEvents InputAgility As System.Windows.Forms.TextBox
Friend WithEvents OutputRunspeed As System.Windows.Forms.Label
Friend WithEvents Calc As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ExitButton = New System.Windows.Forms.Button
Me.InputAthletics = New System.Windows.Forms.TextBox
Me.InputAgility = New System.Windows.Forms.TextBox
Me.OutputRunspeed = New System.Windows.Forms.Label
Me.Calc = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'ExitButton
'
Me.ExitButton.Location = New System.Drawing.Point(296, 48)
Me.ExitButton.Name = "ExitButton"
Me.ExitButton.Size = New System.Drawing.Size(96, 24)
Me.ExitButton.TabIndex = 0
Me.ExitButton.Text = "Exit"
'
'InputAthletics
'
Me.InputAthletics.Location = New System.Drawing.Point(8, 24)
Me.InputAthletics.Name = "InputAthletics"
Me.InputAthletics.Size = New System.Drawing.Size(88, 20)
Me.InputAthletics.TabIndex = 1
Me.InputAthletics.Text = "Athletics"
'
'InputAgility
'
Me.InputAgility.Location = New System.Drawing.Point(104, 24)
Me.InputAgility.Name = "InputAgility"
Me.InputAgility.Size = New System.Drawing.Size(112, 20)
Me.InputAgility.TabIndex = 2
Me.InputAgility.Text = "Agility"
'
'OutputRunspeed
'
Me.OutputRunspeed.Location = New System.Drawing.Point(224, 24)
Me.OutputRunspeed.Name = "OutputRunspeed"
Me.OutputRunspeed.Size = New System.Drawing.Size(152, 24)
Me.OutputRunspeed.TabIndex = 3
Me.OutputRunspeed.Text = "Runspeed"
'
'Calc
'
Me.Calc.Location = New System.Drawing.Point(8, 48)
Me.Calc.Name = "Calc"
Me.Calc.Size = New System.Drawing.Size(88, 24)
Me.Calc.TabIndex = 4
Me.Calc.Text = "Calculate"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(104, 48)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(72, 24)
Me.Button1.TabIndex = 5
Me.Button1.Text = "Help!"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(16, 0)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(368, 16)
Me.Label1.TabIndex = 6
Me.Label1.Text = "App by Morpheous using Visual Basic .NET"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(392, 73)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.Calc)
Me.Controls.Add(Me.OutputRunspeed)
Me.Controls.Add(Me.InputAgility)
Me.Controls.Add(Me.InputAthletics)
Me.Controls.Add(Me.ExitButton)
Me.Name = "Form1"
Me.Text = "Neocron Spy Runspeed Calculator by Morpheous"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
End
End Sub
Private Sub Calc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calc.Click
agl = InputAgility.Text
ath = InputAthletics.Text
If (ath + agl >= 140) Then
OutputRunspeed.Text = "Optimal Spy Runspeed"
End If
If (ath + agl <= 100) Then
OutputRunspeed.Text = "Quite fast"
End If
If (ath + agl <= 50) Then
OutputRunspeed.Text = "Very slow. Invest more points in either skill"
End If
End Sub
Private Sub OutputRunspeed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OutputRunspeed.Click
OutputRunspeed.Text = ""
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Type your Agility and Athletics skill points into the two fields and press calculate to see your runspeed. This version deals for the spy class only. Click on the result to clear it.", MsgBoxStyle.Question, "Don't Panic!")
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
End Sub
End Class
My first ever Neocron application, more coming :p
I'm learning Visual Basic .NET at the moment, actually bought a MS product- the VB Studio .NET thingy! Feel all wierd...
It's a calculator for spy runspeed :)
Enjoy
Edit: I'll do them for other classes or put it all in one app if someone can post or PM me with the number of points you need in AGL and ATL added together, gimmie numbers for Fast, Slow and turtle :p
Anyhow, i'll release the source later but here's the code if you're interested:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim agl As Single
Dim ath As Single
Dim runspeed As Single
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents ExitButton As System.Windows.Forms.Button
Friend WithEvents InputAthletics As System.Windows.Forms.TextBox
Friend WithEvents InputAgility As System.Windows.Forms.TextBox
Friend WithEvents OutputRunspeed As System.Windows.Forms.Label
Friend WithEvents Calc As System.Windows.Forms.Button
Friend WithEvents Button1 As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ExitButton = New System.Windows.Forms.Button
Me.InputAthletics = New System.Windows.Forms.TextBox
Me.InputAgility = New System.Windows.Forms.TextBox
Me.OutputRunspeed = New System.Windows.Forms.Label
Me.Calc = New System.Windows.Forms.Button
Me.Button1 = New System.Windows.Forms.Button
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'ExitButton
'
Me.ExitButton.Location = New System.Drawing.Point(296, 48)
Me.ExitButton.Name = "ExitButton"
Me.ExitButton.Size = New System.Drawing.Size(96, 24)
Me.ExitButton.TabIndex = 0
Me.ExitButton.Text = "Exit"
'
'InputAthletics
'
Me.InputAthletics.Location = New System.Drawing.Point(8, 24)
Me.InputAthletics.Name = "InputAthletics"
Me.InputAthletics.Size = New System.Drawing.Size(88, 20)
Me.InputAthletics.TabIndex = 1
Me.InputAthletics.Text = "Athletics"
'
'InputAgility
'
Me.InputAgility.Location = New System.Drawing.Point(104, 24)
Me.InputAgility.Name = "InputAgility"
Me.InputAgility.Size = New System.Drawing.Size(112, 20)
Me.InputAgility.TabIndex = 2
Me.InputAgility.Text = "Agility"
'
'OutputRunspeed
'
Me.OutputRunspeed.Location = New System.Drawing.Point(224, 24)
Me.OutputRunspeed.Name = "OutputRunspeed"
Me.OutputRunspeed.Size = New System.Drawing.Size(152, 24)
Me.OutputRunspeed.TabIndex = 3
Me.OutputRunspeed.Text = "Runspeed"
'
'Calc
'
Me.Calc.Location = New System.Drawing.Point(8, 48)
Me.Calc.Name = "Calc"
Me.Calc.Size = New System.Drawing.Size(88, 24)
Me.Calc.TabIndex = 4
Me.Calc.Text = "Calculate"
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(104, 48)
Me.Button1.Name = "Button1"
Me.Button1.Size = New System.Drawing.Size(72, 24)
Me.Button1.TabIndex = 5
Me.Button1.Text = "Help!"
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(16, 0)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(368, 16)
Me.Label1.TabIndex = 6
Me.Label1.Text = "App by Morpheous using Visual Basic .NET"
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(392, 73)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.Calc)
Me.Controls.Add(Me.OutputRunspeed)
Me.Controls.Add(Me.InputAgility)
Me.Controls.Add(Me.InputAthletics)
Me.Controls.Add(Me.ExitButton)
Me.Name = "Form1"
Me.Text = "Neocron Spy Runspeed Calculator by Morpheous"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
End
End Sub
Private Sub Calc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calc.Click
agl = InputAgility.Text
ath = InputAthletics.Text
If (ath + agl >= 140) Then
OutputRunspeed.Text = "Optimal Spy Runspeed"
End If
If (ath + agl <= 100) Then
OutputRunspeed.Text = "Quite fast"
End If
If (ath + agl <= 50) Then
OutputRunspeed.Text = "Very slow. Invest more points in either skill"
End If
End Sub
Private Sub OutputRunspeed_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OutputRunspeed.Click
OutputRunspeed.Text = ""
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Type your Agility and Athletics skill points into the two fields and press calculate to see your runspeed. This version deals for the spy class only. Click on the result to clear it.", MsgBoxStyle.Question, "Don't Panic!")
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
End Sub
End Class