I've recently added this piece of code to my server:
Code:
ON_TEXTCMDFUNC( TextCmd_BuffPlayer, "Buff", "buff", "±Ó¼Ó¸»", "±Ó", TCM_SERVER, AUTH_GENERAL , "±Ó¼Ó¸» [/¸í·É ¾ÆÀ̵𠳻¿ë]" )
Code:
BOOL TextCmd_BuffPlayer( CScanner& scanner )
{
#ifdef __WORLDSERVER
CUser* pUser = (CUser*)scanner.dwValue;
pUser->DoActiveSkill( 20, 20, pUser );
pUser->DoActiveSkill( 49, 20, pUser );
pUser->DoActiveSkill( 50, 20, pUser );
pUser->DoActiveSkill( 52, 20, pUser );
pUser->DoActiveSkill( 53, 20, pUser );
pUser->DoActiveSkill( 114, 20, pUser );
pUser->DoActiveSkill( 115, 20, pUser );
pUser->DoActiveSkill( 116, 20, pUser );
#endif // __WORLDSERVER
return TRUE;
}
Anyways my problem is that these buffs skill time is calculated by their INT.
How can I make it like all buffs last 1h (no matter how many INT you have?)
Thanks in advance.






