Page 1 of 4 123 ... LastLast
Results 1 to 15 of 54
  1. #1
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical

    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.
    Last edited by Grim; 04-29-2010 at 09:56 PM.
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  2. The Following 31 Users Say Thank You to Grim For This Useful Post:

    187pig (02-11-2011),Ali (04-29-2010),BossMan. (04-30-2010),breaksafe (04-29-2010),Cameronol (05-01-2010),CRUSTY (04-29-2010),deadskulz (07-18-2010),deathcookies (04-29-2010),dgatling (07-26-2012),DOEET (04-29-2010),draga01 (04-29-2010),GameHacks01 (10-22-2010),IHelper (04-29-2010),Julma Henri (04-29-2010),justin2010 (09-25-2010),kalner123 (01-23-2013),kalner1234 (01-23-2013),landowner (04-29-2010),Melix (07-24-2013),noob555 (04-29-2010),Obama (04-29-2010),pepsi233 (04-29-2010),pkrownedu (07-09-2013),rpj (07-10-2010),shadow2345 (04-29-2010),Storm (07-14-2010),Synchromanica (04-29-2010),tambre (06-16-2010),tempta43 (04-29-2010),tiodanii (06-19-2010),WOLFPACK X69X (04-29-2010)

  3. #2
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Great job WPS!!
    Like the GUI!!

  4. The Following 4 Users Say Thank You to Invidus For This Useful Post:

    draga01 (04-29-2010),Grim (04-29-2010),omgicantaim (06-01-2010),pepsi233 (04-29-2010)

  5. #3
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical
    Quote Originally Posted by ilikewaterha 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
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  6. #4
    draga01's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    aus
    Posts
    17
    Reputation
    10
    Thanks
    1
    Hmm found this very helpful

  7. The Following User Says Thank You to draga01 For This Useful Post:

    Grim (04-29-2010)

  8. #5
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical
    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
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  9. #6
    Spook68's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    507
    Reputation
    10
    Thanks
    34
    good job (Y)

  10. The Following User Says Thank You to Spook68 For This Useful Post:

    Grim (04-29-2010)

  11. #7
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Quote Originally Posted by WarPathSin 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

  12. The Following User Says Thank You to Invidus For This Useful Post:

    Grim (04-29-2010)

  13. #8
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical
    Quote Originally Posted by ilikewaterha 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
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  14. #9
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    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 =.=

  15. #10
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    This ia great! There are other means of doing this but this is very helpful.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  16. The Following User Says Thank You to CAFlames For This Useful Post:

    mikey1181 (05-01-2010)

  17. #11
    c1c50's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Australia, NSW
    Posts
    164
    Reputation
    10
    Thanks
    11
    nicee i also like the GUI and y is therer only minions talking here?

  18. #12
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,450
    Reputation
    342
    Thanks
    3,518
    My Mood
    Cool
    Thanks allot, your old 1 wasn't really working for me

  19. #13
    Grim's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    5,359
    Reputation
    112
    Thanks
    3,786
    My Mood
    Cynical
    Quote Originally Posted by Alixl2 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.
    Want to see my programs?
    \/ CLICK IT BITCHES \/

  20. The Following User Says Thank You to Grim For This Useful Post:

    Ali (04-29-2010)

  21. #14
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,450
    Reputation
    342
    Thanks
    3,518
    My Mood
    Cool
    Quote Originally Posted by WarPathSin View Post
    feel free to let me know about any problems with any of my programs.
    I didn't find any problems thanks xD

  22. #15
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    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 =.=

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [help] KDR Calculator
    By pushdis15 in forum Combat Arms Coding Help & Discussion
    Replies: 7
    Last Post: 01-22-2011, 05:03 PM
  2. Code for CBL Checker & KDR Calculator-
    By ultahackers in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 6
    Last Post: 11-07-2010, 01:37 PM
  3. [Help] KDR Calculator?
    By xRenegade_x in forum WarRock Discussions
    Replies: 8
    Last Post: 10-19-2010, 06:23 AM
  4. Simple KDR Calculator
    By MvRouC12 in forum CrossFire Discussions
    Replies: 14
    Last Post: 05-07-2010, 06:59 AM
  5. [Release] KDR calculator
    By noob555 in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 77
    Last Post: 03-26-2010, 07:30 PM