Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Metin2 Manager Ticket System [version 0.0.5] by Vegas

Vanilla

Elite
Elite
Credits
1,180
Manager Ticket System

The system is working ^^

I use it myself and have no problem with it.

If, after adding the system, the character crashes you when you log in

packet_info.cpp

change from:

Code:
#ifdef ENABLE_TICKET_SYSTEM
    Set(HEADER_CG_TICKET_OPEN, sizeof(TPacketCGTicketOpen), "TPacketCGTicketOpen", false);
    Set(HEADER_CG_TICKET_CREATE, sizeof(TPacketCGTicketCreate), "TPacketCGTicketCreate", false);
    Set(HEADER_CG_TICKET_REPLY, sizeof(TPacketCGTicketReply), "TPacketCGTicketReply", false);
    Set(HEADER_CG_TICKET_ADMIN, sizeof(TPacketCGTicketAdmin), "TPacketCGTicketAdmin", false);
    Set(HEADER_CG_TICKET_ADMIN_PAGE, sizeof(TPacketCGTicketAdminChangePage), "TPacketCGTicketAdminChangePage", false);
#endif
to:
Code:
#ifdef ENABLE_TICKET_SYSTEM
    Set(HEADER_CG_TICKET_OPEN, sizeof(TPacketCGTicketOpen), "TPacketCGTicketOpen", true);
    Set(HEADER_CG_TICKET_CREATE, sizeof(TPacketCGTicketCreate), "TPacketCGTicketCreate", true);
    Set(HEADER_CG_TICKET_REPLY, sizeof(TPacketCGTicketReply), "TPacketCGTicketReply", true);
    Set(HEADER_CG_TICKET_ADMIN, sizeof(TPacketCGTicketAdmin), "TPacketCGTicketAdmin", true);
    Set(HEADER_CG_TICKET_ADMIN_PAGE, sizeof(TPacketCGTicketAdminChangePage), "TPacketCGTicketAdminChangePage", true);
#endif
I also recommend blocking signs here gives an example

Code:
bool CTicketSystem::IsDenied(LPCHARACTER ch, char* argument)
{
static char dwListDenied[] = {
// '?',
// '*',
//'$',
//'!',
// '/',
//'>',
//'<',
// '|',
// ';',
//':',
//'}',
//'{',
//'[',
//']',
'%',
'#',
'@',
'^',
'&',
'DROP',
'drop',
// '"',
// '\'',
// '\\',
'TRUNCATE'
};

std::string strLine = argument;

for (int i = 0; i < _countof(dwListDenied); i++)
{
if (strLine.find(dwListDenied[i]) != std::string::npos)
{
ch-> ChatPacket (CHAT_TYPE_INFO, "You can not use special characters in a message.");
return true;
}
}

return false;
}

/[CODE]











[REPLYANDTHANKS]https://mega.nz/#!IJtBTaRb!yWAWMo3kYDEl8k5T05X5si5YFfV_tMkEaJIbvWAKQOM[/REPLYANDTHANKS]
 
Cause it is in the code tab xD even i was try to find it! anyway just click on the download word of my previous comment
 

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now
Tigrex

Tigrex Purchase

User upgrade! at

🔥 Upgrade Now