Jump to content
  • 0
arsenlupin

How do this

Question

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                                        

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

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?)

Share this post


Link to post
  • 0

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.

Share this post


Link to post
  • 0

 

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.

Share this post


Link to post

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
  • Recently Browsing   0 members

    No registered users viewing this page.

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