|
You last visited: Today at 04:19
Advertisement
GM name in /notice
Discussion on GM name in /notice within the Metin2 Private Server forum part of the Metin2 category.
04/25/2016, 15:05
|
#1
|
elite*gold: 0
Join Date: May 2013
Posts: 396
Received Thanks: 92
|
GM name in /notice
To add the GM name in /notice command is it somewhere in this function?
Code:
struct notice_packet_func
{
const char * m_str;
bool m_big;
notice_packet_func(const char * str, bool big = false) : m_str(str), m_big(big)
{
}
void operator () (LPDESC d)
{
if (!d->GetCharacter())
return;
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s", m_str);
}
};
|
|
|
04/25/2016, 18:44
|
#2
|
elite*gold: 0
Join Date: Apr 2016
Posts: 2
Received Thanks: 2
|
Code:
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s: %s", d->GetCharacter()->GetName(), m_str);
should work
|
|
|
05/19/2016, 20:35
|
#3
|
elite*gold: 50
Join Date: Aug 2012
Posts: 535
Received Thanks: 284
|
Quote:
|
Spieler1: Spieler1 ist ein neuer Sura auf Server
|
Quote:
|
Spieler1: Spieler1 versucht den blauen Drachen zu töten
|
usw, ihr erkennt das problem
man kann die ganzen Quests die eine Ankündigung haben, nicht mehr benutzen :/
jemand ne idee?^^
|
|
|
05/19/2016, 20:55
|
#4
|
elite*gold: 155
Join Date: Oct 2012
Posts: 4,981
Received Thanks: 774
|
Quote:
Originally Posted by Splinglol
usw, ihr erkennt das problem
man kann die ganzen Quests die eine Ankündigung haben, nicht mehr benutzen :/
jemand ne idee?^^
|
Kenne mich mit C++ nicht aus, aber vielleicht hilft es ja eine Abfrage zu machen ob der Charakter ein GM ist oder nicht. Ich hoffe es ist so richtig  .
PHP Code:
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s: %s", (ch->GetGMLevel() == GM_PLAYER) d->GetCharacter()->GetName(), m_str);
korrigiert mich wenn es falsch sein sollte
|
|
|
05/19/2016, 21:52
|
#5
|
elite*gold: 50
Join Date: Aug 2012
Posts: 535
Received Thanks: 284
|
Quote:
Originally Posted by Kirito'
Kenne mich mit C++ nicht aus, aber vielleicht hilft es ja eine Abfrage zu machen ob der Charakter ein GM ist oder nicht. Ich hoffe es ist so richtig  .
PHP Code:
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s: %s", (ch->GetGMLevel() == GM_PLAYER) d->GetCharacter()->GetName(), m_str);
korrigiert mich wenn es falsch sein sollte 
|
Grundsätzlich gute Idee, aber gibt n Error beim Compilen :/
|
|
|
05/19/2016, 22:24
|
#6
|
elite*gold: 155
Join Date: Oct 2012
Posts: 4,981
Received Thanks: 774
|
Versuch es mal so:
PHP Code:
d->GetCharacter()->ChatPacket(m_big == true ? CHAT_TYPE_BIG_NOTICE : CHAT_TYPE_NOTICE, "%s: %s", (GetGMLevel() == GM_PLAYER) d->GetCharacter()->GetName(), m_str);
|
|
|
Similar Threads
|
Notice
06/07/2013 - SRO Private Server - 0 Replies
Hello All.
i Want Make Auto Notice When Player Log in
i Mean : When --- Login its will make Notice ( Only To This Player) (Other Players Cant See ) that say : Welcome --- To --- Online...
Ty
|
*Notice*Warning Password stealing site*Notice*
12/28/2009 - World of Warcraft - 0 Replies
Notice is as follows, do not enter this site, if you get a notice in your email like this for gawd sakes dont give anyone your password
Subject:World of Warcraft Account Trade Dispute Notice
When we carry out a routine check when the account, we have evidence to show that your account has been involved in the disputed transactions.
So we have to inform you visit our website(worldofwarcraft*com]fill out some information to facilitate our investigation.
If you can not tie in with our soon...
|
All times are GMT +1. The time now is 04:20.
|
|