instance ItPo_PotionOfDeath_01_Mis(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = 0;
visual = "ItPo_Special_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_PotionOfDeath;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_ITEMGLIMMER";
description = "Слезы Инноса";
text[1] = PRINT_UnknownEffect;
};
func void UseItPo_PotionOfDeath()
{
if(self.guild == GIL_KDF)
{
Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",self,self,0,0,0,FALSE);
Snd_Play("SFX_HealObsession");
self.attribute[ATR_HITPOINTS] = self.attribute[ATR_HITPOINTS_MAX];
self.attribute[ATR_MANA] = self.attribute[ATR_MANA_MAX];
Npc_ChangeAttribute(self,ATR_STRENGTH,5);
Npc_ChangeAttribute(self,ATR_DEXTERITY,5);
if(IgnoreBonuses == FALSE)
{
B_RaiseRealAttributeLearnCounter(self,ATR_STRENGTH,5);
B_RaiseRealAttributeLearnCounter(self,ATR_DEXTERITY,5);
};
PrintScreen(PRINT_LearnSTR5,-1,43,FONT_Screen,2);
PrintScreen(PRINT_LearnDEX5,-1,48,FONT_Screen,2);
PrintScreen(PRINT_FullyHealed,-1,53,FONT_Screen,2);
Mdl_ApplyOverlayMdsTimed(self,"Humans_Sprint.mds",Time_Speed);
}
else
{
self.aivar[AIV_ReadyForPainfulDeath] = TRUE;
AI_StartState(self,ZS_MagicFreeze,0,"");
};
};
instance ItPo_PotionOfDeath_02_Mis(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = 0;
visual = "ItPo_Special_03.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_PotionOfDeath;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_ITEMGLIMMER";
description = "Слезы Инноса";
text[0] = "Это зелье наделяет магов Огня особыми способностями.";
text[1] = "Любой другой принявший его, найдет свою смерть.";
};