All pastes #837994 Raw Edit

Anonymous

public text v1 · immutable
#837994 ·published 2007-12-30 01:06 UTC
rendered paste body
namespace User
{
	//C4 User parameter offsets (in bytes)
	const DWORD ACCOUNT_NAME = 10236;		//0x27FC string
	const DWORD USERINFO = 1416;		//0x588 
	const DWORD CHARGES = 2988;				//0x0BAC int
	const DWORD SOCKET = 9840;			//0x2670

//User::GetUser(DWORD *pSocket) returns *pUser
	BYTE * GetUser(DWORD * pSocket)
	{
		return (BYTE *)*(unsigned int *)((BYTE *)pSocket + 0x158);
	}

	extern "C"
	{
		void TeleportToLocation(BYTE *pUser, int x, int y, int z);
	}
}