MODEL CHANGE BUG

11/18/2014 12:35 Cloud'#1
Anyone wants to help me how to fix this bug? This may cause CLIENT CRASH.

[Only registered and activated users can see links. Click Here To Register...]
11/18/2014 13:12 Sedrika#2
Debug your client and then show us the error messages.
11/18/2014 14:18 Lumi#3
This isn't a bug. Just debug your neuz and show us the result. :)
11/18/2014 15:04 raventh1984#4
Well actualy its an bug.

Just like if you put in the first slot an yoyo and in second slot an sword. The yoyo looks like an sword then and will crash other players neuz.

Here you go

[Only registered and activated users can see links. Click Here To Register...]
11/19/2014 15:36 Cloud'#5
Quote:
Originally Posted by raventh1984 View Post
Well actualy its an bug.

Just like if you put in the first slot an yoyo and in second slot an sword. The yoyo looks like an sword then and will crash other players neuz.

Here you go

[Only registered and activated users can see links. Click Here To Register...]
I've tried it already and nothin' happen i can still change appearance from dif. model.
11/19/2014 15:39 Lumi#6
Quote:
Originally Posted by raventh1984 View Post
Well actualy its an bug.

Just like if you put in the first slot an yoyo and in second slot an sword. The yoyo looks like an sword then and will crash other players neuz.

Here you go

[Only registered and activated users can see links. Click Here To Register...]
Oh sorry. ^^ I thought that this is a shield on first slot.

Quote:
Originally Posted by Cloud' View Post
I've tried it already and nothin' happen i can still change appearance from dif. model.
Normally this fix should works.
11/19/2014 16:06 Exrib0.#7
I try it out, if you use my fix than your client does not crash.

[Only registered and activated users can see links. Click Here To Register...]
11/19/2014 16:07 raventh1984#8
It depends on what you are willing to change.

In fact if this doesnt work then you can make it your own.

Since you need to check if dwItemKind3 matches with an other dwItemKind3
so IK3_SWORD->IK3_SWORD = ok
IK3_SWORD->IK3_SHIELD = false

Btw for my source i am using this

Open WndField.cpp
Search for

BOOL CWndModelChange::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )

Replace that function with this function if it isnt the same.

Code:
BOOL CWndModelChange::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
    switch (nID)
    {
		case  WIDC_BUTTON1: // Send LookChange
		{
			if(pItemElem[0] && pItemElem[1])
			{
				//Check if the items are still the same itemkind//
				if(pItemElem[0]->GetProp()->dwItemKind3 != pItemElem[1]->GetProp()->dwItemKind3)
				{
					g_WndMng.PutString("The items must be of the same type",0,0xff0000);
					return FALSE;
				}
				else if(pItemElem[0]->GetProp()->dwHanded != pItemElem[1]->GetProp()->dwHanded)
				{
					g_WndMng.PutString("You cant convert an 1 handed weapon to an 2 handed weapon!");
					return FALSE;
				}
				else
				{
					g_DPlay.SendModelChange(pItemElem[0]->m_dwObjId, pItemElem[1]->m_dwObjId);
					for( int i = 0; i < 3; i++ )
					{
						if( pItemElem[i] != NULL )
						{
							if( !g_pPlayer->m_vtInfo.IsTrading( pItemElem[i] ))
							pItemElem[i]->SetExtra(0);
						}
					}
					Destroy();
				}
			}
			else
			{
				g_WndMng.PutString("You need to put 2 Items in the Slots", 0, 0xff0000);
			}
			break;
		}
		case  WIDC_BUTTON2: // Close 
		{
			for( int i = 0; i < 3; i++ )
			{
				if( pItemElem[i] != NULL )
				{
					if( !g_pPlayer->m_vtInfo.IsTrading( pItemElem[i] ))
					pItemElem[i]->SetExtra(0);
				}
			}
			Destroy();
			break;
		}

    }
    return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
What this will do is after you have put the items in it and hit ok it will check if its still is the same dwItemKind3. So IK3_SWORD->IK3_SWORD and not IK3_SWORD->IK3_YOYO
11/21/2014 08:52 Cloud'#9
How about in viewing item with change model? How to fix it thanks in adv. :)
11/21/2014 09:13 Avalion#10
Quote:
Originally Posted by Cloud' View Post
How about in viewing item with change model? How to fix it thanks in adv. :)
Pardon? Please explain what the issue is with said thing?
06/05/2016 15:33 cholai2210#11
Anyone knows how to fix this model change.

I can model change all weapons and armors. except the suit or fashion suit. i cant put it to the model change system.
06/05/2016 16:12 Drabur#12
test this
[Only registered and activated users can see links. Click Here To Register...]