You last visited: Today at 07:58
Advertisement
[Release] Merging HB's Code into the devkit
Discussion on [Release] Merging HB's Code into the devkit within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
11/17/2020, 07:56
#1
elite*gold: 0
Join Date: Oct 2020
Posts: 22
Received Thanks: 8
[Release] Merging HB's Code into the devkit
Whatsup everyone around here? this is my first release, i am merging @HB's client notification handler into the devkit , so you should be able to create new types of server notification aka 0x300C as HB mentioned.
You can find CPSMisson.cpp, .h
Code in .cpp
Code:
#define UNIQUE_SPAWN 0x0C05
#define UNIQUE_DIE 0x0C06
#define MOB_CH_TIGERWOMAN 1954
#define MOB_AM_IVY 14936
#define MOB_TK_BONELORD 3810
#define MOB_KK_ISYUTARU 2002
#define MOB_OA_URUCHI 1982
#define MOB_RM_TAHOMET 3875
#define MOB_EU_KERBEROS 5871
CIFSystemMessage* systemmessage = g_pCGInterface->GetSystemMessageView();
if (MsgBuffer->msgid() == 0x300C)// unique status
{
unsigned short type;
*MsgBuffer >> type;
switch (type) {
case UNIQUE_SPAWN: {
unsigned short UniqueID;
*MsgBuffer >> UniqueID;
switch (UniqueID)
{
case MOB_CH_TIGERWOMAN: {
wchar_t message[] = L"Tiger girl has appeared on Tiger Mountain.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_AM_IVY: {
wchar_t message[] = L"[Captain Ivy] has appeared on Asia Minor.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_TK_BONELORD: {
wchar_t message[] = L"[Lord Yarkan] has appeared on Taklamakan.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_KK_ISYUTARU: {
wchar_t message[] = L"[Isyutaru] has appeared on Karakoram.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_OA_URUCHI: {
wchar_t message[] = L"[Commander Uruchi] has appeared on Tarim-Basin.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_RM_TAHOMET: {
wchar_t message[] = L"[Demon Shaitan] has appeared on Roc MT.";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
case MOB_EU_KERBEROS: {
wchar_t message[] = L"[Cerberus] has appeared on Garden Of Gods";
g_pCGInterface->ShowMessage_Warning(message);
systemmessage->WriteMessage(255, 0xff09FF00, message, 0, 1);
break;
}
}
}
break;
//-Unique Kill
case UNIQUE_DIE:
{
unsigned short UniqueID;
unsigned short unknown;
std::n_string killer;
*MsgBuffer >> UniqueID >> unknown >> killer;
switch (UniqueID) {
case MOB_CH_TIGERWOMAN: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Tiger girl from Tiger Mountain.", acp_decode(killer).c_str());
systemmessage->WriteMessage(255, 0xffff0000, buffer1, 0, 1);
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
break;
}
case MOB_AM_IVY: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Captain Ivy from Asia minor.", acp_decode(killer).c_str());
systemmessage->WriteMessage(255, 0xffff0000, buffer1, 0, 1);
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
break;
}
case MOB_TK_BONELORD: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Lord Yarkan from Taklamakan.", acp_decode(killer).c_str());
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
systemmessage->WriteMessage(255, 0xffff0000, mymsg7.c_str(), 0, 1);
break;
}
case MOB_KK_ISYUTARU: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Isyutaru from Karakoram.", acp_decode(killer).c_str());
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
systemmessage->WriteMessage(255, 0xffff0000, mymsg7.c_str(), 0, 1);
break;
}
case MOB_OA_URUCHI: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Uruchi from Tarim Basin.", acp_decode(killer).c_str());
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
systemmessage->WriteMessage(255, 0xffff0000, mymsg7.c_str(), 0, 1);
break;
}
case MOB_RM_TAHOMET: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Demon Shaitan from Mt. Roc.", acp_decode(killer).c_str());
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
systemmessage->WriteMessage(255, 0xffff0000, mymsg7.c_str(), 0, 1);
break;
}
case MOB_EU_KERBEROS: {
wchar_t buffer1[0x255];
swprintf_s(buffer1, sizeof(buffer1), L"[%s] has killed Cerberus from Forest of Dusk.", acp_decode(killer).c_str());
std::wstring mymsg7;
mymsg7.assign(buffer1);
g_pCGInterface->ShowMessage_Warning(mymsg7.c_str());
systemmessage->WriteMessage(255, 0xffff0000, mymsg7.c_str(), 0, 1);
break;
}
}
break;
}
}
MsgBuffer->m_currentReadBytes = 0;
}
You should be able to sniff the 0x300C and recycle other notifications,
NOTE: You should remove any thing related to whatever notify you're going to edit from the textuisystem.txt
Proof:
Thanks
11/17/2020, 09:38
#2
elite*gold: 270
Join Date: Apr 2017
Posts: 1,037
Received Thanks: 534
Same uinques id will show 2x msg
some other uniques will crash
11/17/2020, 18:09
#3
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 909
Quote:
Originally Posted by
Zoro.Sro
Same uinques id will show 2x msg
some other uniques will crash
He's just providing an example, if you use the actual release, you won't face any problems.
11/17/2020, 18:38
#4
elite*gold: 270
Join Date: Apr 2017
Posts: 1,037
Received Thanks: 534
Quote:
Originally Posted by
#HB
He's just providing an example, if you use the actual release, you won't face any problems.
Yea, tested from ago
11/18/2020, 23:25
#5
elite*gold: 0
Join Date: Oct 2018
Posts: 98
Received Thanks: 20
where i must add this code for get this unique notice?
11/19/2020, 18:22
#6
elite*gold: 0
Join Date: Oct 2020
Posts: 22
Received Thanks: 8
Quote:
Originally Posted by
#HB
He's just providing an example, if you use the actual release, you won't face any problems.
Yea, nice release buddy, also nobody won't face a simple problem using this method, while your release doesn't support multiple colour and forcing you to use one colour only for every unique, this method is providing unlimited colours for despawn nor spawn, after all I don't underestimating your release, Cheers !
Quote:
Originally Posted by
Jack_Fight
where i must add this code for get this unique notice?
, or just follow
11/19/2020, 21:23
#7
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 909
Quote:
Originally Posted by
paul_0
while your release doesn't support multiple colour and forcing you to use one colour only for every unique
That's not true actually, you can do anything with it. I just re-wrote the function as a source on its original form in client, a normal client has same color for spawn, despawn and kill messages.
So, if you want to customize colors per unique, a switch or a list would it, help yourself ^^
11/20/2020, 01:17
#8
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Hello,
You should read it completely and recycle it
good luck
Similar Threads
RGH-Jtag-Devkit Kaufen.
08/02/2013 - Consoles - 2 Replies
Hallo,
Ich wollte wissen wo ich Billig eine RGH bzw eine Jtag Kaufen kann ich hatte in Letzter zeit eine von einem freund doch dieser Braucht sie jetzt wieder selber da wollte ich mir jetzt auch eine kaufen :p
Rexiles DevKit
09/14/2012 - WarRock Guides, Tutorials & Modifications - 2 Replies
Hey homies...
Im the Rexiles Head Developer (Server, Website).
I wanted to release the Official DevKit (1.0), which is only useable for Plugins (Rexiles Game Server).
If you download Here (or as Attachment), you see the Source Files (for Plugins) and the DLLs you have to Include (its all .NET, lol).
So if you wanted to make a Plugin for the Server, write one, i'll check the compatibility and maybe i'll include it into the server.
So, that's it...
ToDo-List
~ Interface for Room.Room
~...
MERGING OF Sydney and Toronto is big mistake! Please help sign the petition
12/29/2007 - Eudemons Online - 10 Replies
petition closed, sorry.
We have private server files & guide, so we won't suffer from TQ bitching anymore I guess.
All times are GMT +2. The time now is 07:59 .