Code:
/***************************************************************************
* Change Log
* ------------------
* xx.xx.2006
* Script Decompiled by SauDecompiler build 160706.1
*
***************************************************************************/
class warrior_physicalspecial : warrior
{
parameter:
int PhysicalSpecial = 1032193;
handler:
EventHandler ATTACKED(attacker,damage)
{
if( attacker.is_pc != 0 || IsInCategory(11,attacker.npc_class_id) )
{
if( IsNullCreature(myself.top_desire_target) == 0 )
{
if( Rand(100) < 33 && myself.top_desire_target == attacker )
{
if( Skill_GetConsumeMP(PhysicalSpecial) < myself.sm.c_ai3 && Skill_GetConsumeHP(PhysicalSpecial) < myself.sm.c_ai2 && Skill_InReuseDelay(PhysicalSpecial) == 0 )
{
AddUseSkillDesire(attacker,PhysicalSpecial,0,1,1000000);
}
}
}
}
super;
}
EventHandler CLAN_ATTACKED(attacker,damage)
{
if( ( GetLifeTime() > 7 && ( attacker.is_pc != 0 || IsInCategory(11,attacker.npc_class_id) ) ) && myself.p_state != 3 )
{
if( Rand(100) < 33 )
{
if( Skill_GetConsumeMP(PhysicalSpecial) < myself.sm.mp && Skill_GetConsumeHP(PhysicalSpecial) < myself.sm.hp && Skill_InReuseDelay(PhysicalSpecial) == 0 )
{
AddUseSkillDesire(attacker,PhysicalSpecial,0,1,1000000);
}
}
}
super;
}
}
/***************************************************************************
* C4 stuff
* ------------------
* -----------
* FUNCTIONS:
* -----------
* IsNullCreature
***************************************************************************/
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ai_boss04_antaras_208.rar — 3232 байт