Jump to content

Fix - say_title | say_reward


Recommended Posts

Hello People,

The new Client Source have a bug on Ymir.

say_title and say_reward is all White Color is not nice..

 

Here is a Fix:

 

Open PythonEventManager.cpp on folder -> UserInterface

 

Go function: ProcessEventSet -> case EVENT_TYPE_LETTER:

 

OLD:

const std::string& c_rstValue = GetArgumentString("value", ScriptCommand.argList);
			pEventSet->strCurrentLine.append(c_rstValue);
			pEventSet->pCurrentTextLine->SetValueString(pEventSet->strCurrentLine);
			BYTE r = pEventSet->CurrentColor.r * 255 + 0.5f;
			BYTE g = pEventSet->CurrentColor.g * 255 + 0.5f;
			BYTE b = pEventSet->CurrentColor.b * 255 + 0.5f;
			if (pEventSet->isQuestInfo)
			{

				// Á¦¸ñ say_title À» ¾²´Â °æ¿ì
				if (255 == r && 230 == g && 186 == 
				{
					pEventSet->pCurrentTextLine->SetColor(1.f, 1.f, 1.f);
					//pEventSet->pCurrentTextLine->SetValueString(strcat(pEventSet->pCurrentTextLine),"...");
					pEventSet->pCurrentTextLine->SetLimitWidth(168.f);
				}
				// Æò¹®
				else if ((196 == r && 196 == g && 196 ==  || (255 == r && 255 == g && 255 == )
				{
					pEventSet->pCurrentTextLine->SetColor(0,0,0);
				}
				else
				{
					pEventSet->pCurrentTextLine->SetColor(r,g,;
				}
			}
			else
			{
				pEventSet->pCurrentTextLine->SetColor(r, g, ;
			}
			pEventSet->iCurrentLetter+=c_rstValue.length();

			if (pEventSet->iCurrentLetter >= pEventSet->iRestrictedCharacterCount)
			{
				__InsertLine(*pEventSet);
			}

			pEventSet->lLastDelayTime = pEventSet->lWaitingTime;
			break;

Replace on This:

			const std::string& c_rstValue = GetArgumentString("value", ScriptCommand.argList);
			pEventSet->strCurrentLine.append(c_rstValue);
			pEventSet->pCurrentTextLine->SetValueString(pEventSet->strCurrentLine);
			pEventSet->pCurrentTextLine->SetColor(pEventSet->CurrentColor.r,pEventSet->CurrentColor.g,pEventSet->CurrentColor.;
			pEventSet->iCurrentLetter+=c_rstValue.length();

			if (pEventSet->iCurrentLetter >= pEventSet->iRestrictedCharacterCount)
				{
				__InsertLine(*pEventSet);
				}

			pEventSet->lLastDelayTime = pEventSet->lWaitingTime;
			break;

Compile and is fixxed :)

 

INFO: Code is from Python22 src...

 

Best Regards,

 

 

  • Love 2
Link to comment
https://metin2.dev/topic/1782-fix-say_title-say_reward/
Share on other sites

  • 3 years later...
22 minutes ago, Darknetto said:

Cython src  and mainline w19 are public......

After 4 years you come to say that shit?
Posted June 24,
2014 - Today: January 05, 2018.
Thanks Senpai.

tumblr_lozdsb0bKx1qbnd1c.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 3
Link to comment
https://metin2.dev/topic/1782-fix-say_title-say_reward/#findComment-96902
Share on other sites

1 hour ago, Tasho said:

After 4 years you come to say that shit?
Posted June 24,
2014 - Today: January 05, 2018.
Thanks Senpai.

tumblr_lozdsb0bKx1qbnd1c.gif

sorry from my iphone i cant see the date <.<

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/1782-fix-say_title-say_reward/#findComment-96905
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.