Skip to content

[Request] City Siege 2: Resort Siege

-migrated-

This discussion is linked to City Siege 2. View game

17 posts

Re: [Request] City Siege 2: Resort Siege

Posted May 22, 2011 11:19 pm

It was a matter of logic, really.

Started off by downloading the swf (http://chat.kongregate.com/gamez/0011/2 ... 1305745312) and running it through SWFDecrypt. Now, the amount of civilians killed is displayed at the end of the level, alongside a "Compensation paid" message. So I looked for the word "compensation". Found this:

Code: [Select]

debriefing.text = "Civilian deaths: " + String(_-QR._-7L) + "nCompensation to pay: $" + String(_-QR._-7L * _-Ng._-a1);Now, we see the civilian deaths count: It's in _-QR._-7L. So, we know to search for _-7L. Right at the end of the results we see:

Code: [Select]

       public static function _-9d()
        {
            var _loc_3:Boolean = true;
            var _loc_4:Boolean = false;
            if (!_loc_4)
            {
                if (!_loc_4)
                {
                }
                var _loc_2:* = _-7L + 1;
                if (!(_loc_4 && ))
                {
                    _-7L = _loc_2;
                }
                if (!(_loc_4 && _loc_2))
                {
                    _-77 = true;
                }
            }
            return;
        }// end function

All I did was take a handful of the function's first bytes and turn the first one into a return.

Finding the VIP deaths is trivial after this.

Code: [Select]

debriefing = debriefing + ("VIP deaths: " + String(_-QR._-M8) + " - Mission Failed.n");