Release: Playerflag System And Custom Tag System

Hello,

I have for the last 4 months studied c++, and i decided to make a player flag system and tag system, it is for trinitycore revision around middle of january, cant guarantee it works anymore but it shouldn’t be that hard to update.

I’ve been leeching alot on trinity forums and asked for help alot of times so i think its about time i give something back in return /emoticons/default_smile.png

Here it is, you have to add it by hand ofcourse as the patch is very very old /emoticons/default_smile.png But the system works for me using a stable revision from around january /emoticons/default_smile.png Have fun guys!

player_flag.diff

Are you sure you wrote this? Because I just found a link that begs to differ.

http://www.ac-web.org/forums/showthread.php?t=143986

Im artic on ac-web lol. If you didn’t notice the text is the same…

So it only works for announce?

Example

bool ChatHandler::HandleNameAnnounceCommand(const char* args)

{

if (!*args)

return false;

std::string name(“Console”);

if (WorldSession* session = GetSession())

name = session->GetPlayer()->GetName();

if (sWorld->getIntConfig(CONFIG_NAME_COMMAND) == 1)

{

switch(GetSession()->GetSecurity())

{

case SEC_MODERATOR:

sWorld->SendWorldText(LANG_MODERATOR_ANNOUNCE, name.c_str(), args);

break;

case SEC_GAMEMASTER:

sWorld->SendWorldText(LANG_GAMEMASTER_ANNOUNCE, name.c_str(), args);

break;

case SEC_ADMINISTRATOR:

sWorld->SendWorldText(LANG_ADMINISTRATOR_ANNOUNCE, name.c_str(), args);

break;

case SEC_CONSOLE:

sWorld->SendWorldText(LANG_CONSOLE_ANNOUNCE, name.c_str(), args);

break;

case SEC_DEVELOPER:

sWorld->SendWorldText(LANG_DEVELOPER_ANNOUNCE, name.c_str(), args);

break;

case SEC_TECHSUPPORT:

sWorld->SendWorldText(LANG_TECHSUPPORT_ANNOUNCE, name.c_str(), args);

break;

}

}

if (sWorld->getIntConfig(CONFIG_NAME_COMMAND) == 0)

{

sWorld->SendWorldText(LANG_ANNOUNCE_COLOR, name.c_str(), args);

}

return true;

}

any one can convert this script for Win32 ?

i like this

Yes, thats why i asked, whats diferent in his patch from something like that /emoticons/default_smile.png .