Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Hacks, Bots, Cheats & Exploits
You last visited: Today at 01:32

  • Please register to post and access all features, it's quick, easy and FREE!


Show in-game notifications - by writing code

Old   #1
elite*gold: 0
Join Date: Apr 2008
Posts: 383
Received Thanks: 394
Show in-game notifications - by writing code

Hello beloved, dead community,

i recently achieved something i want to share with you.

Video demonstration:
Behind the scenes:

Sending notifications by code

std::wstring mymessage(L"Hello World, epvp");

The code behind the magic

// Header

class CGInterface {
	void ShowMessage_BLUE(std::wstring &msg);
	void ShowMessage_PINK(std::wstring &msg);
	void ShowMessage_GREEN(std::wstring &msg);

#define g_CGInterface (*(CGInterface**)0x0110F80C)

// Code

void CGInterface::ShowMessage_BLUE(std::wstring& msg)
	reinterpret_cast<void (__thiscall *)(CGInterface*, std::wstring *)>(0x0077B580)(this, &msg);

void CGInterface::ShowMessage_PINK(std::wstring& msg)
	reinterpret_cast<void (__thiscall *)(CGInterface*, std::wstring *)>(0x00777BF0)(this, &msg);

void CGInterface::ShowMessage_GREEN(std::wstring& msg)
	reinterpret_cast<void (__thiscall *)(CGInterface*, std::wstring *)>(0x0077B5B0)(this, &msg);

Community Challenge
Check out the addresses, reconstruct the types and achieve a functioning code like this
void CGInterface::ShowMessage_GREEN(std::wstring& msg)
	if (msg.length())
		CIFNotify *notify = reinterpret_cast<CIFNotify*>(this->m_IFRegion_36C.GetByID(GDR_UPDATE_QUEST_INFO, 1));

Important notes, as always
Microsoft STL will try to TROLL you. Be aware of that. Silkroad was BUILD on VC80 aka. Visual Studio 2005. Any newer compiler CAN AND WILL BREAK this code. Compiling on DEBUG will BREAK your code, no matter what you expected it to do. Always compile on RELEASE or you will find yourself wasting your valuable lifetime tracing BUG that wasn't even your fault (not that that would have happened to me ...)

florian0 is offline  
9 Users
Old   #2
elite*gold: 0
Join Date: Jul 2012
Posts: 2
Received Thanks: 0
Nice little jobs, dont stop

yair3d is offline  

« Previous Thread | Next Thread »

Similar Threads
"Likes Notifications"
Hi, habe das hier in den Einstellungen entdeckt: Was soll dieses "Likes Notifications" sein? Ich habe dazu...
2 Replies - Main
Microsoft Windows Genuine Advantage Notifications
Huhu habe doch pc neugemacht und wollte natürlich paar updates mitnehmen (ich nehme keinen sp2...... ich hasse ihn) habe nur die notwendigen aber...
3 Replies - Technical Support

All times are GMT +1. The time now is 01:32.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.