[Request] help with script for the last one
help with script for THE LAST ONE
help with script for the last one Posted on: 09/02/2014 9:26pm
Quote Post

help with script for the last one, I found the codes change more tested unsuccessfully, as you can see ~ and has health, damage, atttack distance between other,.




SWF FILE >  https://www.mediafire.com/?99bf4heyplz9zn6



 

package com.progrestar.game.data.objects.mover
{
    import com.progrestar.game.data.*;
    import com.progrestar.game.data.objects.*;
    import com.progrestar.game.managers.*;
    public class HeroCombatDataProvider extends Object implements IMoverDataProvider
    {
        protected var _user:NonPlayerUser;
        protected var _health:int;
        protected var _maxHealth:int;
        protected var _description:MapMoverDescription;
        public function HeroCombatDataProvider(param1:NonPlayerUser, param2:MapMoverDescription = null)
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//d0 
_as3_getlocal <0> 
//49 00 
_as3_constructsuper (param count:0)
//d1 
_as3_getlocal <1> 
//5e ad 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//2b 
_as3_swap 
//61 ad 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//d1 
_as3_getlocal <1> 
//66 c1 18 
_as3_getproperty maxHealth
//5e ae 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//2b 
_as3_swap 
//61 ae 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//d1 
_as3_getlocal <1> 
//66 c1 18 
_as3_getproperty maxHealth
//5e af 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_maxHealth
//2b 
_as3_swap 
//61 af 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_maxHealth
//d2 
_as3_getlocal <2> 
//5e b0 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//2b 
_as3_swap 
//61 b0 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//47 
_as3_returnvoid 
        }// end function
        public function get isDead() : Boolean
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 92 09 
_as3_getlex health
//24 00 
_as3_pushbyte 0
//ae 
_as3_lessequals 
//48 
_as3_returnvalue 
        }// end function
        public function get maxHealth() : int
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 af 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_maxHealth
//48 
_as3_returnvalue 
        }// end function
        public function set maxHealth(param1:int) : void
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//d1 
_as3_getlocal <1> 
//5e af 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_maxHealth
//2b 
_as3_swap 
//61 af 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_maxHealth
//47 
_as3_returnvoid 
        }// end function
        public function get health() : int
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 ae 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//48 
_as3_returnvalue 
        }// end function
        public function set health(param1:int) : void
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//20 
_as3_pushnull 
//d6 
_as3_setlocal <2> 
//5d de 03 
_as3_findpropstrict com.progrestar.game.data::VitalChangedDataClass
//2c fe 0b 
_as3_pushstring "health"
//60 ae 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//d1 
_as3_getlocal <1> 
//60 ad 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//4a de 03 04 
_as3_constructprop com.progrestar.game.data::VitalChangedDataClass(param count:4)
//80 de 03 
_as3_coerce com.progrestar.game.data::VitalChangedDataClass
//d6 
_as3_setlocal <2> 
//60 af 01 
_as3_getlex com.progrestar.game.managers::HookManager
//66 7a 
_as3_getproperty manager
//2c 86 05 
_as3_pushstring "vitalChanged"
//d2 
_as3_getlocal <2> 
//4f b0 01 02 
_as3_callpropvoid hook(param count:2)
//d1 
_as3_getlocal <1> 
//5e ae 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//2b 
_as3_swap 
//61 ae 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//60 af 01 
_as3_getlex com.progrestar.game.managers::HookManager
//66 7a 
_as3_getproperty manager
//2c 9a 1c 
_as3_pushstring "userHPChanged"
//d0 
_as3_getlocal <0> 
//4f b0 01 02 
_as3_callpropvoid hook(param count:2)
//47 
_as3_returnvoid 
        }// end function
        public function get attackDamage() : int
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 ad 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//66 c0 18 
_as3_getproperty attack
//48 
_as3_returnvalue 
        }// end function
        public function get attackDistance() : int
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 ad 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//66 b2 07 
_as3_getproperty inventory
//46 97 29 00 
_as3_callproperty getSelectedWeapon(param count:0)
//12 12 00 00 
_as3_iffalse offset: 18
//60 ad 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//66 b2 07 
_as3_getproperty inventory
//46 97 29 00 
_as3_callproperty getSelectedWeapon(param count:0)
//66 a1 34 
_as3_getproperty attackDistance
//10 07 00 00 
_as3_jump offset: 7
//60 b0 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//66 a1 34 
_as3_getproperty attackDistance
//48 
_as3_returnvalue 
        }// end function
        public function get attackSpeed() : Number
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 b0 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//66 f3 2c 
_as3_getproperty attackSpeed
//48 
_as3_returnvalue 
        }// end function
        public function get runningSpeed() : Number
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 b0 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//66 d3 08 
_as3_getproperty runningSpeed
//48 
_as3_returnvalue 
        }// end function
        public function get walkingSpeed() : Number
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//60 b0 89 01 
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_description
//66 d2 08 
_as3_getproperty walkingSpeed
//48 
_as3_returnvalue 
        }// end function
        public function setHealthWithoutHook(param1:int) : void
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//d1 
_as3_getlocal <1> 
//5e ae 89 01 
_as3_findproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//2b 
_as3_swap 
//61 ae 89 01 
_as3_setproperty com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_health
//47 
_as3_returnvoid 
        }// end function
    }
}
RE: help with script for the last one Posted on: 09/02/2014 11:52pm
Quote Post
Ubi Maior Minor Cessat

