[WIP] Get SRO Source Code - by re-writing it

08/20/2020 14:03 Laag#82#226
Quote:
Originally Posted by mudik View Post
Can anyone tell me how i can disable Flo´s window and stay the discord only?

[Only registered and activated users can see links. Click Here To Register...]




[Only registered and activated users can see links. Click Here To Register...]
Hello again :),

you can just go to DllMain.cpp & AlramGuideMgrWnd.cpp & GInterface.cpp

Remove or //

Example

DllMain.cpp

PHP Code:
//RegisterObject(&GFX_RUNTIME_CLASS(CIFflorian0)); 

AlramGuideMgrWnd.cpp


PHP Code:
/*case GUIDE_FLORIAN0:
            pObj = CreateInstance(this, GFX_RUNTIME_CLASS(CIFfacebook0Guide), rect, GUIDE_FLORIAN0, 0);
            break;*/ 
GInterface.cpp

PHP Code:
void CGInterface::AfterOnCreate() {
    
//CreateFlorian0Event();
    
CreateFlorian1Event();
} 
08/25/2020 20:24 Laag#82#227
Hello everyone,

how can create global colors or any chat & Title Name Colors & SystemLog Window with sro_devkit


Example:-

chat colors

Code:
wchar_t message[] = L"Hello World";

int color = D3DCOLOR_ARGB(255, 166, 9, 168);

CICharactor *entity = 0;

CLASSLINK_LOOP_BEGIN(CICharactor)
if (obj->GetName() == g_pCICPlayer->GetName()) {
entity = obj;
if (entity)
entity->ShowMessageAboveEntity(message,color);
}
CLASSLINK_LOOP_END(CICharactor)
You can use this with an icon or any click to test

Example:-

Title Name Colors

Add in #include "IGIDObject.h"

PHP Code:
void CIGIDObject::UpdateTitleColor(D3DCOLOR color)
{
    
fonttexture_title.SetColor(color);
} 

PHP Code:
CICharactor *entity = 0;

CLASSLINK_LOOP_BEGIN(CICharactor)
if (
obj->GetName() == g_pCICPlayer->GetName()) {
    
entity = obj;
    if (
entity)
    
entity->UpdateTitleColor(0xff004b);
}
CLASSLINK_LOOP_END(CICharactor) 
[Only registered and activated users can see links. Click Here To Register...]

You can use this with an icon or any click to test

Example:-

SystemLog
Code:
wchar_t message[] = L"Hello World";

int color = D3DCOLOR_ARGB(255, 166, 9, 168);

// Get the SystemLog Window - Media//resinfo//ginterface.txt - GDR_SYSTEM_MESSAGE_VIEW:IFSystemMessage -> ID Should be 68
IFSystemMessage *systemmessage = reinterpret_cast<IFSystemMessage *>(g_pCGInterface->m_IRM.GetResObj(68, 1));
systemmessage->write(0xFF, color, message, 0, 1);
You can use this with an icon or any click to test

Why explain that


Good Luck to Everyone
08/25/2020 23:39 thaidu0ngpr0#228
Quote:
Originally Posted by khaleed2010 View Post
Hello everyone,

how can create global colors or any chat & Title Name Colors & SystemLog Window with sro_devkit


Example:-

chat colors

Code:
wchar_t message[] = L"Hello World";

int color = D3DCOLOR_ARGB(255, 166, 9, 168);

CICharactor *entity = 0;

CLASSLINK_LOOP_BEGIN(CICharactor)
if (obj->GetName() == g_pCICPlayer->GetName()) {
entity = obj;
if (entity)
entity->ShowMessageAboveEntity(message,color);
}
CLASSLINK_LOOP_END(CICharactor)
You can use this with an icon or any click to test

Example:-

Title Name Colors

Add in #include "IGIDObject.h"

PHP Code:
void CIGIDObject::UpdateTitleColor(D3DCOLOR color)
{
    
fonttexture_title.SetColor(color);
} 

PHP Code:
CICharactor *entity = 0;

CLASSLINK_LOOP_BEGIN(CICharactor)
if (
obj->GetName() == g_pCICPlayer->GetName()) {
    
entity = obj;
    if (
entity)
    
entity->UpdateTitleColor(0xff004b);
}
CLASSLINK_LOOP_END(CICharactor) 
[Only registered and activated users can see links. Click Here To Register...]

You can use this with an icon or any click to test

Example:-

SystemLog
Code:
wchar_t message[] = L"Hello World";

int color = D3DCOLOR_ARGB(255, 166, 9, 168);

// Get the SystemLog Window - Media//resinfo//ginterface.txt - GDR_SYSTEM_MESSAGE_VIEW:IFSystemMessage -> ID Should be 68
IFSystemMessage *systemmessage = reinterpret_cast<IFSystemMessage *>(g_pCGInterface->m_IRM.GetResObj(68, 1));
systemmessage->write(0xFF, color, message, 0, 1);
You can use this with an icon or any click to test

