Game core - view/edit server calculations

05/14/2012 23:48 ElectriX3#1
Hi, I'm trying to make some sort of a skill guide, which will descibe entirely, how the damage computing processes work. At the beginning i thought I can make it with just a simple logic and a little knowledge about the game itself. But after few months of testing I still can't even see the goal getting near.

I have realized the function of accuracy, as well as some other tricks how to count with defense, attact value, magic attack value, biological quest adventages and many other bonuses. But having just the simple equations from SQL table skill_proto is not enough. For example mental warrior, ninja dagger and dragon shaman skills seem to make totally different hits, than they should according to the skill_proto. Same problem is with the normal physical hits, arrow damage and polymorph. Absolutely invincible algorithm (or absolutely chaotic?).

What I'm looking for is some sort of readable (e.g. Python) file, where are all these rules, ifs, and calculations written. I guess it is somewhere in the core of the server, but I can't find anything like that in it (using Instant server '08 + WinSCP).

To put an example, I was thinking about a file, where I can see something like:
Code:
....
--Polymorph
when something.happens begin
   local dmg = (LVL * 2) + (ST + WP + A)*AR
   ....
end
--Arrow damage
....
....
I have found some "suspicious" files (like "game", "game.core", or "qc.core"), but none of them is readable (unlike the .sh, .quest, and .lua files). Can someone please at least point me the right direction? Should I try to decompile these files, or look somewhere else? I spent like a week searching down the whole SF, but found nothing. And mr. Google refuses to help :|.

Thank you very much in advance, any help will be appreciated :).
05/16/2012 07:17 ElectriX3#2
Nobody? :(
05/24/2012 21:38 ElectriX3#3
resh... :(
05/26/2012 07:01 ElectriX3#4
...
05/27/2012 13:20 ElectriX3#5
Solution: de-UPX and Hex-Rays ("shared_data/game")

Lock please.