Jump to content
×
×
  • Create New...
  • 0

How do this


arsenlupin

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                                        

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

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

Link to comment
Share on other sites

  • 0
  • Moon

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

  • 0
  • Moon

 

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 0

      max level exp

    2. 8

      Quest States Core Crash Item Dupe Bug Fix

    3. 23

      Umbra / Soft4Win / SNap! scammer exposed!

    4. 46

      Ship Defense (Hydra Dungeon)

    5. 10

      Rodnia Glory | A REAL SPEED SERVER | Start 02.09.2022

    6. 0

      Avery seeks an experienced team manager

    7. 0

      Wear (use) item only on specific map

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.