|
You last visited: Today at 05:58
Advertisement
[WIP] Get SRO Source Code - by re-writing it
Discussion on [WIP] Get SRO Source Code - by re-writing it within the SRO Coding Corner forum part of the Silkroad Online category.
08/20/2020, 14:03
|
#226
|
elite*gold: 0
Join Date: Mar 2010
Posts: 565
Received Thanks: 226
|
Quote:
Originally Posted by mudik
Can anyone tell me how i can disable Flo´s window and stay the discord only?
|
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
|
#227
|
elite*gold: 0
Join Date: Mar 2010
Posts: 565
Received Thanks: 226
|
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)
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
|
#228
|
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
|
Quote:
Originally Posted by khaleed2010
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)
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?
|
|
|
08/26/2020, 00:17
|
#229
|
elite*gold: 0
Join Date: Mar 2010
Posts: 565
Received Thanks: 226
|
Quote:
Originally Posted by thaidu0ngpr0
when I change the color, other people can't see it, and after the teleport, the color disappears,
Can you explain why?
|
I know that
give to you this
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
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
|
#230
|
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
|
Quote:
Originally Posted by khaleed2010
I know that
give to you this
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
|
#231
|
elite*gold: 0
Join Date: Oct 2012
Posts: 144
Received Thanks: 29
|
Quote:
Originally Posted by thaidu0ngpr0
when I change the color, other people can't see it, and after the teleport, the color disappears,
Can you explain why?
|
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.
|
|
|
08/26/2020, 10:24
|
#232
|
elite*gold: 0
Join Date: Apr 2012
Posts: 263
Received Thanks: 267
|
Quote:
Originally Posted by chipno0p
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.
|
what you said is for title level change. What I need is color change
|
|
|
09/03/2020, 13:14
|
#233
|
elite*gold: 0
Join Date: Jul 2020
Posts: 26
Received Thanks: 36
|
How is it compiled with clion?
|
|
|
09/03/2020, 16:01
|
#234
|
elite*gold: 100
Join Date: Apr 2008
Posts: 860
Received Thanks: 1,465
|
Quote:
Originally Posted by 1turkvar
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
|
#235
|
elite*gold: 0
Join Date: Jul 2020
Posts: 26
Received Thanks: 36
|
where is the mistake?
|
|
|
09/03/2020, 19:06
|
#236
|
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
|
Quote:
Originally Posted by 1turkvar
where is the mistake?
|
read this topic over here i did use clion as he said and it worked just fine !!
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
|
#237
|
elite*gold: 0
Join Date: Jul 2020
Posts: 26
Received Thanks: 36
|
Quote:
Originally Posted by elmagico321
read this topic over here i did use clion as he said and it worked just fine !!
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
|
#238
|
elite*gold: 0
Join Date: Dec 2012
Posts: 49
Received Thanks: 6
|
NICK WORK! MY LOVER~
|
|
|
09/27/2020, 19:20
|
#239
|
elite*gold: 0
Join Date: Dec 2013
Posts: 63
Received Thanks: 6
|
Hello Community,I need help
Where Problem Need Help @
|
|
|
10/24/2020, 17:06
|
#240
|
elite*gold: 0
Join Date: Dec 2009
Posts: 386
Received Thanks: 88
|
@ ist das hier auch von def_kit?
|
|
|
|
|
Similar Threads
|
[Source] Fix the old exp bar - by writing code!
05/17/2020 - SRO PServer Guides & Releases - 18 Replies
Hello beloved, dead community,
its time for another release. Its more of a proof of concept and I hope it might inspire people to continue working on it. You don't need the source to accomplish cool things. Just write your own source.
http://i.epvpimg.com/d7hJbab.png
Ye, its super ugly looking. I choose to be a coder, not a designer. I'd be happy, if someone supplies me a proper version of the 2dt and ddj files so I can update this embarrassing screenshot.
Anyway. It allows you to...
|
[Release/WIP]EP6 Source code
04/15/2018 - Shaiya PServer Guides & Releases - 33 Replies
Hi guys,
First of all, I want to say that this release is not recommended for public servers yet. Shortly ago I changed my server to ep6 using shen1l's pet.dll, the server crashed every day, after checking the dump files I discovered that the problem was in pet.dll, but without the source code it would be harder to find the cause of the problem. So I decided to start a project and release the source code for everyone, so that everyone can solve their problems more easily, and also so that...
|
[C++ Source] My Free Farm Bot [WIP]
06/28/2011 - Browsergames - 0 Replies
I decided to release this on here as i have no more use for it and no intention to continue the project.
I am releasing 2 projects: One basic library for mff called libmff(although it is not really a library) there is an example on how to use it in the package.
And a helper with a fancy gui.
Note that there is almost no error checking on the helper and that it crashes if you for example forget to select a product.
You need libcurl and boost for both and GWEN(the gui toolkit by garry) for...
|
All times are GMT +2. The time now is 05:58.
|
|