Register for your free account! | Forgot your password?

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

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


Show in-game notifications - by writing code

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 498
Received Thanks: 617
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: https://florian0.wordpress.com/2017/...o-ui-elements/

Sending notifications by code

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

g_CGInterface->ShowMessage_GREEN(mymessage);
g_CGInterface->ShowMessage_BLUE(mymessage);
g_CGInterface->ShowMessage_PINK(mymessage);
The code behind the magic

Code:
// 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
Code:
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));

		notify->ShowMessage(&msg);
	}
}
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 online now  
Thanks
18 Users
Old 12/30/2017, 16:57   #2
 
elite*gold: 0
Join Date: Jul 2012
Posts: 2
Received Thanks: 0
Nice little jobs, dont stop


yair3d is offline  
Old 04/25/2018, 11:28   #3
 
elite*gold: 0
Join Date: Apr 2017
Posts: 515
Received Thanks: 133
can you give us the source code?
Zoro.Sro is offline  
Old 04/25/2018, 12:03   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 498
Received Thanks: 617
Quote:
Originally Posted by Zoro.Sro View Post
can you give us the source code?
Uhm ... i don't understand ... what else do you need ... ?


florian0 is online now  
Thanks
5 Users
Old 04/25/2018, 12:24   #5



 
elite*gold: 0
Join Date: Mar 2009
Posts: 5,389
Received Thanks: 1,718
Quote:
Originally Posted by florian0 View Post
Uhm ... i don't understand ... what else do you need ... ?
Man please, do you have full source code of sro? Need it fast, but can't code, so sry when I write you to help me out how to compile.
Devsome is offline  
Thanks
9 Users
Old 09/16/2018, 23:44   #6
 
elite*gold: 0
Join Date: Apr 2008
Posts: 498
Received Thanks: 617
Quote:
Originally Posted by Mervy505 View Post
lol good

can give me please source code ?

There is the source in the first post ...
florian0 is online now  
Old 09/17/2018, 04:04   #7
 
elite*gold: 0
Join Date: Sep 2017
Posts: 444
Received Thanks: 106
Quote:
Originally Posted by florian0 View Post

There is the source in the first post ...
feelsbadman
#HB is offline  
Old 09/17/2018, 13:44   #8
 
elite*gold: 0
Join Date: Sep 2018
Posts: 2
Received Thanks: 2
anyone made a program for it ?


Ali Mohamed TS is offline  
Reply



« HWID Limit Bypass Hypnos-Online JGuard | Mbot on windows 10 work? »

Similar Threads
"Likes Notifications"
03/27/2013 - Main - 2 Replies
Hi, habe das hier in den Einstellungen entdeckt: http://i.epvpimg.com/5Juuf.png Was soll dieses "Likes Notifications" sein? Ich habe dazu weder mit der Sufu noch in der Hilfe etwas gefunden. MfG
Microsoft Windows Genuine Advantage Notifications
05/15/2007 - Technical Support - 3 Replies
Huhu habe doch pc neugemacht und wollte natürlich paar updates mitnehmen (ich nehme keinen sp2...... ich hasse ihn) habe nur die notwendigen aber habe ausversehen ein falsches vergessen auszuklicken und habe jetzt: Microsoft Windows Genuine Advantage Notifications auf dem pc und das sucht nach gecrackten programmen... also nicht so toll einfach in software ordner rauslöschen ist nicht hat jemand eine idee wie ich das vollständig terminieren kann*g*



All times are GMT +1. The time now is 14:18.


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.