Jump to content

Fix - say_title | say_reward


Risan

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
Share on other sites

  • 3 years later...

Announcements



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