Advanced KDR Calculator

Posts 115 of 54 · Page 1 of 4
Advanced KDR Calculator
I've been updating a few of my programs recently, and when i read bombs thread asking for ideas on a new useful tool to use with CA, a KDR Calculator was suggested. In mentioning that i still had my KDR Calculator script around for the math to create his own, i found it and realized that although the math for increasing KDR was perfect, however the math for decreasing KDR was way off. After quite some time of refreshing myself with the current math, i was able to correct the math for decreasing KDR and here it is.

I kept the GUI simple, nothing fancy, just a dark grey/silver background..



THE FOLLOWING CODE IS COPIED STRAIGHT FROM THE SOURCE OF THIS KDR CALCULATOR. THE CODE IS FOR AUTOIT v3, AND NO I WILL NOT TRANSLATE IT FOR YOU.. unless i know you AND consider you as a personal friend.
Code:
Func CurrentKDR()
	$K1 = GUICtrlRead($Kills)
	$D1 = GUICtrlRead($Deaths)
	$C1 = $K1 / $D1
	$F1 = StringLeft($C1, 4)
	If $K1 = 0 Or $D1 = 0 Then
		GUICtrlSetData($Current, "Try Again..")
		GUICtrlSetState($Desired, $GUI_DISABLE)
		GUICtrlSetState($Button2, $GUI_DISABLE)
	Else
		GUICtrlSetData($Current, $F1)
		GUICtrlSetState($Desired, $GUI_ENABLE)
		GUICtrlSetState($Button2, $GUI_ENABLE)
	EndIf
EndFunc
Func DesiredKDR()
	$K = GUICtrlRead($Kills)
	$D = GUICtrlRead($Deaths)
	$E = GUICtrlRead($Desired)
	$y = $D * $E
	$x = $K / $E
	$v = $y - $K
	$t = $x + $D
	$m = $v + $K
	$m2 = $t - $D
	$stringM2 = StringSplit($m2, ".")
	$stringM = StringSplit($m, ".")
	$stringV = StringSplit($v, ".")
	If GUICtrlRead($Desired) = 0 Then
		GUICtrlSetData($KillsToGo, "What Do You Want Your KDR To Be?")
	ElseIf GUICtrlRead($Desired) > 0 Then
		If $v >= 0 Then
			GUICtrlSetData($KillsToGo, $stringV[1] & " More Kills")
			GUICtrlSetData($KillsAfter, $stringM[1])
			GUICtrlSetData($DeathsAfter, $D)
		ElseIf $v < 0 Then
			GUICtrlSetData($KillsToGo, $stringM2[1] - $D & " More Deaths")
			GUICtrlSetData($KillsAfter, $K)
			GUICtrlSetData($DeathsAfter, $stringM2[1])
		EndIf
	ElseIf GUICtrlRead($Desired) < 0 Then
		GUICtrlSetData($KillsToGo, "Silly Noob.. No Such Thing As Negative KDR")
	EndIf
EndFunc



@bombs.. dont know if you actually wanted to do a KDR Calc.. however if you do i'd be glad to help you with the math of it.
KDR Calculator.rarattachment deleted · 627 downloads before removal
Great job WPS!!
Like the GUI!!
Quote Originally Posted by Invidus View Post
Great job WPS!!
Like the GUI!!
really? i thought it was too ordinary.. i like my circle GUI for my auto-click just can't get the edges to smooth out
Quote Originally Posted by Grim View Post
really? i thought it was too ordinary.. i like my circle GUI for my auto-click just can't get the edges to smooth out
Naww i like it.
Could be a bit wider though? Give the labels some space to breath
Quote Originally Posted by Invidus View Post


Naww i like it.
Could be a bit wider though? Give the labels some space to breath
it is a bit tight isnt it? prolly would've looked better if i had the labels at 1 or 2 pixels from the left instead of 0 LOL
Hmm found this very helpful
Quote Originally Posted by draga01 View Post
Hmm found this very helpful
good to hear. mostly useful if your KDR is above .80 and you want in foxtrot, or less than 1.20 and want in delta
good job (Y)
I know >.<
Other than the tight fit, it's reasonable well designed !
I'd have made it.. PINK!
I don't know why, i'm just random =.=
This ia great! There are other means of doing this but this is very helpful.
nicee i also like the GUI and y is therer only minions talking here?
Quote Originally Posted by c1c50 View Post
nicee i also like the GUI and y is therer only minions talking here?
Because minions have sharp eyes from their moderating experience, and can spot a valuable thread from a mile away before you can blink.

Yes, the GUI is great!
And who approved it =.=
Thanks allot, your old 1 wasn't really working for me
Quote Originally Posted by Ali View Post
Thanks allot, your old 1 wasn't really working for me
feel free to let me know about any problems with any of my programs.
Quote Originally Posted by Grim View Post
feel free to let me know about any problems with any of my programs.
I didn't find any problems thanks xD
Posts 115 of 54 · Page 1 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?