Quote:
Originally Posted by Lumi
I mean where did you have this modelchange?
->  ?
If no, then I can give you the code. 
|
maybe depends it here on what do you want to define
Code:
#ifdef __MODEL_CHANGE
if(pMaterial->m_dwItemId == 50044)
{
if( pTarget->m_dwnewID != NULL)
{
pTarget->m_dwnewID = NULL;
((CMover*)pUser)->UpdateItem((BYTE)pTarget->m_dwObjId, UI_MODEL, pTarget->m_dwnewID);
pUser->AddText("Das Model wurde Erfolgreich gelöscht!");
b = TRUE;
}
else
{
pUser->AddText("Deine Waffe wurde nicht mit einem Model ausgestattet!");
return;
}
}
#endif //__MODEL_CHANGE
as you can see
50044 i use that so it means on defineitem.h should be like this #define II_UNBIND
50044
here's a code for you to use as a guide:
Spec_Item.txt
Code:
17 II_SYS_SYS_SCR_MODELRESET IDS_PROPITEM_TXT_016377 1 9999 IK1_SYSTEM IK2_SYSTEM IK3_SCROLL = 0 1 = 0 = = = = = = = 0 = = 1 = = 1 1 = = = = _NONE 0 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = EXT_ITEM WUI_NOW = = = = = = = = = 0 0 0 0 0 = = = = = = = = = = = = = 1 = = = """Itm_SysSysScrItemModelReturn-32.dds""" 0 """""" IDS_PROPITEM_TXT_016378 1 300 0 0 1 0 0 0 1 0 2 = = = = = = = = = = 1 1 1 1 1 0 ITEM_GRADE_NORMAL 1 TYPE1_CONSUME TYPE2_CONSUME_EXCEPTION 1 0 0 0