Register for your free account! | Forgot your password?
Rust Cheats

You last visited: Today at 04:19

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

Advertisement



GM name in /notice

Discussion on GM name in /notice within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
naosou's Avatar
 
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);
	}
};
naosou is offline  
Old 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
Remix v106 is offline  
Thanks
2 Users
Old 05/19/2016, 20:35   #3
 
Splinglol's Avatar
 
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?^^
Splinglol is offline  
Old 05/19/2016, 20:55   #4



 
ライト's Avatar
 
elite*gold: 155
The Black Market: 239/0/0
Join Date: Oct 2012
Posts: 4,981
Received Thanks: 774
Quote:
Originally Posted by Splinglol View Post
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_PLAYERd->GetCharacter()->GetName(), m_str); 
korrigiert mich wenn es falsch sein sollte
ライト is offline  
Thanks
1 User
Old 05/19/2016, 21:52   #5
 
Splinglol's Avatar
 
elite*gold: 50
Join Date: Aug 2012
Posts: 535
Received Thanks: 284
Quote:
Originally Posted by Kirito' View Post
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_PLAYERd->GetCharacter()->GetName(), m_str); 
korrigiert mich wenn es falsch sein sollte
Grundsätzlich gute Idee, aber gibt n Error beim Compilen :/

Splinglol is offline  
Old 05/19/2016, 22:24   #6



 
ライト's Avatar
 
elite*gold: 155
The Black Market: 239/0/0
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_PLAYERd->GetCharacter()->GetName(), m_str); 
ライト is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.