Why explain that


Good Luck to Everyone

when I change the color, other people can't see it, and after the teleport, the color disappears,
Can you explain why?
[Only registered and activated users can see links. Click Here To Register...]
08/26/2020 00:17 Laag#82#229
Quote:
Originally Posted by thaidu0ngpr0 View Post
when I change the color, other people can't see it, and after the teleport, the color disappears,
Can you explain why?
[Only registered and activated users can see links. Click Here To Register...]
I know that

give to you this

[Only registered and activated users can see links. Click Here To Register...]

you need create map

change

PHP Code:
if (obj->GetName() == g_pCICPlayer->GetName()) {
entity = obj;
if (
entity) 
to

PHP Code:
it = TitleColors.find(obj->GetName().c_str());
if (
it != TitleColors.end()) 
Quote:
Originally Posted by florian0 View Post
My post did not contain the solution. I only showed whats wrong. The whole call destination is wrong in the first place. You can only "call" to the first address of a function, not in between. You can call UpdateColor directly. It is meant to change the text color of the entity name. In order to call that, you need to get the address of the entity. For your own player, its 0x00EEF5EC. You need to find the addresses of other players if you want to change other player's color aswell. HB gave the hint to hook CICPlayer::OnRender, which is at 0x009D87C0.
08/26/2020 01:12 thaidu0ngpr0#230
Quote:
Originally Posted by khaleed2010 View Post
I know that

give to you this

[Only registered and activated users can see links. Click Here To Register...]

you need create map

change

PHP Code:
if (obj->GetName() == g_pCICPlayer->GetName()) {
entity = obj;
if (
entity) 
to

PHP Code:
it = TitleColors.find(obj->GetName().c_str());
if (
it != TitleColors.end()) 

Anyway thank you very much for sharing, unfortunately my level cannot understand it yet
08/26/2020 04:23 chipno0p#231
Quote:
Originally Posted by thaidu0ngpr0 View Post
when I change the color, other people can't see it, and after the teleport, the color disappears,
Can you explain why?
[Only registered and activated users can see links. Click Here To Register...]
for this, you must also need a filter to handle this for you. Sro_devkit just changes the visual only. You have to use a filter or using sro_devkit to send an title update packet to all the the players near your character. Also the title name must exists in the DB and client data.
And after send the packet, update the Hwanlevel number in _char DB so that will not change when you teleported your character.

[Only registered and activated users can see links. Click Here To Register...]
08/26/2020 10:24 thaidu0ngpr0#232
Quote:
Originally Posted by chipno0p View Post
for this, you must also need a filter to handle this for you. Sro_devkit just changes the visual only. You have to use a filter or using sro_devkit to send an title update packet to all the the players near your character. Also the title name must exists in the DB and client data.
And after send the packet, update the Hwanlevel number in _char DB so that will not change when you teleported your character.

[Only registered and activated users can see links. Click Here To Register...]

what you said is for title level change. What I need is color change
09/03/2020 13:14 1turkvar#233
How is it compiled with clion?
09/03/2020 16:01 florian0#234
Quote:
Originally Posted by 1turkvar View Post
How is it compiled with clion?
Hiho,
did you try following the setup guide in the documentation? If yes, how far have you got. Which part are you having trouble with?
If not, please do.
09/03/2020 17:24 1turkvar#235
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

where is the mistake?
09/03/2020 19:06 elmagico321#236
Quote:
Originally Posted by 1turkvar View Post
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

where is the mistake?
read this topic over here i did use clion as he said and it worked just fine !!
[Only registered and activated users can see links. Click Here To Register...]

make sure you setup visual studio 2005 at drive C
then add vs 2005 at Toolchain after you edit the file name VisualStudioVersion

read the topic above you will understand
09/03/2020 19:43 1turkvar#237
Quote:
Originally Posted by elmagico321 View Post
read this topic over here i did use clion as he said and it worked just fine !!
[Only registered and activated users can see links. Click Here To Register...]

make sure you setup visual studio 2005 at drive C
then add vs 2008 at Toolchain after you edit the file name VisualStudioVersion

read the topic above you will understand
I missed it. I have no problem now. Thank you.
09/27/2020 07:45 halloway520#238
NICK WORK! MY LOVER~
09/27/2020 19:20 gmhasan13#239
Hello Community,I need help
[Only registered and activated users can see links. Click Here To Register...]

Where Problem Need Help @[Only registered and activated users can see links. Click Here To Register...]
10/24/2020 17:06 mudik#240
@[Only registered and activated users can see links. Click Here To Register...] ist das hier auch von def_kit? [Only registered and activated users can see links. Click Here To Register...]


[Only registered and activated users can see links. Click Here To Register...]