geokar2006 / ByNameModding

MOVED https://github.com/ByNameModding/BNM-Android
113 stars 34 forks source link

sir Hook field There's still a problem #25

Closed wwwww56 closed 1 year ago

wwwww56 commented 1 year ago

BNM::Field skillCooldown; void (old_CreateSkill)(int, int); void *CreateSkill(int skillT, int skillId) { auto skill = old_CreateSkill(skillT, skillId); // Get created Skill skillCooldown(skill) = 0.f; // Set skillCooldown to zero return skill; // Return modded skill }


sir this way unless。its has bug , cant use

geokar2006 commented 1 year ago

изображение

wwwww56 commented 1 year ago

i konw this ,NO that type problem

i hook like you,, but in game that skill button is gone ,invisible

wwwww56 commented 1 year ago

game link:https://apkpure.com/tw/%E5%A1%94%E9%98%B2%E4%B8%89%E5%9C%8B%E5%BF%97/com.bigbull.tdsgtw

wwwww56 commented 1 year ago

hope you can try~

wwwww56 commented 1 year ago

because i try many days

oobbb commented 1 year ago

Add a void*

example :

void (old_CreateSkill)(void in,int, int); void CreateSkill(void * in,int skillT, int skillId)

wwwww56 commented 1 year ago

Add a void*

example :

void (old_CreateSkill)(void in,int, int); void CreateSkill(void * in,int skillT, int skillId)

yes it has. but cant work

oobbb commented 1 year ago

Add a void example : void (old_CreateSkill)(void in,int, int); void CreateSkill(void in,int skillT, int skillId)

yes it has. but cant work

Try to replace a new function

wwwww56 commented 1 year ago

Add a void example : void (old_CreateSkill)(void in,int, int); void CreateSkill(void in,int skillT, int skillId)

yes it has. but cant work

Try to replace a new function

i try but the same