Jump to content
  • 0

[Help]HERO VOICE


Question

4 answers to this question

Recommended Posts

  • 0
Posted

hook say2 before validation. (or from a packet handler)

 

 

BroadcastToAll with the hero voice say2 identifier.

 

 

fairly simple thing.

  • 0
Posted

One easy way you can do this:

 

First read the orginal address for this function.

 

0xA87E08 for dvamp executable.

0xA87498 for normal PTS.

 

Lets call it UserSayOriginalAddr.

 

Then write the function hook at same address ( 4 bytes )

 

void CYourAwesomeClass::OnUserSay(User* pUser, WCHAR* pText)
{
//Check if user and socket is valid.
if(pUser->IsValidUser() && pUser->Socket->IsValidUserSocket())
{
	bool bCustomSay = FALSE;

	if(pText[0] == '~')
	{
		//Make some custom say if you write ~Hello for example.

		BroadcastToAll(L"%ls: %ls", PlayerName, pText+1)....
		bCustomSay = TRUE;
	}

	if(!bCustomSay)
	{
		//Return to orginal function if no custom say have been done.

		typedef void (__fastcall*_FT)(User*, WCHAR*);
		_FT f = (_FT)UserSayOriginalAddr;
		f(pUser, pText);
	}
}
}

 

That should work, Give it a try.

 

-manton

  • 0
Posted

Rly Thx Manton...ill try it...seems i need base on COEp mem system...god,its hard....

 

Use the memoryTools class from COEP or make your own.

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock