Jump to content

Recommended Posts

Hello all    

 

How is posible to make  ingame  but if player maried and  show husband/wifes name over head

 

for man

 

             Wife of PlayerNameMan 

     150 Chivarlic PlayerNameWomen

 

 

        Husband of PlayerNameWomen

    150  Chivarlic PlayerNameMan

 

 

 

tnx

 

ps:  this is used on PerfectWorld                                        

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You mean like guild name on name ?

Yes bro his mean, if you married with one bitch and she name write on guildname section.

 

turkish : (moruk seni daha tanımıyorum ama güzel birine benziyosun :D neyse lavuğun dediği gibi evlendiğinde karının ismi yazarsa loncanın oraya çok fena olur belki yapabiliriz böyle birşey?)

Link to comment
Share on other sites

Hi again.

 

I write something and i finished but i don't test it.

 

 

PythonTextTailModule.cpp

PyObject * textTailRegisterCharacterTextTailMarriage(PyObject * poSelf, PyObject * poArgs)
{
	int iVirtualID;
	char * text;
	
	if(!PyTuple_GetInteger(poArgs,0,&iVirtualID))
		return Py_BuildException();
	
	if(!PyTuple_GetString(poArgs,0,&text))
		return Py_BuildException();
		
	CPythonTextTail::Instance().RegisterCharacterTextTailMarriage(text,VirtualID,D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f));
	CPythonTextTail::Instance().ShowCharacterTextTail(VirtualID);
	return Py_BuildNone();
}

PythonTextTail.h

			CGraphicTextInstance*			pMarriageNameTextInstance;

PythonTextTail.cpp

void CPythonTextTail::RegisterCharacterTextTailMarriage(char * text,DWORD dwVirtualID,const D3DXCOLOR & c_rColor)
{
	CInstanceBase * pCharacterInstance = CPythonCharacterManager::Instance().GetInstancePtr(dwVirtualID);
	
	if(!pCharacterInstance)
		return;
		
	float fTextTailHeight = CInstanceBase::instance().IsMountingHorse() ? 120.0f : 20.0f;
		
	TTextTail * pTextTail = RegisterTextTail(dwVirtualID,
											 pCharacterInstance->GetNameString(),
											 pCharacterInstance->GetGraphicThingInstancePtr(),
											 pCharacterInstance->GetGraphicThingInstanceRef().GetHeight() + fTextTailHeight,
											 c_rColor);
											 
	
	CGraphicTextInstance * pTextMarriageInstance = pTextTail->pTextInstance;
	pTextMarriageInstance->SetOutline(true);
	pTextMarriageInstance->SetVerticalAlign(CGraphicTextInstance::VERTICAL_ALIGN_BOTTOM);	
	
	pTextMarriageInstance->pMarriageNameInstance = NULL;
	
	CGraphicTextInstance *& prMarriageNameInstance = pTextTail->pMarriageNameTextInstance;
	prMarriageNameInstance = CGraphicTextInstance::New();
	prMarriageNameInstance->SetTextPointer(ms_pFont);
	prMarriageNameInstance->SetOutline(true);
	prMarriageNameInstance->SetHorizonalAlign(CGraphicTextInstance::HORIZONTAL_ALIGN_CENTER);
	prMarriageNameInstance->SetVerticalAlign(CGraphicTextInstance::VERTICAL_ALIGN_BOTTOM);
	prMarriageNameInstance->SetValue(text);
	prMarriageNameInstance->SetColor(c_TextTail_Guild_Name_Color.r, c_TextTail_Guild_Name_Color.g, c_TextTail_Guild_Name_Color.;
	prMarriageNameInstance->Update();	
	
	m_CharacterTextTailMap.insert(TTextTailMap::value_type(dwVirtualID, pTextTail));	
}

- How to use to function in binary.

import textTail

textTail.RegisterCharacterTextTailMarriage(vid,"Husband of " + name)

I say again. I don't test it.

Plain logic saves lives.

Link to comment
Share on other sites

 

You mean like guild name on name ?

Yes bro his mean, if you married with one bitch and she name write on guildname section.

 

turkish : (moruk seni daha tanımıyorum ama güzel birine benziyosun :D neyse lavuğun dediği gibi evlendiğinde karının ismi yazarsa loncanın oraya çok fena olur belki yapabiliriz böyle birşey?)

 

 

 

Yep I understand him. Thanks for comment.

Plain logic saves lives.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.