Jump to content

16 posts in this topic

Recommended Posts

Posted

Hello , i came over these kind of functions in Flex , these have an argument 

IMG_4843.png 

My question is what will the hook or the code be for such functions ?

IF there was no arguments the code would be :- 

%hook UserInfo
-(int)getCuePower {
return 1000;
}
%end

But with argument where exactly do i make the change / add code ?

Thanks 

Posted (edited)

You would just put arg after the second int, it can be anything, really. Wouldn't advise messing with anything on 8 Ball Pool other than aim. Everything else is pointless :v

Updated by Pro
Posted
1 minute ago, Pro said:

You would just put arg after the second int, it can be anything, really. Wouldn't advice messing with anything on 8 Ball Pool other than aim. Everything else is pointless :v

lol ok :lol: 

can you give an example or just add to this-

%hook UserInfo
-(int)getCuePower {
return 1000;
}
%end
1 minute ago, Joka said:

You can add it before the return.

arg1 = (whatver value)

so it becomes 

%hook UserInfo
-(int)getCuePower {
arg1 = 1000;
return 1000;
}
%end

?

Posted (edited)
4 minutes ago, TheArmQueen said:

lol ok :lol: 

can you give an example or just add to this-


%hook UserInfo
-(int)getCuePower {
return 1000;
}
%end

so it becomes 


%hook UserInfo
-(int)getCuePower {
arg1 = 1000;
return 1000;
}
%end

?

%hook UserInfo
	 
-(int)getCuePower:(int)arg {
return 1000;
	 
}
	 
%end
Updated by Pro
Posted
1 minute ago, Pro said:

 


%hook UserInfo
	 
	-(int)getCuePower:(int)arg {
	return 1000;
	 
	}
	 
	%end

 

Thanks :) will try ! 

Posted
5 minutes ago, TheArmQueen said:

lol ok :lol: 

can you give an example or just add to this-


%hook UserInfo
-(int)getCuePower {
return 1000;
}
%end

so it becomes 


%hook UserInfo
-(int)getCuePower {
arg1 = 1000;
return 1000;
}
%end

?

No lol. Read what Pro put :p

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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