Scroll of Combat

10/21/2016 09:36 pakinglalat#1
Hello people, I would like to ask if where I can change the duration of the scroll/buff item. I tried looking for the exact item in the source but it leads me somewhere like here.

Code:
#if __VER >= 8
	else if( pItemProp->dwID == II_SYS_SYS_SCR_DEFENSE20 || pItemProp->dwID == II_SYS_SYS_SCR_DEFENSE50 )
	{
		if( HasBuff( BUFF_ITEM, II_SYS_SYS_SCR_DEFENSE20 ) || HasBuff( BUFF_ITEM, II_SYS_SYS_SCR_DEFENSE50 ) )
			nResult = 1;
	}
#endif // __VER >= 8
10/21/2016 15:17 raventh1984#2
I am not quite sure but take an look at this

MoverSkill.cpp

Code:
case IK2_BUFF2:
				{
					if( IsDoUseBuff( pItemProp ) != 0 )
						return FALSE;
					CTime tm	= CTime::GetCurrentTime() + CTimeSpan( 0, 0, pItemProp->dwAbilityMin, 0 );
					time_t t	= (time_t)( tm.GetTime() );
					// wID: dwItemId
					// dwLevel
					AddBuff( BUFF_ITEM2, (WORD)( pItemElem->m_dwItemId ), t, 0 ); 
					break;
10/22/2016 11:02 Ecrypter#3
Spec_item