Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release| Hit Simulator with Defense Calculation
#44
Kortestanov Wrote:I know how to do that, but I'd rather leave them like that because the result of "int * 0.11111111111" is a double fraction, but the result of "int / 9" is a rounded integer and re-casting my integers to double after every calculation is annoying (it might has something to do with me casting everything to int32, but is still related to what I said above).
Can't you do "int / 9.0" or "int / 9.0d" or something like that? I don't know C# but I'm fairly sure it has some sort of facility for double division.

@ above
They're in the Mob.wz data and I have them extracted as of about 20 patches ago. It's just that neither Fiel's nor haha01's scripts output them. I actually don't know why; it's fairly relevant information.

For example, here's an XML fragment of the data for Anego: (note that this is not "PServer format," it is my own thing that I derived from it)
Code:
    <mob id="9400121">
        <name value="Female Boss"/>
        <bodyAttack/>
        <level value="130"/>
        <hp value="75000000"/>
        <mp value="10000"/>
        <speed value="60"/>
        <PA value="[b]1200[/b]"/>
        <PD value="3000"/>
        <MA value="[b]830[/b]"/>
        <MD value="1250"/>
        <acc value="280"/>
        <eva value="43"/>
        <exp value="3900000"/>
        <pushed value="1000"/>
        <fs value="10.0"/>
        <summonType value="1"/>
        <elemAttr>
            <L value="3"/>
            <H value="3"/>
        </elemAttr>
        <boss/>
        <firstAttack/>
        <move/>
        <jump/>
        <attack>
            <range>
                <lt x="-177" y="-80"/>
                <rb x="37" y="1"/>
            </range>
            <type value="0"/>
            <PA value="[b]1500[/b]"/>
        </attack>
        <attack>
            <range>
                <lt x="-221" y="-73"/>
                <rb x="2" y="0"/>
            </range>
            <type value="0"/>
            <magic/>
        </attack>
    </mob>

The relevant attack values are bolded.
Reply


Messages In This Thread
Release| Hit Simulator with Defense Calculation - by Russt - 2009-11-14, 05:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)