Quote:
Originally posted by wAndAA+Apr 21 2006, 13:21--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (wAndAA @ Apr 21 2006, 13:21)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--gtq8382@Mar 4 2006, 09:26
blahblahblah....
conclusion:
sockets are most likely totally random (even though its technically impossible)
|
well a TOTALLY random nuber generator is not possible, but lets say that TQ would program it so that every 400th upgrade would get a soc for example? now that is already WAY too random for us "über hax0rs" to figure out. So it basically is ;D [/b][/quote]
its a random generator not every *** upgrades, otherwise you wouldnt be able to get 2 sockets in 20 mets
its most likely something like this:
Dim randObj As New Random
Dim intSocChance as Integer
intSocChance = randObj.Next(10000)
If intSocChance > 9990 AND boolUpgrade=True then
'Socket item
End If
Edit: Dim randObj As New Random should be public
I just ran this and found about a 0.002 chance is about right from my experience of socketing, I got similar results to in game from using 5000 as the max and 4990 as the test value, it ranges from <10 to about 1000 attempts to get a positive hit