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
  • 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

  • Love 3
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.