Model Change Text entfernen!

12/15/2013 19:19 Serenity-.#1
Ich will diesen Model Typ Text von meinen cs klamotten und meinen rüstungen weg haben wie stell ich das an oder wo ist das eingetragen...

[Only registered and activated users can see links. Click Here To Register...]
12/15/2013 19:34 Lumi#2
Such im Source nach diese Stelle.. bzw. Text suchen und schon wirst du fündig. :)
12/15/2013 19:58 Iban24#3
WndManager.cpp

such nach:

Code:
#ifdef	__MODEL_CHANGE  
		ItemProp * pProp2 = prj.GetItemProp(pItemElem->m_dwnewID);
		if(pProp2)
		{
			strTemp.Format("\nModel-Type: %s", prj.GetItemProp(pItemElem->m_dwnewID)->szName);
			//strTemp.Format("\nModel-Type: %s" , pItemElem->GetProp()->szName);
			pEdit->AddString( strTemp, 0xFFFF0000);
		}
		else
		{
			strTemp.Format("\nModel-Type: No Model");
            pEdit->AddString( strTemp, 0xFFFF0000);
		}	
#endif //__MODEL_CHANGE
ersetz es mit:

Code:
		if( !(pItemElem->GetProp()->dwItemKind2 == IK2_ARMOR || 
			pItemElem->GetProp()->dwItemKind2 == IK2_CLOTH ) )
		{
			ItemProp * pProp2 = prj.GetItemProp(pItemElem->m_dwnewID);
			if(pProp2)
			{
				strTemp.Format("\nModel-Type: %s", prj.GetItemProp(pItemElem->m_dwnewID)->szName);
				//strTemp.Format("\nModel-Type: %s" , pItemElem->GetProp()->szName);
				pEdit->AddString( strTemp, 0xFFFF0000);
			}
			else
			{
				strTemp.Format("\nModel-Type: No Model");
				pEdit->AddString( strTemp, 0xFFFF0000);
			}	
		}
12/18/2013 12:48 Serenity-.#4
iban aber man kann jetzt nur die suit nicht modeln will aber noch das man gaunts boots und den helm nicht modeln kann auch bei cs .

habs so aber es kommen errors

#ifdef __MODEL_CHANGE
if( !(pItemElem->GetProp()->dwItemKind2 == IK2_ARMOR ||
if( !(pItemElem->GetProp()->dwItemKind2 == IK2_ARMORETC ||
if( !(pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHETC ||
pItemElem->GetProp()->dwItemKind2 == IK2_CLOTH ) )
{
12/18/2013 13:18 raventh1984#5
Sorry for putting it in english.
But if i understood it correctly then you whant that an user cant change the model
Of armor/helmet/boots/gaunts also for CS correct? You are willing that an user only can change the weapon with an diff model?

If so look at WndField.cpp
BOOL CWndModelChange::OnDropIcon( LPSHORTCUT pShortcut, CPoint point )

My German is not that best. I can read some things but cant write it
12/18/2013 14:53 Serenity-.#6
I did this :D

but i dont need that i need to remove this text.

[Only registered and activated users can see links. Click Here To Register...]
12/18/2013 15:30 Serenity-.#7
ja wie mach ich´s richtig :D?
12/18/2013 16:03 Lumi#8
Edit: Falsche Syntax gewählt. ;x
12/18/2013 16:10 Serenity-.#9
Jetzt zeigt er mir diesen Error.

[Only registered and activated users can see links. Click Here To Register...]
12/18/2013 17:05 Serenity-.#10
Neuer error...

[Only registered and activated users can see links. Click Here To Register...]
12/18/2013 17:22 Lumi#11
Das ist eine Warning und kann theoretisch ignoriert werden.
12/18/2013 17:24 Serenity-.#12
Ich will da aber kein Warning :O
12/18/2013 19:47 Pixelfehler#13
pItemElem->GetProp()->dwItemKind2 == IK2_ARMORETC ||
pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHETC ||

OMG
12/18/2013 19:47 Serenity-.#14
Wie soll ich es jetzt richtig machen? xD
12/18/2013 20:36 .SnoX#15
Quote:
Originally Posted by Pixelfehler View Post
pItemElem->GetProp()->dwItemKind2 == IK2_ARMORETC ||
pItemElem->GetProp()->dwItemKind2 == IK2_CLOTHETC ||

OMG
Hast du dir den ersten Post durchgelesen? Er will das er es NICHT angezeigt bekommt, nehmen wir mal an wir benutzen jetzt das was du geschrieben hast, zu 99,99% wird der Text nur noch an den beiden Sachen angezeigt nirgendswo anders deswegen hat Iban auch ein ! eingeführt damit es bei denen eben nicht eintrifft.

Der warning ensteht jetzt weil er mehrer Einträge hat wo es NICHT eintreffen soll, aber naja gibt ja noch eine andere Möglichkeit.