Welcome to Onforum.net - Web and gaming resource community

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?
  • elefant.ro%20

Metin2 Manager Ticket System [version 0.0.5] by Vegas

Vanilla

Elite
Elite
Credits
1,073
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]
 

Aioria

Banned
Banned
Credits
1
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
 
Thread starter Similar threads Forum Replies Date
Blaze C++ / DIFF / Source 6

Similar threads


About us

OnForum.net is a resource community where aspiring webmasters and designers can share content and receive support for a wide variety of software platforms. We are working every day to make sure our community is one of the best.

PARTNERS

Follow us

We recommend

Doza de Blog
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!