Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lucky Seven Formula Issue
#29
Isn't this nice? Triple Throw's got its own little section of code:
Code:
v114 = skillID == 4121007 || skillID == 14111005;
v114 is whether the attack is Triple Throw or not. First one's a Night Lord's triple throw, second is a Night Walker's.


A lot of this code is using 'goto's...
Code:
LABEL_185:
              weaponMultiplier = v119 * (double)valuePAD * 0.01;
LABEL_186:
[...]
Okay, this first bit is where the "valuePAD" variable's multiplied with... something. I'm still working on var names. "weaponMultiplier" may be a misnomer - it's actually more like the current damage output. Sort of.

Anyway, where do LABEL_185 and 186 come from?
Code:
if ( !v114 )
              goto LABEL_186;
            HIDWORD(randomSeed) = _ZtlSecureFuse((const __int32 *const )(a3 + 72), *(_DWORD *)(a3 + 80));
            a12 = _ZtlSecureFuse((const __int32 *const )(a3 + 72), *(_DWORD *)(a3 + 80));
            v121 = (double)a12 * 1.4;
            v122 = v264 % 7;
            *(double *)v260 = v121;
            randomSeed = (double)SHIDWORD(randomSeed);
            ++v264;
            v120 = v244[v122];
            if ( v121 > randomSeed )
            {
              zswap(v260, (int)&randomSeed);
              v121 = *(double *)v260;
              goto LABEL_183;
            }
            if ( v121 != randomSeed )
            {
LABEL_183:
              HIDWORD(v123) = 0;
              LODWORD(v123) = v120 % (unsigned int)((char *)&loc_98967F + 1);
              v121 = v121 + (randomSeed - v121) * (double)v123 * 0.000000100000010000001;
            }
            v119 = v121 * 6.0;
            goto LABEL_185;
If the attack is not Triple Throw, go to 186 (don't include this valuePAD)
If the attack is Triple Throw, do a bunch of other stuff, end up with a value for v119 (what is it, the special TT multiplier?)

I am starting to get a handle on how this horrible code is put together, though. I think Lucky 7 has its own special code, too. It's just all scrambled together weird.





Interesting Discovery
Lucky 7 and TT have the same code snippet, except one key difference:
Lucky 7 uses a 5.5 multiplier - TT uses a 6.0 multiplier. Still trying to work out what this actually means, but maybe TT by its nature will do ~9% extra damage.
Reply


Messages In This Thread
Lucky Seven Formula Issue - by Tamillan - 2011-02-28, 07:51 PM
Lucky Seven Formula Issue - by Locked - 2011-02-28, 08:00 PM
Lucky Seven Formula Issue - by Tamillan - 2011-02-28, 08:09 PM
Lucky Seven Formula Issue - by Locked - 2011-02-28, 08:12 PM
Lucky Seven Formula Issue - by Shidoshi - 2011-02-28, 08:17 PM
Lucky Seven Formula Issue - by Locked - 2011-02-28, 08:18 PM
Lucky Seven Formula Issue - by Tamillan - 2011-02-28, 08:35 PM
Lucky Seven Formula Issue - by Locked - 2011-02-28, 08:39 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-02-28, 09:12 PM
Lucky Seven Formula Issue - by JoeTang - 2011-02-28, 09:22 PM
Lucky Seven Formula Issue - by Tamillan - 2011-02-28, 11:40 PM
Lucky Seven Formula Issue - by Locked - 2011-03-01, 12:33 AM
Lucky Seven Formula Issue - by JoeTang - 2011-03-01, 12:36 AM
Lucky Seven Formula Issue - by Locked - 2011-03-01, 12:40 AM
Lucky Seven Formula Issue - by Grey - 2011-03-01, 12:49 AM
Lucky Seven Formula Issue - by Locked - 2011-03-01, 12:50 AM
Lucky Seven Formula Issue - by JoeTang - 2011-03-01, 12:50 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-01, 12:51 AM
Lucky Seven Formula Issue - by JoeTang - 2011-03-01, 12:56 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-01, 01:02 AM
Lucky Seven Formula Issue - by JoeTang - 2011-03-01, 01:27 AM
Lucky Seven Formula Issue - by Jellyflower - 2011-03-04, 02:05 PM
Lucky Seven Formula Issue - by Stereo - 2011-03-04, 02:18 PM
Lucky Seven Formula Issue - by Jellyflower - 2011-03-04, 03:35 PM
Lucky Seven Formula Issue - by Stereo - 2011-03-04, 07:10 PM
Lucky Seven Formula Issue - by Jellyflower - 2011-03-04, 07:33 PM
Lucky Seven Formula Issue - by Stereo - 2011-03-04, 08:15 PM
Lucky Seven Formula Issue - by Hanabira.Kage - 2011-03-04, 11:12 PM
Lucky Seven Formula Issue - by Stereo - 2011-03-05, 01:01 AM
Lucky Seven Formula Issue - by Stereo - 2011-03-05, 02:57 AM
Lucky Seven Formula Issue - by 50504724 - 2011-03-05, 03:23 AM
Lucky Seven Formula Issue - by Stereo - 2011-03-05, 05:51 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-05, 07:34 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-05, 10:37 AM
Lucky Seven Formula Issue - by Shidoshi - 2011-03-05, 11:05 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-05, 11:11 AM
Lucky Seven Formula Issue - by Shidoshi - 2011-03-05, 11:27 AM
Lucky Seven Formula Issue - by Fiel - 2011-03-05, 11:35 AM
Lucky Seven Formula Issue - by Stereo - 2011-03-05, 04:31 PM
Lucky Seven Formula Issue - by Jellyflower - 2011-03-05, 11:11 PM
Lucky Seven Formula Issue - by 50504724 - 2011-03-06, 12:31 PM
Lucky Seven Formula Issue - by Tamillan - 2011-03-06, 03:51 PM
Lucky Seven Formula Issue - by Fiel - 2011-03-06, 04:23 PM
Lucky Seven Formula Issue - by Tamillan - 2011-03-06, 05:49 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-03-07, 01:31 PM
Lucky Seven Formula Issue - by Fiel - 2011-03-07, 01:37 PM
Lucky Seven Formula Issue - by Dusk - 2011-03-07, 03:05 PM
Lucky Seven Formula Issue - by Shidoshi - 2011-03-07, 04:11 PM
Lucky Seven Formula Issue - by JoeTang - 2011-03-07, 07:09 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-03-21, 12:44 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-04-10, 05:30 PM
Lucky Seven Formula Issue - by Fiel - 2011-04-10, 07:18 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-04-11, 10:54 AM
Lucky Seven Formula Issue - by Jellyflower - 2011-04-11, 01:16 PM
Lucky Seven Formula Issue - by ShanghaiDizzy - 2011-04-12, 11:10 AM
Lucky Seven Formula Issue - by NeoVicious - 2011-04-12, 05:35 PM
Lucky Seven Formula Issue - by Stereo - 2011-05-21, 11:17 PM
Lucky Seven Formula Issue - by MuscleWizard - 2011-05-23, 09:55 AM
Lucky Seven Formula Issue - by Phoenix - 2011-06-15, 06:01 PM
Lucky Seven Formula Issue - by TLX - 2011-06-17, 03:01 AM
Lucky Seven Formula Issue - by JoeTang - 2011-06-17, 03:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)