arsenlupin 1 Posted March 8, 2014 Share Posted March 8, 2014 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 More sharing options...
Aveline™ 552 Posted March 8, 2014 Share Posted March 8, 2014 You mean like guild name on name ? Plain logic saves lives. Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 8, 2014 Share Posted March 8, 2014 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 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 More sharing options...
Aveline™ 552 Posted March 8, 2014 Share Posted March 8, 2014 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 More sharing options...
Aveline™ 552 Posted March 8, 2014 Share Posted March 8, 2014 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 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 More sharing options...
arsenlupin 1 Posted March 8, 2014 Author Share Posted March 8, 2014 ty i will try to test that used on perfect world ty Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now