Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Hide JJang

I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
This code is used for nothing else to hide the jjang in the game, obviously it will not be removed forever, it will only hide it for a while, you can activate or deactivate it whenever you want.

Includes sound effects when activating the command.
PHP:
struct ZCharacterStatus add these

ZCharacter.h

int isJjang;

isJjang(0),

PHP:
void ChatCmd_HideJjangJork(const char* line, const int argc, char** const argv);
PHP:
_CC_AC("hj",                   &ChatCmd_HideJjangJork,         CCF_GAME, ARGVNoMin, ARGVNoMax, true, "/hj", "");

PHP:
void ChatCmd_HideJjangJork(const char* line, const int argc, char** const argv)
{
	char szMsg[256];
	if (!ZGetMyInfo()->IsEventGrade())
	{
		//return;
	}
	if (ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang == 0)
	{
		ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc();
		ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang = 1;
		ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc();
		ZGetEffectManager()->Clear();
		ZGetSoundEngine()->PlaySound("fx_whoosh02");
		sprintf(szMsg, "^2Hide Jjang: Off");
	}
	else if (ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang == 1)
	{
		ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc();
		ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang = 0;
		ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc();
		if (ZGetGame())
			ZGetGame()->GetJjang();
		ZGetSoundEngine()->PlaySound("fx_whoosh02");
		sprintf(szMsg, "^1Hide Jjang: On");
	}
	ZChatOutput(szMsg);
}

Code:
Credits: Jorklenis2

Video Example:
 
Last edited:
Newbie Spellweaver
Joined
Jan 18, 2021
Messages
6
Reaction score
0
Hello Jorklenis:
- Your code was not released because of the following errors
'IsEventGrade' & ' GetJjang ' : is not a member of ZMyInfo
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
Hello Jorklenis:
- Your code was not released because of the following errors
'IsEventGrade' & ' GetJjang ' : is not a member of ZMyInfo

change
if (!ZGetMyInfo()->IsEventGrade())
{
//return;
}

remplace for

if (ZGetMyInfo()->GetUGradeID() == MMUG_STAR)
{
//return;
}
 
Experienced Elementalist
Joined
Oct 14, 2015
Messages
293
Reaction score
86
This code is used for nothing else to hide the jjang in the game, obviously it will not be removed forever, it will only hide it for a while, you can activate or deactivate it whenever you want.

Includes sound effects when activating the command.
PHP:
struct ZCharacterStatus add these

ZCharacter.h

int isJjang;

isJjang(0),

PHP:
void ChatCmd_HideJjangJork(const char* line, const int argc, char** const argv);
PHP:
_CC_AC("hj",                   &ChatCmd_HideJjangJork,         CCF_GAME, ARGVNoMin, ARGVNoMax, true, "/hj", "");

PHP:
void ChatCmd_HideJjangJork(const char* line, const int argc, char** const argv)
{
    char szMsg[256];
    if (!ZGetMyInfo()->IsEventGrade())
    {
        //return;
    }
    if (ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang == 0)
    {
        ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc();
        ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang = 1;
        ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc();
        ZGetEffectManager()->Clear();
        ZGetSoundEngine()->PlaySound("fx_whoosh02");
        sprintf(szMsg, "^2Hide Jjang: Off");
    }
    else if (ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang == 1)
    {
        ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc();
        ZGetGame()->m_pMyCharacter->GetStatus().Ref().isJjang = 0;
        ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc();
        if (ZGetGame())
            ZGetGame()->GetJjang();
        ZGetSoundEngine()->PlaySound("fx_whoosh02");
        sprintf(szMsg, "^1Hide Jjang: On");
    }
    ZChatOutput(szMsg);
}

Code:
Credits: Jorklenis2

Video Example:
This command has a major flaw, every time you enter the game you will have to type the command every time.I recommend making the code safer and more structured.
 
Junior Spellweaver
Joined
Sep 27, 2016
Messages
151
Reaction score
10
How i can fix it :<
Yr9JI3z - Hide JJang - RaGEZONE Forums
jorklenis2 - Hide JJang - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Back
Top