Sixem

.NET Runescape EOC Combat Formula

Mar 7th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.55 KB | None | 0 0
  1. 'Written by Sixem
  2. Public Function CombatLevel_EOC(ByVal Attack As Integer, ByVal Strength As Integer, ByVal Ranged As Integer, ByVal Magic As Integer, ByVal Defence As Integer, ByVal Prayer As Integer, ByVal Summoning As Integer, ByVal Constitution As Integer)
  3.         Dim X As Integer = 1
  4.         Dim Levels() As Integer = {Attack, Strength, Magic, Summoning, Ranged}
  5.         For Each Level As Integer In Levels
  6.             If X < Level Then
  7.                 X = Level
  8.             End If
  9.         Next
  10.         Return CInt(X + Defence + 2)
  11.     End Function
Advertisement
Add Comment
Please, Sign In to add comment