Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 12:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MODEL CHANGE BUG

Discussion on MODEL CHANGE BUG within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
MODEL CHANGE BUG


how to fix this bug in model change plsss and Thanks
Attached Images
File Type: png MODEL CHANGE.png (90.9 KB, 113 views)
randeljohnvalencia is offline  
Old 06/13/2015, 14:52   #2

 
elite*gold: 353
Join Date: Jan 2013
Posts: 923
Received Thanks: 616
Code:
void CDPSrvr::OnLookChange(CAr &ar, DPID dpidCache, DPID dpidUser, LPBYTE, u_long)
{
	CUser *pUser = g_UserMng.GetUser(dpidCache, dpidUser);
	if( IsInvalidObj(pUser) )
		return;

	if( !CNpcChecker::GetInstance()->IsCloseNpc( MMI_LOOKCHANGE, pUser->GetWorld(), pUser->GetPos() ) )
		return;

	CItemElem *pDest, *pSrc;
	DWORD dwIdSrc, dwIdDest;
	ar >> dwIdSrc >> dwIdDest;

	pSrc = pUser->m_Inventory.GetAtId(dwIdSrc);
	pDest = pUser->m_Inventory.GetAtId(dwIdDest);

	if(!IsUsableItem(pSrc) || !IsUsableItem(pDest))
	{
		pUser->AddDefinedText(TID_MMI_LOOKCHANGE06);
		return;
	}
	if(pSrc->IsChangedLook() || pDest->IsChangedLook())
	{
		pUser->AddDefinedText(TID_MMI_LOOKCHANGE01);
		return;
	}
	if((!pSrc->GetProp() || !pDest->GetProp()) || pDest->GetProp()->dwItemKind3 != pSrc->GetProp()->dwItemKind3 )
	{
		pUser->AddDefinedText(TID_MMI_LOOKCHANGE07);
		return;
	}

	if( pSrc->m_dwKeepTime > 0 || pDest->m_dwKeepTime > 0)
	{
		pUser->AddDefinedText(TID_MMI_LOOKCHANGE08);
		return;
	}

	pDest->SetLook(pSrc->m_dwItemId);
	pUser->RemoveItem((BYTE)pSrc->m_dwObjId, 1);
	pUser->AddLookChange( pDest->m_dwObjId, pDest->GetLook() );
	pUser->AddDefinedText(TID_MMI_LOOKCHANGE04);
}
DPSrvr.cpp
Kiseku is offline  
Old 06/13/2015, 16:26   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 167
Received Thanks: 7
where in DPSrvr.cpp ?
randeljohnvalencia is offline  
Old 06/13/2015, 16:31   #4



 
Flogolo's Avatar
 
elite*gold: 980
Join Date: Nov 2011
Posts: 4,747
Received Thanks: 771
Source folder.
Flogolo is offline  
Old 06/13/2015, 17:07   #5
 
elite*gold: 0
Join Date: Aug 2014
Posts: 49
Received Thanks: 37
Exrib0. is offline  
Old 06/13/2015, 17:32   #6
 
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 373
I think he want to see the icon of the g knuckel.


Replace CWndLookChange::OnDraw in /_Interface/WndGold.cpp

with this:
PHP Code:
void CWndLookChange::OnDraw(C2DRender *p2DRender)
{
    if( 
m_pItemDest )
    {
        
CTexture *pTex m_pItemDest->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectDest->TopLeft() + CPoint6) );
    }
    if( 
m_pItemSource )
    {
        
CTexture *pTex m_pItemSource->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectSource->TopLeft() + CPoint6) );
    }
    if( 
m_pItemDest && m_pItemSource )
    {
        
CTexture *pTex m_pItemDest->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectResult->TopLeft() + CPoint6) );
    }
    
CWndNeuz::OnDraw(p2DRender);

Drabur is offline  
Old 06/14/2015, 09:26   #7

 
Kubiℓαу™'s Avatar
 
elite*gold: 0
The Black Market: 122/0/11
Join Date: Jan 2014
Posts: 1,363
Received Thanks: 289
Quote:
Originally Posted by Drabur View Post
I think he want to see the icon of the g knuckel.


Replace CWndLookChange::OnDraw in /_Interface/WndGold.cpp

with this:
PHP Code:
void CWndLookChange::OnDraw(C2DRender *p2DRender)
{
    if( 
m_pItemDest )
    {
        
CTexture *pTex m_pItemDest->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectDest->TopLeft() + CPoint6) );
    }
    if( 
m_pItemSource )
    {
        
CTexture *pTex m_pItemSource->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectSource->TopLeft() + CPoint6) );
    }
    if( 
m_pItemDest && m_pItemSource )
    {
        
CTexture *pTex m_pItemDest->GetTexture();
        if( 
pTex )
            
pTex->Renderp2DRenderm_pRectResult->TopLeft() + CPoint6) );
    }
    
CWndNeuz::OnDraw(p2DRender);


I dont think so. He want to fix that you cant model KNUCKLES into SWORDS.
Kubiℓαу™ is offline  
Reply


Similar Threads Similar Threads
[Fix] Model Change
09/20/2014 - Flyff PServer Guides & Releases - 2 Replies
Guten Tag Elitepvpers, viele benutzen ja die GoH Source und da gibt es das Problem das man beim Model Change zum Beispiel das Model von einem Sword auf ein Yoyo machen kann, hopt man dann crasht der Client des gehopten und der drumherum stehenden Spieler. Um dies zu verhindern müsst ihr in eurem Source folgende Änderungen vor nehmen : WndField.cpp Ändert diesen Abschnitt :
HELP Model Change
09/03/2014 - Flyff Private Server - 1 Replies
How to fix the Roll Back problem on Model Change? My Wooden Sword Changed to Bloody sword then success my wooden sword model changed to Bloody and after i ReLog my Wooden Sword Back to Normal and can't changed it again ---- Sorry for my ENGLISH
[Model-Change] WTF?!
07/07/2013 - Flyff Private Server - 9 Replies
Hallo, wenn ich einen Modelchanger einbaue (NPC) geht alles bis das ich einen NPC das menü gebe MMI_MODEL_CHANGER dann crasht der world server kein error los bitte um hilfe danke oder hat wer nen model change wie bei forsaken flyff 1 scroll => Fenster auf => model change ?! wenn ja bitte posten :) oder PN gebe ihn nicht weiter !!!!!!!!!!!
How I can change pet model?
03/11/2009 - Cabal Online - 2 Replies
I read a topic where there is write how to change wepons and skill models. I try to do the same with pet, chnging before chimpazee-w+.efx data and next chimpzee-w+.emb data... but the pet don't change... What i must do? 0.o



All times are GMT +2. The time now is 12:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.