Advertisement
Guest User

Untitled

a guest
May 8th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         'Developers Tools
  5.         '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6.         '/
  7.         'My.Settings.Reset()
  8.         'My.Settings.Reload()
  9.         'Me.Update()
  10.         'Me.Refresh()
  11.         'devexe.Visible = True
  12.         '\
  13.         '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  14.         Health.Text = "Physical Health: " & My.Settings.health & "/100"
  15.         money.Text = "Money(USD): " & My.Settings.money
  16.         level.Text = "Level: " & My.Settings.level
  17.         exp.Value = My.Settings.exp
  18.         exp.Maximum = exp.Maximum * My.Settings.level
  19.         If My.Settings.jobs = "0" Then
  20.             Button3.Enabled = False
  21.         Else
  22.             Button1.Enabled = False
  23.         End If
  24.     End Sub
  25.  
  26.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  27.         Dim Random As New Random
  28.         Dim chancepeice13357 As String = ""
  29.         chancepeice13357 = Random.Next(1, 10)
  30.         If chancepeice13357 = "7" Then
  31.             MsgBox("Congratulations! You got a job! You start monday!", MsgBoxStyle.Information, "Rolled Chance Peice 13357")
  32.             My.Settings.jobs = "1"
  33.             Button1.Enabled = False
  34.             Button3.Enabled = True
  35.             Me.Update()
  36.             Me.Refresh()
  37.             My.Settings.exp = My.Settings.exp + 200
  38.             exp.Value = My.Settings.exp
  39.             exp.Refresh()
  40.         Else
  41.             MsgBox("Sorry buddy. You didn't get the job, try again next time?", MsgBoxStyle.Information, "Rolled Chance Peice 13357")
  42.         End If
  43.     End Sub
  44.  
  45.     Private Sub syscheck_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles syscheck.Tick
  46.         If exp.Value = exp.Maximum Then
  47.             My.Settings.level = My.Settings.level + +1
  48.             exp.Maximum = exp.Maximum * My.Settings.level
  49.             exp.Value = My.Settings.exp
  50.             level.Text = "Level: " & My.Settings.level
  51.             Me.Update()
  52.             Me.Refresh()
  53.         End If
  54.         If My.Settings.level = "10" Then
  55.             MsgBox("You have beat the game. Very easy isn't it?, THe game will restart next time you run it.", MsgBoxStyle.Information, "")
  56.             Me.Close()
  57.         End If
  58.         If My.Settings.health = "0" Then
  59.             MsgBox("YOU HAVE DIED! Due to dying, your character has been reset.", MsgBoxStyle.Critical, "")
  60.             My.Settings.Reset()
  61.             My.Settings.Reload()
  62.             Me.Update()
  63.             Me.Refresh()
  64.         End If
  65.         If energy.Value = "0" Then
  66.             hpdrain.Start()
  67.         Else
  68.             hpdrain.Stop()
  69.         End If
  70.  
  71.     End Sub
  72.  
  73.     Private Sub devexe_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles devexe.TextChanged
  74.         If devexe.Text = "fullexp" Then
  75.             exp.Value = exp.Maximum
  76.         End If
  77.         If devexe.Text = "lackexercise" Then
  78.             exercisex.Value = 100
  79.         End If
  80.         If devexe.Text = "devexercise" Then
  81.             exercise.Interval = 15000
  82.         End If
  83.         If devexe.Text = "devmoney" Then
  84.             My.Settings.money = "50000"
  85.             money.Text = "Money(USD): " & My.Settings.money
  86.         End If
  87.     End Sub
  88.  
  89.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  90.         If My.Settings.money < "005" Then
  91.             MsgBox("You cannot enter, you need $50.00.")
  92.         End If
  93.         If My.Settings.money >= "005" Then
  94.             MsgBox("Thank you for coming to Run4Heart Gym!", MsgBoxStyle.Information, "")
  95.             exercisex.Value = 0
  96.             My.Settings.money = My.Settings.money - 50
  97.             money.Text = "Money(USD): " & My.Settings.money
  98.         End If
  99.     End Sub
  100.  
  101.     Private Sub exercise_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exercise.Tick
  102.         exercisex.Increment(1)
  103.  
  104.         If exercisex.Value = "100" Then
  105.             If tool.Text = "exer1" Then
  106.                 hpdrain.Stop()
  107.             Else
  108.                 hpdrain.Start()
  109.                 tool.Text = "exer1"
  110.                 MsgBox("YOU ARE DYING FROM CRITICAL LACK OF EXERCISE!", MsgBoxStyle.Critical, "")
  111.             End If
  112.         End If
  113.     End Sub
  114.  
  115.     Private Sub hpdrain_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles hpdrain.Tick
  116.         My.Settings.health = My.Settings.health - 1
  117.         Health.Text = "Physical Health: " & My.Settings.health & "/100"
  118.     End Sub
  119.  
  120.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  121.         If energy.Value = "100" Then
  122.             working.Visible = True
  123.             workingx.Start()
  124.         Else
  125.             MsgBox("You are too tired to work.")
  126.         End If
  127.     End Sub
  128.  
  129.     Private Sub workingx_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles workingx.Tick
  130.         working.Increment(1)
  131.         Dim Random As New Random
  132.         Dim igain As String = ""
  133.         igain = Random.Next(100, 300)
  134.         Dim igain1 As String = ""
  135.         igain1 = Random.Next(50, 200)
  136.         If working.Value = working.Maximum Then
  137.             workingx.Stop()
  138.             MsgBox("You have finished working. You are now exhausted! Might wanna get some rest.", MsgBoxStyle.Information, "")
  139.             MsgBox("Your boss gives you your paycheck. its for $" & igain & ".", MsgBoxStyle.Information, "")
  140.             MsgBox("You gain experience for working! You gained: " & igain1 & ".", MsgBoxStyle.Information, "")
  141.             My.Settings.money = My.Settings.money + +igain
  142.             money.Text = "Money(USD): " & My.Settings.money
  143.             My.Settings.exp = My.Settings.exp + +igain1
  144.             exp.Value = My.Settings.exp
  145.             energy.Value = Random.Next(5, 60)
  146.             workingx.Stop()
  147.             working.Value = 0
  148.             working.Visible = False
  149.             Me.Update()
  150.             Me.Refresh()
  151.         End If
  152.     End Sub
  153.  
  154.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  155.         If My.Settings.money < "150" Then
  156.             MsgBox("You cannot enter, you need $150.00.")
  157.         End If
  158.         If My.Settings.money >= "150" Then
  159.             MsgBox("Have a nice sleep?", MsgBoxStyle.Information, "")
  160.             energy.Value = 100
  161.             My.Settings.money = My.Settings.money - 150
  162.             money.Text = "Money(USD): " & My.Settings.money
  163.         End If
  164.     End Sub
  165. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement