Skip to content
Guest Big Announcement

KaiszS22

Member
  • Joined

  • Last visited

Everything posted by KaiszS22

  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.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.