if you want to post code a good rule of thumb is to keep it short and simple, also the human code could help, as would a link to the game.

      public function get attackDamage() : int

        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope   
//60 ad 89 01       
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//66 c0 18 
_as3_getproperty attack
//48 
_as3_returnvalue 
        }// end function

      public function get hackedAttackDamage() : int
        {
//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//02 02 02 02  //nop
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//25 8f 4e      // push u30 (aka short) of value 9999
_as3_getproperty attack
//48    // return the value you just set
_as3_returnvalue 
        }// end function

not sure if this will work but that's the theory. Good luck, drop me a pm if you need

RE: help with script for the last one Posted on: 09/03/2014 10:41am
Quote Post
The Laziest Man on KongHack
Zenwaichi Posted on: 09/02/2014 7:52pm
//02 02 02 02  //nop
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user

not sure if this will work but that's the theory. Good luck, drop me a pm if you need



not sure if nop'ing it would break the stack or not. id try once with the nop, and once without it.

getlex is specifying a certain directory iirc




RE: help with script for the last one Posted on: 09/03/2014 8:48pm
Quote Post

not work

RE: help with script for the last one Posted on: 09/03/2014 10:07pm
Quote Post
Insert Custom Title Here
thenewcomer Posted on: 09/03/2014 6:41am
Zenwaichi Posted on: 09/02/2014 7:52pm
//02 02 02 02  //nop
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user

not sure if this will work but that's the theory. Good luck, drop me a pm if you need

-Snip-



Wouldn't you have to nop the 30 and d0 as well?

//d0 
_as3_getlocal <0> 
//30 
_as3_pushscope 
//02 02 02 02  //nop
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//25 8f 4e      // push u30 (aka short) of value 9999
_as3_getproperty attack
//48    // return the value you just set


>>
 
//02
_as3_getlocal <0> 
//02
_as3_pushscope 
//02 02 02 02  //nop
_as3_getlex com.progrestar.game.data.objects.mover:HeroCombatDataProvider::_user
//25 8f 4e      // push u30 (aka short) of value 9999
_as3_getproperty attack
//48    // return the value you just set



RE: help with script for the last one Posted on: 09/03/2014 11:03pm
Quote Post
The Laziest Man on KongHack
Simple_AOB Posted on: 09/03/2014 6:07pm
thenewcomer Posted on: 09/03/2014 6:41am
Zenwaichi Posted on: 09/02/2014 7:52pm
-Snip-

-Snip-


Wouldn't you have to nop the 30 and d0 as well?


honestly idk. i want to say no, so i'll assume its yes. im always wrong =P