Jump to content

KaiszS22

Member
  • Posts

    75
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

KaiszS22's Achievements

Supporter

Supporter (5/14)

  • Super Dedicated
  • Dedicated
  • Conversation Starter
  • Reacting Well
  • Collaborator

Recent Badges

1

Reputation

  1. Yes, I'm also frustrated, so I'm thinking about studying C language now.
  2. I searched here, saw the function hooking code, and followed it exactly. However, it gave me a headache because it was an error.
  3. After reading and modifying the above code, I try to compile it, but an error appears.
  4. https://workupload.com/file/L3hPuz3ax6F If you go to the link above, you can see a screenshot of the error. The code I wrote is below For reference, the mod template I use is Ted2. [ public float AttackSpeed [Token(Token = "0x6001A53")] [Address(RVA = "0x17AAA40", Offset = "0x17AAA40", VA = "0x17AAA40")] ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ float(*old_AttackSpeed)(void *Player); float AttackSpeed(void *Player) { if([switches isSwitchOn:@"SpeedHack"]) { return old_AttackSpeed * [[switches getValueFromSwitch:@"SpeedHack"] floatValue]; } // Note I'm closing the if statement here!!!!!!!!!!!!! return old_AttackSpeed(Player); } void setup() { //public int GetGhostMaxSpeed(); // RVA: 0x18DFFF4 Offset: 0x18DFFF4 HOOK(0x17AAA40, GetAttackSpeed, old_AttackSpeed); // Slider Switch - used in hooking [switches addSliderSwitch:@"AttackSpeedHack" description:@"AttackSpeed Hack" minimumValue:0.5 maximumValue:100 sliderColor:UIColorFromHex(0xBD0000)]; } void setupMenu() {
  5. Good
  6. [Token(Token = "0x60000BC")] [Address(RVA = "0x2549E84", Offset = "0x2549E84", VA = "0x2549E84")] public double GetAttackSpeedValue() float(*old_GetAttackSpeedValue)(double *Player); float changeSpeed(double *Player) { if([switches isSwitchOn:@"Speed x5"]) { return 5.0f; } //return the default value of the game return old_GetAttackSpeedValue(Player); } setup() { HOOK(0x2549E84, changeSpeed, old_GetAttackSpeedValue); } I'm a beginner, so if there are any mistakes, I would appreciate it if you could let me know with an explanation.
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines