taultunleashed logoSC2 Print Text in Chat : Starcraft 2 Bots Hacks | SC2 Bots Hacks
newtopic  postreply
 [ 3 posts ] 
blue large dot

SC2 Print Text in Chat : Starcraft 2 Bots Hacks | SC2 Bots Hacks

Posted: July 17th, 2010, 1:19 am
 
tault_Broden

Total Posts: 2313
Joined: August 21st, 2004, 5:20 pm
tault_Broden's Reps: 159
User avatar
Active User > 50 Posts
premium
Well, time to contribute some. This is probably one of basics, if you havn't figured out how to print text into the chat, well. Here is the code to do so:

Code:
typedef void (__thiscall* CGameUi_PrintString_t) ( CGameUi* lpcGameUi, int nMode, LPSTR* lpszString );
static const CGameUi_PrintString_t CGameUi_PrintString = (CGameUi_PrintString_t) 0x009B3F20;
// Pattern: 55 8B EC 8B 45 08 83 C0 FF 83 F8 08 77 6F

class CGameUi
{
public:
static CGameUi* GetInstance( void )
{
return *(CGameUi**) 0x1584FB8;
// Pattern for CGameUi: 8B 15 ?? ?? ?? ?? 8B 82 D4 01 00 00 84 C0 78 2E A9 00 01 00 00 75 27
// Offset: +0x02
}

void PrintString( int nMode, LPSTR lpszString )
{
LPSTR lpszStrings[2] = { lpszString, lpszString + strlen( lpszString ) };
CGameUi_PrintString( this, nMode, lpszStrings );
}
};


Sample usage:

Code:

void
CMaphack::GameFinishedLoading( void )
{
CGameUi::GetInstance( )->PrintString( 6, "Hello World!" );
return ( );
}

_________________
I DO NOT TAKE CREDIT FOR MY INFO.

I am a member of a exploit guild and post it here because i like this site and want to help it.

(!empty($user->lang['IMAGE'])) ? $user->lang['IMAGE'] : ucwords(strtolower(str_replace('_', ' ', 'IMAGE')))


Reply with quote
Posted: July 27th, 2010, 9:03 am
 
dragonaged

Total Posts: 64
Joined: July 26th, 2010, 6:09 pm
dragonaged's Reps: 4
User avatar
Active User > 50 Posts
premium
Yep working :)


Reply with quote
Posted: July 28th, 2010, 11:21 am
 
tault_Broden

Total Posts: 2313
Joined: August 21st, 2004, 5:20 pm
tault_Broden's Reps: 159
User avatar
Active User > 50 Posts
premium
K thanks for the reply

_________________
I DO NOT TAKE CREDIT FOR MY INFO.

I am a member of a exploit guild and post it here because i like this site and want to help it.

(!empty($user->lang['IMAGE'])) ? $user->lang['IMAGE'] : ucwords(strtolower(str_replace('_', ' ', 'IMAGE')))


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 6 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Starcraft 2 Bots Hacks | SC2 Bots Hacks RSS Feed 
Sitemap of Starcraft 2 Bots Hacks | SC2 Bots Hacks Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?