Jump to content

Diablo Ii Script - Mf Calulator


jaenster
 Share

Recommended Posts

#include <GuiConstants.au3>
;d2dropcalu by jaenster , formule found on the internet.
$Rmf = _D2MFCalu(200)
; Return mf
;msgbox(0,"mf","Your unqine mf :"&$Rmf[0]&@lf&"Your Sets mf :"&$Rmf[1]&@lf&"Your Rare mf :"&$Rmf[2])
GUICreate("Diablo II dropcalu",220,100)
$CaluB = GUICtrlCreateButton("-- Calulate --",10,30,200,20)
$CaluI = GUICtrlCreateInput("200",10,10,200,20)
$CaluL = GUICtrlCreateLabel("Unqine"&@lf&"Sets"&@lf&"Rare",10,50,200,60)
guisetstate()
while 1
    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE Then
        Exit
    endif
    if $msg = $CaluB Then
        $mf = guictrlread($CaluI)
        $return = _D2MFCalu($mf)
        GUICtrlSetData($CaluL,"Unqine: "&$return[0]&@lf&"Sets: "&$return[1]&@lf&"Rare: "&$return[1])
    endif
wend

;===============================================================================
;
; Function Name:    _D2MFCalu()
; Description:    This funcion calulate's your real mf for diablo II
; Parameter(s):  $Mf                        all mf what you have
; Requirement(s):   AutoIT 3.11
; Return Value(s):  On Success: [0] = unqine mf
;                               [1] = Sets mf
;                               [2] = Rare mf
;                  On Failure: returns -1 and @error set to 1
; Author(s):        jaenster
;
;===============================================================================
func _D2MFCalu($mf)
    If $mf < 0 Then
        SetError(1)
        Return -1
    endif
    dim $Uniqe[2] ,$Sets[2], $Rare[2] , $rtmf[3]; make arrays
    $Sets[0] = 500; Set val in arry
    $Sets[1] = 400; Set val in arry
;500 400
    $Rare[0] = 600; Set val in arry
    $Rare[1] = 500; Set val in arry
;600 500 
    $Uniqe[0] = 250; Set val in arry
    $Uniqe[1] = 150; Set val in arry
;250 150 
    
    $Rtmf[0] = 110 + $Uniqe[0]*($MF-110)/($MF+$Uniqe[1]); Calu Unqine mf
    $Rtmf[1] =110 + $Sets[0]*($MF-110)/($MF+$Sets[1]); Calu Sets Mf
    $Rtmf[2] = 110 + $Rare[0]*($MF-110)/($MF+$Rare[1]); Calu Rare mf
; Rtmf = return mf
    SetError(0)
    return $rtmf
endfunc

Thanks for looking in this post :think:

- jaenster

-jaenster

Link to comment
Share on other sites

MF = Magic Find % if it's between 250% and 600% you'll have a high chance of getting unique/rare/set items, anything over 600% and you start getting less chance of unique/set/rare items.

About 500 is ideal, and not hard to get

~cdkid

Edited by cdkid
AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
Link to comment
Share on other sites

Nice script, some months ago i could have used that for my endless numbers of mephi runs :think:

But i wonder why you show negative numbers for mf<110, if i'm right that script should show the +findchance in percent for uniques,set and rares. So 0mf should be the basic value for the +chance on the items? 0mf = 0 on every item?

"It's easier to disintegrate an atom than a prejudice." (A.Einstein)---------------------------------------------------------------------------My C++ - tools:Tidy tool-->indents your c++ sourceCleanscript --> cleans autoit-code before compiling (co-author: peethebee)My tools:GUIBuilder-->build your window and get the source; german versionMy Games:OnlineGameCenter-->Online Chess and Connect4 with a rtf-chatSnake-->including a level editor to build your own levelsTetris-->the well known game, big funOther things:Tower of Hanoi-->perfect riddler with graphic output

Link to comment
Share on other sites

Nice script, some months ago i could have used that for my endless numbers of mephi runs :)

But i wonder why you show negative numbers for mf<110, if i'm right that script should show the +findchance in percent for uniques,set and rares. So 0mf should be the basic value for the +chance on the items? 0mf = 0 on every item?

You get negatief numbers ?

Lol i dont have so low Mf , so i never tryed :(

Cool that pll like this script :think:

-jaenster

Link to comment
Share on other sites

  • 1 month later...

the effects of magic find on uniques is greatly reduced, and the effects on sets and rares significantly reduced. This reduction only comes into play above 110%.

This formula DOESN'T work for mf lower than 110%. Jeanster i think u would like to modify your script so it run properly with any magic find value.

Add something like this:

If $mf < 110 then
  $Rtfm[0] = $mf
  $Rtfm[1] = $mf
  $Rtfm[2] = $mf
  SetError(0)
  Return $Rtfm
EndIf

GL

I have been walking shadow ways to land where Terror rules...

Link to comment
Share on other sites

IT would be faaaar more impressive (and even begin usefullness) if it logged into a Diablo II account, found items on the character and then added the MF % up by itself,

Otherwise it is simply an exercise for Excel spreadsheet.

Edited by Gladry
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...