Simple little thing, I am not a c++ coder so there prob is a better way that someone will post but this works.
ZShopEquipItem.cpp
Find:
Paste Underneath:PHP Code:if(pItemDesc->m_nDelay.Ref()) {
sprintf(temp,"%s : %d\n", ZMsg( MSG_WORD_DELAY), pItemDesc->m_nDelay.Ref());
str += temp;
}
Also for controllability(named "Spread" to make more sense to people)PHP Code:if(pItemDesc->m_nRange.Ref()) {
switch(pItemDesc->m_nWeaponType.Ref()) {
case MWT_DAGGER:
case MWT_DUAL_DAGGER:
case MWT_KATANA:
case MWT_GREAT_SWORD:
case MWT_DOUBLE_KATANA:
sprintf(temp,"%s : %d\n", "Range", pItemDesc->m_nRange.Ref());
str += temp;
break;
}
}
For ID (Credits: Mr_Troy)PHP Code:if(pItemDesc->m_nControllability.Ref()) {
switch(pItemDesc->m_nWeaponType.Ref()) {
case MWT_PISTOL:
case MWT_PISTOLx2:
case MWT_REVOLVER:
case MWT_REVOLVERx2:
case MWT_SMG:
case MWT_SMGx2:
case MWT_SHOTGUN:
case MWT_SAWED_SHOTGUN:
case MWT_RIFLE:
case MWT_MACHINEGUN:
case MWT_ROCKET:
case MWT_SNIFER:
sprintf(temp,"%s : %d\n", "Spread", pItemDesc->m_nControllability.Ref());
str += temp;
break;
}
}
Line 131
if anyone could figure out/tell me how to get the ID, I keep running into a problem.PHP Code:sprintf(temp,"Item ID : %d\n", pItemDesc->m_nID);
str+=temp;



Reply With Quote


