Jump to content

[Question]g'm Image Error


Go to solution Solved by Torres,

Recommended Posts

  • Premium

Hello gentlemen!
I want to ask you a question: When I am the GM,/IN and I use /GO 600 600, move, and the player can see me for one second (the GM image above my head). I don't know what's wrong. Can you give me some advice? Thank you

Edited by Torres
Link to comment
https://metin2.dev/topic/33470-questiongm-image-error/
Share on other sites

17 minutes ago, Torres said:

Can you be more specific? thank you

 

Inside input_login.cpp -> void CInputLogin::Entergame

Under(not inside of it) this function:
 

	if (!(ch = d->GetCharacter()))
	{
		d->SetPhase(PHASE_CLOSE);
		return;
	}

Add this:

 

ch->RefreshAffect();


Keep in mind that a GM detector will still detect you because the game sends your position to players in your stream..but the mentioned issue will not happen.

You can pretty much do this with CHARACTER::WarpSet as well, just call the refreshaffect func.

Edited by Khabib Nurmagomedov

Software Engineer @ CNH Industrial (NAFTA/EMEA)

Link to comment
https://metin2.dev/topic/33470-questiongm-image-error/#findComment-169629
Share on other sites

  • Premium
21 minutes ago, Khabib Nurmagomedov said:

Inside input_login.cpp -> void CInputLogin::Entergame

Under(not inside of it) this function:
 

	if (!(ch = d->GetCharacter()))
	{
		d->SetPhase(PHASE_CLOSE);
		return;
	}

Add this:

 

ch->RefreshAffect();


Keep in mind that a GM detector will still detect you because the game sends your position to players in your stream..but the mentioned issue will not happen.

Thank you for your answer and best wishes

I add it,but can't work

void CInputLogin::Entergame(LPDESC d, const char * data)
{
	LPCHARACTER ch;

	if (!(ch = d->GetCharacter()))
	{
		d->SetPhase(PHASE_CLOSE);
		return;
	}

	ch->RefreshAffect();

	PIXEL_POSITION pos = ch->GetXYZ();

	if (!SECTREE_MANAGER::instance().GetMovablePosition(ch->GetMapIndex(), pos.x, pos.y, pos))
	{
		PIXEL_POSITION pos2;
		SECTREE_MANAGER::instance().GetRecallPositionByEmpire(ch->GetMapIndex(), ch->GetEmpire(), pos2);

		sys_err("!GetMovablePosition (name %s %dx%d map %d changed to %dx%d)",
				ch->GetName(),
				pos.x, pos.y,
				ch->GetMapIndex(),
				pos2.x, pos2.y);
		pos = pos2;
	}

.gif

Edited by Torres
Link to comment
https://metin2.dev/topic/33470-questiongm-image-error/#findComment-169630
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.